CNC Z32 - Programming Guide (LATHES)
•
PAR[…] parameters
It is a vector containing 513 parameters. From PAR[0] to PAR[512].
The parameter number may be an expression result, for example:
HA10
HB5
PAR[6]30
PAR[HA + PAR[HB + 1]]
is
equivalent
to:
PAR[10+PAR[6]]
than
means:
PAR[40]
The usage of PAR[…] parameters may be a substitute for literal user parameters in all situations.
Furthermore, these parameters are not subject to any restriction on the maximum number of parameters
allowed to be used.
•
PAL[…] parameters
Same usage notes as for the array PAR[…].
It is a vector containing 513 parameters. From PAL[0] to PAL[512].
These parameters contain only INTEGER numbers, normally used for the information exchange between
PLC and part-program.
The values from PAL[256] to PAL[512] are read only.
The values from PAL[0] to PAL[255] may be written by the part-program. When a non integer number is
assigned to a PAL[…] parameter, the number is rounded to the nearest integer value.
5.1.1
Parameter assignment
The assignment of a numeric value to a parameter is made through a programming very similar to that for an axis
movement.
For example, to assign the value 100 to the parameter HA, it is possible to write:
HA100
or, to assign the value 1 to the parameter PAR[10], it is possible to write:
PAR[10]1
5.1.2
Parameter assignment through a formula
It is possible to program mathematical expression whose result is a function of numeric values or other parameters.
Mathematical operators with a single operand:
SN
(sine of an angle in degrees)
CS
(cosine of an angle in degrees)
TAN
(tangent of an angle in degrees)
AT
(arctangent in degrees)
RQ
(square root)
ABS
(absolute value)
INT
(truncated integer value)
NEI
(rounded integer value)
-
(sign change)
Mathematical operators with two operands:
+
addition
-
subtraction
*
multiplication
/
division
53