Professional Documents
Culture Documents
Canned Cycles Programming Example
Canned Cycles Programming Example
SHP(0,0,0,%R31,%R32,%R33)
G64
IF( %R18 == 0 ) THEN
G292
IF(!%cn[WHO()].rc[0].21 &&(!%C33.17)) %R18=1 ; R18 is used an operation counter
SYN
ENDIF
N0 IF((!%cn[WHO()].rc[0].21) &&(!%C33.17)) JMPF (%R18) ; The program will jump the N.. label in base to the current R18 value
N1 ;[TR1]
FVA10
G155 ; To take care of the offset between torch and drilling spindle
M05 ; To confirm spindle still
T4 ; To select T4 Tool ( In this case must be a Bit)
M6 ; To load the T4 Tool on the spindle ( or move the revolver to T4 position)
S1000 ; To set up the spindle rotation Speed
G00 X115 Y65
G212 ; To commands a plate touching . The contact tool /plate will be used to preset the Z quote for a correct dept manage
G81 DR3 DE-10 DH5 FW80 FR5000
1
; Execution of a group of 2 drillings with only one Touching cycle ( small distance among holes)
N2 ;[TR2]
FVA10 ; To refresh the programmed Feed
G155 ; To take care of the offset between torch and drilling spindle
M05 ; To confirm spindle still
T5 ; To select T5 Tool ( In this case must be a Bit)
M6 ; To load the T5 Tool on the spindle ( or move the revolver to T5 position)
S1000 ; To set up the spindle rotation Speed
G00 X115 Y265
G212 ;To command a plate touching
G81 DR3 DE-10 DH5 FW80 FR5000
N3 ;[TR3]
FVA10 ; To refresh the programmed Feed
G155 ; To take care of the offset between torch and drilling spindle
M05 ; To confirm spindle still
T2 ; To select T2 Tool (In this case must be a Male)
M6 ; To load the T2 Tool on the spindle ( or move the revolver to T2 position)
G00 X115 Y65
G212 ;To command a plate touching
G84 DR3 DE-10 DH30 RW150 RR150 WE0.1 P1.5
; Example of a group of tappings with a single Touching cycle ( small distance among tapped holes)
N4 ;[TR4]
FVA10
G155
M05
T3 ; To select T3 Tool (In this case must be a Male)
M6 ; To load the T3 Tool on the spindle ( or move the revolver to T3 position)
G00 X115 Y265
G212
G84 DR3 DE-10 DH30 RW150 RR150 WE0.1 P1.5
N5 ;[TR5]
FVA10
G155
M05
T5 ; To select the T5 Tool ( must be a Bit)
M6 ; To load the T5 Tool on the spindle ( or move the revolver to T5 position)
G00 X115 Y579
G212
G83 DR20 DE-100 DH35 FW800 NI5
SYN
IF((!%cn[WHO()].rc[0].21)&&(!%C33.17)) %R18=0
M30 ; End of program
4
Instruction SHP – Draw plate
Description:
Active only in graphic environment.
It allows to show on the screen the boundary of the plate.
Xmax defines the dimension , along X axis of the plate. Can be expressed in parametric format as %R31
Ymax defines the dimension , along Y axis of the plate. Can be expressed in parametric format as %R32
Zmax defines the dimension , along Z axis of the plate. Can be expressed in parametric format as %R33
Go Back
5
Macro Instruction G292 – Forms program origins
Description : Enables the jogging of axes X, Y displaying an adequate message on the screen.
Pressing [START] the last axes position is assumed as active origin.
It defines the working plane and initialize matrixes for displaying quote in piece and program co-ordinates.
Parameters: X quote to be forced in the formed origin . - Optional, if omitted the 0 value will be assumed
Y quote to be forced in the formed origin . - Optional, if omitted the 0 value will be assumed
Go Back
6
Standard Drilling G81
where:
DR Z quote [mm] reached at Rapid Feed (safety quote). Modal data.
DE Hole depth [mm]. Expressed as negative value. Modal data.
DH Return high quote [mm]. If not programmed is assumed DE = DH.
FW Working Feed [mm/min]. Modal data .
FR Return High Feed [mm/min]. If not programmed is assumed equal to the configured Rapid value.
WE Waiting time at the end of the drilling [s]. If not programmed is assumed equal to 0 . Used to broken
chips.
Go Back
7
Deep Drilling G83
Syntax G83 DR .. DE.. DH< > FW.. FR< > WE< > NI... WI < >
where:
DR Z quote [mm] reached at Rapid Feed (safety quote). Modal data.
DE Hole depth [mm]. Expressed as negative value. Modal data.
DH Return high quote [mm]. If not programmed is assumed DE = DH.
FW Working Feed [mm/min]. Modal data .
FR Return High Feed [mm/min]. If not programmed is assumed equal to the configured Rapid value.
WE Waiting time at the end of the drilling [s]. If not programmed is assumed equal to 0 . Used to broken
chips.
NI Number of steps. The entity of the increment is automatically computed by the NC. Modal data.
WI Waiting time at the end of every drilling step [s]. If not programmed is assumed equal to 0 .
Go Back
8
Tapping – G84
Syntax G84 DR.. DE.. DH< > RW.. RR< > WE< > P..
where:
Go Back