Page
Chapter: 6
Section:
PROGRAMMING
33
PARAMETRIC
PROGRAMMING
6.9 PARAMETRIC PROGRAMMING
A parameter takes the place of a numeric value in the various functions of the program.
The programmer may use these parameters when editing his/her own programs. Later
on, and during execution, the CNC will replace these parameters with the values allocated
to them at the time.
Up to 100 (P0 through P99) arithmetic parameters may be used.
While editing a program, proceed as follows in order to assign an arithmetic parameter
to a particular function (G, X, Y, F, S, etc):
*
Select the desired function (G, X, Y, F, S, etc).
*
Press [P]. The CNC shows the letter "P" next to the selected function. For example:
"XP".
*
Key in the number of the arithmetic parameter.
Attention:
When defining, in the same block, several functions of the same type, all
of them must be programmed with or without parametric format. The two
formats cannot be combined.
For example, block MP17.5.0 is the same as MP17 MP5 MP0 and not the
same as MP17 M5 M0.
When defining function "G" in parametric, it only assumes the first indicated
value. Therefore, programming GP10.11.12 will be the same GP10.
6.9.1 ASSIGNMENTS
When assigning values to an arithmetic parameter, use one of the following methods:
N001 P1 P2
P1 takes the value of P2, while P2 maintains its own value.
N002 P3 K1.5 P3 takes the numeric constant value of K which, in this case, is 1.5.
The constant values may be within ± 99999.99.
N003 P4 X
P4 takes the value of the theoretical position of the X axis at the
time.
N004 P5 Y
P5 takes the value of the theoretical position of the Y axis at the
time.
N005 P6 E1
P6 takes the value corresponding to input E1. Pin 21 of connector
I/O2. A value of "0" when E1 = 0V and "1" when E1 =24V.
N006 P7 E2
P7 takes the value corresponding to input E2. Pin 23 of connector
I/O2. A value of "0" when E2 = 0V and "1" when E2 =24V.
N007 P8 E3
P8 takes the value corresponding to input E3. Pin 22 of connector
I/O2. A value of "0" when E3 = 0V and "1" when E3 =24V.