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 #1140 background imageLoading...
Page #1140 background image
3. Instructions
1102
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Flags
Function
XCHG$(665) exchanges the text string designated
by Ex1 with the text string designated by Ex2. If
either Ex1 or Ex2 is NUL, then two NUL characters
(0000 hex) will be output to the other one of them.
XCHG$(665) can be processed in the background. Refer to the SYSMAC CS/CJ/NSJ Series PLC
Programming Manual (W394) or the CJ2 CPU Unit Software Operation Manual (W473) for details.
Example Programming
In this example, XCHG$(665) is used to exchange two text strings.
Name Label Operation
Error Flag ER • ON if more than 4,095 characters are designated by Ex1 or Ex2.
• ON the Ex1 and Ex2 data overlap.
• ON if the Communications Port Enabled Flag for the communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
Ex1
Ex2
Ex1
Ex2
Ex1: D100
Ex2: D200
Ex1: D100
Ex2: D200
Ex1
Ex2
D100
D200
Text strings: FG and ABCDE
Previous data
remains.
Text strings ABCDE and FG

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