EDH0162En1040 – 06/99 3.22
MM4005 AS — Affect string
Usage IMM PGM MIP
Syntax xxASaa or xxAS?
Parameters
Description xx
[int] — String variable number.
aa [str] — String to be affected.
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.
nn Missing: Null string; clears string.
Out of range: Only first 32 characters are used.
Description This command affects a string in a string variable.
If
xx is missing, this command erases all string variable (from 1 to 8).
Returns If the sign “?” takes place of aa and xx is different of zero, this command
reportes actual xx string buffer content.
Errors A — Unknown message code.
C — Parameter out of limits.
D — Unauthorized execution.
Rel. Commands CS — Concatenates two strings.
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