Skip to main content

Split and Distribute Data

Instruction Parameters

Supported PLC Series

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

Supported Data Registers

MXYKLFTCSZRQD@DConstant
S-
D----
n-

Supported Flags

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

Number of Steps

Steps
4

Operands

OperandDescription
SThe first operand.
Entries are WORD data registers or constants.
This is the data to be distributed

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.
DThe second operand.
Entries are only WORD registers.
This is where the distributed data of S is saved.
This requires n data registers.
nThe third operand.
Entries are WORD data registers or constants.
This is the number of NIBBLEs to be distributed.

The value range is 1 ~ 4.

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 value of the data for n is not in range of 1 ~ 4.

Instruction Behavior

The DIS and DISP instructions behave as follows:

  • NIBBLEs starting from the least significant bit of the data register, S, are distributed to n WORD data registers starting from the data register, D.
  • Data is stored in bit 0 ~ bit 3 through n amount of data registers starting at the data register, D.
    • The remaining bits are equal to 0.

Examples