EDH0162En1040 – 06/99 6.16
MM4005 Feature Descriptions Tutorial
“$” Parameter
The MM4005 is equipped with a variable buffer (8 character strings, 100
integers and 20 floating points):
• The character string variables (0 to 32 characters) are indicated by
$Sxx.
xx — 1 to 8.
• The integer variables (-32767 to 32767 ) are indicated by
$Ynn.
nn — 1 to 100.
• The floating point variables (-1.7 E304 to +1.7 E304 ) are indicated by
$Ypp.
pp — 101 to 120.
Commands that use the $Ynn variables:
AC, AD, AM, AQ, AS, CA, CB, CD, CR, CS, CX, CY, DA, DS, DV, DY, ED, EO,
EP, EX, FA, FB, FC, FD, FE, FF, FT,GQ, GR, IE, KD, KI, KP, KS, LX, LY, MH,
MX, MY, NB, NE, NI, NN, NP, OE, OH, PA, PB, PE, PI, PR, PS, RP, SB, SC,
SD, SH, SL, SO, SP, SQ, SR, SS, SY, TG, TM, VA, VS, VV, WA, WG, WH, WI,
WL, WN, WP, WS, WT, WY, XL, XU, XV, YA, YC, YD, YE, YF, YG, YL, YM,
YN, YO, YR, YS, YY.
Commands that use the $Snn variables:
AS, CS, DS, SF, SN, WK.
Example 1
1AS"This " | Affects "This " in variable S1 (S1 = "This ").
2ASis | Affects "is" in variable S2 (S2 = "is").
3AS" " | Affects " " in variable S3 (S1 = " ").
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.
Example 2
2YS0 | Initialize the variable #2 to zero.
2WL10 | While the variable #2 is less than 10.
1PR2, WS | Move 2 units, wait for stop.
1YO
$Y2 | Send the value of variable #2 to analog port number 1.
2YA1 | Variable #2 is incremented.
WE | End of loop.
6.15
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com