Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 1307

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Model Conversion Instructions (Unit Ver. 3.0 or Later)
Description
Area
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
Data Distribution Operation
DISTC(566) copies S to the destination word calculated by adding Of to Bs.
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.
S
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. 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.
S is copied to:
Bs + stack pointer + 1.
S
Bs+ +1
Bs+(m-1)
S
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to #FFFF
---
(binary)
DR0 to DR15
---
---
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –) IR0 to, –(– –) IR15
Bs
Bs+n
Stack area
Stack
Bs
pointer
Bs+1
Stack
m words
data area
Section 3-35
Bs
Of
#0000 to #7999
for distribution
#9000 to #9999
for stack operation
DR0 to DR15
Of
m
Of
9
Size of
stack area
1267

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents