Expression Tag Missevaluating Tag in Script

So I have this OPC tag that returns the current position of a cart, however, when I try to use this tag in a separate expression tag, the value and datatype of the tag completely changes.

image

image

image

I have tried everything commented out however the value of New Tag remains 2, even when the Current_Position value changes! The datatype of the Current_Position tag is an Integer, but the expression returns Long. Is there any way to correct this or go about this?

Thank You

When you right-click, Copy Path on the Current_Position tag, what do you get?

It looks to me like you might have copied the path to one of the tags belonging to a UDT definition, not the instance.

1 Like

Yep that looks like it was the problem! Thank you!