Jump to content

Switch case ussage


Recommended Posts

I would like to know if the switch case statement can run more than one single case at the same time. I don't have access to the PLC right now to test it. 
My idea is to build a switch case to store a value into a Tag depending on the control of the switch case:

If Value is 1: Store Apple in Tag1

If Value is 0: Store Orange in Tag1

If Value is 1: Store 100 in Tag2

If Value is 0 Store 50 in Tag2


In case the control value is 1, Tag1=Apple and Tag2=100

Thank you!

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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