Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PROGRAMMING FUNCTIONS
The programming functions listed on the following pages are available only on the CNC models whose symbols appear below the blue band containing the definition of the function. The correspondence of these symbols with the different models is indicated in the key reproduced at the bottom of each page.
Three CNC models are referenced for S4000 Series (S4040, S4045 and S4045P). Four CNC models are referenced for S3000 Series (S3040, S3045, S3045P and S3035D). The GE designation indicates the Enhanced Geometry Option, available only for S4040 and S3040 systems. S4060D It is the fastest and most powerful CNC of the S4000 series. It is suitable for milling machines with 5 or more axes. It can match the management of rotary heads and tables (ADVANCED TCPM) with high-speedmachining on complex die surfaces. CNC with a fast MASTER processor for milling machines equipped with rotating heads and tables requiring the TCPM (Tool Center Point Management) function. CNC for milling machines, boring mills, digitizing / copying systems and complex machining centers.
S4045P S3045P
S4045 S3045
S4040GE Enhanced Geometry Programming Option for S4040 S3040GE and S3040 CNCs. S4040 S3040 S3035D CNC for machining centers and machining cells,millingmachines, boringmills and transfer lines. is a completely digital CNC for Machining Centers expressly thought for ripetitive production activities.
Please refer to the User and Programming Manual for further details. Edition 06.05
The Numerical Controls S4000, Export Version E excluded, are subject to export controls according to Appendix I of the EU-Dual Use regulation.
General G-Functions
GENERAL G-FUNCTIONS
G00
(G0)
Axis rapid positioning
G01
G01 Axis
(G1)
Linear interpolation
G02
(G2)
G03
(G3)
G04
G04 K...
(G4)
Timed dwell
K: pause time in units of tenths of a second. Enabled: only in the block in which it is programmed.
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G09
(G9)
G10
X,Y:
G11
X,Y:
I...
X...
G13
X,Y:
S4060D
S3035
General G-Functions
G14
G14
G15
G16
Axis exchange
G17
G17
G17
G18
G18
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G19
G19
G20
X,Y:
G21
G21 J...
J:
Chamfer
Chamfer value (distance from the vertex). Enabled: only in the block in which it is programmed.
G21
G21 [I...]
I:
Linking radius
radius of the connecting circle Positive: counterclockwise direction. Negative: clockwise direction. (If not programmed the last value is valid). Enabled: only in the block in which It is programmed.
Y I
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G25
G25
Cancels G26
G26
G26
G27
G28 G26
G28
G29 G26
X, Y: Q: Note:
G30 G26
G30
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G31
I: Q: D14:
G32
G32
G34 G26
G34 [I0]
I0:
Opens programming of the profile delimiting the zone of ruled surface to be machined
the delimitation profile is not offset by the active tool radius compensation.
G35 G26
G35
Ends programming of the profile delimiting the zone of ruled surface to be machined
G36 G26
G36
G37 G26
G37
G38 G26
G38
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G39
K:
G40
K:
X, Y:
G41
K:
I1: Q:
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
D0=1: an alternative to Q. Enables a tool/profile collision control. This eliminates the profile elements that, because of the radius offset, would cause a change of tool direction and possible gouging. To test for gouging the default amount of look ahead is 60 blocks. This number can be modified by programming it directly into the D0 parameter (for example: D0=30, D0=200, etc.). D1=1: With the D0 parameter, it is necessary to program this parameter to handle those closed profiles that begin and end in one point. With this parameter profile beginning/end are on the bisector of the angle formed by the two elements in that point. D2=1: This parameter allows the storing of the profile elements that have not been machined into a file defined by the G666 function with the G666LNAME: format. Enabled: until of a G40 is programmed.
G42 G26
G43
G44
G48
K: I: Note:
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G49
Kn: I:
G49 Kn [I...]
recall cutter compensation (n). finish stock value.
G49 I...
I: cutter radius. Enabled: until a G49 or a T for tool change is programmed.
G49
I: Q:
G49
I: J: Q:
G50 G26
G50
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G51
X,Y,Z:
J:
X
O
J Y
X
I:
incremental coordinates of the new origin (with respect to the last programmed origin). K: K1 rotation/offset with respect to part origin (default). K2 rotation/offset with respect to the last G51. K3 rotation/offset with respect to the programmed point. Enabled: until a G50 is programmed.
G52
G53 G26
G53
G54 G26
G54
G55 G26
G55
10
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G56 G26
G56
G57 G26
G57
G58 G26
G58
G59 G26
G59
G60 G26
G60
G61 G26
K: X,Y,Z: F: Q:
Scaling factor
J: scale factor to apply to the rapid speed. Enabled: until a G60 is programmed.
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
11
General G-Functions
G61
G61 [X...] [Y...] [Z...] D0=... D1=... D2=... D3=... D4=... [D5=...] [D6=...] [D7=...] [D8=...] [D9=...] [D10=...]
X: Y: Z: D0: scaling factor for X-axis first Third Junction Second Junction First zone zone zone zone zone zone. scaling factor for Y-axis first Factors Factors Factors D8 D5 X zone. D9 D6 Y scaling factor for Z-axis first D10 D7 Z zone. D1 D2 D4 D3 selection of the axis along which the 3 zones are defined: D0=1 X-axis. D0=2 Y-axis. D0=3 Z-axis. end coordinate of the first zone. starting coordinate of the second zone (>D1). end coordinate of the second zone (>D2). starting coordinate of the third zone (>D3). scaling factor for X-axis second zone.
D6=: scaling factor for Y-axis second zone. D7=: scaling factor for Z-axis second zone. D8=: scaling factor for X-axis third zone. D9=: scaling factor for Y-axis third zone. D10=: scaling factor for Z-axis third zone. Enabled: until a G60 is programmed.
G62
G62 K...
K: K1: K2:
type of coordinates. absolute coordinates. incremental coordinates, with respect to circle starting point.
G67 G26
G67
12
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G68
G69
A, B:
G70 G26
G70
G71 G26
G71
G72 G26
G72
G73
K:
S4060D
S3035
13
General G-Functions
number of the internal subprogram (from L=0 to L=99) or name of the external subprogram (LNAME:) Warning! The programming order of the K and L parameters must be absolutely respected. Therefore, first program parameter K and then L. L:
G74
G75
G76
G76 G76 G76
[X...] [Y...] (with G17) [Z...] [X...] (with G18) [Y...] [Z...] (with G19)
X(G17): circumference radius. Y(G17): angle with respect to the abscissa (positive in the counterclockwise direction). Enabled: until a G75 is programmed.
Polygonal pocket
G77
X... Y... [I...] [J...] [K...] [D0=...] [D1=...][D2=...] [D3=...] [D4=...] [D6=...] [D7=...] [D8=1] [D9=...]
first point of the pocket. stock allowance, removed only if a finish pass is programmed by a G79. distance between passes in tool radius units (default value J = 1.6). edge linking radius. machining mode selection. D0=0 from the border toward the center, with Z increments only (default).
X,Y: I: J: K: D0:
14
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
D0=1 from the center toward the border, with Z increments only D0=2 from the center toward the border, with increments in X, Y, Z D0=3 defines a special use of G77 for milling profiled pockets with passes parallel to the profile pocket starting depth. pass depth. pocket bottom depth. clearance distance (default value D4 = 2 mm).
D6= : wall taper rate (default value D6=0 - vertical wall). D7= : percentage of feed rate variation during depth increment (default value D7=1). D8=1: if D0=3 is programmed, programs island milling. D9= : clearance value from pocket walls during tool repositioning at end of cycle (D9=0.5 mmbydefault). Note: the following blocks define the pocket profile.
G78 G78
G78
X... Y... K... [Q...] [I...] [J...] [D0=...][D1=...] [D2=...] [D3=...] [D4=...] [D6=...] [D7=...] [D9=...] [D10=...] [D11=...] [D12=...]
pocket center coordinates. pocket diameter (negative = clockwise cutting). internal diameter. stock allowance (default value I=0). distance between passes in tool radius units (default value J = 1.6). machining mode selection: D0=0 concentric cuts from the center toward the border and Z - increment. D0=1 spiral path cuts from the center toward the border and Z - increment. D0=-1 spiral path cuts from the border toward the center and Z - increment. D0=2 spiral path cuts from the center toward the border and X,Y, Z - increment. D0=3 spiral on plane from center to outside, Z spiral increments. D0=-3 spiral on plane from outside to center, Z spiral increments.
X,Y: K: Q: I: J: D0:
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
15
General G-Functions
D1=: D2=: D3=: D4=: D6=: D7=: D9=: D10: pocket starting depth. pass depth. pocket bottom depth. clearance distance (default value D4 = 2 mm). wall taper rate (default value D6=0 - vertical wall). percentage of feed rate variation during depth increment (default value D7=1). clearance value from pocket walls during tool repositioning atend of cycle (D9=0.5 mmbydefault). repositioned in starting point (for D0=3 and D0=-3 only): D10=0 rapid return (default).
D10=1 return to programmed F following a semicircular path. depth increment type (for D0=3 and D0=-3 only): D11=0 (D12)= spiral path angle on Z to reach D2 (default). D11=1 (D12)= rotation increment to reach D2. D11=2 (D12)= number of rotations to achieve D2. D12=: D11 value (for D0=3 and D0=-3 only): (default D12=3). D11:
G79 G79
G79
X... Y... K... [Q...] [I...] [J...] [D0=...][D1=...] [D2=...] [D3=...] [D4=...] [D5=...] [D6=...] [D7=...] [D9=...]
pocket center coordinates. pocket diameter (negative = clockwise cutting). internal diameter. stock allowance (default value I=0). distance between passes in tool radius units (default value J = 1.6). machining mode selection: D0=0 concentric cuts and Z - increment only (default). D0=1 spiral path cuts and Z - increment only. D0=2 spiral path cuts and X, Y, Z - increment. pocket starting depth. pass depth. pocket bottom depth. clearance distance (default value D4 = 2 mm).
X,Y: K: Q: I: J: D0:
16
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
D5=: D6=: D7=: D9=: radius value for tool automatic approach and exit during the finish pass (default value D5 = I). wall taper rate (default value D6=0 - vertical wall). percentage of feed rate variation during depth increment (default value D7=1). clearance value from pocket walls during tool repositioning at end of cycle (D9=0.5 mmbydefault).
G81 [X... Y...] Z... [I...] J... [Q...] [K...] [F...] [D8=...] [D9=1] [D10=...] [D11=...] [D13=...]
hole coordinates. XY XY hole bottom plane. Q Q depth increment prior to dwell J J I for chip breakage. Dwell K I J: hole starting plane. Dwell K I Q: Z axis clearance plane. Dwell K Dwell K K: dwell time for chip breakage Z (in tenths of a second, in alternative to D10). F: feed rate. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs). D9=1 : never mind where the machine is, the cycle is execute in XY position, without to programming XY (D9=0 by default). D10=: rapid detachment value after each performed increase I (default D10=0; in alternative to K). D11=: increasing value of the lead-in at feed F*D13 (default D11=0). D13=: multiplying factor of F for the section defined by D11 (default D13=0.7). Enabled: until a new fixed cycle or a G80 is programmed.
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
17
General G-Functions
G82
G82
[X... Y...] Z... I... J... [Q...] [K...] [F...] [D0=...] [D7=1] [D8=...] [D9=1] [D10=...] [D11=...] [D12=...] [D13=...] [D14=...]
hole coordinates. Q XY hole bottom plane. J depth increment prior to dwell * F D13 for chip breakage. D11 I D10 J: hole starting plane. I D10 Q: Z axis clearance plane. I D0 D12 K: dwell time for chip breakage I D0 * (in tenths of a second, in I D14 D0 * I D14 alternative to D10). D0 * I D14 Z F: feed rate. D0= : when descending after a chip discharge, tool rapid move changes to the programmed feed rate at a distance of D0 mm from previous depth. D7=1: tool retracts to the Q plane for chip discharge. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs). D9=1: never mind where the machine is, the cycle is execute in XY position, without to programming XY. (D9=0 by default). D10=: rapid detachment value after each performed increase I (default D10=0; in alternative to K). D11=: increasing value of the lead-in at feed F*D13 (default D11=0). D12=: increasing value of the section to cover at constant increase I and detachment D10 from the reached position. Once reached D12, in the last section, till the position Z is reached, the increment I is executed in depth with a scaling factor (D14), before a rapid return for chip discharge at J or Q. D13=: multiplying factor of F for the section defined by D11 ( default D13=0.7). D14=: scaling percentage of the increases I for the section between D12 and Z (default D14=10). Enabled: until a new fixed cycle or a G80 is programmed.
X, Y: Z: I:
18
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G83
X, Y: Z: I: J:
Deep drilling fixed cycle with tool retraction for chip discharge
G83 [X... Y...] Z... J... I... [Q...] [K...] [F...] [D0=...] [D7=1] [D8=...] [D9=1]
hole coordinates. hole bottom plane. depth increment prior to (tool) return for chip discharge. hole starting plane and tool retraction plane for chip discharge. Z - axis clearance plane.
XY Q J I
D0=xx
I-10%
D0=xx
Q: K:
dwell time for cheap breakage at the each increment (in tenths of a second). feed rate. F: D0= : when descending after a chip discharge, tool rapid move changes to the programmed feed rate at a distance of D0 mm from the previous depth. D7=1: tool retracts to the Q plane for chip discharge. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs). D9=1: never mind where the machine is, the cycle is execute in XY position, without to programming XY (D9=0 by default). Enabled: until a new fixed cycle or a G80 is programmed.
G84
X, Y: Z: J: F: I:
G84 [X... Y...] Z... J... F... [I...] [Q...] [K...] [D8...] [D9=1]
hole coordinates. XY hole bottom plane. Q Restoring previous hole starting plane. J spindle rotation thread lead in thousands of a mm. Z defines a dwell time at the Spindle reversal bottom of the hole (in tenths of a second) before the spindle inversion command for a DC spindle motor without transducer. clearance plane for tool retraction at feed rate with spindle in reverse rotation. dwell time at the bottom of the hole (in tenths of a second) for AC spindle motors, or stretching of the compensation at the bottom of the hole (in microns) for DC spindle motors. Not to be programmed in case of DC spindlemotors equipped with transducer (rigid tapping).
S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 S3035
Q: K:
S4060D
19
General G-Functions
D8: multiplication coefficient of the tapping rise speed with spindle and transducer (default D8=1). D9=1: never mind where the machine is, the cycle is execute in XY position, without to programming XY (D9=0 by default). Enabled: until a new fixed cycle or a G80 is programmed.
G85
G85
X, Y: Z: J: Q:
Dwell K
K:
F: feed rate. D8= : multiplication coefficient of the rise speed (D8=1 by default). D9=1: never mind where the machine is, the cycle is execute in XY position, without to programming XY (D9=0 by default). Enabled: until a new fixed cycle or a G80 is programmed.
G86
G86
X, Y: Z: J: Q:
[X... Y...] Z... J... [Q...] [K...] [I...] [F...] [D0=...] [D7=...] [D8=...] [D9=1]
hole coordinates. XY hole bottom plane. Q Restoring spindle hole starting plane. J rotation clearance plane for tool retraction in rapid with spindle OFF. Z Dwell K Spindle stop (I) dwell time at the bottom of the hole with spindle ON (in tenths of a second). dwell time at the bottom of the hole with spindle OFF (in tenths of a second). feed rate angle of the bore cutting edge after spindle orientation performed by the PLC in the same direction as the rotation direction. tool off the wall value along D0 angle (D7=0.5 by default). scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
S4060D S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 S3035
20
General G-Functions
D9=1: never mind where the machine is, the cycle is execute in XY position, without to programming XY (D9=0 by default). Enabled: until a new fixed cycle or a G80 is programmed.
G88
X, Y: Z: J: K: F: D8=:
Z1
scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs). Note: subsequent blocks can only contain pairs of Z, J coordinates, until a G80 with tool rapid retraction is programmed. A new fixed cycle or X, Y - coordinates cannot be programmed before a G80. Enabled: until a G80 is programmed.
G89
G89
[X... Y...] Z... J... [I...] [K...] [Q...] [F...] [S...] [D8=...] [D9=1] [D10=...] [D14=...] [D15=...] [D16=...] [D17=...] [D18=...] [D19=...] [D20=...] [D21=...] [D22=...] [D23=...]
plane hole coordinates. Q XY hole bottom plane. J D14 hole starting plane. F... S... D21 Dwell D22 D15 depth increase for chip D10 Dwell K FD16 SD17 D23=1 breakage. Dwell K D23=0 Rapid rapid return position at D21 Dwell D22 end of hole (Q=J if not D18 programmed). FD19 SD20 pause for chip breakage in tenths of a second Z (K=0 by default). upper zone feed from J to D15. Last programmed F is used if in the G89 is not programmed. upper zone spindle speed from J to D15. Last programmed S is used if in the G89 is not programmed. scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ).
S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 S3035
X,Y : Z: J: I: Q:
K: F: S: D8=:
S4060D
21
General G-Functions
D9=1 : never mind where the machine is, the cycle is executed in XY position, without to program XY (D9=0 by default). D10= : rapid detachment value after each performed increase I (D10=0 by default). D10=0 K..., no detach, K pause every I mm D10=... K..., D10 detach, K pause every I mm. D10=K0, D10 mm detach without pausing K after I mm D10=0 K0, equivalent to not programming I.. (Cycle does not break chip) D14= : incremental position from J after which pauses are made every I mm(if I is programmed). Normally the distance between J and part surface. (D14=0 if not programmed) D15= : end of upper zone and start of intermediate zone absolute position. The zone between D15 and D18 (if D18 is programmed)or between D15 and Z is run with FD16 and SD17. The upper zone included between J and D15 is run at feed and speed programmed before G89. (D15=0 if not programmed). D16=: feed used in intermediate zone, between D15 and D18 (if D18 is programmed) or betweenD15andZ(ifD18isnotprogrammed). D17=: speed used in intermediate zone, between D15 and D18 (if D18 is programmed) or betweenD15andZ(ifD18isnotprogrammed). D18=: start of lower zone absolute position. The zone between D18 and Z is run at FD19 and SD20. D19= feed used in lower zone between D18 and Z. D20= speed used in lower zone between D18 and Z. D21= detachment value in D15 and D18 positions for speed change (D21=1 if not programmed). D22= pause after D21 detach for spindle to speed up. D21=10 (1 sec) if not programmed. Detach and pause are skipped if only feed (not speed) is changed. D23= intermediate zone mode from D15 to D18 (D23=0 by default). D23=0 I increases, D10 detaches and possible K D23=1 middle zone run in rapid mode R. Enabled: until a G80 is programmed.
G90
G90
G91
G91
22
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
Note: As an alternative, program the I function a fter the coordinates of the axes that are to be moved incrementally (example: X100Y10I).
G92
G92 F
F:
the new feed rate overrides all F functions programmed in the subsequent blocks. Enabled: until a G92, or a G93, G94, G95 with new F-values is programmed.
G93
G93 F...
F: new feed rate. Enabled: until a G92, or a G93, G94, G95 with new F-values is programmed.
G94
G94 F...
F: new feed rate. Enabled: until a G92, or a G93, G94, G95 with new F-values is programmed.
G95
G95 F...
F: new feed rate. Enabled: until a G92, or a G93, G94, G95 with new F-values is programmed.
G98
G98
Cancels G99
G99
G99
Note:
G71 G26
to be programmed inMDImode.
G200
G200
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
23
General G-Functions
G201
G201 J... [K...]
F: K:
Cylindrical programming
cylinder radius inmillimeters. Metric system programming with CNC inch configuration specifies the unit of measure for the rotary axis coordinates: K1 degrees (default). K2 millimeters. Enabled: until a G200 is programmed.
G202
G202
Polar programming
G71 G26
with CNC inch configuration Storing profile elements that have not been machined using the collision control
G666
G666 LNAME:
NAME: name of the program where the profile elements that have not been machined because of the collision control are stored (8 alphanumeric charactersmax.,only for S3000 Series). Note: the program resides in system memory; this storing procedure is possible only in the Graphic Executionmode.
G701
G701 [X... Y...]
X, Y:
G71 G26
G710
G710
G711
Profile storing
24
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G721
I: J: K: Q:
D0:
G726
X,Y: Z: I: J: D1=: D2=:
G727
X,Y: Z:
G728
TRS X: TRS Y: TRS Z: ROT X: ROT Y:
25
General G-Functions
G730
G730
G731
I: J:
High speed milling of profiles defined by points (Only for S3000 Series CNCs)
G732
G732
Cancels G733
G733
K:
G71 rounding tolerance. To prevent jerks on the axes, geometrical G26 edge
Q:
discontinuities are eliminated by inserting spline type curves on the edges, on the plane or in space. K represents the maximum error allowed for the resulting continuous trajectory. (By default: K=0.01 mm). The higher the value of K, the lower the work execution time. work acceleration multiplication factor. (By default: Q= value configured in the system SETUP). Must not exceed the machines limit acceleration, normally its rapid rate. The higher the value of Q, the lower the work time.
26
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
D0=: request for graphic display of the tool path. (If not programmed, D0=1). D0=1: display off. D0=0: display on. geometric filter on the programmed points. All the points whose distance from the theoretical curve is lower than D1 (maximum two points out of 3) are ignored (By default: D1=0.01: the points are filtered). JERK value (typically between 10% and 50% of the maximum acceleration). (By default: D8= value configured in the system SETUP) If D8=0 the system automatically calculates a jerk value according to the acceleration. The jerk value must offer the best compromise between the softest movement and the machining time. Small Jerk values lead to softer movement but increased machining times.
D1=:
D8=:
G734
G734
G735
I:
Spiral milling
J:
K:
Q:
Z:
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
27
General G-Functions
G736
I:
Surfaces defined by a plane profile and one or more section profiles: plane profile and parameters
G736 I... [X... Y...] [J...] [K...] [Q...] [D0=...] [D1=...] [D2=...] [D3=...] [D4=...] [D5=...] [D8=1]
distance between passes on the section profile containing the K1 parameter (see G737). tool approach point to the plane profile. X,Y: finish stock allowance. J: machining mode for the linking radii of the plane profile, depending on K: the section profile: variable radii (default value). K1 constant radii. K2 selects the type of passes for open plane profiles: Q: unidirectional passes (default value). Q1 bi-directional passes. Q2 selects type of milling: D0: D0=0 plane milling (default). D0=1 special use of G736 for pocketing concaves surface. D0=2 spiralmilling. D1=: Z-rapidmoveoutcoordinate for unidirectional passes. D2=: tool clearance value for unidirectional pass end/start. (D2 = 2 by default). D3=: spiralmilling cord error (default D3=0.01 when using D0=2). D4=: minimum spiralmilling cord (dafault D4=0.1 when using D0=2). D5=: maximum spiralmilling cord (default D5=2 when using D0=2). D8=1: programs islandmilling cycle, on condition that D0=1 is programmed.
G737
Q: K1:
Surfaces defined by a plane profile and one or more section profiles: section profiles
G738
J: X,Y :
Surfaces defined by a plane profile and one or more section profiles: execution
28
General G-Functions
G26 G740
G740
G26 G746
G746
G748
4-axis surface machining (S4045P and Export versions) or 4/5-axis (S3045P and S4060D) with rotary tables or tilting tables (dynamic TCPM)
G749
A, B: I,J,Q:
4-axis surface machining (S4045P and Export versions) or 4/5 axis (S3045P and S4060D) with 1/2-axis rotary heads (dynamic TCPM)
G749 [A] [B] [C] [I...] [J...] [Q...] [K...] [D0=1] [D1=...]
rotary axis name. positive or negative offset values for the point of rotation. Failing these parameters, the rotation occurs about the tool tip. K: for heads with opposing spindles: K0 first spindle. K1 second spindle. D0=1: all calculations are referred to head zero position, irrespective of the head position when G749 is programmed. With D0=1, cycle restart and block search are possible. For a correct use of G749, the head zero position must be defined by performing the HEAD ZERO SETTING procedure. D1=: head number (from 1 to 8). By default: D1=1. Enabled: until a G740 is programmed. (See Note on page 63).
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
29
General G-Functions
G750 G26
G750
Cancels G751
G751
Rotation/offset in space
G751 [TRS X...] [TRS Y...] [TRS Z...] [ROT X...] [ROT Y...] [ROT Z...] [SCA X...] [SCA Y...] [SCA Z...]
TRS X: TRS Y: TRS Z: ROT X: ROT Y: X - axis offset by a given value. Y - axis offset by a given value. Z - axis offset by a given value. rotation about the X - axis by a given value. rotation about the Y - axis by a given value.
ROT Z: rotation about the Z - axis by a given value. SCA X: scaling factor for X axis. SCA Y: scaling factor for Y axis. SCA Z: scaling factor for Z axis. Enabled: until a G750 is programmed.
G78
G753
G753
Cancels G754
G754 G26
G754
G760 G26
G760
Cancels G761
G761 G26
X,Y,Z: I,J,K: Q:
G761 [X...] [Y...] [Z...] [I...] [J...] [K...] [Q...] [F...] [D0=...] [D1=...] [D2=...] [D3=...] [D4=...] [D5=...]
lower axis travel limits. upper axis travel limits for X,Y and Z axis respectively. selects NC behaviour in case of axis overtravel with respect to the programmed limits:
S4060D S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 S3035
30
General G-Functions
Q0 an error signal (ERR 98) is displayed. Q1 all the points outside the limits are projected on the limits. Q2 all the points outside the limits are eliminated. F: feed rate to be used outside the limits (only with Q1). The default value is the programmed feed rate. D0=: specifies the profile section part to be executed at the programmed feed rate (with Q1 only). D0 will be subtracted from the upper limits I, J, K and added to the lower limits X, Y, K. If D0 is not programmed, the entire profile will be executed at the programmed feed rate. D1=: percentage of feed rate variation (D1=1 by default). D2=: tool clearance value from pocket walls outside the limits (by default D2=1). D3=: incremental or absolute withdrawal height (only with Q2) (D3=0 by default). D4: discriminator for D3: D4=0: D3=incremental height (D4=0 by default). D4=1: D3=absolute height. D5: discriminator for planemovements to detachment position: D5=0: programmed F (default). D5=1: rapid. Enabled: until a G760 is programmed.
G777 G26
Z: J: I: Q: D1=: D2=:
G777 Z... J... I... [Q...] [D1=...] [D2=...] [D3=...] [D4=...] [D5=...] [D6=...] [D7=1]
pocket bottom depth. starting depth. pass depth. clearance height for tool rapid outmoves (Q=J+2 by default). inclined pass angle (D1=0 by default).
finish stock allowance (D2=0 by default) removed only if G779 is programmed). D3=: parameter defining the mill path from the last point of a pass to the first point of the next one. If D3=0 the positioning to the starting point of the next pass is carried out at the Q clearance height. If D3 is a large value, such as 100, the mill follows the pocket profile at the current depth. The default value is D3 = 5. D4=: tool clearance distance when descending to the working depth (D4=2 by default). D5=: percentage of F - feed rate variation during depth increment. D6=: pass stop distance from pocket external profile (D6=0.2 by default). D7=1: no finish contouring of pocket external profile.
S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040
S4060D
S3035
31
General G-Functions
G778 G26
X,Y:
J:
G779 G26
X,Y:
J:
G780 G26
G780
G781 G26
G781 X... Y... Z... J... [I...] [Q...] [K...] [F...] D1=... D2=... [D3=...] [D4=...] [D5=...] [D6=...] [D8=...] [D10=...] [D11=...] [D13=...]
X, Y, D1, D2, D3, D4, D5, D6 parameters: refer to grid patternmachining cycles Z, J, I, Q, K, F, D8, D10, D11, D13 parameters: refer to G81. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
32
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
G782 X... Y... Z... J... I... [Q...] [K...] [F...] D1=... D2=... [D3=...] [D4=...] [D5=...][D6=...] [D8=...] [D7=1] [D10=...] [D11=...] [D12=...] [D13=...] [D14=...]
X, Y,D1,D2,D3,D4,D5,D6 parameters: refer to grid patternmachining cycles. Z, J, I, Q, K, F, D0, D7, D8, D10, D11, D12, D13, D14 parameters: refer to G82. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
Grid pattern deep drilling with tool retraction for chip discharge supercycle
G783 X... Y... Z... J... I... [Q...] [K...] [F...] D1=... D2=... [D0=...] [D3=...] [D4=...] [D5=...] [D6=...] [D7=1] [D8=...]
X, Y, D1, D2, D3, D4, D5, D6: parameters: refer to grid pattern machining cycles. Z, J, I, Q, K, F, D0, D7, D8 parameters: refer to G83. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
G784 G26
G784 X... Y... Z... J... F... [Q...] [K...] [I...] D1=... D2=... [D3=...] [D4=...] [D5=...] [D6=...] [D8=...]
X, Y, D1, D2, D3, D4, D5, D6 parameters: refer to grid pattern machining cycles. Z, J, I, Q, K, F, D8 parameters: refer to G84.
G785 X... Y... Z... J... [Q...] [K...] [F...] D1=... D2=... [D3=...] [D4=...] [D5=...] [D6=...] [D8=...]
X, Y, D1, D2, D3, D4, D5, D6 parameters: refer to grid pattern machining cycles. Z, J, Q, K, F, D8 parameters: refer to G85.
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
33
General G-Functions
G786 X... Y... Z... J... [I...] [Q...] [K...] [F...] [D0=...] D1=... D2=... [D3=...] [D4=...] [D5=...] [D6=...] [D7=...] [D8=...]
X, Y, D1, D2, D3, D4, D5, D6 parameters: refer to grid pattern machining cycles. Z, J, I, Q, K, F, D0, D7, D8 parameters: refer to G86. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
G787 X... Y... [D1=...] [D2=...] [D3=...] [D4=...] [D5=...] [D6=...] [D7=...]
X,Y: D1= D2= D3= D4= D5= D6= D7=
Grid pattern machining repeat supercycle Circular pocket milling (roughing cycle)
starting point coordinates. number of figures per line. distance between figures on the line. angle formed by grid lines and X-axis (D3=0 by default). number of figures per column. distance between figures on the columns. angle formed by grid lines and X-axis (D6=90 by default). angle of rotation of the single machining (D7=0 by default). Machining cycle to be repeated must be programmed after a G787. A G780 enables the cycle. The identifier of the machining to be executed is stored by the system under the P99 parameter.
G789 G26
Grid pattern differentiated drilling supercycle (Only for S4000 Series CNCs)
G789 X... Y... Z... J... [I...] [K...] [Q...] [F...] D1=... D2=... [D3=...] [D4=...] [D5=...][D6=...] [D8=...] [D10=...] [D14=...] [D15=...] [D16=...] [D17=...] [D18=...] [D19=...] [D20=...][D21=...] [D22=...] [D23=...]
X, Y,D1,D2,D3,D4,D5,D6 parameters: refer to grid patternmachining cycles. Z, J, I, K, Q, F, D8, D10, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 parameters: refer to G89. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ).
34
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
General G-Functions
Circumference pattern drilling
X,Y: D1= D2= circumference center coorD5=0 D5=1 dinates. number of holes. D3 circumference radius with D4 Y sign. If the radius is positive, holes will be machined CCW; D2(+/-) if the radius is negative, they will be machined CW. D1=No. of holes angle formed by the first hole X and the X-axis (D3=0 by default). angular distance between holes (if D4 is omitted, figures will be evenly distributed over 360). specifies the displacementmodebetween 2 consecutive holes: D5=0 linear displacement on the clearance plane (default value). D5=1 circular displacement on the clearance plane.
G26 G791
G791 X... Y... Z... J... [I...] [Q...] [K...] [F...] D1=... D2=... [D3=...] [D4=...] [D5=...] [D8=...] [D10=...] [D11=...] [D13=...]
X, Y, D1, D2, D3, D4, D5 parameters: refer to circumference pattern machining cycles. Z, J, I, Q, K, F, D8, D10, D11, D13 parameters: refer to G81. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
G792 G26
G792 X... Y... Z... J... I... [Q...] [K...] [F...] D1=... D2=... [D3=...] [D4=...] [D5=...] [D7=1] [D8=...] [D10=...] [D11=...] [D12=...] [D13=...] [D14=...]
X, Y, D1, D2, D3, D4, D5 parameters: refer to circumference pattern machining cycles. Z, J, I, Q, K, F, D0, D7, D8, D10, D11, D12, D13, D14 parameters: refer to G82. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
35
General G-Functions
Circumference pattern deep drilling with tool retraction for chip discharge supercycle
G793 X... Y... Z... J... I... [Q...] [K...] [F...] D1=... D2=... [D0=...] [D3=...] [D4=...] [D5=...] [D7=1] [D8=...]
X, Y, D1, D2, D3, D4, D5 parameters: refer to circumference pattern drilling. Z, J, I, Q, K, F, D0, D7, D8 parameters: refer to G83. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
G794 X... Y... Z... J... F... [Q...] [K...] [I...] D1=... D2=... [D3=...] [D4=...] [D5=...] [D8=...]
X, Y, D1, D2, D3, D4, D5 parameters: refer to circumference pattern drilling. Z, J, Q, K, F, I, D8 parameters: refer to G84.
G795 X... Y... Z... J... [Q...] [K...] [F...] D1=... D2=... [D0=...] [D3=...] [D4=...] [D5=...] [D7=...]
X, Y, D1, D2, D3, D4, D5 parameters: refer to circumference pattern Drilling. Z, J, Q, K, F, D8 parameters: refer to G85.
G796 X... Y... Z... J... [I...] [Q...] [K...] [F...] D1=... D2=... [D0=...] [D3=...] [D4=...] [D5=...] [D8=...] [D7=...]
X, Y, D1, D2, D3, D4, D5 parameters: refer to circumference pattern drilling. Z, J, I, Q, K, F, D0, D7, D8 parameters: refer to G86 . D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ). (Only for S4000 CNCs).
36
General G-Functions
D4= D5= angular distance between figures (if D4 is omitted, figures will be evenly distributed over 360). discriminator for figure rotation: D5=0 no rotation (default value). D5=1 the machining will be rotated. The machining cycle to be repeated must be programmed between a G797 and a G780 cycle enable function. The identifier of the machining to be performed is stored by the NC into the P99 parameter.
Circumference pattern differentiated drilling supercycle (Only for S4000 Series CNCs)
G799 X... Y... Z... J... [I...] [K...] [Q...] [F] D1=... D2=...
[D3=...] [D4=...] [D5=...] [D8=...] [D10=] [D14=] [D15=] [D16=] [D17=] [D18=] [D19=] [D20=] [D21=][D22=] [D23=] X, Y, D1, D2, D3, D4, D5 parameters: refer to circumference pattern machining cycles. Z, J, I, K, Q, F, D8, D10, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, parameters: refer to G89. D8=: scaling factor for rapid positioning feed ( value include between 0 and 1; D8=1 by default ).
G817 G26
G817 Axis
Axis: name of themachine axis to which the compensation is to be applied. Enabled: until cycle / program end.
Cancels G841
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
37
General G-Functions
Cancels G846
Cancels G851
38
S4060D
S3035
General G-Functions
measuring cycle feed rate. rapid move up to I... mm from the expected point. If I is not programmed, the entire move will be executed at the programmed feed rate. Enabled: only in the block in which it is programmed. F: R:
Cancels G901
I1:
The G901 function disables Edit and Graphic Execution m o d e s f o r programs other than the one being executed on themachine. Freesmemory after recalling a file.
Cancels G911
The block containing the wrong instruction will be partially executed: machining will be stopped when an axis reaches its travel limit and an errormessage will be displayed. Enabled: until a G910 is programmed.
The G998 code, if programmed before program calls to system memory, floppy disk, hard disk or peripheral units, enables the NC to check the block sequence number. The system will signal error 59 if the block sequence number increment is other than 1.
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
39
General G-Functions
Cancels G1001
During program execution on themachine, the program section defined after a G1001 will be executed only in graphicmode.
40
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Copying G-Functions
COPYING G-FUNCTIONS
G877
Limits, mode and copying plane
G879
I: J: Q:
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
41
Copying G-Functions
G880
G880
The profile to be copied shall be programmed between a G881 and a G880 code.
G881
X or Y or Z:
G882
G882
G883
I:
Digitizing cycle
J:
42
S4060D
S3035
Copying G-Functions
K: point storing format: K0= ASCII format (default). K1= S3000 binary format (only for S3000 Series CNCs). K2= S1200 binary format (only for S3000 Series CNCs). minimum chord length (Q=0.4).
Q:
D0=0: enables continuous point storing in manual copying mode (default value). D0=1: enables point storing under operators control in manual copying mode. D1=0: digitizing with probe deflection compensation (default value). D1=1: digitizing without probe deflection compensation. D1=2: digitizing and direction cosine storing with probe deflection compensation. Example: X...Y...Z...I...J...K... D1=3: digitizing and direction cosine storing without probe deflection compensation. Example: X...Y...Z...I...J...K... AXES: name of the axes (maximum 4) to be stored. If omitted, the system stores X Y Z: XY: only X Y are stored. XYZC: X Y Z C are stored. NAME: name of the program where the digitized data are stored. For the S3000 Series: 8 characters maximum, the first of which alphanumeric, followed by a colon :. To store into a peripheral unit the character D must be added after the character :. Example LNAME:D To store on hard disk: LG:NAME; To store on floppy disks: LA:\NAME; To store on network units: LH:NAME; For the S4000 Series: To store in the directory where the copying program is, program: LNOME: To store in another directory, program: L\DIR\NOME; Enabled: until a G882 with different parameters is programmed.
G884
43
Copying G-Functions
G884
X,Y,Z: Q:
G888
I: J: Q: F:
G889
I: J: K:
G889 I... J... K... Q... [X...] [Y...] [Z...] [D0=] [D1=1]
nominal deflexion on the plane. probe tracer point radius. probe orientation (in G17): K1 = parallel to X in the X+direction. K2 = parallel to X in the X- direction. K3 = parallel to Y in the Y+direction. K4 = parallel to Y in the Y- direction. K5 = parallel to Z in the Z+ direction. K6 = parallel to Z in the Z- direction. The 1,2,3,4,5, 6 codes can be prefixed by additional 1,2,3,.. Codes; for example K14, K24, K34, etc. This way 24 codes are obtained, allowing to rotated the probe from its current position to any other position. (see par. 4.2 of the Digitzing and Copying Manual). Q0 = with qualification cycle. Q1 = without qualification cycle. Q...= descent depth of the probe on the qualification cube through G877 J7.
Q:
44
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Copying G-Functions
X,Y,Z: definition of a plane parallel to the copying limit plane: Z... For limits on XY, Y... for limits on XZ, X... for limits on YZ. This plane shall be always programmed. D0: coefficient of friction. D1=1: enables the special parameters for direct copying. Enabled: until a G889 with different parameters is programmed.
G890
G890
Shall be programmed in MDI after the G891 defining the angle of rotation.
G891
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
45
Decisional operators
= > < >= <= <> equal to greater than less than greater than or equal to less than or equal to different from Ex.: {P24<=P18}L22 Parameters are identified by the letter P followed by a number (from P0 to P399).
46
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
P2
P1 P3
P5 = P6 =
P5
0 piece Z
P6
P7 = P8 = P9 =
X-coordinate of the 1st string character Y-coordinate of the 1st string character string angle
P9 P8
0 piece X
P7
P11 = advancement speed scale factor for axis perpendicular to working plane. (Value between 0 and 1).
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
47
P7 =
X-coordinate of circumference center P8 = Y-coordinate of circumference center P9 = starting angle P10 = circumference radius (positive)
P7 P8
O piece
P10+
P7 =
X-coordinate of circumference center P8 = Y-coordinate of circumference center P9 = starting angle P10 = circumference radius (negative)
P8 P7 P9 P10-
The programming format is: WRITEL = CHARACTER STRING (on a straight line) WRITEC = CHARACTER STRING (on a circumference) NOTE: to execute a writing machining in G18 or G19 it is necessary to program in G17 and insert an axis exchange (G16) or a rotary offset (G751) DO NOT USE, in the part-programs, the parameters included in the range from P0 to P99. Program the G50 function after the last WRITEL or WRITEC instruction.
48
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Ep = G20 Xp Yp
Yp
Xp
Xp Yp
Point defined by Cartesian coordinates referred to an origin different from part zero Ep = G51 Xo Yo Jo, G20 Xp Yp Eo = G51 Xo Yo Jo Ep = Eo, G20 Xp Yp
Y
Ep Xp
Yo
O
Eo Xo
Xp Jo
X
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
49
Point as intersection of two circles Ep1 =G20 X Y I, G20X Y I Ep2 =G20 X Y I, G20X Y I K2 Ep1 =Ec1, Ec2 Ep2 =Ec1, Ec2 K2
Y Ec1 Ep1 Ep2 Ec2
Ep1 =G13 X Y J, G20 X Y I Ep2 =G13 X Y J, G20 X Y I K2 Ep1 =Er, Ec Ep2 =Er, Ec K2 Point as center of a stored circle Ep = Ec I0
Ec
O
Y Ec Ep
O
50
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Er = G13 Xp Yp Jr Er = G13 Ep Jr
Ep
Er
Yp
Jr
O
Xp
Er = G13 Xc Yc Ic Jr Er = G13 Ec Jr
Ec
Yc
Ic
Er
Jr
O
Xc
Er = G10 Xp1 Yp1, G11 Xp2 Yp2 Er = G10 Ep1, G11 Ep2
Yp1 Yp2
O
Er = G10 Xc1 Yc1 Ic1, G11 Xc2 Yc2 Ic2 Er = G10 Ec1, G11 Ec2
Ic2
Ec1
Ic1
Er
Xc1
Xc2
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
51
Yp
Ep Er Ec Ic
Yc
Xp
Xc
Straight line tangent to a circle and passing through a point Er = G10 Xc Yc Ic, G11 Xp Yp Er = G10 Ec, G11 Ep
Y
Yp
Ep
Er Ic
Yc Ec
O
Xp
Xc
Er 2 d1 d2 Er 1 Er 3
Er2 = -Er1
Er 1 Er 2
O X
52
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Storing circles
Circle of known center and radius Ec1= G20 Xc1 Yc1 Ic1 Ec2= G51 Xo Yo Jo, G20 Xc2 Yc2 Ic2 Ec2= Eo, G20 Xc2 Yc2 Ic2
Ec2 Yc2 Yo Yc1
O
Ic2
Jo Xc2
Eo
Ic1
Ec1 Xc1 Xo
X
Ec = G13 Xr1 Yr1 Jr1, G21 Ic, G13 Xr2 Yr2 Jr2 Ec = Er1, G21 Ic, Er2
Er2 Ec
Ic
Er1
X
Circle of known radius and tangent to a straight line and a circle Ec2 = G13 Xr Yr Jr, G21 Ic2, G20 Xc1 Yc1 Ic1 Ec2 = Er, G21 Ic2, Ec1
Y
Ec1
Ic1
Er Ec2
O
Ic2
Circle of known radius tangent to a circle and a straight line Ec2 = G20 Xc1 Yc1 Ic1, G21 Ic2, G13 Xr Yr Jr Ec2 = Ec1, G21 Ic2, Er
Y
Ec1
Ic1 Ic2
Er Ec2
X
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
53
Ec3 = G20 Xc1 Yc1 Ic1, G21 Ic3, G20 Xc2 Yc2 Ic2 Ec3 = Ec1, G21 Ic3, Ec2
Ec3 Ec1
Ic1 Ic3 Ic2 Er
Ec2
O X
Circle through a point and tangent to a straight line Ec = G20 Xp Yp, G21 Ic, G13 Xr Yr Jr Ec = Ep, G21 Ic, Er
Y
Ec
Ic Er
Ep Er
O X
Ec2 = G20 Xp Yp, G21 Ic2, G20 Xc1 Yc1 Ic1 Ec2 = Ep, G21 Ic2, Ec1
Ep Ec1
Ic1 Er
Ic2 Er
Ec2
Circle of known radius through two points Ec = G20 Xp1 Yp1, G21 Ic, G20 Xp2 Yp2 Ec = Ep1, G21 Ic, Ep2
Y
Ec
Ic Er
Ep2
O
Ep1
X
54
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Ec = G10 Xp1 Yp1, G20 Xp2 Yp2, G11 Xp3 Yp3 Ec = G10 Ep1, G20 Ep2, G11 Ep3
Ec
Ic Er
Ep2 Ep3
X
Ep1
O
Circle with center in a point and tangent to a straight line Ec = G21 Xct Yct, G13 Xr Yr Jr Ec = G21 Ect, Er
Y
Er Er Ect Ec
Circle with center in a point and tangent to a circle Ec2 = G21 Xct Yct, G20 Xc1 Yc1 Ic1 Ec2 = G21 Ect, Ec1
Y
Ec2 Ec1
Ic1
Er Ect
Circle with center in a point and tangent to a circle (K2 = solution with the longest radius) Ec2 = G21 Xct Yct, G20 Xc1 Yc1 Ic1 K2 Ec2 = G21 Ect, Ec1 K2
Y
Ec2
Ic1
Er Ect Ec1
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
55
Ec1 Ec2 d2
d1
Ec3
Ec2 = Ec1 I2
Ec1
Ec2
Ec2 = G13 Xr1 Yr1 Jr1, G13 Xr2 Yr2 Jr2, G20 Xc1 Yc1 Ic1 Ec2 = Er1, Er2, Ec1
Er2 Ec2
Ec1 Ic1
Er1
O X
56
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Er
P1 Ec2 Ec1
X
Xp
O
Jo Yp
X
Indirect definition
Eo = G51 Ep Jo
Jo Ep
O X
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
57
Storing distance
Distance between two points
Ed Ep1
O
Ep2
Ep Ed Er
Ed = Er1, Er2 Ed = G13 Xr1 Yr1 Jr1, G13 Xr2 Yr2 Jr2
Er1 Ed
O
Er2
X
58
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Display Parameters
DISPLAY PARAMETERS
$0 cancels the drawing on the screen, without modifying the current parameters.
$1M...X...I...Y...J... setting of the display in two dimensions, where: M = 0 plan view M = 1 side view M = 2 front view X... left limit I... right limit Y... lower limit J... upper limit. $2 X... I... Y...J...K...Q... setting of the display in three dimensions, where: X... left limit I... right limit Y... lower limit J... upper limit K... horizontal rotation Q... vertical rotation. $3 $4 $5 $6 disables drawing and leaves the current screen contents unmodified. re-enables the drawing disabled with $3. light blue. the default color codes are blue for rapid movements and green for feedmovements. red. green. yellow.
$7 $8 $9
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
59
Display Parameters
$10 $11 $12 $13 $20 $21 blue. pink. white. black. cancels $21. K... I... when the plan view mode is enabled, allows to perform a m a c h i n i n g simulation by drawing a series of circles on the tool center path. Circles diameter is the same as tool diameter. K... coefficient for the calculation of the distance between the circles according to the formula: distance = K / (Tool Radius * Scale). Easily program K=Tool Radius to get a good display. I... circle color (the colors are always the same written in the $... instructions).
60
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Outputting P Parameters
OUTPUTTING P PARAMETERS
OPEN n, NAME defines the name of the program into which the parameters will be stored, where: n=2 creation of the NAME program. The .000 is automatically inserted. S4000: if the NAME program is already presen, the system creates a program by modifying the extension into .001, .002, etc... S3000: if the NAME program is already present, the system creates a program by inserting /A, /B, /C, etc... characters after the NAME. In case the NAME program is longer than 6 charachters, the last two characters will be cancelled. n=3 overwriting of the NAME program that already exists. In this case the extension is not added. n=4 to add blocks to a NAME program, that already exists.In this case the extension is not added.
FORMAT n, STRING1 ####.### STRING2 ####.### STRING3 ####.### Etc. It defines the printing format,where: n= defines the format number (from 1 to 6) to be specified in the print instruction PRINT STRING1, PRINT STRING2, PRINT STRING3, etc is a sequence of alphanumeric characters (ex. X, Y, Z). # define the printing format of the parameter numeric values (Pn). ####.### defines a printing format made of 3 integers and 3 decimals, plus sign. #### defines a printing format consisting of 3 integers plus sign.
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
61
Messages Displaying
PRINT n, P ..., P P ..., ...
CLOSE
Enables the writing of a block in the program with the n format defined by the FORMAT function; P ... are the parameters to be printed, from P0 to P199, separated by commas. closes the printing file. It must be programmed alone after the last PRINT command.
MESSAGES DISPLAYING
permits the return from the MESSAGES page to the previously active one (LIST or DRAWING). permits the display the MESSAGES page. cancels all texts currently on the screen. (from DISP 1 to DISP 18): writes a text line in the defined screen position. Each line can contain up to 56 characters. The programming format is: DISP n = String of characters
62
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
Notes
NOTE: The EXPORT versions (marked with an E after the version number) permit to interpolate max. 4 axes. It is therefore not possible to program more than 4 axes in a block. Example: X100Y50Z200A0 If you program for ex. X100Y50Z200A0B90, the CN will show an error. The dynamic TCPM functions (G748 and G749) do not permit the programming ofmorethanoneaxis. Example: G748C G749A If you program for ex.G748BC orG749AB, the CN will show an error. (See G748 andG749 on page 29).
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
63
Index
General G-Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 1 Copying G-Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 41 Logical mathematical operators . . . . . . . . . . . . . . . . . . . . Page 46 Character engraving strings . . . . . . . . . . . . . . . . . . . . . . . Page 47 Storing geometric elements . . . . . . . . . . . . . . . . . . . . . . . Page 49 Storing points . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 49 Storing straight line . . . . . . . . . . . . . . . . . . . . . . . Page 51 Storing circles . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 53 Storing origin offset/rotation . . . . . . . . . . . . . . . . Page 57 Storing distance . . . . . . . . . . . . . . . . . . . . . . . . . Page 58 Display parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 59 Outputting P parameters . . . . . . . . . . . . . . . . . . . . . . . . . . Page 61 Messages displaying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 62 Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 63
64
S4060D
S4045P S3045P
S4045 S3045
S4040GE S3040GE
S4040 S3040
S3035
SELCA S.p.A. - Corso Vercelli, 123 - 10015 IVREA (TO) Italy Tel. +39 0125 61.44.11 - Fax +39 0125 61.69.94 Www.selca.it - E-mail: comm@selca.it