GS120-MAN-14V05 (0307)
Copyright © 2014 Gedge Systems
24
D
APPENDIX D - TEXT STRINGS & NUMERIC VALUES VIA ASCII MODE
The GS120 can also be confi gured to display numeric values and text strings from a
PC or PLC using a simple ASCII protocol.
For this mode to function:
1
The optional RS232 serial card must be installed in Com 2 (see order codes in
Section 1)
AND
2
Both
Com 1
and
Com 2
must be set to
Disabled
in 6.2D.
The
Com 2
port can then be used to connect the GS120 to your PC or PLC device.
Com 2
will revert to a simple ASCII mode operating at 115,200 baud, 8 data bits, no
parity, 1 stop bit.
Writing a numeric display value
To write the numeric value 12345 to the display, the following string should be sent
to the GS120:
s w 7 , 1 2 3 4 5 *
s
Start character
w
Write command
7
Register address for numeric sum value
,
Separator character
1 2 3 4 5
Numeric value you want on the display
*
End character
To write numeric values to the display, the User 1 input function must not be set to
counter (see 6.4B).
Writing text strings
To write a text string to the display, the format is identical to that above, except that
the register address for a text string write is 16389, and instead of a numeric value,
alpha/numeric characters are used: