Artz

Move Animation on Objects

5 posts in this topic

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 by Artz

Share this post


Link to post
Share on other sites

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 actionUntitled.thumb.png.25e9c63e8e3868e314a5c

Or you could make Subroutine doing the same.

1 person likes this

Share this post


Link to post
Share on other sites

I wanted to write the exrpession here since sysmac already provides an easy way to do so.

 

 

Captura3123.PNG

 

Edited by Artz

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now