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

Table of Contents

Advertisement

3. Instructions

MOV$

Instruction
MOV STRING
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
D
First destination word
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
D
Flags
Name
Error Flag
Equal Flag
Function
MOV$(664) transfers the text string data designated by S, just
as it is, as text string data (including the final NUL), to D. The
maximum number of characters that can be designated by S
is 4,095 (0FFF hex).
MOV$(664) 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, MOV$(664) is used to transfer the text string ABCDEF.
1066
Mnemonic
Variations
MOV$
@MOV$
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON if more than 4,095 characters are designated by S.
• 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.
=
• ON if 0000 (hex) is transferred to D.
• OFF in all other cases.
D0
S:D0
D1
D100
D2
D3
Function
code
664
Transfers a text string.
MOV$
MOV$(664)
S: First source word
S
D: First destination word
D
Subroutines
OK
Data type
UINT
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
---
---
Operation
D:D100
D101
D102
D103
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
---
---
0
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents