You can make a pointer to it (as you would do in FAL) or you can give it a unique alias. ![]() Since the preset is a specific word of memory you can't arbitrarily re-assign the preset as a new location in memory. For example, if a timer’s Time Base is 0.01 and Preset is 500, the timer’s setting time is 500 x 0.01 second 5 seconds. EN bits and a system time reference stamp are stored in word 1, the PRE is the second word, the ACC is the third word. A timer’s setting time equals its Preset value multiplied by its Time Base. Keep in mind that a timer is not a device, it is a computer instruction that operates on a defined location in memory, in this case, it operates on three consecutive 32 bit words of memory.DN. But don't despair, 30 rungs can be programmed in fewer man hours than has been invested in this thread so far, and it will execute just as fast as any other method, because when you get down to it, you still have to store something in 30 different memory locations. If you cannot put all 30 timers in an array then you will require 30 MOV instructions to set the presets. RSLogix 5000 Tutorial - TON Instruction with Timer Array Tag. DN, etc, allowing you to place them all in an array but still give each one a unique name via the alias. Start by adding an AaMain routine and setting it as the main routine of the Faults program. The timer and counter both are of 16 bits, the timers and counters are the fundamental PLC instructions and it is common to all PLCs. ![]() ![]() The timer would time up to the value set by the user and the counter will count up to the value set by the user. You can also create an alias to each timer and still access the elements as. The timers and counters are used in a PLC for its continuous operation so they are inevitable in a PLC. You can create an alias to a timer preset, however each timer preset will have its own alias. However, to answer your question, if you place the thirty timers in an array then you can use the FAL instruction to set all 30 presets with a value from a single DINT or an array of DINTs. The hardware we will be using is two CompactLogix L24ER-QBFC1B controllers with V24 firmware. Bernie is correct, not only is that not the case, by you cannot even enter the letter N into the preset field in RSLogix 500.
0 Comments
Leave a Reply. |