Jump to content

Switch case ussage


GermanM

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

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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.