WRITE
(Statement)
Outputs data from the RS232C or Ethernet port.
WRITE [#<Circuit number>,]<Message>[,<Message>...]
This statement outputs the value of <Message> from the RS232C or Ethernet port to an external device.
For <Circuit number>, designate the circuit number of the RS232C or Ethernet port to be used. If <Circuit number> is ignored, the default value of ch2 is set. Ch1 cannot be designated since it is used for the pendant. (Refer to 6.1 "Description Format of Command Explanations".)
If plural messages are written, a comma (,) must be used to separate the messages.
The following are the points that differ from the PRINT statement.
-
Character string data is output in double quotation marks (").
-
At the end of output information, a delimiter (CR or CR+LF) is added.
-
Commas (,) separating messages are output as they are.
-
If pose type data is output, each element is separated for output using a comma (,).
DEFINT li1, li2
|
|
DEFSTR ls1, ls2
|
|
WRITE #1, li1, ls1, ls2
|
'Outputs the values of li1, ls1, ls2 from ch2.
|
WRITE li2
|
'Outputs the value of li2 from ch2.
|