Considerations for local parameters – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual
Page 658
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 in 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 block sets the following 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 block sets the following parameters:
parameter #1 = 2.0 As set by the A word
parameter #18 = -0.5 As set by the last R word.
The value 3.1, assigned to parameter #18 by the 1st R word, is re-
placed by the value -0.5, assigned to the 2nd R word.