Skip to main content

Example - Ladder Diagram

DSFL​


The DSFL instruction shifts n number of WORD data registers, D ~ Dn, one WORD to the left. The result is saved in the same assigned data register, D.

Ladder Diagram Example​


The initial value of the WORD data register, D30, is 3,232.



When the contact, M2.5, is powered ON (1), the instruction shifts 3 WORD registers, starting at D30, to the left.



The value of the WORD data register, D30, changes from 3,232 to 0.



The instruction shifts 3 WORD registers, starting at D30, to the left again.



The value of the WORD data register, D30, changes remains 0.
The values continue shifting left.



The instruction shifts 3 WORD registers, starting at D30, to the left again.



The value of the WORD data register, D30, changes remains 0.
The values continue shifting left.


DSFLP​


The DSFLP one-shot instruction shifts n number of WORD data registers, D ~ Dn, one WORD to the left. The result is saved in the same assigned data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example​


The initial value of the WORD data register, D45, is 4,532.



When the contact, M2.8, is powered ON (1), the instruction shifts 2 WORD registers, starting at D45, to the left.



The value of the WORD data register, D45, changes from 4,532 to 0.



The instruction shifts 2 WORD registers, starting at D45, to the left again.



The value of the WORD data register, D45, changes remains 0.
The values continue shifting left.