Hello there. New guy here. I am writing my second program in WindLDR. A considerable portion of this program needs to run off of time. Example, once the portion of the program is initiated, output 1 comes on at 5 seconds, goes off at 35, input 2 comes on at 10 seconds, and lasts until 50, etc. What is an easy way to program this? The timers I have messed with in WindLDR are all counting down, meaning they have an set value to start with. What I would like is a timer that counts UP when the start signal is pressed, and then the rest of the signals are triggered by the time being <,>,= to the timer and so on. A countdown timer would be a big pain to tweak the settings later, as the numbers would have little meaning, and if the overall cycle time would need to be adjusted, all the other values would change. Or do I just need to set my timer high (1000 or 10,000 seconds maybe) and then do math functions to get it to a counting up number to use in triggering my outputs? Ex.
D0001=(1000-T001) SET Q0001
D0002=(1000-T001) RST Q0001
This is going to run on MicroSmart 24's, I have both the Pentra and the older version of the PLC that I need to have a similar type of program on.
Is there something I am missing as far as making this easier? I am just trying to make it as simple as possible, as it will be a fairly large program by the time I am done.
Thanks!
D0001=(1000-T001) SET Q0001
D0002=(1000-T001) RST Q0001
This is going to run on MicroSmart 24's, I have both the Pentra and the older version of the PLC that I need to have a similar type of program on.
Is there something I am missing as far as making this easier? I am just trying to make it as simple as possible, as it will be a fairly large program by the time I am done.
Thanks!