3. Instructions
DIST
Instruction
SINGLE WORD DISTRIBUTE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Source word
Bs
Destination base address
Of
Offset
Bs: Destination Base Address
15
Bs
Bs+Of
Of: Offset
The offset can be any value from 0000 to FFFF (0 to 65,535 decimal).
Note Bs and Bs+Of must be in the same data area.
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
Bs
OK
OK
OK
Of
Flags
Name
Error Flag
Equals Flag
Negative Flag
300
Mnemonic
Variations
DIST
@DIST
Block program areas
Step program areas
OK
OK
Description
0
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
OFF
=
• ON if the source data is 0000.
• OFF in all other cases.
N
• ON if the leftmost bit of the source data is 1.
• OFF in all other cases
Function
code
Transfers the source word to a destination word
080
calculated by adding an offset value to the base
address.
DIST
DIST(080)
S: Source word
S
Bs
Bs: Destination base address
Of
Of: Offset
Subroutines
OK
Data type
WORD
WORD
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
---
OK
OK
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
1
1
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---
Need help?
Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?
Questions and answers