11.Robot Language Explanation

------------------------------------------------------------------------------------------------

11.2.3I/O

11.2.3.1I/O Substitution

Description

Outputs DO signal or inputs the DI signal status.

 

 

 

Syntax

<Output Variable> = <Output Value>

<Arithmetic Variable> = <Variable>

 

 

 

 

 

Output

Variable corresponding to DO signal.

 

Variabl

Single signal is DO, Group signal is GO

 

 

 

Parameter

Output

Arithmetic Equation. 0255. (Discards the digits after the decimal

Value

point if float type)

 

 

 

 

 

Input

Variable corresponding to DI signal.

 

Variabl

Single signal is DI, Group signal is GI

 

 

 

 

example

DO3 = 1

 

GO2 = &H7F

V20% = DI2

V21% = GI2

 

 

 

 

 

11.2.3.2 PRINT Command

Description

Outputs the specified information to Teach Pendant screen or to serial port.

 

 

 

 

Syntax

PRINT <Output Direction>, <Information,… >

 

 

 

 

 

 

Output

#0 : Teach Pendant

 

 

Directi

#1 : Serial port COM 1

 

Parameter

on

#2 : Serial port COM 2

 

 

Informa

Arithmetic Equation., String equation

 

 

tion

 

 

example

PRINT #0, "SIGNAL VALUE = " ; V1!

 

 

 

 

 

If the information is divided by ',', informations are separated by 1 character

Comment

space’

and by ‘ ;’ , it is output without space.

 

If ‘ ;’

is at the end, no open line character is attached.

----------------------------------------------------------------------------------------

11 - 14

Page 379
Image 379
Hyundai HI4 operation manual 11.2.3 I/O 11.2.3.1 I/O Substitution, Print Command, Print #0, Signal Value =