Character String Transfer - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Character string transfer

$MOV(P)
High
Basic
Process
performance
$MOV
$MOVP
(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
Internal device
data
Bit
(S)
(D)
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.
b8 b7
b15
2nd character
1st character
S
S
4th character
3rd character
+ 1
S
6th character
5th character
+ 2
nth character
00
H
Indicates the end of character string.
• 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:
b15
b8
b7
D10
32
(2)
31
(1)
H
H
D11
34
(4)
33
(3)
H
H
D12
36
(6)
35
(5)
H
H
D13
00
H
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.
b15
b8 b7
S
42
(B)
41
H
H
S
+1
44
(D)
43
H
H
S
+2
45
(E)
00
H
H
Upper byte is not transferred.
• 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.
6 BASIC INSTRUCTIONS
302
6.4 Data Transfer Instructions
Redundant Universal
LCPU
Command
Command
R, ZR
Word
b0
b15
2nd character
D
D
+ 1
4th character
D
+ 2
6th character
00
H
b0
b15
b8
32
(2)
D10
H
32
(2)
D11
H
34
(4)
D12
H
36
(6)
D13
H
00
D14
b0
b15
D
(A)
42
(B)
H
D
+1
(C)
44
(D)
H
D
00
+2
H
At the upper byte position,
"00
J\
Bit
Word
b8 b7
b0
1st character
3rd character
5th character
nth character
b7
b0
31
(1)
Character string before
H
transfer is remained.
31
(1)
H
33
(3)
H
35
(5)
H
H
b8 b7
b0
41
(A)
H
43
(C)
H
00
H
" is automatically stored.
H
$MOV
S
D
$MOVP
S
D
U\G
Zn
Constant
$
Others

Advertisement

Table of Contents
loading

Table of Contents