11.Robot Language Explanation

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

Note : The commands inserted between the commands such as GOSUBRETURN, IFENDIF, FORNEXT must be executed in one's inside. In other words, program can not branch off to one's outside by using command such as GOTO or IF command when the block commands is being executed. If not, program can not be executed properly.

But it can branch off one's inside.

(1) Example

can make errors.

IF V1%>100 THEN

 

GOTO *RANGE

← IF command branch off the outside. It can be errors.

ENDIF

 

 

PRINT

V1%

 

END

 

 

*RANGE

 

 

PRINT

"RANGE ERROR"

END

 

 

(2)Example can executed properly IF V1%>100 THEN *RANGE PRINT V1%

END *RANGE

PRINT "RANGE ERROR" END

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

11 - 20

Page 385
Image 385
Hyundai HI4 operation manual Goto *RANGE, Endif Print, Print Range Error END