Command Descriptions
339
WRITE
Write a Message
Type
Communication Interface
Syntax
<a_><!>WRITE"<message>"
Units
n/a
Range
Up to 69 characters (may not use ", ; or :)
Default
Messages are written to COM1 by default
NOTE: “COM1” is the “RS-232/485” or “ETHERNET” connector.
“COM2” is the “RS-232” connector.
Response
WRITE"message": message
See Also
[ \ ], EOT, PORT, [ READ ], VARS, WRVAR, WRVARB, WRVARS
Product Rev
GT6K 6.0
GV6K 6.0
The
WRITE
command provides an efficient way of transmitting message strings to the Ethernet port and the
RS-232 or RS-485 ports. These messages can then be used by the operating program. The
EOT
command
characters will be transmitted after the message.
Each message can be assigned a character string up to 69 characters long. The characters within the string
can be any character except the quote (
"
), the colon (
:
), and the asterisk (
*
).
To place specific control characters that are not directly available on the keyboard within the character
string, use the backslash character (
\
), followed by the control character’s ASCII decimal equivalent.
Multiple control characters can be sent. For example, to set the message equal to
HI
MOM<cr>
, use the command
WRITE"HI
MOM\13"
where
\13
corresponds to the carriage return
character. Common characters and their ASCII equivalent values are listed below:
Character Description
ASCII
Decimal
Value
<lf>
Line Feed
10
<cr>
Carriage Return
13
"
Quote 34
:
Colon 58
;
Semi-colon 59
\
Backslash 92
NOTE
: All text strings are transmitted in UPPER CASE. If you must transmit lower-case strings, use the
ASCII decimal equivalent for each character (see ASCII table in
Appendix B
). For example,
WRITE"\106\117\110\107"
will transmit the text string “
junk
” in lower-case letters.
NOTE
: Upon power up or after a reset, by default the
WRITE
command writes messages to COM1. See
the
PORT
command for instructions on writing messages to COM2. If you want to automatically write
messages to COM2 after power up or a reset, consider putting the
PORT
command in your
STARTP
program. See the
STARTP
command for more information.
Example:
WRITE"It's
a
wonderful
life!" ;
Send the message "
IT'S
A
WONDERFUL
LIFE!"
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...