EDH0162En1040 – 06/99 3.32
MM4005 CS — Concatenate two strings
Usage IMM PGM MIP
Syntax xxCSaa or xxCS?
Parameters
Description xx
[int] — String variable number.
aa [str] — String to be to be concatenated.
Range xx — 1 to 8.
aa
— 0 or 32 characters.
Units xx — None.
aa — None.
Defaults xx Missing: 0.
Out of range: Error C.
Floating point: Error A.
aa Missing: Null string.
Out of range: Only first 32 characters are used.
Description This command concatenates two strings, the aa string or the #nn string, or
the #pp value converted to ASCII (when the parameter aa is a variable
$Ypp or $Snn), is concatenated in the end of the xx string
Returns If the sign “?” takes place of aa and xx is different of zero, this command
reportes actual string stocked in the xx numbered string buffer.
Errors A — Unknown message code.
C — Parameter out of limits.
D — Unauthorized execution.
Rel. Commands AS — Affect string.
DS — Display strings on screen.
Example
1AS"This " | Affects "This " in variable S1 (S1 = "This ").
2AS"is" | Affects "is" in variable S2 (S2 = "is").
3AS" " | Affects " " in variable S3 (S3 = " ").
1CS$S2 | Concatenate S2 to S1 (S1 = "This is").
1CS$S3 | Concatenate S3 to S1 (S1 = "This is ").
1CS"a string" | Concatenate "a string" to S1.
DS$S1 | Contents of variable S1.
This is a string
| Displayed on the controller’s screen.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com