
368
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
Transferring character strings
$MOV(P)
These instructions transfer the character string data specified by (s) to the device specified by (d) and later.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*1
T, ST, C cannot be used.
Processing details
• These instructions transfer the character string data specified by (s) to the device specified by (d) and later. A character
string enclosed with double quotation marks and specified by (s) or stored in the devices from the device specified by (s) to
the device storing 00H is transferred in a batch.
• Even though the device range of the data to be transferred (s) to (s)+n and the device range for storing the transferred data
(d) to (d)+n overlap, the processing is performed normally. For example, when a character string stored in D10 to D13 is
transferred to D11 to D14, the transfer is executed as shown below:
• When "00H" is stored in the lower byte of (s)+n, "00H" is stored to both the upper byte and lower byte of (d)+n.
Ladder diagram
Structured text
Not supported
Operand
Description
Range
Data type
Data type (label)
(s)
Character string to be transferred (up to 255 characters) or head
device number storing a character string
Character string
Character string
(d)
Head device number storing transferred character string
Character string
Character string
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s)
(d)
(s)
(d)
(s)
(s)+1
(s)+2
(s)+n
b15
b0
b7
b8
00H
(d)
(d)+1
(d)+2
(d)+n
b15
b0
b7
b8
00H
Indicates the end of the character string.
2nd character
4th character
1st character
3rd character
5th character
"n"th character
6th character
2nd character
4th character
1st character
3rd character
5th character
"n"th character
6th character
b15
b0
D11
D10
D12
D13
D14
32H (2)
b8
31H (1)
b7
33H (3)
34H (4)
35H (5)
36H (6)
0000H
b15
b0
D11
D10
D12
D13
D14
32H (2)
b8
31H (1)
32H (2)
31H (1)
b7
33H (3)
34H (4)
35H (5)
36H (6)
0000H
It is the same as the character string before transfer.
b15
42H (B)
b8 b7
b0
44H (D)
41H (A)
43H (C)
00H
45H (E)
(s)
(s)+1
(s)+2
b15
b0
00H
(d)+1
(d)
(d)+2
42H (B)
b8
41H (A)
b7
43H (C)
44H (D)
00H
It is the same as the character string before transfer.
The high-order byte is not transferred.
"00H" is automatically stored in the high-order byte.
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......