UDT Expression Tag Using OPC Tag Path Error

Please post code as preformatted text, it preserves whitespace and syntax highlighting, see Wiki - how to post code on this forum. You can edit your post by clicking the pencil icon in the bottom right.

To me it looks like your first abs is missing its ending enclosing paranthesis (adjusted for better readability):

// Current Unbalance Formula
// Calculate Absolute Maximum Deviation of Phase Currents
(max(
	abs({[.]CurrA} - {[.]CurrAvg}),
	abs({[.]CurrB} - {[.]CurrAvg}),
	abs({[.]CurrC} - {[.]CurrAvg})
// Divide by Current Average Magnitude * 100 for %
) / {[.]CurrAvg}) * 100

1 Like