R-Parameters & Assignment
Store a number in an R-parameter and compute one value from another.
On a SINUMERIK the calculation variables are called R-parameters — R0 through R999, each one a numbered box for a number. R1 = 4 means “put 4 in R1”. Comments start with a semicolon, and every macro on this control is built on that one idea.
Your turn
The machine hands you the bolt-circle radius in R2. Set R1 to the hole count (4), then set R3 to the circle's diameter by doubling the radius — compute it from R2 so it follows whatever radius the machine gives, don't just type a number.
The machine gives you
radius 40:
R2 = 40radius 25 (a hardcoded 80 fails here):
R2 = 25Your program is run once for each set of conditions. It has to work for all of them.
Loading...
This is a learning simulation — always prove out a program on the actual control before you cut metal.