Programming Manual CNC
Programming Manual CNC
CNC E 560
C.B.Ferrari
402
TABLE OF CONTENTS
PROGRAMMING .......................................................................................................................405
DEFINITION OF PROGRAMMING FORMAT...........................................................................406
G... FUNCTIONS .......................................................................................................................409
G0 RAPID POSITIONING .........................................................................................................415
G1 LINEAR INTERPOLATION .................................................................................................416
G2 CIRCULAR INTERPOLATION CLOCKWISE.....................................................................417
G3 CIRCULAR INTERPOLATION COUNTER CLOCKWISE..................................................417
G4 STOP CYCLE ......................................................................................................................418
G5-G7-G9 RAPID FUNCTIONS ................................................................................................418
G17XY INTERPOLATION PLANE............................................................................................419
G18XZ INTERPOLATION PLANE ............................................................................................419
G19YZ INTERPOLATION PLANE ............................................................................................419
G26-G27 FEEDRATE ON THE TOOL TIP ...............................................................................420
G30-G31 AUTOMATIC VELOCITY REGULATION. ................................................................421
G31D.. RADIUS COMPENSATION IN SPACE ........................................................................423
G30-G32 NO AUTOMATIC VELOCITY REGULATION. ..........................................................423
G39 SPINDLE QUILL KEY POSITIONING...............................................................................423
G40-G41-G42 RADIUS COMPENSATION...............................................................................424
G43 - G44 GRINDING CYCLE ..................................................................................................425
G45-G45/ PICK UP TOOL CYCLE ...........................................................................................427
G47 TOOL RELEASE CYCLE ..................................................................................................429
G49 [ . ] PROGRAM LINK .................................................................................................432
G50 G51 ROTOTRANSLATION ...............................................................................................433
G55 HEAD ROTATION .............................................................................................................434
G56 HEAD AND ORIGIN ROTATION ......................................................................................435
G58 ROTARY TABLE REVOLUTIONS RESET.......................................................................437
G59 RETURN FROM A MACRO ..............................................................................................437
G60-G61 SCALE FACTOR .......................................................................................................437
G63 HIGH SPEED MILLING OF PROFILES AND SURFACES (OPTIONAL) ........................438
G70 G71 INCH-METRIC MODES .............................................................................................440
G80 DRILLING CYCLE RESET ................................................................................................441
G81 - G81/ DRILLING CYCLE ..................................................................................................441
G82 DRILLING CYCLE .............................................................................................................441
G83 DEEP DRILLING CYCLE ..................................................................................................443
G84 TAPPING CYCLE ..............................................................................................................444
G85 DEEP HOLE DRILLING CYCLE .......................................................................................446
G86 BORING CYCLE................................................................................................................447
G87 BORING CYCLE................................................................................................................447
G88 DRILLING CYCLE FOR SPACED WALLS ......................................................................449
G89 REVERSE BORING CYCLE .............................................................................................450
G94 FEEDRATE IN mm/min ....................................................................................................452
G95 FEEDRATE IN micron/rev................................................................................................452
G96 BORING CYCLE................................................................................................................453
G97 MILLING A BORE AND MILLING A THREAD CYCLES .................................................455
G99 AXES STOP.......................................................................................................................459
Gxxx MACRO (Subroutine) ....................................................................................................462
FUNCTIONS FOR PRESETTING ............................................................................................464
TOOL LIFETIME MANAGEMENT ............................................................................................467
MEASURE AND VERIFY CYCLES PROGRAMMING .............................................................469
G300 - TOOL LENGTH MEASUREMENT...............................................................................470
G301 - TOOL LENGTH VERIFY WITH STOP IF OUT OF TOLERANCE ...............................470
G302 - TOOL LENGTH VERIFY WITH SUBSTITUTION IF OUT OF TOLERANCE...............471
G303 - TOOL RADIUS MEASUREMENT.................................................................................471
G304 - TOOL RADIUS VERIFY CYCLE WITH STOP IF OUT OF TOLERANCE ...................472
G305 - TOOL RADIUS VERIFY CYCLE WITH AUTOMATIC TOOL SEARCH ......................472
G306 TOOL LENGTH AND RADIUS MEASUREMENT ..........................................................473
G315-G319-G350-G354 CNC AXES DEFINITION ...................................................................474
G320-G321 Q INCREASE SUM ABILITATION.......................................................................475
PE560GB.DOC 20/05/04
403
404
PROGRAMMING
The programming is executed by instruction lines (blocks) contained in a work program.
An Instruction block is defined as all information included between an E.O.B. character
and another one. The E.O.B. (End Of Block) character in phase of items input is
automatically inserted by CNC at any time Enter key is pushed and doesn't appear visually
on the monitor.
A whole of instruction blocks between two characters %, is a working program.
When a work program is written by keyboard the % character is automatically inserted by
the CNC, the final one is automatically inserted only if the user forgets it.
Work programs written out of the CNC have to contain the two % sign at the start. This
character appears on the monitor.
The informations contained in the block are composed normally by words and numbers; in
particular cases, as in parametrical programming, special characters are used.
Information can be written inside the block in any order remembering that the repetition of
the same word automatically cancels the one previously inserted.
Only in some cases it is possible to insert the same letters inside a block (routine H, M, G,
QX characters etc.).
When programmed, an instruction is valid until another is programmed, except for L word
that is zerosetted by G fixed cycles programming.
Some letters could take different meanings according to the programming context.
Every block contains at the most 256 characters. The block numeration is obligatory only
for routine blocks, for blocks called by them, for blocks inserted in the conditioned jump in the
parametrical programming.
The block numeration can't be consecutive.
The execution of the blocks, that are not inside the two "%" is possible only using the
routine "H". Example:
%N0
N10 G0X0Y0Z0PA1M3S1000F2000
N20 H10N1000N1001QX-3QY-4QZ-5
N30 G0X0Y0Z0
N40 H5N1000N1001QX3QY4QZ5
N50 .............
.....................
N99999%
N1000 G81 X10Y10Z-50R3L2
X20Y20
N1001 X-20Y-20
Start program
! End program
! Routine block
PE560GB.DOC 20/05/04
405
N. CHARACTERS
MEANING
A
B
C
D
E
+ / - 5.4
+ / - 5.4
+ / - 5.4
+ / - 4.4
+ / - 4.4
F
G
H
I
5
3
4
+ / - 5.4
J
K
L
+ / - 5.4
+ / - 5.4
+ / - 4.4
0 or 1
+ / - 4.4
4
3
7
2
1.8
1.8
+ /- 4.4
1.8
+ / - 4.4
S
S/
5
5/2
T
U
2
+ / - 4.4
M
m
N
PA
P
Q
Q.
406
+ / - 4.4
+ / - 4.4
+ / - 4.4
X Axis Quota
Axis X Limit Area in Digitizing
+ / - 4.4
Y Axis Quota
Axis Y Limit Area in Digitizing
+ / - 4.4
Z Axis Quota
Axis Z Limit Area in Digitizing
(*) N.B. This quotas have is displayed with 5.4 digits, but the maximum value imposable is
10 E+-38. Remember that in programming phase all quotas have to be imposed in
millimetres or in degrees with the point (.) to separate whole from decimal numbers as well
for metrical quotas as for degrees.
Examples:
12
42.337
0.05
12 Millimetres or Degrees
42.337 Millimetres or Degrees
0.05 Millimetres or Degrees
PE560GB.DOC 20/05/04
407
408
G FUNCTIONS
G0
Rapid positioning of the axes in linear interpolation on the plane and in the
space in the programmed point.
G1
Work in linear interpolation in the plane and in the space in the programmed
point.
G2
G3
G4
G5-G7-G9 G functions recognized only for reasons of compatibility with CNC 132 160.
They are executed like G0.
G18
G19
G27
G30
G31
Active working way (active at the start) Feed on the tip of tool.
G38
G39
G40
G41
Tool Approaching during the work with introduction of radius tool correction on
the left of the programmed path.
G42
Tool approaching during the work with introduction of radius tool correction on
the right on the programmed path.
PE560GB.DOC 20/05/04
409
G43
Grinding cycle, like G41 and introduction of an oscillatory movement on the axis
orthogonal at the work plane.
G44
G45
G47
G49
G50
Cancel G51.
G51
G55
Rotation cycle rotary head without adjustment of the plane with the rotation angle.
G56
Rotation cycle rotary head with adjustment of the plane with the rotation angle
G58
G59
G60
Cancel G 61.
G61
G62
Cancel G63
G63
G80
G81
Drilling cycle
G82
G83
G84
Tapping cycle
410
G85
G86
G87
G88
G89
G95
G96
G97
G99
G300
G301
G302
Verifying tool length cycle with automatic research of substitutive tool (option).
G303
G304
G305
Verifying tool radius cycle with automatic research of substitutive tool (option).
G306
G311
G312
G313
G314
G316
G317
G318
PE560GB.DOC 20/05/04
411
G319
G320
G321
G322
G323
G324
G325
G326
G327
G328
G329
G330
GPF repositioning.
G331
G332
G335
G336
G340
G341
G342
G343
Cancels G342.
G344
G345
Cancels G344.
G346
G349
Subroutine.
G350
412
G351
Roto-translation.
G352
G353
G354
G355
Rotation cycle rotary head without adjustment of the head length (option).
G356
Rotation cycle rotary head with adjustment of the plane with the rotation angle
(Option).
G359
G360
G362
G363
G364
G378
G384
G390
G391
G392
G393
G394
G395
G396
G398
G399
PE560GB.DOC 20/05/04
413
G428/
G429/
G500
G503
G506
Measuring tool length and radius cycle with manual tool change (option).
G550
G551
G703
G704
G705
G740
Cancels G748.
G746
G748
G751
3D Translation.
G752
3D Rotation.
G755
414
G FUNCTIONS SPECIFICATION
G0 RAPID POSITIONING
G0 identifies a Linear Interpolation of the controlled axes executed in Rapid speed.
In case of moving of more axes together, the Rapid speed will be adapted to the slower axis.
At every moment during of the work it is possible, with the "Rapid Override" potentiometer
on the frontal surface of the CNC, to change the speed from 0 to 100%.
The G0 function allows replacing the followed functions of CNC 132-160 :
G5 = Rapid A and B auxiliary axes
G7 = Rapid of the perpendicular axis to the interpolation plane
G9 = Rapid of the interpolation plane axis
The G5, G7, G9 are however recognized by the CNC as G0
Example: N10 G0X0Y0Z0PA1
The G0 function and consequently the G5, G7 and G9 functions produce the annulment of
the Radius Tool Correction previously programmed.
Profile
PE560GB.DOC 20/05/04
415
G1 LINEAR INTERPOLATION.
G1 identifies a Linear Interpolation of the controlled axes on the Plane or in the Space
executed in Feed.
The Feed speed is entered in the program with the "F" function.
In each moment of the work it is possible, with the Rapid Override potentiometer on the
frontal surface of the CNC, to change the speed from 0 to 120%
Example:
416
%N0
N1 G0X0Y0Z0PA1M3S1000
N2 G1F150X10Y10
Example:
%N0
N1 G0 X0 Y0 Z0 PA1M3S1000F150
N2 G2 X20 Y0 I10 J0
It is possible also to program a helix using the K (in G17) function. Example:
Complete clockwise helix with Radius=30 mm and the step=25 mm
N10 G0 X0 Y0 Z0 PA1 M. S.... F....
N20 G2 I30 J0 K-25
The values of the last K remain activated in the entire program; the followed G2 and G3
functions will be executed like helical interpolation. Program K0 for delete it.
PE560GB.DOC 20/05/04
417
G4 STOP CYCLE.
G4 identifies a Stop Cycle in program with the length equal to the number of Spindle
revolutions entered in the same function or a stop cycle express in tenth of second.
Example: %N0
N1 G0X0Y0Z0PA1M3S1000F150
N2 G4/250
Wait for about 15 seconds (250 spindle revolutions)
N3 G0X10Y10
N4
N5 G0X15
N6 G4/s150
Wait for 15 seconds (express in tenth of sec.)
418
%N0
N10 G18
!
N20 G0X10Y10Z30PA1
N30 G1M3S1000F150Y-10
N40 G0Y50
N50 ...........
%N0
N10 G19
!
N20 G0X0Y0Z30PA1
N30 G1M3S1000F150X-10
N40 G0X50
N50 ...........
PE560GB.DOC 20/05/04
419
420
%N0
N1 M10
N2 M11{XYZ}
N3 M6 T1
N5 G0 X..Y..PA1
N6 G0Z.. M3 S1500
N7 G1X..Y..Z..F1000
N8 X..Y..Z..
N9 X..Z..
N10 G0Z100
N11 G99PA2
N12 G0X..Y..
N13 Z..
N14 G0X..Y..
N15 ....
%N0
N1 M10
N2 M11{XYZAB}
N3 G45T1
N4 G0X Y A B PA1
N5 Z.. M3 S3000 F1500
N6 G1X..Y..Z..A..B..
N8 X..Y..Z..A..B..
N9 X..Y..A..B..
N10 G47
N11 G45T2
N12 G0X..Y..A..B..PA1
N13 Z..M3 S1900F1200
N14 G1X..Y..Z..
N15 ....
%N0
N1 M10
N2 M11{XYZAC}
N3 G45 T1
N4 G0X Y A C PA1
N5 Z.. M3 S12000 F3000
N6 G63 E0.01
N7 G1X..Y..Z..A..C..
N8 X..Y..Z A C
N9 X Y Z A C
N10 X Y Z A C
N11 X Y Z A C
N12 X Y Z A C
N13 X Y Z A C
N14 ..
PE560GB.DOC 20/05/04
421
In G31Q1 mode, when the component of cut goes toward the 0 (information of the G26), the
CN takes like speed of reference the vectorial sum of all speed components (information of
the G27) for a regular movement everywhere..
422
PE560GB.DOC 20/05/04
423
Example:
N10 G0X0Y0Z0M3S1000F150PA1
N20 G41X10Y10D3
N30 G1X18Y21
N40 G40X0Y0
424
N10 G0X0Y0Z0M3S1000F150PA1
N20 G42X10Y10D3
N30 G1X18Y21
N40 G40X0Y0
Example:
N10 G0X0Y0Z0PA1M3S1000F150
N20 G43/300X10Y10QZ-4D3
N30 G1X18Y21
N10 G0X0Y0Z0PA1M3S1000F150
N20 G44/300X10Y10QZ-4D3
N30 G1X18Y21
The G40, G rapid, fixed cycle G, change tool G, G50, G60 functions erase the G43 or
G44.
PE560GB.DOC 20/05/04
425
CYCLES/MINUTE (/n)
650
600
550
500
450
400
350
300
250
200
150
100
50
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
35
40
45
426
Example:
N10G45T1
N20G0X0Y0Z0PA1M3S1000F150
N30......................
PE560GB.DOC 20/05/04
427
5
8
11
428
Example:
%N0
N10 G45T1
N20 G0X0Y0M3S1000F150PA1
N30 Z1
N40 G1Z-1
N50 X10Y10
N60 G0Z1
N70 G47
N80 G45T2
N90 G0X50Y50
N100........
PE560GB.DOC 20/05/04
429
3
4
430
IS O 4 0 /V 4 0
IS O 4 5 /V 4 5
IS O 5 0 /V 5 0
140
160
180
IS O 4 0 7 0
IS O 4 5 8 5
T O O L N 1 X 0 Y 0 Z 0
IS O 5 0 1 0 5
2)
3)
4)
5)
6)
7)
8)
9)
The G45 and G47 forced the absolute origin PA0 or PA9 dependently of the
programmed tool number. As it is possible to have two tools magazines, with equal
positions number, that number is defined in the Configuration file.
The first tools magazine must have the PA0 origin and the second the PA9 origin.
In the machine with two tools magazines it is obligatory that the one on the left have
the PA0 origin and the second one on the right the PA9 origin.
The G45 and G47 functions cancel eventual interpolation plane variation; the
G18 or G19 functions must be reprogrammed after the G45,or G47 functions.
The G45 and G47 functions cancel the origins translation G746 or G748
The G746 or G748 functions must be reprogrammed after the G45 or G47.
The G45 and G47 functions move the head in vertical position.
After tool change must be reprogrammed the head positioning if necessary.
The G45 and G47 functions cancel the radius compensation G41 G44.
After the G45 or G47 must be reprogrammed the functions that enable the
spindle rotation and the coolants.
During the execution of G45 or G47 the function M10 is forced.
If we break this cycles is necessary reprogrammed the functions M11{..}.
Any functions programmed on the G47 line are ignored by the CNC, on the
G45 lines are accepted only the tool programming (T).
PE560GB.DOC 20/05/04
431
Example:
N235G47
N236G49[\BLOCK\DDD]
N99999%
If a program, containing the G49 [program name], is charged on the CNC memory
(1PROG-LOAD) when the G49 function is executed the CNC automatically charge the
program indicated inside the parentheses and is executed immediately.
A few seconds passes between the end of the first program and the start of the second.
432
Program BB
"
#
"
Program CC
%N0
.............
N99998 G49 [\BLOCK\CC]
N99999%
" %N0
# ...........
"
............
N99999%
G50-G51 ROTOTRANSLATION.
The G50 function erases the G51.
The G51 function indicates a Rototranslation of the absolute reference system according
to a new Cartesian system of programmed co-ordinates in the same block.
One time the G51 function is activated, all the followings elements must be programmed
according to the new reference system. The translation and rotation values are programmed
in the line containing the G51 function:
Y+
Y+
X+
E
G51X..Y..E..
PA1
X
X+
PE560GB.DOC 20/05/04
433
Rotation point
Z+
PA..
434
Z+
X+
PA..
X+
Z+
Rotation point
PA..
PA..
X+
Z ..
Origin Translation
X ..
PE560GB.DOC 20/05/04
435
%N0
M10
M11{XYZ}
N1 G45T1
N2 G0X0Y0PA1
N3 G0Z2F300S3501M13
N4 G1Z-2
N5 G41X8Y2D5
N6 G3X0Y10I0J2
N7 G1X-10
N8 Y40
N9 X-30
N10 Y-40
N11 X30
N12 Y40
N13 X10
N14 Y10
N15 X0
N16 G3X-8Y2
N17 G40X0Y0
N18 G0Z10
N19 G0X60
N20 G56X50Y0Z-40C90
N21 H1N2N18
N22 G0X-50
N23 G56X0Y0Z0C0
N24 G0X-100
N25 P1=-(50+(55*COS15))
N25 P2=-55*SIN15
N26 G56XP1ZP2C-15
N27 H1N2N18
N28 G0Z20
N29 G56X0Y0Z0C0
N30 G47
N9999%
436
%N0
N10 G0A840 that is 360x 2 + 120
N11 G58
Display A 120 or -240
Without the G58 or M58 {axis name} the rotary axis can rotate from 20000 to 20000
degrees (end of travel limits).
The G58 function must be used for every PA.. origine definition in case of the rotary axis has
done many revolutions, this must be done at the beginning of the program or in MDI.
The scale factor E is active only for X Y Z axes and modify this three axes at the same
time.
Besides it possible to define a different factor for each axis.
Example: G61X1.5Y2Z3 or G61A-1
Y+
G61E>1
G61E<1
X+
PE560GB.DOC 20/05/04
437
It is necessary to weigh up the use of the operator for the tolerance parameter E on the G63
function:
N10 G63 E0.02
In the previously G63 release (as in RIPUNTI, program on the NC to convert in Spline
G360) the tolerance parameter can be express in hundreds of millimetre or tenths of
millimetre during roughing or half-finishing execution: in those working phases when is
presents a machining allowance of tenth or hundreds of millimetre.
In finishing, instead, the E parameter must not be bigger than few microns (from 1 to 3).
438
In the new G63 release the tolerance parameter has a meaning deeply different and takes
the concept of maximal local deformation where it is possible to manage the desired degree
of continuity.
The tolerance parameter can and must be of some hundreds to guarantee on the finishing
surface the disappearance of the point-point effect, without to compromise the quality of the
finishing.
If the operator programs a tolerance of few microns the G63 reproduces exactly all the
particulars of the original geometry.
These are the rules for the use of the E parameter:
FINISHING
Processing Typology
E<0.02
0.02<E<0.03
0.03<E<0.05
ROUGHING OR HALF-FINISHING
Machining Allowance
0.060
0.075
0.090
0.120
0.150
0.180
0.210
0.300
0.400
0.500
0.600
0.700
PE560GB.DOC 20/05/04
439
440
( same as P10=96.012 )
G81 G82
PE560GB.DOC 20/05/04
441
e.g.
G81X..Y..Z-..R..
G0
X..Y..
G1
L(R)
Z-
e.g.
G81/..X..Y..Z-..R..QZ-..
G0
X..Y..
G1
L(R)
PAUSE
QZZ-
442
PE560GB.DOC 20/05/04
443
444
G83
E.g.
G83X..Y..Z-..R..QZ-..
G0
X..Y..
G1
L(R)
QZQZ-10%
Z-
G84
E.g.
G84X..Y..Z-..R..F..
G0
X..Y..
L(R)
Z-
G1
ORIGINAL SPINDLE
DIRECTION RESTART
SPINDLE ROTATION
REVERSAL
PE560GB.DOC 20/05/04
445
446
%N0
N1 G0 X Y Z A B PA. T..
N2 G86/ X Y Z A B R L M.. S.... F.....
PE560GB.DOC 20/05/04
447
G85
E.g.
G85X..Y..Z-..R..L..QZ-..
G0
X..Y..
G1
L
QZ-
QZ-10%
Z-
G86 G87
E.g.
G86X..Y..Z-..R..
G0
X..Y..
L(R)
Z-
448
G1
SPINDLE ROTATION
RESTART
STOP SPINDLE
ROTATION
PE560GB.DOC 20/05/04
449
450
G88
E.g.
G88X..Y..Z-..R..
Z'-..R'-..
Z''-..R''-..
G0Z2
G0
X..Y..
G1
ZR'-
Z'R''-
Z''-
G89
E.g.
G89X..Y..Z-..R..
G0
X..Y..
L(R)
G1
Z-
PE560GB.DOC 20/05/04
451
452
Traverse to X Y A B position
Traverse to L
Feedrate to the Z plane
Stops if programmed G96/
Spindle stops and spindle key positioning
Moving the X Y axes about 2 tenths of millimetre in direction defined with
the E angle value.
7) Traverse to the R plane
8) Traverse to the number 1) X Y plane.
9) Spindle rotation on.
By programming G96/ the machine has a stop at the final feedrate quote, for a number of
revolutions equal to the input value after the slash, and after traverse to the R plane.
After programming a G81-89 or a G96-97 function, the CN forgets the previous
programmed L value but considers the one defined in the block with G.. of the fixed cycle
used..
In case that, IN THE FIXED CYCLE DEFINITION BLOCK, the L dimension is omitted, the
position is done on R dimension. If both R and L values are omitted the CN considers the last
programmed R-value. If this doesn't exist the traverse and the return to the plane
perpendicular axis will be executed to the zero quote.
The E angle must be always equal of the spindle key angle and also the tool. For the
Machine equipped with automatic tool change or with a Multiplexed rotary head this angle is
225 degrees.
In the others cases this angle must be measured.
If the E angle is omitted the CN take the ZERO value.
To execute a series of fixed cycle it is not necessary to rewrite the address G but, in the
followed blocks, the new co-ordinates and if changed the others informations about: F, S, R,
L, and Z.
PE560GB.DOC 20/05/04
453
G96
E..
0,2
454
Where:
QZ = Distance raised from the bottom.
QX = Radius of the outer Bore.
D = Tool Radius.
The CNC will execute these operations in the following sequence...
1)
2)
3)
4)
5)
Traverse to X Y A B position.
Traverse to L.
Feedrate to the Z plane.
Reverse traverse to Z + QZ position.
a) In a case when QX < D, the machine will 'Cut-Out' and error 13 will appear.
b) In a case when QX < 2D, it will join the radius at (QX-D)/2
c) In a case when QX > 2D, it will execute a linear approach to a point X+
(QX-D) and then execute a radius with the value (QX-D)/2.
6) Clockwise circular interpolation with a centre X Y and with radius QX-D
7) Detachment from the workpiece with a radius (QX-D)/2 and return to the point X
Y in linear interpolation.
8) Traverse to R plane.
PE560GB.DOC 20/05/04
455
456
Where:
QZ+- =Distance raised from the bottom.
E +- = Radius path of centre tool. The sign indicates the thread direction:
+ = Counter clockwise, - = Clockwise.
K +- = Pitch of thread.
W +- = Pitch of helical approach to the workpiece.
The CNC will execute these operations in the following sequence:
1)
2)
3)
4)
5)
PE560GB.DOC 20/05/04
457
458
PE560GB.DOC 20/05/04
459
460
%N0
N1
N2
N3
N4
N5
N6
N7
N8
N9
N10
N11
N12
N13
N14
N15
N16
N17
N18
N19
N20
N21
N22
N23
N24
N25
N26
N27
N28
N29
N30
N31
N32
N33
N34
N35
N36
N37
N38
N39
N40
N41
N42
N43
N44
N45
N46
N47
N48
N49
N50
G99 (TSPP_E500)
G45T1 (ROUGH-MILL D. 18)
G99 (TSPP_E500, DIAM18)
F266S1125PA1
G0X70Y0
M13
G0Z2
G1Z-2.5
G41X60Y-20D9.5
G1Y-40
G3X70Y-50I70J-40
G1X80
G3X90Y-40I80J-40
G1Y-20
X100
G3X125Y-45I125J-20
G1Y-90
G2X100Y-115I100J-90
G1X50
G2X25Y-90I50J-90
G1Y-45
G3X50Y-20I25J-20
G1X60
H1N8N23QZ-2.5
G0Z2
G0X75Y-82.5
G1Z-2.5
G41X75Y-105D9.5
G1X96.236
G3X104.896Y-100I96.236J-95
G1X112.113Y-87.5
G3Y-77.5I103.453J-82.5
G1X104.896Y-65
G3X96.236Y-60I96.236J-70
G1X53.764
G3X45.104Y-65I53.764J-70
G1X37.887Y-77.5
G3Y-87.5I46.547J-82.5
G1X45.104Y-100
G3X53.764Y-105I53.764J-95
G1X75
H1N27N41QZ-2.5
G47
G45T2( FINISH-MILL D. 18)
G99(TSPP_E500, DIAM18)
F230S1200PA1
H1N5N42QD-.5
G47
G45T3( CENTER-DRILL D. 10)
G99 (TSPP_E500, DIAM10)
N51 F128S787PA1
N52 G0X90Y-82.5
N53 G81Z-6.5R-3M13
N54 X75Y-67.5
N55 X60Y-82.5
N56 X75Y-97.5
N57 G47
N58 G45T4( TWIST-DRILL D.6.75)
N59 G99(TSPP_E500, DIAM6.75)
N60 F185S1414PA1
N61 G0X90Y-82.5
N62 G83Z-21.528R-3QZ-6.75M13
N63 X75Y-67.5
N64 X60Y-82.5
N65 X75Y-97.5
N66 G47
N67 G45T5( SCREW-TAP ISO D. 8)
N68 G99 (TSPP_E500, DIAM8)
N69 F1250S258PA1
N70 G0X90Y-82.5
N71 G84Z-18R-3L2M13
N72 X75Y-67.5
N73 X60Y-82.5
N74 X75Y-97.5
N75 G47
N9999%
PE560GB.DOC 20/05/04
461
Part-Program
(FILE AAA)
%N0
N1
N2 Gxxx------->
N3
<-N4
|
N5
|
N6000%
|
|
<--
(FILE Gxxx)
N10
N20
N30 Gyyy ------>
N40
<-N50
|
N60
|
N70 G59
|
<--
(FILE Gyyy)
N100
N200
N300
N400 Gzzz ------->
N500
<-N600 G59
|
|
<--
(FILE Gzzz)
N1000
N2000
N3000
N4000
N5000 G59
On the macros the programming rules are the same as the rules on the main part-program.
The CNC dispose of a memory about 256 Kbytes for the macro.
A routine H must have start and end in the same file.
The routine levels are accumulated for each macro.
On the main part-program it is possible to write only the parameters from P0 to P99, on the
macros only from P100 to P199.
The main program and the macros can read all the parameters.
462
PE560GB.DOC 20/05/04
463
Y+
X+
X+
464
G301
- Tool length verify with programmed stops (M1) if the verified tool
length is out of tolerance.
G302
- Tool length verify with automatical research of the tool with equal class
(if different from 0) when the verified tool length is out of tolerance.
If the tool length is on tolerance the CN adjourn the table.
G303
G304
- Tool radius verify with programmed stop (M1) if the verified tool
radius is out of tolerance.
G305
- Tool radius verify with automatical research of the tool with equal
class (if different from 0) when verified tool radius is out of tolerance.
If the tool radius is on tolerance the CN adjourn the table.
G306
All cycles have the acquisition of sample quotas to measure and verify the tools.
For the tool lengths the sample quota is done on the spindle key.
For the tool radius the sample quota is done with the sample tool (T 16) that have the
radius dimension write in configuration (K 17 constant in micron). Each measure of length
and radius is done two times consequently; the tolerance between the two measures is
written in configuration (K 15 float constant).
With the K16 float constant the tool-holder cone to zero setting the spindle key is defined
and is expressed in millimetres.
The tolerance to verify the tools is written in the calling subprogram part program after "/"
character and is expressed in millimetres with the point "." to separate integers from
decimals.
It is usable with all verify cycles. When "/" character is not programmed or when its value
is zero, the verify cycle become a normal measure cycle.
The qualification of this instrument is done with these functions:
G377
G378
PE560GB.DOC 20/05/04
465
- number from 0 to 255 to indicate the same tools in the holder plate.
When this number is = 0 tools are managed in the traditional way and any
automatical tool research is allowed.
When this number is different from 0 this means:
same numbers = same tools type.
This makes the automatical substitution of a non-usable tool to another with
the same number.
DL
- Delta of the tool length: can be edited and its value is summed to the l value.
Every time the tool is automatically measured this value became 0.
Dr
ts
ts
status
466
PE560GB.DOC 20/05/04
467
This group of M functions permits the management from a program of the tool substitution
that has finished its lifetime.
If this mode is active the tool substitution is executed only from the program
In this way we avoid the milling interruptions with the tool in contact with the piece or during
the phases of milling where it is not advisable to substitute the tool.
This function must be programmed at the end of positioning (G0 rapid movements) or in lines
of G99.
The tool lifetime is activated on the machine for all the tools on the cone and that have the
followings parameters on the tools table:
a)
b)
c)
d)
If a processing doesnt finish its defined lifetime the table is adjourned with the residual value
every time the tools is released on the tools magazine.
The M1316 function active the programmed substitution mode.
The M1315 function (default condition) cancels the programmed substitution mode.
The M1317 function executes immediately the substitution of the tool only if its lifetime is
finished.
The function M1317 is ignored if the tool lifetime on the cone is not finished.
The function M1317 is ignored when the tool with the lifetime finished is release from the
cone with a function (G47, M06).
E.g.:
%N0
N10 G99 M1316
N30
N40 G349[prg1]
N50 G349[prg2]
N60 G349[prg3]
N70 G349[prg4]
N80 G99
N9999%
[prg1] %N0
N10 G45T1
..
N1000 G47
N9999%
[prg2] %N0
N10 G45T2
N20
..
N1000 G0 Z100
N9999%
[prg3] %N0
N10 G99 T2
N20 G99 M1317
..
N1000 G0 Z100
N9999%
[prg4] %N0
N10 G99 T2
N20G99 M1317
..
N1000 G47
N9999%
468
The "D1" value programmed disables the tool automatic replacing that's gone
out from the tolerance in the G302 and G305 cycles.
Ex:
N100 G302/0.02 D1
N110 G47
If the tool isn't in tolerance is vain to replace-it by a new one that has got to be
returned in the magazine immediately.
Q1
With the "Q1" programmed value is possible to execute the measure cycle or
tool verify without the sample tool measure considering good the last taken.
The tool measure obtained will result less precise than that one executed
measuring every time with the sample tool.
QE
L1
If programmed dont adjourn the tool dimension on the table after a verify cycle
that is resulted on tolerance.
QZ
PE560GB.DOC 20/05/04
469
470
PE560GB.DOC 20/05/04
471
472
PE560GB.DOC 20/05/04
473
the characteristic of CNC axes is that they can be moved in AUT all together
to arrive in the same instant in the programmed position.
In Man are moved one by one.
They cannot be moved by the PLC command.
The IND axes are moved one by one. Their movement is managed by PLC as
well in MAN than in AUT.
In AUT they can be moved also contemporary with the movement of CNC axes.
From part-program it is possible to indicate the position to get by the IND axes
with an auxiliary function or by indicating the quota.
The independent axes quota is to be referred always to the origin 0.
CNC axes are divided in principal tern axes an auxiliaries axis.
The principal tern axes are divided in plane axes and normal axis to the plane.
Redefines the kind for the indicate axes address. All the indicated axes
between parentheses before the comma modify their kind from CNC to
IND.
All the indicated axes between parentheses after the comma modify
their kind from IND to CNC. In the transformation from CNC to IND it is
not possible to indicate the axes names of the principal tern.
G317 {XWZABY}
redistribute CNC axes. It must to be indicating all and only the CNC
axes.
The first two axes between parentheses became the new axes of the
plane, the third become the normal axis to the plane and the remaining
axes become auxiliarys axes.
G318 {XYZ}
Definition of the PROBE tern axes. They have to be all CNC axes.
474
G319 {X=a,Y=b}
G350 {c}
G354 {Y,v}
PE560GB.DOC 20/05/04
475
G327 TOOLS TABLE AND ORIGINS MODIFY AND SAVE FROM A PROGRAM
Function used to re-adjourn and/or save the tools tables and origins from a program.
Functions description:
G327 M360 [file name]
Are adjourned all the CNC origins quotas with the values written on the file.
It is possible to use only the files previously saved with the M361 function.
G327 M361 [file name]
Are saved all the CNC origins values on disk with the file name.
The format of this file is readable only with the M360 function.
G327 M362 [file name]
Are adjourned all the CNC tools quotas with the values written on the file.
It is possible to use only the files previously saved with the M363 function.
G327 M363 [file name]
Are saved all the CNC tools values on disk with the file name.
The format of this file is readable only with the M362 function.
G327 M370 [file name]
Are adjourned all the CNC origins quotas with the values written on the file.
The files to use must be in text. It is possible to use only the files previously saved
with the M371 functions or the files *.ORI saved in C:\CNC_SAVE from the CNC tools
origins table or edit the file with an editor.
G327 M371 [file name]
Are saved all the CNC origins values on disk on the file. The format of this file is text
and is editable. We suggest saving this file on the directory C:\CNC_SAVE that is the
same used from the CNC to save the origin.
G327 M372 [file name]
Are adjourned all the CNC tools quotas with the values written on the file.
The files to use must be in text. It is possible to use only the files previously saved
with the M373 functions or the files *.UTI saved on C:\CNC_SAVE from the CNC tools
table or edit the files with a editor.
G327 M373 [file name]
Are saved all CNC tools values on disk on the file. The format of this file is text and is
editable. We suggest saving this file on the directory C:\CNC_SAVE that is the same
used from the CNC to save the origin.
476
N50G47
N60G45TDrill D3.5
N70G81PA2X50Y50Z-30R10F1000
.
N80G47
N90G45TTOOL D10
N100G0PA2X50Y50
.
N120G47
N9999%
PE560GB.DOC 20/05/04
477
G328
G329
On the part-program:
N10 G329 M301 {T5}
The functions M338 and M339 programmed on a block write in the parameters P100 and
P101 the DL and DR value of the working tool.
478
PE560GB.DOC 20/05/04
479
G349 [ ] SUBROUTINE
Example: PROG1
PROG33
%N0
N1 ...
N2G349[\BLOCK\PROG33]
N3
!!!
N4
#
N5
#
N6000%
#
"
%N0
N20 G..
N30
N40
N50
!
N99999%
The G359 function writed in the subroutine is programmed to return to the main program.
Example: PROG2
%N0
N1 ...
N2G349[\BLOCK\PROG33]
N3
!!!
N4
#
N5
!
N6000%
PROG33
"
!
%N0
N20 G..
N30
N40G359
N50
N99999%
480
G351 ROTO-TRANSLATION
The G50 function cancels the G351.
The G351 function indicates a Roto-translation of the absolute reference system
according to a new Cartesian system of programmed co-ordinates in the same block.
One time the G351 function is activated, all the followings elements must be programmed
according to the new reference system.
The translation and rotation values are programmed in the line containing the G351
function:
G351X Y Z (translation) E (rotation angle)
It is possible to program the roto-translation in routines by using the QX QY QZ QE:
Example:
N10.............
N20 G351 X0 Y0 Z0 E0
N30.............
N40.............
N50.............
N60 H1 N20 N50 QX10 QY10 QE30
N70.............
The QX, QY, QZ and QE values are cancelled at the exit from the routines.
By using the G351 function it is impossible to roto-translate parts of programs with Q
incremental repetitions:
example:
%N0
N10 G351 X Y E
N20 G81 X Y Z R M S F PA1
N30 H5 N20 QX QY
Execute five G81 to the X Y quotes of the N20
N40 .............
line, for a correct program it is necessary to refer the
routine on the N30 line to the line with the G351.
The G351 function executes first the translations and successively the rotations.
This function is active on the perpendicular plane of the tool either in G17 or G18 or G19
planes.
It isnt possible to use the function G351 together with G51, G751 or G752.
PE560GB.DOC 20/05/04
481
Center
C..
Z+
PA..
482
Z+
X+
PA..
X+
PE560GB.DOC 20/05/04
483
%N0
.........
N5 G358{ A+ } S100
.........
.........
N17 G357
484
PE560GB.DOC 20/05/04
485
Z+
2 mm
%N0
G377F500
N9999%
Press START CN.
X+
Z+
%N0
G378F500
N9999%
Press START CN
2 mm
486
PE560GB.DOC 20/05/04
487
Example: N1 G428/2
488
G506 TOOLS LENGTH AND RADIUS MEAS. WITH MANUAL TOOL CHANGE
The tools length and radius measurement cycle is made through the G506 sub-program and
can be re-called by others program.
E.g. N10 G506 M301 Z200 {T1,T2,T6,T8} QE..
During the manual tool-change the Z-axis quota means the distance between the spindle
nose and the PA0 origin.
In this cycle was been foreseen the automatic sample tool laying-down in the tools
magazine.
By programming G506/1 . it is possible to insert the special calibres manually.
PE560GB.DOC 20/05/04
489
490
PE560GB.DOC 20/05/04
491
492
Before to use the G746 function it is necessary to make the table pre-set
(See on User Manual Shift-F2 Key).
Note: when are programmed both the rotations (G746 {AB}) is executed first the table
rotation and after the tilting table rotation.
X+
PA1
Y+
Y+
X+
A axis center
PA1
Table centre
..
PE560GB.DOC 20/05/04
493
Example:
Z+
Z+
X+
PA1
X+
PA1
Example: %N0
N1 G45T1
N2 G0A90PA1
N3 G748{A}
N4 G0X..Y..
N5 Z..
N6 ......
N7 ......
N34 G740
N35 .....
494
%N0
N1 G45T1
N2 G0A0B45PA1
N3 G748{B}
N4 G0X..Y..
N5 Z..
N6 ......
N7 ......
N34 G740
N35 .....
Table centre
3D ROTATION-TRANSLATION
The functions we are going to define are a generalisation of the well-known plane rototranslation function G51. With the G51function it is possible to operate on the piece coordinates, rotations and/or translations on the active work plane (programmed by G17, G18
and G19). The generalisation consists on the overcoming of the work plane concept by
having the possibilities to program simultaneous moves report to the 3 planes co-ordinates.
G751 TRANSLATION
This function allows a translation of the piece co-ordinates on the direction defined by the
user. On the line where is programmed the G751 function can and must appear the quota of
one axis only.
Example 1:
%N0
G751X30
G0X100Y100Z200PA1F2000
G1Z0
X20Y10
X30Y15
.....
.....
G0X130Y100Z200
G1Z0
X50Y10
X60Y15
Can be programmed other translations by writing on the next lines (immediately or not) the
same function.
Example 2:
%N0
..
G751X30
G751Y50
G751Z100
G0X100Y100Z200PA1F2000
G1Z0
X20Y10
X30Y15
.....
G0X130Y150Z300
G1Z100
X50Y60
X60Y65
PE560GB.DOC 20/05/04
495
The G751 function is in incremental that means the new G751 function will sum the previous
G751 functions:
Example 3:
%N0
G751X30
G751X30
G0X100Y100Z200PA1F2000
G1Z0
X20Y10
X30Y15
.....
.....
But also:
G0X160Y100Z200
G1Z0
X80Y10
X90Y15
%N0
..
G751X60
G0X100Y100Z200PA1F2000
G1Z0
X20Y10
X30Y15
.....
.....
496
G752 ROTATION
This function allows a rotation of the piece co-ordinates around the axis defined by the user.
On the line where is programmed the G752 function can and must appear the quota of one
axis only.
Example 1:
%N0
..
G752Z90
G0X100Y100Z200PA1F2000
G1Z0
X20Y10
X30Y15
.....
.....
G0X-100Y100Z200
G1Z0
X-10Y20
X-15Y30
Can be programmed other rotations by writing on the next lines (immediately or not) the
same function.
Example 2: In this example is applied first a rotation of 90 from Z+ and after a rotation of
90 from Y+: the first transformation produces:
X+ Y+
Y+ XZ+ Z+
The second
X+ ZY+ Y+
Z+ X+
That means
X- Z+
Y+ Y+
Z+ X+
The composition of the 2 produce
X+ Y+
Y+ Z+
Z+ X+
PE560GB.DOC 20/05/04
497
Therefore:
%N0
..
G752Z90
G752Y90
G0X100Y200Z300PA1F2000
G1Z0
X20Y10
X30Y15
.....
.....
G0X300Y100Z200
G1X0
Y20Z20
Y30Z15
The G752 function is in incremental that means the new G752 function will sum the previous
G752 functions:
Example 3:
%N0
..
G752Z30
G752Z30
G0X100Y200Z300PA1F2000
G1Z0
X20Y10
X30Y15
.....
.....
But also:
G0X-123.2051Y186.6025Z300
G1Z0
X-7.3205Y27.3205
X2.0096Y33.4808
%N0
..
G752Z60
G0X100Y200Z300PA1F2000
G1Z0
X20Y10
X30Y15
.....
.....
498
%N0
N10G755C-60
N20G0X50Y100Z50 PA1
Punto
di rotazione
Rotation
point
Z+
PA..
Z+
PA..
X+
PE560GB.DOC 20/05/04
X+
499
H ROUTINE
With an instruction bloc, called routine "H", it is possible to repeat up to 999 times a group of
blocks, also changing each time some values inside the blocks by the incremental words:
QX..., QY..., QZ..., QA..., QB..., QC..., QD..., QE...
The QX, QY and QZ increments automatically adjusts also the I, J and K (values of centres
circles).
Example: N100 H3 N10 N60 QX100
This bloc will execute 3 times the operations included between the bloc number 10 and 60,
with an increment of 100 mm on X and I.
If we use a routine H in a program with roto-translation (G51-G351); this must include the
bloc of the G51 or G351 function (see ex. B ).
It is also possible to include routine inside routine up to 10 nested levels. The increments are
related to each level.
EXAMPLE A:
(Incr. routine in Z)
%N0
.....
N5 G1Z-2
N6 G41X..Y..D..
.....
.....
.....
N50 G40X..Y..
N51 H4 N5 N50 QZ-2
.....
N99999%
EXAMPLE B:
(Incr. routine with angle E)
EXAMPLE C:
(Drilling on a matrix)
%N0
.....
N3 G51 X0 Y0 E0
N6 G0 X100 Y-10 PA1
N7 Z5
.....
.....
N50 G0Z5
N51 H4 N3 N50 QE-20
N52 G50
.....
N99999%
%N0
N1 G45T1
N2 G81X5Y5Z-5R3PA1F...
N3 H9 N2 QX10
N4 H4 N2 N3 QY8
N5 G47
N99999%
The maximal program dimension where it is possible to include a routine is 1000 Kbytes.
It is also possible to include in a routine "H" a subroutine call using the function
G349 [ \BLOCK\file name].
500
EXAMPLES OF REPETITIONS:
PROFILE WITH VARIOUS PASSES IN Z
%N0
N1 G45 T1
N2 G0X-25Y20PA1F300S700
N3 Z5M13
N4 G1Z-1
N5 G41Y12D5
N6 G1X15
N7 Y-12
N8 X-15
N9 Y20
N10 G40X-25
N11 H4 N4 N10 QZ-1
N12 G0Z5
N14 G47
N9999%
%N0
N1 G45 T1
N2 G0X20Y20PA1
N3 Z5F200S600M13
N4 G1Z-2
N5 G41X40D8
N6 G1Y110
N7 X120
N8 Y50
N9 X20
N10 G40Y20
N12 G0Z5
N13H3N2N12QX100QY8
0
N14 G47
N9999%
PE560GB.DOC 20/05/04
501
MIRROR OF A PROFILE
%N0
N1 G45 T1
N2 G0X5Y5PA1F300S700
N3 Z5M13
N4 G1 Z-3
N5 G41X20D8
N6 G1Y60
N7 X30
N8 Y50
N9 X60
N10 Y20
N11 X5
N12 G40Y5
N13 G0Z5
N14 G99 M21
N15 H1 N2 N13
N16 G99 M22
N17 H1 N15
N18 G99 M20
N19 G99 M22
N20 H1 N15
N21 G99 M20
N22 G47
N9999%
502
M FUNCTIONS
M1
M3
M4
M5
M6
M7
M8
M9
M10
M11
M13
M14
M15
M16
M17
M18
M19
M20
M21
M22
M23
M31
M32
M33
M37
M38
M39
M40
M42
M50
M51
M52
M53
M58
M60
M80
M110
M111
M113
M114
M115
M116
M117
Programmed stop.
Clockwise spindle rotation.
Anticlockwise spindle rotation.
Stop spindle.
Manual changing tool (Associate to G99).
Enable coolant 1 (outside water).
Enable coolant 2 (water in the spindle).
Disable coolant.
Enable non-programmed axes locking.
Disable non-programmed axes locking.
M3+M7
M4+M7
M3+M8
M4+M8
M3+M50
M4+M50
Spindle orientation.
Cancels inversion sign on axes (active at the start).
Mirror X axis (Quotas X and I, change G2 in G3 and G41 in G42).
Mirror Y axis (Quotas Y and J, change G2 in G3 and G41 in G42).
Mirror Z axis (Quotas Z and K, change G2 in G3 and G41 in G42).
Allow inversion of the sign (only for quotas X and I).
Allow inversion of the sign (only for quotas Y and J).
Allow inversion of the sign (only for quotas Z and K).
Allow inversion of the sign (only for quotas XY and IJ QX QY).
Allow inversion of the sign (only for quotas XZ and IK QX QZ).
Allow inversion of the sign (only for quotas YZ and JK QY QZ).
Allow low gamma (if it is on tool machine)
Allow high gamma (if it is on tool machine)
Enable coolant 3 (outside air)
Enable coolant 4 (outside air-oil)
Enable coolant 5 (air-oil in the spindle)
Enable coolant 4 (outside oil)
Rotary table revolutions reset
Exit strobe 200 msec for pneumatic table control
General power off
Axis A Cone cleaning
Axis A STOP Cone cleaning
M3+M51
M4+M51
M3+M52
M4+M52
M3+M53
PE560GB.DOC 20/05/04
503
M118
M4+M53
M124
Tools magazine OUT (optional)
M125
Tools magazine IN (optional)
M135
Magazine rotation to the position of tool T.. ( M135 T1 )
M158
Grip opening (optional)
M159
Grip closing (optional)
M177
Rotable magazine door open
M180
Rotable magazine door close
M184
Tools/pieces magazine OUT (optional)
M185
Tools/pieces magazine IN (optional)
M200
Work time
M704
Tail-stock forward with normal air pressure (optional)
M704/1 Tail-stock forward with reduced air pressure (optional)
M705
Tailstock backward (optional)
M708
Tail-stock locking (optional)
M709
Tailstock releasing (optional)
M728
Disable coolant selector
M729
Enable coolant selector
M730
Machine pneumatic door open (optional)
M10-M11 FUNCTIONS
M10 and M11 are modal functions. They establish a certain type of tool machine
functioning until one annuls the other.
M10 function is the natural one because is reactivated at every new CN configuration
installation. This function establishes that the not programmed axes inside a movement block
or those that don't work during a fixed cycle are blocked. It is possible to disable the axes
locking programming M11 with the axes inside the { } parentheses.
If the M11 function is programmed without axes names cause the unlocking of all the axes
except the indexing axes (ex. C index axis).
To lock specifies axes it is sufficient to program M10 function with the axes inside the {}
parentheses. When M10 functions is programmed without indication of axes to lock, all the
configured axes are locked.
For normal 2-3 axes programs and with rotary axes not simultaneous:
Example:
N30 G99M10
N31M11{XYZ}
For 4 or 5 axes programs with rotary axes simultaneous:
Example:
N30 G99M10
N31M11{XYZAB}
504
PE560GB.DOC 20/05/04
505
During the Micros intervention the axes XYZ quotas are acquired. They're available in the
parameters P186, P187, P188 expressed in micron hundredths.
Moreover are acquired every axes quotas that will be used through the M330 M331
functions.
506
Function that allows opening a file on the CNC memory erasing the previous one.
M 330
Function that stores on the file open in memory every axes configured
quotas belonging to the current origin acquired with the apposite function M
(M320 -:- M327).
M 331
Function that stores on the open file in memory the absolute quotas
regarding every axes configured acquired through the suitable functions M
(M320 -:- M327).
M 332
Function that stores on the file open in memory the actual date with hour,
minutes and seconds.
Function that stores in the H/D at the file tail [file name] every
configured axes quotas acquired with the suitable functions M
M (M320 -:- M321).
Function that stores in the H/D at the file tail [file name] the actual
date with the hour, minutes and seconds.
Function that stores in the H/D at the file tail [file name] the last
string prepared by the Machine Logic.
Function that stores in the H/D at the file tail [file name] the last
numerical variable prepared by the Machine Logic.
Function that stores on the file [....] on disk the string ()
Function that stores on the file [....] on disk the parameter p..
Function that stores on the file [....] on disk the string () and
parameter p..
PE560GB.DOC 20/05/04
507
508
PA1
PA2
PE560GB.DOC 20/05/04
509
510
P.. PARAMETER
As we have already written in the description of the VSP tri-literal commands, it is possible
to define a maximum of 100 parameters variables, identified with the P letter followed by an
index number from 0 to 99.
It is possible to give a parameter to very functions of the ribbon, so there values will not
only be constant, but also variable as the given parameter changes:
Ex: XP10, QYP3, FP8, GP2, PAP80
Where the parameters can have the following contents:
P10=-150.05 P3=2*P4 P8=300 P2=1 P80=4
The value assigned to a selected parameter, is done through the equality:
Pnn = Value (if the Parameter is defined in the VSP table) or
Nnn Pnn = Value or Expression (if the parameter is defined in a program block)
With the expression:
Nnn G99 Pnn = ? The machine stops and wait for user data input (Pnn).
It is possible to continue the program execution by pushing START CN.
With "expression" composed by consistent groups of parameters, constants, mathematical
operations and brackets, the whole is also changeable during the program execution.
In the expression which define the parameter values, can also be programmed also the
X,Y,Z,A,B,C axes functions, with the limitation to define only a parameter for every ribbon
block, without any other machine function excluding the N block number.
Examples: N10 G0 X20 P1=100
N10 P1=100 P2=P1*5
N10 P1=100
N20 P2=P1*5
N30 XP2
"
"
WRONG
WRONG
"
"
"
CORRECT
CORRECT
CORRECT
This definition block of the parameter is executed together with the following working block
pushing on ENTER only one time; this allow to program the definition block of the parameters
also inside a profile without stopping the continuity of the work.
It is not possible to do the Block Search on a block of parameter definition.
All the function values, given with the parameters, can be rototranslated and reduced in
scale as in the normal programming, while a function, of X, Y, Z, A, B, C type, if it is
programmed in one expression, it will keep its last programmed value, which is not altered
either with the rotation or with the scale factor.
In the definition of a parameter whose values are known, the following operator sequence
presented in priority order:
SIN
PE560GB.DOC 20/05/04
511
COS
TAN
ASN
ACS
ATN
LOG
LGT
EXP
EXG
SQR
^
*
/
NEG
ABS
INT
NEI
+
=
" Wrong
" Correct
The expression is calculated from the left to the right, keeping in mind the priority of the
commands and the brackets level.
The representation field of the parameters values goes from +-4.19x10^-307
to +-1.67x10^308, also if they are displayed with four whole codes and three decimals.
512
Between the offered possibilities with the parameter programming there are the
conditioned jumps, through the ones it is possible to stop the normal sequence of execution
of the program block.
The conditioned jumps can be done only inside the same program and it is possible to
recall every block, but not the same one.
The operators of relation for the conditioned jumps are the following:
<
>
<=
>=
==
!=
Less
Greater
Less or equal
Greater or equal
Equal
Different
Example:
N100 P2 >= P5 N50 or N100 P2 >= P5 NP10
In case the condition is right, and that is the contained value in the P2 parameter is
greater or equal to the contained value in the P5 parameter, then, in the first case, we will
jump to execute the N50 block, while in the second case, we will jump to execute the block in
which number the P10 parameter values are contained.
In case the condition is wrong, the execution will continue with the following block to
N100.
The first command must ALWAYS be a parameter, while the second can be a parameter
or a constant; if it is none of the two it will take the zero value.
If the second parameter does not exist, then the condition is not verified and during the
work execution the machine will stop.
As for the assignment blocks of the parameters values, also this will be executed with the
following block of working, pushing the START only one time.
PE560GB.DOC 20/05/04
513
%N0
N1
N2
N3
N4
N5
N6
N7
N8
N9
N10
N11
N12
N13
N14
N15
N16
N17
N18
N19
N20
N21
N22
N23
N24
N25
N26
N27
N28
N29
514
P1=50
===> POCKET BASE ( X )
P2=30
===> POCKET HIGH ( Y )
P3=0
===> X POCKET CENTRE
P4=0
===> Y POCKET CENTRE
P5=0
===> ROTATION ANGLE
P6=10
===> NUMBER OF PASSES
P7=0
===> START Z
P8=15
===> TAPER
P9=10
===> TAPER
P10=20
===> END Z
P11=8
===> RADIUS
G45T1
G51XP3YP4EP5PA1
G0X0Y0S1300F650
G0Z2M13
P20=P10/P6
===> Z INCREMENT
G1ZP7
P25=(P1/2)+(P7*(TAN(P8)))
P26=(P2/2)+(P7*(TAN(P9)))
P27=-P25
P28=-P26
N30 G21RP11
G41R1D..
N31 G13XP25Y0E90R0
G13XP25Y0E90R0
N32 G40X0Y0R1
G21RP11
N33 P7=P7+P20
G13X0YP26E180R0
N34 P7<P10N17
G21RP11
N35 G0Z50
G13XP27Y0E270R0
N36 G47
G21RP11
N9999%
G13X0YP28E0R0
%N0
N1 P1=50
==> SPHERE RADIUS
N2 P2=5
==> ANGULAR INCREMENT
N3 P3=0
==> STARTING ANGLE
N4 G45T1
N5 G0X60Y0PA1
N6 G99F100S1200M3
N7 G0Z2
N8 P10=P1*SINP3
N9 P11=P1*COSP3
N10 G1ZP10
N11 G1XP11Y0
N12 G3XP11Y0I0J0
N13 P3=P3+P2
N14 P3<90N8
N15 G47
N99999%
PE560GB.DOC 20/05/04
515
%N0
N1 P1=50
N2 P2=30
N3 P3=5
N4 P9=0
N5 G45T1
N6 G0X60Y-10PA1
N7 G99F100S1200M3
N8 G0Z2
N9 G1Z-1
N10 G42XP1Y-10D4
N11 P10=P2*SINP9
N12 P11=P1*COSP9
N13 G1XP11YP10
N14 P9=P9+P3
N15 P9<=360 N11
N16 G1XP1Y10
N17 G40X60Y10
N18 G0Z2
N19 G47
N99999%
516
S S/ FUNCTIONS
With the S function is programmed the spindle revolutions.
Basing on the programmed number if the machine is equipped with more rotation ranges,
the right one is automatically selected and inserted (M40).
During the work cycles, the CN keep under constant control the current absorption
percentage of the spindle motor.
This percentage is visible on the screen. If the absorption percentage is over the 98% for
an equal time to the one imposed in spindle axis configuration, the CN reduce the work
speed of 30% on the one programmed. If the absorption doesn't reduce of 98% the CN stop
the machine and an error appear.
To keep under control an absorption value less than 98% it is sufficient to program: S
(revolutions numb)/(absorption percentage).
Example: S2000/15 = the spindle speed is 2000 rpm, the reduce speed mechanism will
be activated if the absorption percentage exceed the 15% for an equal time to the one
imposed in axis spindle configuration.
PE560GB.DOC 20/05/04
517