Professional Documents
Culture Documents
Hydraulic G Code List
Hydraulic G Code List
Hydraulic G Code List
1 - INTRODUCTION TO PROGRAMMING
The ISO language is particularly suitable for machine tools that perform many functions.
The tube bending machine needs a limited number of functions, therefore the present manual contains only
explanations for the most common codes used during the bending processes.
PROGRAM STRUCTURE
A CNC program consists of a series of structured instructions, in a language that can be understood by the
Numeric Control, defining the movement of axes, auxiliary movements, pressure adjustments, computations
and measurements.
A program consists of :
Example:
100
SUB-PROGRAM STRUCTURE
A program can contain several sub-programs created by either the manufacturer or the customer.
When the same operation is repeated during the execution of a piece, it can be entered into a sub-program
and be recalled as many times as is needed during the piece program, by means of a manual introduction.
To launch a sub-programme from a given piece programme, use the L address, followed by the number of
the relevant sub-programme or by its name, followed by the letters "SPF" and by the number of repetitions
under the address P.
Example: L10 P1
Example:
N1 M60 LF.
N2 G90 G0 X200 C0 B0 LF.
N3 L20
N4 M40 M42 LF.
N5 C90 LF.
N6 M41 M43 M45LF.
N7 X100 C0 LF.
N8 M17 LF.
BLOCK
A block is a sequence of instructions defining path operations (axes), auxiliary functions (code M),
computations, etc.
It is made up of several characters and contains the end of block character (LF).
Example:
A block can be found under the address N. It is not indispensable, but facilitates program reading.
Example:
PROGRAMMING CODES
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9
% ( ) + - x : = /
101
9.2 - BASIC PROGRAMMING
PATH INFORMATION
Example: X = 100
Origin 0 bending former axis in centre line of the positioning carriage collet sleeve
Positive direction (+) right-hand movement.
Negative direction (-) left-hand movement.
FC 101.00 mm
FC 9.00 mm
IndEX 30.00 mm
Max. 30000 mm/min.
speed
Example: Y = 1500
Origin 0 bending former axis corresponding to the positioning carriage collet front.
Positive direction (+) moves away from the bending former (backward).
Negative direction (-) approaches the bending former (forward).
FC+ 770.00 mm
FC- 22.00 mm
Index 400.00 mm
Max. 120000 mm/min.
speed
FC+ 85.10 mm
FC- 23.70 mm
Index 40.00 mm
Max. 15000 mm/min.
speed
102
B-axis: rotation axis
Example: B = 180
Origin 0 unimportant.
Positive direction (+) clockwise.
Negative direction (-) anticlockwise.
FC+ 190
FC- -190
Index 0.00 degrees
Max. 54000
speed degrees/min.
C-axis: bending
Example: C = 90
NOTE: The axes index value is only approximate and can change considerably.
103
AUXILIARY FUNCTIONS
M Function
M0 Programmed stop
M17 Sub-program end
M30 Program end
M40 Clamp closing
M41 Clamp opening
M42 Pressure-die closing
M43 Pressure-die opening
M60 Collet closing
M61 Collet opening
M64 Tube support lifting
M65 Tube support lowering
M70 Carriage tracking (CARRIAGE free during bending)
To run the bending cycle with closed COLLET
Enter M70 into the block preceding the CLAMP closing control (before bending).
M70 is active for each bend until the controls M71 or M61 or until the program reset..
The POSITIONER COLLET should remain closed during bending (M60).
M71 Carriage follow-up link (CARRIAGE controlled during bending)
Enter M71 into the block preceding the CLAMP closing control (before bending).
M71 is the default value and is reset only by reading M70.
In case the tube support is used, during the support lifting (M64) the positioner
carrier should be outside the device overall dimensions. For the tube support
lowering (M65), it is necessary to program the M65 function twice on 2 successive
rows.
Ex:
Y500
M65
M65
Y200
104
PARAMETERS
Parameters are made up of the R-address and of a number of maximum three figures.
Example: R 123
Example: X = R34
Definition R1 = 100
Assignment R1 = R2
Negation R1 = -R2
Addition R1 = R2 + R3
Subtraction R1 = R2 - R3
Multiplication R1 = R2* R3
Division R1 = R2 / R3
Example:
R10 = 10 + R11
R1 = R2 + R3 - R4 * R5 / R6 ((max. 10 parameters)
Note: Parameters marked with an asterisk (*) do not need to be entered, since they will be computed
AUTOMATICALLY during the execution of the program.
105
9.3 - ADVANCED PROGRAMMING
INTRODUCTION
The described programming is enough to carry out one piece. There are also other codes allowing a wider
machine use.
OPTIONAL BLOCKS
Programme blocks, which do not need to be read at each execution of the program, can be skipped simply
by typing the bar character " / " at the beginning of the block.
The " optional block" function can be activated in the page " PROGRAMME influence".
ORIGIN SHIFTING
The origin shifting is the translation (movement) of a distance between piece and machine origin.
Example : If you need to use an "articulated" collet, you would need to create a distance on the Y-axis
between the bending former and the collet head.
The origin shiftings "G54 - G57" can be adjusted according to the axis and can be introduced into the
program.
Gli spostamenti di origine programmabile sono cancellati al momento di un fine programma M30 o di un
reset.
Programmable origin shiftings are cancelled at each program end M30 or in case of reset.
The programmable limit of the working area guarantees a protection of the machine in case of any mistake in
programming or false moves.
Example:
G25 X= 20 LF
G26 A= 100 LF
CONTINUOUS OPERATION
1- At the block end, the G641 function allows the speed to be reduced without stopping.
G641 is modal.
2- The G60 function allows going back to a specific stop point at the block end.
106