STE 80722 
– 17 – 
PRINT 
  [<channel>,] {<character string>|<expression>|}[,{<character string>| 
<expression>}] .....[,CR] 
 
<channel>: 
Specifies the communication port over which the data is to be transmitted.    One of 
the following should be specified as the channel. 
COM1    : COM1 port 
IP1  : Ethernet IP1 port 
IP2  : Ethernet IP2 port 
TP  : Screen output to teach pendant 
 
Unless <channel> is specified, data is transmitted to the teach pendant. 
 
<character string>: 
The character string to be transmitted is specified by enclosing that string in double 
quotation marks ("). 
 
<expression>: 
Expressions made up of constants, variables, arithmetic operands and functions 
may be specified. 
 
CR : 
CR is used when the record end code (0x0D) is added to the last of sending data.   
 
Ex.:  PRINT COM1, “INPUT DATA =”, -1000.0/3, CR 
  PRINT IP1, “INPUT DATA =”, -1000.0/3, CR 
 
Commas are used to separate any multiple character strings or expressions 
specified in the PRINT command.    Character strings are enclosed inside double 
quotation marks, and everything inside of those double quotation marks is 
transmitted in ASCII code.    Expressions are first solved, and the result is sent as a 
12-character block of fixed length with the result pushed over to the right of that 
block.    Should the result of the expression be an integer, that result is sent as a 
Base 10 number having a maximum of ten places (digits).