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

Table of Contents

Advertisement

3. Instructions

XCHG$

Instruction
EXCHANGE STRING
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
Ex1
First exchange word 1
Ex2
First exchange word 2
Ex1: First Exchange Word 1
15
Ex1
Text string data: 4,095 characters max. + NUL
to
Ex1 + maximum 2,047 words
Ex2: First Exchange Word 2
15
Ex2
Text string data: 4,095 characters max. + NUL
to
Ex2 + maximum 2,047 words
Note
• The data from Ex1 to Ex1 + the maximum 2,047 words and from Ex2 to Ex2 + the maximum 2,047 words must be in
the same area.
• The data from Ex1 to Ex1 + the maximum 2,047 words and from Ex2 to Ex2 + the maximum 2,047 words cannot
overlap.
Operand Specifications
Word addresses
Area
CIO
WR
HR
D1, D2
OK
OK
OK
1082
Mnemonic
Variations
XCHG$
@XCHG$
Block program areas
Step program areas
OK
OK
Description
0
to
0
to
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Replaces a designated text string with another
665
designated text string.
XCHG$
XCHG$(665)
Ex1: First exchange word 1
Ex1
Ex2: First exchange word 2
Ex2
Subroutines
OK
Data type
UINT
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
---
---
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents