EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1121
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Model Conversion Instructions
3
DISTC
Note In C-series PLCs, the SINGLE WORD DISTRIBUTE (DIST) instruction will cause the Error Flag to go ON if the content
of an indirectly addressed DM word (*DM) is not BCD, or the DM area boundary is exceeded. DISTC(566) will not cause
the Error Flag to go ON in these cases.
Function
z Data Distribution Operation
DISTC(566) copies S to the destination word calculated by adding Of to Bs.
z Stack Push Operation
When the leftmost digit (bits 12 to 15) of Of is 9 BCD, DISTC(566) operates a stack from Bs to Bs+Of-
9000. The destination base address (Bs) contains the stack pointer and the rest of the words in the
stack contain the stack data.
DISTC(566) copies S to the destination word calculated by adding the stack pointer (content of Bs) + 1
to address Bs.
Each time that the content of S is copied to a word in the stack data area, the stack pointer in Bs is
automatically incremented by +1.
Note Once DISTC(566) has been executed with Stack Push Operation to allocate a stack area, always specify the
same length stack area in subsequent DISTC(566) instructions. Operation will be unreliable if a different
stack area size is specified in later DISTC(566) instructions.
Hint
Use COLLC(567) to read stack data from the stack area.
The same DISTC(566) instruction can be used to distribute the source word to various words in the
data area by changing the value of Of.
Precaution
Be sure that the offset or stack size specified by Of does not exceed the end of the data area when
added to Bs.
S
S is copied to:
Bs + Of
Bs+n
OfBs
S
OfBs
Bs+1
Stack area
Stack
pointer
Stack
data area
m words
Size of
stack area
9
m
Bs+ +1
Bs+(m-1)
S is copied to:
Bs + stack pointer + 1.

Table of Contents

Related product manuals