Xchg/Xcgl - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

XCHG/XCGL

Instruction
DATA EXCHANGE
DOUBLE DATA EXCHANGE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
E1
First exchange word
E2
Second exchange word
Operand Specifications
Area
CIO
WR
HR
XCHG
E1,E2
OK
OK
OK
XCGL
E1,E2
Flags
Name
Error Flag
Equals Flag
Negative Flag
Note In CS1D CPU Units for Duplex Systems, CS1 CPU Units, and CJ1 CPU Units, these are turned OFF.
Function
XCHG
XCHG(073) exchanges the contents of E1 and
E2.
E1
296
Mnemonic
Variations
XCHG
@XCHG
XCGL
@XCGL
XCHG
XCHG(073)
E1: First exchange word
E1
E2: Second exchange word
E2
Block program areas
Step program areas
OK
OK
Description
Word addresses
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
Unchanged (See note.)
=
Unchanged (See note.)
N
Unchanged (See note.)
E2
Function
code
Exchanges the contents of the two specified
073
words.
Exchanges the contents of a pair of consecutive
562
words with another pair of consecutive words.
XCGL(562)
Subroutines
OK
Data type
XCHG
WORD
DWORD
WORD
DWORD
Indirect DM/EM
Registers
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
---
---
Operation
XCGL
XCHG(073) exchanges the contents of E1+1
and E1 with the contents of E2+1 and E2.
E1+1
E1
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
XCGL
E1: First exchange word
E1
E2
E2: Second exchange word
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
XCGL
XCHG
XCGL
1
1
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
OK
E2+1
2
2
TR
bits
---
E2

Advertisement

Table of Contents
loading

Table of Contents