3/16/2018 2:38 PM | |
Joined: 9/30/2016 Last visit: 4/5/2024 Posts: 910 Rating: (6) |
I need to reverse the direction of a drive when I get a digital input set. At present the drive direction is set with a SR flip-flip (see attached screenshots). I am going to use a spare DI channel for a signal to reverse the direction - but what is the best way? Maybe I can use some sort of switch or switch-c - if these are available in Simatic S7? AttachmentSR block.zip (27 Downloads) |
3/16/2018 4:11 PM | |
Joined: 2/11/2015 Last visit: 4/24/2024 Posts: 437 Rating: (33) |
Hi, Try to multiply the value out for "-1" when you've the DI_Input signal at ON. |
3/20/2018 8:32 AM | |
Joined: 9/30/2016 Last visit: 4/5/2024 Posts: 910 Rating: (6) |
Please see attached screenshots (unfortunately the SR flip flip forces me to 2 pics so I must zip to be able to attach here). I would like to do it like in your sketch and use the original M200.2 as the "final" output so I guess I have to make a temporary local variable. Can I make it in the "Interface" under TEMP and as a boolean and call it M0.0? How can I see which memory bits and bytes are used (and which are still available? How can I see which physical I/O channels are used and which are still spare?
AttachmentSwitch.zip (22 Downloads) |
Follow us on