Transferring Character Strings - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Transferring character strings

$MOV(P)
These instructions transfer the character string data specified by (s) to the device specified by (d) and later.
Ladder diagram
(s)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Character string to be transferred (up to 255 characters) or head
device number storing a character string
(d)
Head device number storing transferred character string
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s)
(d)
*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.
b15
(s)
2nd character
(s)+1
4th character
(s)+2
6th character
(s)+n
00H
• 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:
b15
b8
b7
D10
32H (2)
31H (1)
D11
34H (4)
33H (3)
36H (6)
35H (5)
D12
0000H
D13
D14
• 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.
b15
b8 b7
(s)
42H (B)
41H (A)
(s)+1
44H (D)
43H (C)
(s)+2
45H (E)
00H
The high-order byte is not transferred.
7 APPLICATION INSTRUCTION
368
7.6 Character string operation instruction
(d)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
*1
*1
b8
b7
b0
1st character
3rd character
5th character
"n"th character
Indicates the end of the character string.
b0
b15
b8
D10
32H (2)
D11
32H (2)
D12
34H (4)
D13
36H (6)
D14
0000H
b15
b0
(d)
42H (B)
(d)+1
44H (D)
(d)+2
00H
Structured text
Not supported
Range
Double word Indirect
U\G
Z
LC
b15
b8
(d)
2nd character
(d)+1
4th character
(d)+2
6th character
(d)+n
00H
b7
b0
31H (1)
It is the same as the character string before transfer.
31H (1)
33H (3)
35H (5)
b8
b7
b0
41H (A)
It is the same as the character string before transfer.
43H (C)
00H
"00H" is automatically stored in the high-order byte.
Data type
Character string
Character string
Constant
specification
LZ
K, H
b7
b0
1st character
3rd character
5th character
"n"th character
Data type (label)
Character string
Character string
Others
E
$

Advertisement

Table of Contents
loading

Table of Contents