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 value to insert into the table. The signed value range is -32,768 ~ 32,767 (216). The unsigned value range is 0 ~ 65,535 (216-1). The Hexadecimal value range is H0000 ~ HFFFF. |
| 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 insert DEV into. 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 FINS and FINSP instructions behave as follows:
- The value, DEV, is inserted at the index, n, in 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 increase by 1.
- The first value of TBL is an integer number representing the amount of data saved in the table, TBL.
Ladder Diagram Examples
FINS

The FINS instruction inserts the WORD value, DEV, at the index, n, in the table, TBL.

Currently, the value of the data register, D10, is 8. The value of the data register, D20, is -3,214.

When the contact, M2.5, is powered ON (1), the FINS instruction inserts the value of the data register, D20, into the data register, D13.

The value of the data register, D10, increases by one to 9.

The value of each data register, starting at D13, is shifted one data register to the right.
FINSP

The FINSP one-shot instruction inserts the WORD value, DEV, at the index, n, in the table, TBL. Every time this instruction executes, it energizes the output only once.

Currently, the value of the data register, D30, is 9. The value of the data register, D40, is 32,323.

When the contact, M2.6, is powered ON (1), the FINSP instruction inserts the value of the data register, D40, into the data register, D35.

The value of the data register, D30, increases by one to 10.

The value of each data register, starting at D35, is shifted one data register to the right. Since the TBL value, data register D30, is now 10, the value of the data register, D39, shifts into the data register, D40.
