Hi,
I'm doing a compare in s7 stl. The code i have written works fine but looks messy. What I'm trying to achieve is to set m9.0 when the PLC clock hour is 0, 4, 8, 12, 16, or 20 and then reset at half past the hour. Attached is the working code but if anyone has comments or suggestions to improve the code they are welcome.
Thanks,
Barry.
I'm doing a compare in s7 stl. The code i have written works fine but looks messy. What I'm trying to achieve is to set m9.0 when the PLC clock hour is 0, 4, 8, 12, 16, or 20 and then reset at half past the hour. Attached is the working code but if anyone has comments or suggestions to improve the code they are welcome.
Thanks,
Barry.