Instruction Parameters
Supported PLC Series
| PLC-AES | PLC-FB | PLC-ES |
|---|---|---|
| ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DEV | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | – | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| TBL | – | – | – | – | – | – | – | – | – | ✓ | ✓ | ✓ | ✓ | ✓ | – |
| n | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | – | ✓ | ✓ | ✓ | ✓ | – | ✓ |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | ✓ |
| Zero | F11.1 | – |
| Carry | F11.2 | – |
Number of Steps
| Steps |
|---|
| 4 |
Operands
| Operand | Description |
|---|---|
| DEV | The first operand. Entries are WORD data registers or constants. This is the storage location for the deleted value. |
| TBL | The second operand. Entries are only WORD data registers. This is the starting address for the table. |
| n | The third operand. Entries are WORD data registers or constants. This is the index to delete DEV from. The value range is 1 ≤ n ≤ TBL data amount. |
Notice
Error Flag (F11.0) Notice
The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type. F11.0 turns ON when the data table exceeds the range of the corresponding data register. F11.0 turns ON when the value of the data for n isn’t in the range 1 ≤ n ≤ TBL data amount
Instruction Behavior
The FDEL and FDELP instructions behave as follows:
- The value, DEV, is deleted at the index, n, from the table, TBL.
- n must be greater or equal to 1 and less than or equal to the integer value representing the amount of data saved in the table, TBL.
- The overall amount of data saved in the table, TBL, will decrease by 1.
- The first value of TBL is an integer number representing the amount of data saved in the table, TBL.
Ladder Diagram Examples
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.

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.

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.
