Example - Ladder Diagram
FDEL
The FDEL instruction deletes the value at the index, n, in the table, TBL, and saves the deleted value in an assigned WORD data register, DEV.
Ladder Diagram Example
Currently, the value of the data register, D50, is 6.
The value of the data register, D60, is 0.
![]()
When the contact, M3.0, is powered ON (1), the FDEL instruction deletes the value of the data register, D54, and saves the value in the data register, D60.
The value of the data register, D50, decreases by one to 5.
![]()
The value of each data register, starting at D55, is shifted one data register to the left.
FDELP
The FDELP one-shot instruction deletes the value at the index, n, in the table, TBL, and saves the deleted value in an assigned WORD data register, DEV.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
Currently, the value of the data register, D70, is 9.
The value of the data register, D80, is 0.
![]()
When the contact, M3.1, is powered ON (1), the FDELP instruction deletes the value of the data register, D76, and saves the value in the data register, D80.
The value of the data register, D70, decreases by one to 8.
![]()
The value of each data register, starting at D77, is shifted one data register to the left.