CNC Z32 - Programming Guide (LATHES)
To assign an expression result to a parameter, the lower than sign “
<
” and higher than sign “
>
” (acute parenthesis)
are used to indicate the beginning and the end of the expression.
Inside the expression it is possible to use the parenthesis “
(
“ and “
)
”.
For example, to assign the value HB+1 to the parameter HA, it is possible to write:
HA< HB + 1 >
or to assign the square root value of parameter HC to the parameter PAR[10]:
PAR[10]< RQ(HC) >
Through the use of parenthesis it is possible also to program complex expressions.
HA< HB + (HC+HD/2)/(SN(HE) >
5.1.3
Axis movement programming with parameters
Through the parameter programming it is possible to program machine movements.
A very simple example:
N10 HA 10
N20 HB 0.5
N30 HC 30
N40
G0
X<HA>
N50
F<HB>
N60
G1
X<HC+100>
In lines from N10 to N30, values are assigned to the parameters.
In the line N40, a rapid movement of X axis is executed up to the position contained in the parameter HA
(i.e. 10)
I the line N50 a feed is set with the value contained in parameter HB (0.5)
In the line N60 a feed movement of X axis is executed up to the position HC+100 (i.e. 130) with a Feed of
0.5.
The movement programming using parametric expressions may be quite complex, following the same rules
indicated for parameters programming.
5.1.4
System parameters programming
Through parametric programming, it is possible to assign numeric values to the system parameters previously
described.
For example, it is possible to set or modify the tool length along the X axis (LX parameter):
LX100
Assigns the value 100 to the tool length parameter.
or
LX< LX-2 >
Shortens the tool by 2 mm in direction X
In a similar way it is possible to assign values, also by using expressions, to all system parameters.
Warning
: the system parameters programming is absolutely equivalent to the programming of user parameters.
The usage of system parameters is however reserved to the purpose associated with the parameter and not for
generic parametric computations.
.
54