Programming manual
20
CNC 8070
1.
CREATING A PROGRAM
Parameters, constants and expressions
(SOFT V02.0X)
14
1.5.1 Arithmetic parameters
The CNC has three types of arithmetic parameters. The range of
available parameters of each type is defined in the machine
parameters.
• Local parameters may only be accessed from the program or
subroutine where they have been programmed. There are seven
groups of local parameters in each channel.
The maximum range of local parameters is P0 to P99, the typical
range being P0 to P25.
When the parameters are used in the block calling a subroutine
may also be referred to by the letters A-Z (except Ñ) so "A" is the
same as P0 and "Z" the same as P25.
• Global parameters may be accessed from any program and
subroutine called upon from the program. There is a group of global
parameters in each channel.
The maximum range of global parameters is P100 to P9999, the
typical range being P100 to P299.
• The common parameters may be accessed from any channel. The
value of these parameters is shared by all the channels.
The maximum range of common parameters is P10000 to P19999,
the typical range being P10000 to P10999.
The user may use the parameters when editing its own programs.
During execution, the CNC will replace these parameters with the
values assigned to them at the time.
Programming
In blocks programmed in ISO code, it is possible to define the values
of all the fields "N", "G", "F", "S", "T", "D", "M", "H", "NR" and axis
coordinates using parameters. Using indirect addressing, it is also
possible to define the number of a parameter with another parameter;
"P[P1]", "P[P2+3]".
In blocks having "#" instructions, the values of any expression may be
defined with parameters.
P0=0 P1=1 P2=20 P3=50 P4=3
P10=1500 P100=800 P101=30
···
GP0 XP0 YP0 SP10 MP4 ==> G0 X0 Y0 S1500 M3
GP1 XP2 YP3 FP100 ==> G1 X20 Y50 F800
MP101 ==> M30