Skip to main content

Read Table Data (Last)

Instruction Parameters​

Supported PLC Series​

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S
✓✓✓✓✓✓✓✓✓

Supported Data Registers​

MXYKLFTCSZRQD@DConstant
DEV✓✓✓✓✓✓✓✓-✓✓✓✓✓✓
TBL---------✓✓✓✓✓-

Supported Flags​

FlagBitSupport
ErrorF11.0✓
ZeroF11.1-
CarryF11.2-

Number of Steps​

Steps
3

Operands​

OperandDescription
DEVThe first operand.
Entries are WORD data registers or constants.
This is the storage location for the first value read.
TBLThe second operand.
Entries are only WORD data registers.
This is the starting address for the table.

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.

Instruction Behavior

The FPOP and FPOPP instructions behave as follows:

  • The newest value, or last value, in TBL + n is read.
    • n is an integer number representing the amount of data saved in the table, TBL.
    • The table will remove this value and decrease the overall amount by 1.
  • The first value of TBL is an integer number representing the amount of data saved in the table, TBL.

Examples​