1085
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Text String Processing Instructions
3
MOV$
MOV$
Applicable Program Areas
Operands
z Operand Specifications
Flags
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.
Instruction Mnemonic Variations
Function
code
Function
MOV STRING MOV$ @MOV$ 664 Transfers a text string.
Symbol
MOV$
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
S First source word UINT Variable
D First destination word UINT Variable
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
S
OK OK OK OK OK OK OK OK OK OK --- --- --- OK --- --- --- ---
D
Name Label Operation
Error Flag 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.
Equal Flag = • ON if 0000 (hex) is transferred to D.
• OFF in all other cases.
S: First source word
D: First destination word
MOV$(664)
S
D
0
S:D0
D1
D2
D3
D:D100
D101
D102
D103
D0
D100