EasyManua.ls Logo

Vigor VS Series - Page 332

Vigor VS Series
484 pages
Print Icon
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...
326
$
P
S1
S2
D
1
2
M
3
FNC
202
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S1
D
S2
S1 : the head ID of the character string #1
S2 : the head ID of the character string #2
D : the head ID of the combined string result
$ D0 D10 D20
X0
S1
S2
D
The instruction will join up the string after the string and store the combined result string into .
S1
S2
D
When X0 = “ON”, the instruction will be executed as follows:
The instruction will add the end of string at the tail of automatically. If the length of the result string is an odd
number, the end of string is “00H”; in addition, the string with even number length will add the end of string
“0000H”.
D
As the example instruction below, the or can be substituted by a key-in string between two quotation
marks. Only the length of the input string should less than 32 characters.
S1
S2
If both of the and are empty strings (their lower bytes are "00H"), the instruction will input the result
“0000H” to .
If two or three of the operands for the , and are allocated to a same component, the PLC will regard
that as an operational error.
S1
S1
S2
S2
D
D
Operand
Devices
Join Up Two Character Strings
D10
D11
D12
00H
4FH
O
( )
49H
I
( )
47H(G)
52H R( )
56H(V)
D20
D21
D22
D23
0000H
20H( )
45H( E)
49H
I
( )
49H
I
( )
4CH( L)
4BH K( )
20H( )
4FH
O
( )
49H
I
( )47H(G)
52H R( )
56H(V)
D24
D25
D26
D0
D1
D2
D3
S1
00H
20H( )
45H( E)
49H
I
( )
49H
I
( )
4CH( L)
4BH K( )
20H( )
" I LIKE " " VIGOR"
+
S1
S2
The code for end of string
will be added.
" I LIKE VIGOR"
S2
D
Upper
8 bits
Upper
8 bits
Upper
8 bits
Lower
8 bits
Lower
8 bits
D0
D1
D2
D3
S1
00H
20H( )
45H( E)
49H
I
( )
49H
I
( )
4CH( L)
4BH K( )
20H( )
D20
D21
D22
D23
0000H
20H( )
45H( E)
49H
I
( )
49H
I
( )
4CH( L)
4BH K( )
20H( )
4FH
O
( )
49H
I
( )47H(G)
52H R( )
56H(V)
D24
D25
D26
" I LIKE "
+
S1
S2
" I LIKE VIGOR"
" VIGOR"
S2
D
Lower
8 bits
The code for end of string
will be added.
Upper
8 bits
Upper
8 bits
Lower
8 bits
Lower
8 bits

Table of Contents