11. Robot Language Explanation

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

11.1.6.2 Local variable

It exists separately in each main program and auxiliary program called. It is impossible to access local variables of other program.

variable type

grammar

 

example

 

 

 

 

 

 

 

LV1%LV50%

or

LV10%, LV%[5], LV%[5+LV2%]

 

constant

(The type of numerical formula is only written

 

LV%[1]LV%[50]

arithmetic

 

 

 

in [ ].)

 

 

 

 

real

LV1!LV50!

or

LV10!, LV![5], LV![5+LV2%]

 

 

number

LV![1]LV![50]

 

 

 

 

 

 

string

LV1$LV10$ or

LV10$, LV$[5], LV$[LV2%]

LV$[1]LV$[10]

 

 

 

 

 

 

 

 

 

 

LP1LP100

or

LP5, LP[7], LP[5+LV2$], LP[2].RZ, LP[10].X

pose

(Access to elements (X, Y, Z, RX, RY, RZ, T1,

LP[1]LP[100]

 

 

T2,... T6, CFG) is possible.)

 

 

 

 

 

 

 

 

 

 

 

LR1LR50

or

LR2, LR[3], LR[2+LV2$], LR[2].RZ, LR[10].X

shift

(Access to elements (X, Y, Z, RX, RY, RZ) is

LR[1]LR[50]

 

 

possible.)

 

 

 

 

 

 

 

 

Reference

 

 

 

(1)Pose type elements and shift type elements are dealt as real number type.

(2)The number of pose element T1, T2... should be matched with the number of additional axis.

(3)When pose is a encoder type, (S, H, V, R2, B, R1) elements can be accessed by using each X, Y, Z, RX, RY, RZ.

(4)At the time when controller's system is initialized, all arithmetics type variables, pose and variable elements become 0, and string variables are initialized to blank string. It is not initialized automatically when the cycle begins and program is changed.

(5)All variables are reserved even though the power is turned off.

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

11 - 7

Page 372
Image 372
Hyundai HI4 operation manual Local variable