Mitsubishi Electric MELSEC-Q/L Programming Manual page 266

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

Advertisement

$+(P) [When three data are set]
$+
$+P
(S1): Data for linking or head number of the devices where the data for linking is stored (character string)
(S2): Data to be linked or head number of the devices where the data to be linked is stored (character string)
(D): Head number of the devices where the linking result will be stored (character string)
Setting
Internal device
data
Bit
(S1)
(S2)
(D)
Processing details
• Links the character string data designated by (S2) after the character string data designated by (S1) and stores the result
into the area starting with the device number designated by (D).
b15
b8
b7
46
(F)
48
S1
H
H
2D
( )
41
+1
S1
H
H
00
S1
+2
H
• When character strings are linked, the "00H" which indicates the end of character string data indicated by (S1), is ignored,
and the character string indicated by (S2) is appended to the last character of the (S1) string.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4101
The number of device points starting from the device specified in (D) is
insufficient to store all character strings.
The storage device numbers for the character strings specified by (S2) and
(D) overlap.
The number of characters of (S1), (S2) and (D) exceeds 16383.
Program example
• The following program links the character string stored from D10 to D12 with the character string "ABCD" when X0 is ON,
and stores them in the area starting from D100.
[Ladder Mode]
[Operation]
b15
b8
b7
62
(b)
61
D10
H
H
64
(d)
63
D11
H
H
00
65
D12
H
H
6 BASIC INSTRUCTIONS
264
6.2 Arithmetic Operation Instructions
Command
Command
R, ZR
Word
b0
b15
(H)
35
(5)
S2
H
(A)
39
(9)
+1
S2
H
00
+2
S2
H
b0
(a)
+
(c)
"ABCD"
(e)
$+
$+P
J\
Bit
Word
b8
b7
b0
31
(1)
D
H
33
(3)
D
+1
H
41
(A)
D
+2
H
D
+3
D
+4
Q00J/
Q00/
Q01
[List Mode]
Step
b15
D100
D101
D102
D103
D104
Automatically stores "00
".
H
S1
S2
S1
S2
U\G
Zn
b15
b8
b7
b0
46
(F)
48
(H)
H
H
2D
( )
41
(A)
H
H
35
(5)
31
(1)
H
H
39
(9)
33
(3)
H
H
00
41
(A)
H
H
QnH
QnPH
Instruction
Device
b8
b7
b0
62
(b)
61
(a)
H
H
64
(d)
63
(c)
H
H
41
(A)
65
(e)
H
H
43
(C)
42
(B)
H
H
00
44
(D)
H
H
D
D
Constant
Others
$
QnPRH
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents