GermanM Posted October 17, 2023 Report Share Posted October 17, 2023 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 More sharing options...
MVP 2023 Joe Tauser Posted October 17, 2023 MVP 2023 Report Share Posted October 17, 2023 Only one action per Case ID is definable. You'd have to make a small function with what you want to do and call it. Joe T. Link to comment Share on other sites More sharing options...
GermanM Posted October 17, 2023 Author Report Share Posted October 17, 2023 Ok, I see... Thank you ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now