Delta AS Series Programming Manual page 1077

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
2123
MERGE
Device
X
Y
M
S
1
S
2
S
3
D
1
D
2
Data
type
S
1
S
2
S
3
D
1
D
2
Symbol
Explanation
1.
This instruction is only available for firmware version 1.04 or later.
2.
S
and S
are the string source 1 and 2 respectively. S
1
2
8-byte are valid for S
3
S
is not 0.
3
3.
D
is where to store a merged string. The merging order is string 1 + splitter + string 2 + ending character 0 (16#00).
1
You can self-define an ending character. This self-defined ending character will be added before the official one, 0
(16#00).
4.
If the values in S
, S
, S
1
2
5.
D
is the sum of all the merged strings (ending character 16#00 excluded). The accumulated length for the string is
2
the length of string 1 or the length of string 1 + splitter + the length of string 2.
Operand
,S
,S
P
S
1
2
3
S
T
C
HC
Pulse instruction
: String source 1
S
1
: String source 2
S
2
: Splitter
S
3
: Device in which the merged string is stored
D
1
: Device in which the quantity of merged strings is stored
D
2
. S
merges S
directly, when S
1
2
are all 0, D
is 16#0000.
3
1
Cha p ter 6 App l ied Ins truc tio ns
,D
,D
1
2
D
FR
SM
SR
16-bit instruction
AS
is the splitter that separates strings. Only values in the lower
3
is 0 (16#00). S
adds the splitter and then merges S
3
1
Function
Merging strings
E
K
16#
"$"
32-bit
i
t
ti
AS
-
, when
2
6 - 7 9 7
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents