CNC Z32 - Programming Guide (LATHES)
{
program listing
}
…
--END DEFINE ; comment
The subprogram to be written must be specified with the desired subtemp number.
In the following example, the subtemp number 20 is written:
--DEFINE S20
…
{
program listing
}
…
--END DEFINE
The definition of a subtemp doesn’t produce any machine movement.
The written subtemp may be executed by recalling it by a subtemp subprogram jump instruction !GOS..!
This instruction has the same syntax as the subprogram jump instruction !GOP..!, the only difference being the
character “S” which must be used instead of character “P”, to specify the subtemp number.
Example:
T1M6
F5000
--DEFINE S20
G1 X<X-0.1>
G1 Z-50
G26
--END DEFINE
G0 X100
G0 Z2
!GOS20!
G0 X99.9
G0 Z2
!GOS20!
G0X101
M2
Up to 64 subtemps may be used for a process.
A single subtemp may contain a program no larger than 240KB.
The total content of all defined subtemps cannot exceed 1MB.
A subtemp may be recalled by using the instructions
!GOS..!
,
!GOS..–N..!
and
!GOS..–N..–N..!
These instructions
are equivalent to the corresponding !GOP.. ! instructions valid for CMOS programs.
It is possible to use a subtemp as a fixed cycle with the instruction
G27S..
To program a subtemp as a fixed cycle,
please consult the section related to fixed cycles.
Warning: In the definition of a subtemp by means of the --DEFINE S.. instruction, it is necessary to insert
the subprogram end instruction G26.
Warning: The --DEFINE S.. instruction must be executed before the calling of the defined subtemp with the
instruction !GOS..!
Warning: The definition of a subtemp through the --DEFINE S.. instruction is temporary. The subtemp is
valid only during the current execution. At execution end, the subtemp is cleared.
67
Summary of Contents for CNC Z32 Florenz Series
Page 2: ......