Delta AS Series Programming Manual page 1078

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
6.
If the string sources for S
255 words (ending character 16#00 excluded). For example, there are 250 words in String 1 and 100 words in
String 2. After they are merged, the length for the merged string is 250 words from String 1 + splitter *1 + first 4
words from String 2.
Example
Use "," as a splitter to split a string and use ";" as an ending character and then merge 3 strings "abcd", "1234" and "5.67".
And store the results "abcd,1234,5.67;" D100=15, in the register starting from D0-D7.
_6
Explanation
1.
Starting contact is M0
st
2.
The 1
program: merge the 1
store the result in the registers starting from D0.
The merged result: D0~D4= "abcd,1234"; the quantity of merged strings: D100=9
Device
HEX
String
nd
3.
The 2
program: merge the 1
and then store the result in the registers starting from D0.
The merged result: D0~D7= "abcd,1234,5.67"; the quantity of merged strings: D100=14
Device
HEX
String
6 - 7 9 8
and S
are both 0 or when strings are merged, the length for the merged string is up to
1
2
st
string "abcd" and 2
D0
D1
D2
6261
6463
312C
"ba"
"dc"
"1,"
st
string D0="abcd,1234" and 2
D0
D1
D2
6261
6463
312C
"ba"
"dc"
"1,"
nd
string "1234" together and put a splitter "," in between and then
D3
3332
"32"
Upper 8-byte: 16#00 ; lower 8-byte: 4
nd
string "5.67" together and put a splitter "," in between
D3
D4
D5
3332
2C34
2E35
"32"
",4"
".5"
D4
0034
D6
D7
3736
0000
"76"
16#0000

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents