
Paramacros
Chapter 20
20-14
Considerations for local parameters
You must consider the following when assigning values to local
parameters:
All local variable assignments are reset to zero any time the control
reads an M02, or M30 in a part program
All local variable assignments are reset to zero any time that power is
turned on, the control is reset, or an E-STOP reset operation is executed
If more than one I, J, or K set is programmed i n an argument, use
Table 20.H (B) for the parameter assignment
Example 20.11 through Example 20.13 illustrates local parameter
assignments.
Example 20.11
Assigning Using More Than One I, J, K Set
G65P1001K1I2J3J4J5;
The above blocksetsthefollowing parameters:
parameter #6 = 1
parameter #7 = 2
parameter #8 = 3
parameter #11 = 4
parameter #14 = 5
If the same parameter is assigned more than one value in an argument,
only the right-most value is stored for the parameter
Example 20.12
Assigning the Same Parameter Twice
G65P1001R3.1A2R-0.5
The above blocksetsthefollowing parameters:
parameter #1 =2.0As setby the Aword
parameter #18 = -0.5 Assetby thel ast R word.
The value 3.1,assigned toparameter#18 by the 1stR word,isre-
placedbythe value -0.5,assignedtothe 2nd R word.
Comentarios a estos manuales