![]()
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. 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. Rslogix using tag as timer preset 32 bit#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. DN, etc, allowing you to place them all in an array but still give each one a unique name via the alias. You can also create an alias to each timer and still access the elements as. You can create an alias to a timer preset, however each timer preset will have its own alias. PRE is exposed outside of the AOI, and Im using less memory and fewer instructions (not that either matter much anymore in modern processors). 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. One technique that I use to avoid having to do a MOV of an Input parameter into a timer preset is to make that Input parameter tag an ALIAS of the local Timer tags.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |