Download PLC WorkShop - FasTrak SoftWorks, Inc.

Transcript
tm
505 WorkShop
The register length Register Length determines the size of the shift register. The
register length depends upon the memory location that you choose and how much
memory you have allocated (if the memory is user-configurable).
The status bit specified by Status Bit is turned on to indicate that the register is full.
The bit (Status Bit + 1) is automatically reserved as a second status bit and turns on
whenever the shift register is empty.
Use the same status bits for FTSR-IN that you use for the FTSR-OUT. FTSR-IN
sets (Status Bit +1) when the register is empty. FTSR-IN clears this bit.
If the shift register is empty, status bit Status Bit is off and (Status Bit + 1) is on.
When the FTSR-IN executes, the following actions occur.
The word currently in memory location A is shifted into the location specified by
the Index.
The Count and the index are each incremented by one.
Status bit (Status Bit + 1) turns off.
Each time the FTSR-IN executes, another words moves into the next available
location; the Index and the Count increment by one. When the Index equals the
length, it resets to zero after the next execution by the FTSR-IN.
When the shift register is full, another word cannot be shifted in until one is shifted
out by the FTSR-OUT statement.
When the shift register is full, status bit Status Bit turns on. If you attempt to shift in
another word, an error generates. (error 87).
You can use FTSR-OUT to remove words from the shift register before all locations
are full. You can use FTSR-IN to shift more words into the shift register before all
words are removed.
317