Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual
Page 740

Paramacros
Chapter 28
28-40
Example 28.15
Assigning Parameters:
#100=1+1;
#100=5-3;
#100=#3;
#100=#7+1;
#100=#100+1;
You can also assign multiple paramacro parameters in a single block. In a
multiple assignment block, each assignment is separated by a comma. For
example:
#1=10,#100=ROUND[#2+#3],#500=10.0*5;
If you use multiple assignments in the same block, remember:
You can enter as many assignments as can be typed into one block (127
characters maximum).
For local and common parameters, block execution is from left to right.
For example:
#1 = 10,#2=#1+2;
When executed, #1 is 10 and #2 is 12
Once the first paramacro parameter assignment is made in a block, only
assignment syntax is allowed in that block. You cannot program other
information in that block, including programming a G-code. For
example:
#1 = 19.0,G1X10;
will get the error message, “PARAMETER ASSIGNMENT SYNTAX
ERROR”
Only assign the same parameter a value once in each block. For
example:
#1=5,#2=4,#1=6;
would cause the error message “PARAMETER ASSIGNMENT
SYNTAX ERROR” to appear, since #1 is assigned a value twice in the
same block (#1=5 and #1=6).