EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 266

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...
264
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
$+(P) [When three data are set]
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).
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.
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.
(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
data
Internal device R, ZR J\ U\G Zn Constant
$
Others
Bit Word Bit Word
(S1)  
(S2)  
(D) 
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
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.

[Ladder Mode] [List Mode]
[Operation]
Command
Command
$+
$+P
S1 S2
D
S1 S2
D
$+
$+P
46
H
(F)
b15 b8
48
H
(H)
b7 b0
+1
41
H
(A)
00
H
+2
2D
H
( )
35
H
(5)
b15 b8
31
H
(1)
b7 b0
33
H
(3)
41
H
(A)
39
H
(9)
46
H
(F)
b15 b8
48
H
(H)
b7 b0
41
H
(A)
31
H
(1)
2D
H
( )
00
H
33
H
(3)
41
H
(A)
35
H
(5)
39
H
(9)
00
H
S1
S2
D
S1
S1
+1
+2
S2
S2
+1
+2
+3
+4
D
D
D
D
Step
Instruction
Device
Automatically stores "00H".
62
H
(b)
b15 b8
61
H
(a)
b7 b0
D11
63
H
(c)
00
H
D12
65
H
(e)
64
H
(d)
62
H
(b)
b15 b8
61
H
(a)
b7 b0
D100
63
H
(c)
D102
65
H
(e)
64
H
(d)
D103
42
H
(B)
D104
44
H
(D)00
H
41
H
(A)
43
H
(C)
"ABCD"
+
D10
D101

Table of Contents

Related product manuals