5 Script Coding Examples
20-46 SmartAXIS Touch User’s Manual
Script
Operation description
Concatenates the string starting from LDR200 to the string starting from LDR100.
â–
Example 5.7.31 Concatenate strings
STRCAT([LDR 100], [LDR 200]);
• Only internal devices can be used.
• The NULL terminating character (0x00) is the end of the string. (The terminating character is not included
in the string length.)
Device
Stored value
Device
Stored value
LDR100
Upper byte
'A' = 0x41
LDR100
Upper byte
'A' = 0x41
Lower byte
'B' = 0x42
Lower byte
'B' = 0x42
LDR101
Upper byte
'C' = 0x43
LDR101
Upper byte
'C' = 0x43
Lower byte
0x00
Lower byte
'D' = 0x44
LDR102
Upper byte
'E' = 0x45
Device
Stored value
Lower byte
'F' = 0x46
LDR200
Upper byte
'D' = 0x44
LDR103
Upper byte
'G' = 0x47
Lower byte
'E' = 0x45
Lower byte
0x00
Terminating character
LDR201
Upper byte
'F' = 0x46
Lower byte
'G' = 0x47
LDR202
Upper byte
0x00
Lower byte
0x00
Concatenate
Terminating
character
Terminating character