Artz Posted April 18, 2023 Report Posted April 18, 2023 (edited) Hi on a NA5 15W101 V1.11 in sysmac studio: I cannot figure out how to set up a Move Horizontal/Vertical Expressions within Animations tab inside any object properties. For example my epression would be something like Move(Check_Condition_Variable, 100, Horizontal(?)) but as an expression. Edited April 18, 2023 by Artz
Parity1 Posted April 18, 2023 Report Posted April 18, 2023 Hi You can map variables(global, type integer) directly from you plc to to horizontal and vertical expression- fields on move animation and do your condition check on plc side. Or you can make a variable in HMI, create global event for condition, and add SetVariable as action Or you could make Subroutine doing the same. 1
Artz Posted April 20, 2023 Author Report Posted April 20, 2023 (edited) I wanted to write the exrpession here since sysmac already provides an easy way to do so. Edited April 20, 2023 by Artz
IO_Rack Posted April 20, 2023 Report Posted April 20, 2023 The fields are expecting a pixel position. You can do the math in code or in the PLC then use an Integer tag. Maybe I don't understand your question...
Artz Posted April 27, 2023 Author Report Posted April 27, 2023 On 20/4/2023 at 2:27 PM, IO_Rack said: The fields are expecting a pixel position. You can do the math in code or in the PLC then use an Integer tag. Maybe I don't understand your question... How dumb of me... it was just solved with a single line If... statement If(variable=True,330,20). Srry that this was just a beginner in VB thing.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now