Hyundai HI4 Robotics User Manual


 
11. Robot Language Explanation
------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
11 - 14
11.2.3 I/O
11.2.3.1 I/O Substitution
11.2.3.2 PRINT Command
Description Outputs DO signal or inputs the DI signal status.
Syntax
<Output Variable> = <Output Value>
<Arithmetic Variable> = <Variable>
Output
Variabl
Variable corresponding to DO signal.
Single signal is DO, Group signal is GO
Output
Value
Arithmetic Equation. 0∼255. (Discards the digits after the decimal
point if float type)
Parameter
Input
Variabl
Variable corresponding to DI signal.
Single signal is DI, Group signal is GI
example
DO3 = 1 GO2 = &H7F
V20% = DI2 V21% = GI2
Description Outputs the specified information to Teach Pendant screen or to serial port.
Syntax PRINT <Output Direction>, <Information,… >
Output
Directi
on
#0 : Teach Pendant
#1 : Serial port COM 1
#2 : Serial
p
ort COM 2
Parameter
Informa
tion
Arithmetic Equation., String equation
example PRINT #0, "SIGNAL VALUE = " ; V1!
Comment
If the information is divided by ',', informations are separated by 1 character
space’ and by ‘ ;’ , it is output without space.
If ‘ ;’ is at the end
,
no o
p
en line character is attached.