4 Teaching
4.8 Local Variables
4-67
HW1485509
HW1485509
Because Local Variables only exist in its job they must be defined before
being used. For example, to set the Position Level as an LB variable, this
could first be initialized using the Set command:
4.8.1.3 Usage of Local Variable
Some useful way to use Local Variable is shown below.
User can guarantee to not accidentally modify a value that is used in a
different job by using Local Variables.
– Example: Using a Local Variable for a For loop index
If I004 was used instead of LI004, the job would change the value of
a Global Variable which could be used in another job.
Use for temporary mathematic operations.
– Example: Set the JointMove speed to “B010*2” without overwriting
any Global Variables.