xLadder user manual-V2.0.0.6

6.14.4 String catenate

Input/output Operand

Data type

Input

VB,Constant string, LB, *VD, *LD, *AC

String

OUT

VB, LB, *VD, *LD, *AC

String

STR - CAT:Add the string specified by the IN to the string

specified by the OUT.

The longest constant string is 126 bytes.

error conditions:

0006 Indirect address

0091 Operand range

ASCII constant string data type format :

String is a series of characters, each character is stored as a byte.The first byte of a

string defines the length of the string, that is the number of characters.If a constant

string is entered directly into the program editor or data block, the string must start

and end with double quotation marks ("string constant").

Example:

VB100 string is "123".After using the STR - CAT instruction, the VB100 string is

"123abc".

186

Made with FlippingBook - Online magazine maker