EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Character String Transfer

Mitsubishi Electric MELSEC-Q/L
1084 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
Loading...
302
6 BASIC INSTRUCTIONS
6.4 Data Transfer Instructions
Character string transfer
$MOV(P)
Processing details
Transfers the character string data designated by (S) to the area starting from the device designated by (D).
The character string data enclosed in " (double quotes) specified by (S) or the string from the device number to the number
for the device storing the NULL code "00H" is transferred all at once.
Processing will be performed without error even in cases where the range for the devices storing the character data to be
transferred ((S) to (S)+n) overlaps with the range of the devices which will store the character string data after it has been
transferred ((D) to (D)+n). The following occurs when the character string data that had been stored from D10 to D13 is
transferred to D11 to D14:
If the NULL code "00H" is stored at lower bytes of (S)+n, the NULL code "00H" will be stored at both the upper bytes and
lower bytes of (D)+n.
For the operation to be performed when the character string data enclosed in double quotes is specified by (S), refer to
Page 91 Using character string data.
(S): Character string to be transferred (maximum string length: 32 characters) or head number of the devices where the character string to be transferred is
stored (character string)
(D): Head number of the devices where the transferred character string will be stored (character string)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
$
Others
Bit Word Bit Word
(S)  
(D) 
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
$MOV
$MOVP
S D
S D
$MOV
$MOVP
Indicates the end of character string.
2nd character
4th character
6th character
1st character
3rd character
5th character
nth character
+ 1
+ 2
00
H
b15 b8
b7
b0
+ 1
+ 2
00
H
b15 b8
b7
b0
S
D
S
S
D
D
2nd character
4th character
6th character
1st character
3rd character
5th character
nth character
32
H
(2)
b15 b8
31
H
(1)
b7 b0
D11
31
H
(1)
33
H
(3)
32
H
(2)
00
H
34
H
(4)
D12
D13
D14
D10
35
H
(5)36
H
(6)
Character string before
transfer is remained.
32
H
(2)
b15 b8
31
H
(1)
b7 b0
D11
33
H
(3)
35
H
(5)
34
H
(4)
00
H
36
H
(6)
D12
D13
D14
D10
At the upper byte position,
"00
H" is automatically stored.
b15 b8
b7
b0
+1
+2
b15 b8
b7
b0
+1
+2
42
H
(B)41
H
(A)
43
H
(C)
00
H
44
H
(D)
45
H
(E)
42
H
(B)41
H
(A)
43
H
(C)
00
H
44
H
(D)
00
H
Upper byte is not transferred.
S
D
S
S
D
D

Table of Contents

Related product manuals