EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals