
13-10
PRINT (Statement)[Conforms to SLIM]
Function
Outputs data from the RS232C or Ethernet port.
Format
PRINT [#<Circuit number>,] <Message> [<Separator> <Message>…]
[<Separator>]
Explanation
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 Section
6.1, "Circuit Number.")
A comma (,) or semicolon (;) can be used for <Separator>.
In the case of a comma (,), insert a blank character between the <Message>
and <Message>.
If a comma (,) is designated after <Message> but no <Message> is found, a
delimiter (CR or CR+LF) is transferred after the final <Message> once output is
finished.
In the case of a semicolon (;), no blank character should be inserted between
the semicolon and <Message>.
If a semicolon (;) is designated after <Message> but no <Message> is found, a
delimiter (CR or CR+LF) is transferred after the final <Message> and output is
finished.
If pose type data is output, each element is separated for output using a blank
character.
Related Terms
WRITE
Example
DEFINT li1, li2
DEFSTR ls1, ls2
PRINT #1, li1, ls1; ls2 'Outputs the values of li1, ls1, and ls2 from ch2.
'(A blank is made between li1 and ls1, and no blank
is made between ls1 and ls2.)
PRINT li2 'Outputs the value of li2 from ch2.
Komentáře k této Příručce