Sei sulla pagina 1di 68

CNC S4000 CNC S3000

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

G00 Axis (or, alternatively, Axis R)


Enabled: only in the block in which it is programmed.

G01
G01 Axis

(G1)

Linear interpolation

Enabled: (default) until a G02 or a G03 is programmed.

G02

(G2)

Clockwise circular/helical interpolation

G02 X Y I J [Z] G02 X Z I K [Y] G02 Y Z J K [X]


X,Y,Z: coordinates of the final point of the arc. I,J,K: coordinates of circle center with respect to X, Y, Z. Coordinates may be absolute or incremental, according to system configuration or to the selection performed through a G62 function. Enabled: only in the block in which it is programmed.

G03

(G3)

Counterclockwise circular helical interpolation

G03 X Y I J [Z] G03 X Z I K [Y] G03 Y Z J K [X]


X,Y,Z: I,J,K: coordinates of the final point of the arc coordinates of circle center with respect to X, Y, Z. Coordinates may be absolute or incremental, according to system configuration or to the selection performed through a G62 function. Enabled: only in the block in which it is programmed.

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)

Deceleration at block end

G09 X... Y... Z...


Enabled: only in the block in which it is programmed.

G10
X,Y:

First point or circle that defines a straight line

G10 X... Y... [I...]


circle center or supporting point coordinates. I: circle radius (omitted if the element is a point). Enabled: only in the block in which it is programmed.
First supporting element

I... Y... X...


Second supporting element

G11
X,Y:

Second point or circle that defines a straight line

G11 X... Y... [I... K...]


Circle programmed circle center or supporting in the previous block point coordinates. K2 K1 I: circle radius (omitted if the Y... element is a point). First supporting K: Selects one of the intersecelement tions between the straight line and the circle programmed in the previous block. Enabled: only in the block in which it is programmed. Second supporting element

I...

X...

G13
X,Y:

Straight line, at a known angle, through a point or tangent to a circle

G13 X... Y... [I...] J... [K...]


point or circle center coordinates. Circle programmed in the I: radius of the circle of previous block I... tangency (omitted if it is a Y... K2 point). J: angle between straight line K1 and X - axis. X... Selects one of the interK: sections between the straight line and the circle programmed in the previous block . Enabled: only in the block in which it is programmed.
S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 J...

S4060D

S3035

General G-Functions

G14
G14

Cancels MASTER-SLAVE axes (G15) (Only with Master-Slave option)

G15

MASTER-SLAVE axes (Only with Master-Slave option)

G15 SLAVE MASTER [I...]


SLAVE: name of SLAVE axis. MASTER: name of MASTER axis. I: scale (I=1 by default). Enabled: until a G14 is programmed.

G16

Axis exchange

G16 Axis1 Axis2 Axis3


Axis1: axis exchanged with the first machine axis. Axis2: axis exchanged with the secondmachine axis. Axis3: axis exchanged with the third machine axis. Enabled: until a G17, a G18, or a G19 is programmed.

G17
G17

Plane selection (XY is the machining plane, Z is the perpendicular axis)

Enabled: (default) until a G16, a G18, or a G19 is programmed.

G17

Selection of planes different than XY

G17 Axis1 Axis2 Axis3


Axis1: defines the abscissa axis. Axis2: defines the ordinate axis. Axis3: defines the perpendicular axis. Enabled: until a G17 (without parameters), a G18, or a G19 is programmed.

G18
G18

Plane selection (ZX is the machining plane, Y is the perpendicular axis)

Enabled: until a G17 or a G19 is programmed.

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

General G-Functions

G19
G19

Plane selection (YZ is the machining plane, X is the perpendicular axis)

Enabled: until a G17 or a G18 is programmed.

G20
X,Y:

Circle of known center and radius

G20 [X... Y...] [I...] [K...]


circle center coordinates. Y May be omitted if coinciding K2 with the center of the last programmed circle. K1 I I: circle radius. If omitted, the circle will be a point. Positive: O X counterclockwise circle Negative: clockwise circle. K: Discriminates between two intersection points ( with a straight l i n e o r another circle). Enabled: only in the block in which it is programmed.
+

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

Axis reversal compensation (default on)

Enabled: until a G25 is programmed.

G27

First point of a SPLINE curve linking a series of at least 5 points

G27 X... Y... [I...] [Q...] [D1=1]


X, Y: coordinates of the first point of the curve. I: segmentation tolerance (default value I = 0.05 mm). Q: angle on the starting point. D1=1: closed curve. Enabled: until a G29 is programmed. The points of the curve (X... Y..., X... Y..., etc.) shall be programmed between a G27 and a G29.

G28 G26
G28

Cusp point of a SPLINE curve

Enabled: only in the block in which it is programmed.

G29 G26
X, Y: Q: Note:

Last point of a SPLINE curve

G29 X... Y... [Q...]


coordinate of the last point of the curve. angle on the last point. If G27 contains the parameter D1=1, the last point of the curve must not coincide with the first one.

G30 G26
G30

Cancels G31 and re-establishes deceleration at block end

Enabled: until a G31 is programmed.

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

General G-Functions

G31
I: Q: D14:

Continuous motion mode with automatic feed adjustment

G31 [I...] [Q...] [D14=...]


minimum speed, (I=0 by default). multiplication factor for machine acceleration (Q=1 by default). corner rounding coefficient (between 2 and 6). The higher the value of D14, the softer the axis movement but the greater the rounding. Program an average value, e.g. D14=4. Enabled: until a G30 is programmed.

G32
G32

End of internal subroutine and return to the main program

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

Disables storing of actual machine axis path

G37 G26
G37

Enables storing of actual machine axis path

G38 G26
G38

Closes the file opened with a G39

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

General G-Functions

G39
K:

Opens a file to store actual machine axis path

G39 K... LNAME:


storing format: K0: ASCII format (K10 to overwrite). K1: S3000 BINARY format (K11 to overwrite) (only for S3000 Series CNCs). K2: S1200 BINARY format (K12 to overwrite). (only for S3000 Series CNCs). NAME: name of the destination program (max. 8 characters, the first of which alphanumeric).

G40
K:

Exit from profile and cutter compensation disable

G40 [K...] [X... Y...]


selects profile exitmode: K1: automatic profile exit with a straight line perpendicular to the last programmed element. K2: automatic profile exit with a semicircle tangent to the last programmed element. If K is omitted, profile exit will not be automatic and must be programmed. coordinates of the point to be reached after exiting the profile. Cutter compensation is disabled at this point.

X, Y:

G41
K:

Enables tool radius compensation, tool left of profile

G41 [K...] [I1] [Q...] [D0=...] [D1=1] [D2=1]


selects profile approachmode: K1: automatic approach with a straight line perpendicular to the first element. K2: automatic approach with a semicircle tangent to the first element. convex edges automatic rounding off with a linking radius equal to mill radius. control code for tool direction reversal because of cutter compensation: Q0: displays an errormessage (ERR 95) and stops execution Q1: (default) executes circles and straight lines in the opposite direction. executes straight lines in the opposite direction (circles will not Q2: be executed).

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

Enables tool radius compensation, tool right of profile

G42 [K...] [I1] [Q...] [D0=1] [D1=1] [D2=1]


See G41 for parameters. Enabled: until of a G40 is programmed.

G43

Paraxial radius compensation: the compensation is added to the coordinate

G43 [X...] [Y...]


Enabled: only in the block in which it is programmed. Note: to be used only in case of paraxial milling operations (it is better to use G41/G42).

G44

Paraxial radius compensation: the compensation is subtracted from the coordinate

G44 [X...] [Y...]


Enabled: only in the block in which it is programmed. Note: to be used only in case of paraxial milling operations (it is better to use G41/G42).

G48
K: I: Note:

Recalls and enables tool length compensation

G48 [K...] [I...]


compensation number. finish stock value. program G48 I0 to disable the active length compensation.

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

General G-Functions

G49
Kn: I:

Defines cylindrical mill radius

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:

Defines spherical mill radius (for G841/G736/G726)

G49 I... [Q...]


sphericalmillradius. distance between tool zero and tool tip: Q = I: if tool zero coincides with tool center. Q Q = 0: if tool zero coincides I with tool tip (default). Enabled: until a G49 or a T for tool change is programmed.

G49
I: J: Q:

Defines toroidal mill radius (for G841/G736/G726)

G49 I... J... [Q...]


toroidalmillradius. cutter (or insert) radius. distance between tool zero and tool tip: Q = J: if tool zero coincides with insert center. Q = 0: if tool zero coincides with tool tip (default).

Enabled: until a G49 or a T for tool change is programmed.

G50 G26
G50

Cancels the offset / rotation function G51

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

General G-Functions

G51
X,Y,Z:

Offset / rotation of the coordinate system on the plane

G51 [X...] [Y...] [Z...] [J...] [I] [K...]


coordinates of the new origin with respect to the current origin. angle between the abscissa of the new origin and the abscissa of the main origin. Positive for counterclockwise rotation.
Y

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

Offset of the coordinate system on the plane

G52 [X...] [Y...] [Z...] [I]


X, Y, Z: coordinates of the new origin with respect to the main origin I: incremental coordinates of the new origin (with respect to the last programmed origin). Enabled: until a G52 without parameters is programmed.

G53 G26
G53

Cancels mirror machining

G54 G26
G54

X-mirror machining (change sign to X coordinates)

Enabled: until another mirror function or a G53 is programmed.

G55 G26
G55

Y-mirror machining (change sign to Y coordinates)

Enabled: until another mirror function or a G53 is programmed.

10

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

General G-Functions

G56 G26
G56

Z-mirror machining (change sign to Z coordinates)

Enabled: until another mirror function or a G53 is programmed.

G57 G26
G57

XY-mirror machining (change sign to X and Y coordinates)

Enabled: until another mirror function or a G53 is programmed.

G58 G26
G58

ZX-mirror machining (change sign to Z and X coordinates)

Enabled: until another mirror function or a G53 is programmed.

G59 G26
G59

YZ-mirror machining (change sign to Y and Z coordinates)

Enabled: until another mirror function or a G53 is programmed.

G60 G26
G60

Cancels G61 (scaling factor)

G61 G26
K: X,Y,Z: F: Q:

Scaling factor

G61 K... G61 [X...] [Y...] [Z...] [F...] [Q...] [J...]


scaling factor (multiplier) to be applied to all axes. scaling factor to be applied to each axis. scaling factor to be applied to the feed rate. scale factor to apply to the feed speed of axis movements perpendicular to the working plane (Z for G17, Y for G18, X for G19).

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

Programmable zone scaling

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.

D1=: D2=: D3=: D4=: D5=:

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 for the definition of circle center in G2/G3

type of coordinates. absolute coordinates. incremental coordinates, with respect to circle starting point.

G67 G26
G67

Cancels G68/G69 static TCPM

12

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

General G-Functions

G68

Static TCPM for rotary tables

G68 [A...] [B...] [C...] [X...] [Y..] [Z...] [D1=...]


A, B, C: table rotation values. The system calculates the new position of the tool with respect to part zero after the rotation of the table. X, Y, Z: displacement values of the point of rotation with respect to table center. D1=... Table number (from 1 to 4. If not programmed D1=1). Enabled: until a G67 is programmed.

G69
A, B:

Static TCPM for rotary heads

G69 [A...] [B...] [I...] [J...] [Q...] [D1=...]


head rotation values. The system calculates the new position of the tool with respect to part zero after the rotation of the head. I, J, Q: positive or negative values to be added to the distance between head center and tool virtual point. I, J, Q, operate on the configured axes: spindle, abscissa and ordinate respectively. D1=: head number (from 1 to 8). (By default D1=1). Enabled: until a G67 is programmed.

G70 G26
G70

Inch system programming with CNC metric configuration

Enabled: until a G71 is programmed.

G71 G26
G71

Metric system programming with CNC inch configuration

Enabled: until a G70 is programmed.

G72 G26
G72

Cancels subprogram modal recall (G73)

G73
K:

Subprogram modal recall

G73 [K...] L...


workpiece zero translation request: K1 the workpiece zero is translated on the points (default). K2 the workpiece zero is not translated on the points.
S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040

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

Rounding off in the 180 range for rotary axes

G74 [A] [B] [C]


A, B, C: name of the rotary axis where to apply the rounding. Enabled: only in the block in which it is programmed. Note: for angles > 360.

G75

Cartesian coordinate programming (cancels G76)

G75 [X...] [Y...] [Z...]


Enabled: (default) until a G76 is programmed.

G76
G76 G76 G76

Polar coordinate programming

[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.

G67 G26 G77

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).

D1= : D2= : D3= : D4= :

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

Last point of a polygonal pocket without finish pass

G78 X... Y...


Circular pocket milling (roughing cycle)

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

Last point of a polygonal pocket with finish pass

G79 X... Y...


Circular pocket milling (roughing & finish cycle)

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:

D1=: D2=: D3=: D4=:

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).

G80 G67 G26 G80 G81


X, Y: Z: I:

Cancels fixed cycles

Drilling /spot facing fixed cycle

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

Deep mixed drilling cycle

[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:

Tapping fixed cycle

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:

Reaming fixed cycle

[X... Y...] Z... I... [Q...] [K...] [F...] [D8=...] [D9=1]


hole coordinates. hole bottom plane. hole starting plane. clearance plane for tool retraction at feed rate with spindle ON. dwell time at the bottom of the hole (in tenths of a second).
XY 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:

Boring fixed cycle

[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

K: I: F: D0=: D7=: D8=:

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=:

Spaced plane drilling fixed cycle

G88 [X... Y...] Z... J... [K...] [F...] [D8=...]


hole coordinates. first wall depth. drilling starting plane (end of Z - axis rapidmove). dwell time at the bottom of the hole (in tenths of a second). feed rate.
XY ZR J Z J1
Dwell K

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

Differentiated drilling fixed cycle (Only for S4000 Series CNCs)

[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

Absolute coordinate programming

Enabled: (default) until a G91 is programmed.

G91
G91

Incremental coordinate programming

Enabled: until a G90 is programmed.

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:

F-feed rate override

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...

Feed rate defined as inverse of block execution time

F: new feed rate. Enabled: until a G92, or a G93, G94, G95 with new F-values is programmed.

G94
G94 F...

F-feed rate in mm/min or inches/min

F: new feed rate. Enabled: until a G92, or a G93, G94, G95 with new F-values is programmed.

G95
G95 F...

F-feed rate in mm/rev or inches/rev

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:

Drift compensation (compensates for position offsets caused by servo drives)

G71 G26

to be programmed inMDImode.

G200
G200

Cancels G201 and G202 (cylindrical/polar programming)

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

Enabled: untilMetric system programming a G200 is programmed.

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:

Defines tool approach to profiled pockets

G71 G26

profile approach and exit point.

G710
G710

Cancels G711 (profile storing)

G711

Profile storing

G711 K... [X... Y...] [I...]


X,Y: profile approach point. K: profile identifier, from 31 to 40 (K = 31 by default). I: cutter radius compensation (I = 0 by default). Enabled: until a G710 is programmed.

24

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

General G-Functions

G721
I: J: K: Q:

Calculates and stores equidistant points on a profile

G721 I... J... K... [Q...] [D0=...]


distance between points (alternative to J). number of points (alternative to I). identifier of the profile stored with G711 (from 31 to 40). processing mode for the final points of the profile elements: Q1 (default) final points not stored. Q2 final points stored. processing mode for the final point of the profile: D0=1 (default) final point not stored. D0=2 final point stored.

D0:

G726
X,Y: Z: I: J: D1=: D2=:

Ruled surfaces between two profiles: first profile

G726 [X... Y...] Z... I... [J...] [D1=...] [D2=...]


starting point of the first profile. Z - coordinate of the first profile. distance between passes (for the first profile). stock allowance. absolute Z - coordinate for rapid tool-out with unidirectional passes (if not specified, passes will be considered bi-directional). incremental Z - coordinate for tool-out and tool repositioning at feed rate for unidirectional passes (D2=2 mm by default).

G727
X,Y: Z:

Ruled surfaces between two profiles: second profile

G727 [X... Y...] Z...


starting point of the second profile. Z-coordinate of the second profile.

G728
TRS X: TRS Y: TRS Z: ROT X: ROT Y:

Ruled surfaces between two profiles: execution

G728 [TRS [X] [Y] [Z]] [ROTX] [ROTY] [ROTZ]


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.


S4060D S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 S3035

25

General G-Functions

G730
G730

Cancels G731 (Only for S3000 Series CNCs)

G731
I: J:

High speed milling of profiles defined by points (Only for S3000 Series CNCs)

G731 [I...] [J] [Q] [D0=] [D1=] [D14=]


lowest feed rate allowed (I=200 mm/min by default). angle below which no feed rate compensation is applied (J=7 by default). Q: multiplication factor for machine acceleration (Q=1 by default). D0: tool path graphic display: D0=1: graphic display disabled (default value). D0=0: graphic display enabled. D1=: geometric filter on the programmed points. All the points whose distance from the theoretical curve is lower than D1 are ignored (D1=0 by default: the points are not filtered). D14=: coefficient of edge rounding-off (from 2 to 6). The higher the value of D14, the softer the movement of the axes, but the greater the rounding. Program with an average value, for instance D14=4. Available from 45990322 version. Enabled: until a G730 or a M30 is programmed.

G732
G732

Cancels G733

G733
K:

High speed milling of profiles defined by points with S speed ramp

G733 [K...] [Q...] [D0=...] [D1=...] [D8=]

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

Spiral milling: execution

G735
I:

Spiral milling

G735 I... [J...] [K...] [Q...] [Z...]


increment all along the profile (Q1: default) increment on 1 mmof profile (Q2) number of repetitions (Q3). direction of the increment: J1: increment on Z- (default). J2: increment on Z+. repetition of profile: K1: profile repeated with constant Z. K2: profile not repeated. If not programmed: K=1. increment type discriminator: Q1: all along profile. Q2: permmofprofile. Q3: value calculated in relation to Z and I. height at end of work.

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

G737 [Q...] [K1]


number of the section profile (from Q1 toQ10). Q=1 by default. if the section profile contains the K1 parameter, passes are calculated according to the I distance programmed in G736. If K1 is not programmed, passes will be calculated on the first section profile.

G738
J: X,Y :

Surfaces defined by a plane profile and one or more section profiles: execution

G738 [J...] [X... Y...]


with D0=1 in function G736, distance between passes in mil radius units. If not programmed J=1. with D0=1 in function G736, co-ordinate of mill start point. If not programmed the depth increment is performed during tool positioning to pocket center with a 3-axis move coordinate.
S4060D S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 S3035

28

General G-Functions

G26 G740
G740

Cancels G748 and G749

G26 G746
G746

Defers G748 cycle

G748

4-axis surface machining (S4045P and Export versions) or 4/5-axis (S3045P and S4060D) with rotary tables or tilting tables (dynamic TCPM)

G748 [A] [B] [C] [D0=...] [X...] [Y...] [Z...]


A, B, C: axis name. D0=: selects the operatingmode: D0=1 the table always rotates about the tool tip. D0=0 (default) the table rotates about the point where the tool tip was when the G748 was programmed. This point can be moved by programming the X..., Y..., Z... offset values. For a correct use of G748, the axis of rotation of the tables must be defined by performing the TABLE ZERO SETTING procedure. Enabled: until a G740 is programmed. (See Note on page 63).

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

Profile direction reversal

Enabled: until a G753 is programmed.

G760 G26
G760

Cancels G761

G761 G26
X,Y,Z: I,J,K: Q:

Axis travel delimitation

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=:

Opens profile pocket programming and sets parameters

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:

Profiled pocket milling cycle without finishing pass

G778 [X... Y...] [J...]


coordinates of mill positioning point before starting a cutting path. If this point is not programmed, the tool will move to the starting point of the first pass. distance between passes, inmillradiusunits(J=1.6bydefault).

J:

G779 G26
X,Y:

Profiled pocket milling cycle with finishing pass

G779 [X... Y...] [J...]


coordinates of mill positioning point before starting a cutting path. If this point is not programmed, the tool will move to the starting point of the first pass. distance between passes, inmillradiusunits(J=1.6bydefault).

J:

Grid pattern machining cycles


X, Y,: D1= D2= D3= D4= D5= D6= coordinates of the first hole . number of holes per line. D6 D2 distance between holes on D4 No. of the line. holes per angle formed by grid lines and D5 D3 column X - axis (D3 = 0 by default). number of holes per column Y No. of holes distance between holes on D1 per line the columns. X angle formed by grid columns and X - axis (D6=90 by default).

G780 G26
G780

Grid/circumference pattern machining repeat: execution

G781 G26

Grid pattern drilling/spot facing supercycle

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

G71 G26 G782 G26

Grid pattern deep mixed drilling supercycle

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).

G71 G26 G783 G26

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

Grid pattern tapping supercycle

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.

G71 G26 G785 G26 G78

Grid pattern reaming supercycle Circular pocket milling (roughing cycle)

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=...]

G71 G26 G786 G26 G78

Grid pattern boring supercycle Circular pocket milling (roughing cycle)

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=

G71 G26 G787 G26 G78

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.

D3= D4= D5=

G26 G791

Circumference pattern drilling/spot facing supercycle

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

Circumference pattern deep mixed drilling supercycle

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

G71 G26 G793 G26

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).

G71 G26 G794 G26

Circumference pattern tapping supercycle

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.

G71 G26 G795 G26

Circumference pattern reaming supercycle

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.

G71 G26 G26 G796

Circumference pattern boring supercycle

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).

G71 G26 G797 G26


X,Y: D1= D2= D3=

Circumference pattern machining repeat

G797 X... Y... D1=... D2=... [D3=...] [D4=...] [D5=...]


circumference center coordinates. number of figures. circumference radius with sign. If the radius is negative, figures will be machined CW; if the radius is positive they will bemachined CCW. angle formed by the first figure and the X-axis (D3=0 by default).
S4060D S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 S3035

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.

G71 G26 G26 G799

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

Tool length offset on an axis non-orthogonal to the machining plane

Axis: name of themachine axis to which the compensation is to be applied. Enabled: until cycle / program end.

G71 G26 G26 G840


G840

Cancels G841

Enabled: only in the block in which it is programmed.

G71 G26 G841 G26

Tool radius compensation in space

G841 X... Y... Z... I... J... K...


X,Y,Z: point coordinates I: radius compensation coefficient for the X-axis. J: radius compensation coefficient for the Y-axis. K: radius compensation coefficient for the Z-axis. Enabled: until a G840 is programmed.

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

37

General G-Functions

G71 G26 G845 G26


G845

Cancels G846

Enabled: only in the block in which it is programmed.

G71 G26 G846 G26

Manual axis control by handwheels during machining

G846 Axis1 Axis2..


Axis1 Axis2 ..: axes under system control. The others can be moved with the handwheels if enabled by PLC. Enabled: until a G845 is programmed.

G71 G26 G850 G26


G850

Cancels G851

Enabled: only in the block in which it is programmed.

G71 G26 G851 G26


Axis1, Axis2:

Part origin offset by handwheels

G851 Axis1 Axis2..


defines the axes to be offset. The axis displacement / handwheel turn depends on the selected handwheel pitch. Enabled: until a G850 is programmed.

G71 G26 G872 G26


X,Y,Z: I: F: R:

ON/OFF touch probe measuring cycle in space

G872 [X...] [Y...] [Z...] [I...] [F...] [R]


expected coordinates of the point to bemeasured. clearance. 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.

G71 G26 G873 G26


X,Y,Z: I:

Touch/copying probe measuring cycle in space

G873 [X...] [Y...] [Z...] [I...] [F...] [R]


expected coordinates of the point to bemeasured. clearance.
S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040

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:

G71 G26 G900 G26


G900

Cancels G901

G71 G26 G901 G26


G901 [I1]

Edit and graphic execution disabling during machining

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.

G71 G26 G26 G910


G910

Cancels G911

G71 G26 G911 G26


G911

Disables travel limit control

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.

G71 G26 G997 G26


G997

Cancels G998 (Only for S3000 Series CNCs)

G71 G26 G998 G26


G998

Block sequence number check (Only for S3000 Series CNCs)

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

G71 G26 G1000 G26


G1000

Cancels G1001

G71 G26 G1001 G26


G1001

Graphic execution of a program sequence

During program execution on themachine, the program section defined after a G1001 will be executed only in graphicmode.

G71 G26 G4725 G26


G4724

Cancels G4725 (only for S4000 Series CNCs)

G71 G26 G4725 G26


I: J: Q: K:

Planetary milling (only for S4000 Series CNCs)

G4725 [I...] [J...] [Q...] [K...]


radius of the circle in mm of the circular mill path (if not programmed I=1). profile increase inmmbetweencircles (if not programmed J=1). machining allowance (if not programmed Q=0). machining mode selection: K=1 flushmachining. K=2 not flushmachining. This parameters defines the direction of machining i.e. according to the profile path or not. Parameter K1 indicates that machining is agreeing and the movement between circles is flush. Parameter K2 indicates that machining is disagreeing and the movement between circles is opposite to the flush.

G71 G26 G9999 G26


G9999

Synchronization of program execution with tool path display

Enabled: only in the block in which it is programmed.

40

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

Copying G-Functions

COPYING G-FUNCTIONS
G877
Limits, mode and copying plane

G877 PLANE K... J...


PLANE:plane on which the polygon defining the copying area limits lies (XY or YZ or XZ). K: defines copying plane: K0 = XY plane. K1 = ZX plane. K2 = YZ plane. J: defines scanning mode: J0 manual scanning. J1 J2 J3 J4 J5 J7 J8 J9 J10 J11 parallel bi-directional passes and step increments perpendicular to the passes. parallel bi-directional passes and step increments at an angle with respect to the passes. parallel unidirectional passes and rapid return performed at a clearance height. parallel unidirectional passes and rapid return performed at a clearance height (with Z down inhibit). plane profile with increments on the perpendicular axis at completion of each pass. probe qualification cycle. radial bi-directional passes rotating about a point. radial unidirectional passes with rapid return performed at a clearance height. radial unidirectional passes with rapid return performed at a clearance height (with Z down inhibit). 3-D contouring along a programmed profile.

G879
I: J: Q:

Closing of limit definition

G879 [I...] [J...] [Q...]


probe axis upper limit in copyingmode5. probe axis lower limit in copyingmode5. pass angle for inclined copying (J1, J2, J3 and J4 copying modes).

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

41

Copying G-Functions

G880
G880

Profile end in copying mode 11

The profile to be copied shall be programmed between a G881 and a G880 code.

G881
X or Y or Z:

Copying cycle start

G881 X... Y... I... K... Q... F...


coordinates of a point (not reached by the probe) providing the approach direction to the model starting from the current probe position. I: pass increment, positive or negative. For radial copying (mode 8) the increment is defined in degrees. K: copying direction after contacting themodel: K1 = probe to the left of the model. K2 = probe to the right of the model. Left or right position is defined with model profile referred to a Cartesian axis system in which the abscissa and the ordinate are respectively: XY for the XY-copying plane (K0 in G877). ZX for the ZX-copying plane (K1 in G877). Z for the YZ-copying plane (K2 in G877). Q: percentage of copying speed variation during pass increment: Q1: increment speed = copying speed. E.g. Q0.5: increment speed = 1/2 copying speed (Q=0.25 by default). F: Copying speed. The speed in the first two profile learning passes (if the G888 code is programmed) is equal to the F defined by the G888. Enabled: until completion of the copying cycle.

G882
G882

Digitizing cycle end

G883
I:

Digitizing cycle

G883 I... J... K... Q... [D0=...] [D1=...] [AXES] LNAME:


chordal error - maximum allowable error between the theoretic curve and the segmented line linking the stored points (I = 0.02 by default). maximum chord length (J = 1 by default).
S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040

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

Copying parameters for unidirectional passes (3, 4, 9 and 10 copying modes)

G884 X... Y... Z... I... J... R


X or Y or Z: absolute coordinate for probe rapid repositioning between the passes. probe retraction travel covered at copying speed I: (I=3 mmbydefault). J: probe approaching travel covered at copying speed (last part of probe rapid repositioning between the passes) (J=3 mm by default). R: probe retraction and repositioning in rapid.
S4060D S4045P S3045P S4045 S3045 S4040GE S3040GE S4040 S3040 S3035

43

Copying G-Functions

G884
X,Y,Z: Q:

Radial copying parameters (8, 9, 10 copying modes)

G884 [X...] [Y...] [Z...] [Q...]


(X... Y... or X... Z... or Y... Z...) coordinates of pass rotation center (pole) (pole inside copying limits). limit angle for copying cycle end. The default value is Q=180 with respect to the starting angle. Incremental programming is possible by adding I to the angle.

G888
I: J: Q: F:

Profile learning parameters

G888 I... J... Q... F...


slowing down distance. Speed reduction begins I mm before the critical zone and ends I mm after the critical zone. critical radius of curvature. J=2 x Probe Radius by default. chord length for the calculation of the radii of curvature. Q= 1/2 Probe Radius by default. copying speed for the profile sections adjacent to the critical points.

G889
I: J: K:

Copying probe data

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

Zeroing deflections with inclined probes

Shall be programmed in MDI after the G891 defining the angle of rotation.

G891

Angles of rotation with inclined probes

G891 [ROTX...] [ROTY...] [ROTZ...]


ROTX...: rotation about X-axis. ROTY...: rotation about Y-axis. ROTZ...: rotation about Z-axis.

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

45

Logical Mathematical Operators

LOGICAL MATHEMATICAL OPERATORS


One element operators
SIN COS TAN ASN ACS ATN SQR ABS INT NEI LOG LGT sine of an angle in degrees and decimals cosine of an angle in degrees and decimals tangent of an angle in degrees and decimals arcsine in degrees and decimals arccosine in degrees and decimals arctangent in degrees and decimals square root absolute value truncated integer value closest integer value natural logarithm decimal logarithm change of sign

Two element operators


+ * / ^ addition subtraction multiplication division power

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

Character String Operators

CHARACTER STRING ENGRAVING


Character size:
P4

P1 = base P2 = height (max. 2.5xP1) P3 = pitch P4 = angle

P2

P1 P3

Clearance and engraving depth:

P5 = P6 =

clearance depth engraving depth

P5
0 piece Z

P6

String position (on a straight line):


Y

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

Scale factor (only for S4000 Series CNCs)

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

Character String Engraving


Circular engraving position:
P9
Y

P7 =

X-coordinate of circumference center P8 = Y-coordinate of circumference center P9 = starting angle P10 = circumference radius (positive)

P7 P8
O piece

P10+

Circular engraving position:


Y O pezzo X

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

Storing Geometric Elements

STORING GEOMETRIC ELEMENTS Storing points


Point defined by Cartesian coordinates
Ep

Ep = G20 Xp Yp

Yp

Xp

Point defined by polar coordinates


Ep

G76 Ep = G20 Xp Yp G75


O

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

Storing Geometric Elements


Point as intersection of two straight lines
Y Er2 Er1 Ep

Ep = G13 X Y J, G13 X Y J Ep = Er1, Er2

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

Point as intersection of a circle and a straight line


Y Ep1 Ep2 Er

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

Storing Geometric Elements

Storing straight lines


Straight line point - angle
Y

Er = G13 Xp Yp Jr Er = G13 Ep Jr

Ep

Er

Yp

Jr
O

Xp

Straight line circle - angle


Y

Er = G13 Xc Yc Ic Jr Er = G13 Ec Jr

Ec

Yc

Ic

Er

Jr
O

Xc

Straight line through two points


Y

Er = G10 Xp1 Yp1, G11 Xp2 Yp2 Er = G10 Ep1, G11 Ep2

Yp1 Yp2
O

Ep1 Er Ep2 Xp2 Xp1


X

Straight line tangent to two circles


Y

Er = G10 Xc1 Yc1 Ic1, G11 Xc2 Yc2 Ic2 Er = G10 Ec1, G11 Ec2

Ec2 Yc2 Yc1


O

Ic2

Ec1
Ic1

Er

Xc1

Xc2

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

51

Storing Geometric Elements


Straight line through a point and tangent to a circle
Y

Er = G10 Xp Yp, G11 Xc Yc Ic Er = G10 Ep, G11 Ec

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

Sraight lines parallel to a pre-defined straight line


Y

Er2 = Er1 Qd1 Er3 = Er1 Q-d2


O

Er 2 d1 d2 Er 1 Er 3

Straight line with reverse direction


Y

Er2 = -Er1

Er 1 Er 2
O X

52

S4060D

S4045P S3045P

S4045 S3045

S4040GE S3040GE

S4040 S3040

S3035

Storing Geometric Elements

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

Circle of known radius tangent to two straight lines


Y

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

Storing Geometric Elements


Circle of known radius through two circles
Y

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

Circle through a point and tangent to a circle


Y

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

Storing Geometric Elements


Circle through three points
Y

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

Storing Geometric Elements


Concentric circles at a given distance
Y

Ec2 = Ec1 Qd1 Ec3 = Ec1 Q-d2

Ec1 Ec2 d2
d1

Ec3

Concentric to a pre-defined circle


Y

Ec2 = Ec1 I2

Ec2 Ec1 Er Ic1

Circle with reverse direction Ec2 = -Ec1


Y

Ec1

Ec2

Circle tangent to three elements


Y

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

Storing Geometric Elements


Circle tangent to two elements in a point (belonging to one of the two elements) Ec2 = Er, G20 Xp1 Yp1, Ec1
Y

Er

P1 Ec2 Ec1
X

Storing origin offset/rotation


Direct definition Eo = G51 Xp Yp Jo
Y

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 Geometric Elements

Storing distance
Distance between two points

Ed = G20 Xp1 Yp1, G20 Xp2 Yp2 Ed = Ep1, Ep2

Ed Ep1
O

Ep2

Distance between a point and a stright line


Y

Ed = G20 Xp Yp, G13 Xr Yr Jr Ed = Ep, Er

Ep Ed Er

Distance between two straight lines


Y

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

DISP -2 DISP -1 DISP 0 DISP ...

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

Potrebbero piacerti anche