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 Quote
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 Quote
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 Quote
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... Quote
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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.