Jump to content

Recommended Posts

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

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.

  • Like 1
Posted (edited)

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

 

 

Captura3123.PNG

 

Edited by Artz
Posted
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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...