You are on page 1of 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.

Four CNC models are referenced for S4000 Series (S4040,


S4045, S4045P and S4060D).
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-speed machining on complex die surfaces.

S4045P CNC with a fast MASTER processor for milling


S3045P machines equipped with rotating heads and tables
requiring the TCPM (Tool Center Point Management)
function.

S4045 CNC for milling machines, boring mills, digitizing /


S3045 copying systems and complex machining centers.

S4040GE Enhanced Geometry Programming Option for S4040


S3040GE and S3040 CNCs.

S4040 CNC for machining centers and machining


S3040 cells,milling machines, boring mills and transfer lines.

S3035 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 07.02

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 (G1) Linear interpolation

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

Clockwise circular/helical
G02 (G2) 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.

Counterclockwise circular
G03 (G3) helical interpolation

G03 X… Y… I… J… [Z…]
G03 X… Z… I… K… [Y…]
G03 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.

G04 (G4) Timed dwell

G04 K...
K: pause time in units of tenths of a second.
Enabled: only in the block in which it is programmed.

S4045P S4045 S4040GE S4040


S4060D S3035 1
S3045P S3045 S3040GE S3040
General G-Functions

G09 (G9) Deceleration at block end

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


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

G10 First point or circle that defines a straight line

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


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

G11 Second point or circle that defines a straight line

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


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

Straight line, at a known angle,


G13 through a point or tangent to a circle

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


X,Y: point or circle center
coordinates. Circle J...
programmed in the
I: radius of the circle of previous block
I...
tangency (omitted if it is a Y...
point). K2
J: angle between straight line K1
and X - axis.
K: Selects one of the inter- X...
sections between the
straight line and the circle programmed in the previous block .
Enabled: only in the block in which it is programmed.

S4045P S4045 S4040GE S4040


2 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

Cancels MASTER-SLAVE axes (G15)


G14 (Only with Master-Slave option)
G14

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 second machine axis.
Axis3: axis exchanged with the third machine axis.
Enabled: until a G17, a G18, or a G19 is programmed.

Plane selection (XY is the machining plane,


G17 Z is the perpendicular axis)

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

Plane selection (ZX is the machining plane,


G18 Y is the perpendicular axis)

G18
Enabled: until a G17 or a G19 is programmed.

S4045P S4045 S4040GE S4040


S4060D S3035 3
S3045P S3045 S3040GE S3040
General G-Functions

Plane selection (YZ is the machining plane, X is the


G19 perpendicular axis)

G19
Enabled: until a G17 or a G18 is programmed.

G20 Circle of known center and radius

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


X,Y: circle center coordinates.
Y
May be omitted if coinciding
with the center of the last K2
programmed circle. K1
I +

I: circle radius. If omitted, the


circle will be a point. Positive:
counterclockwise circle O X
Negative: clockwise circle.
K: Discriminates between two intersection points (with a straight line or
another circle).
Enabled: only in the block in which it is programmed.

G21 Chamfer

G21 J...
J: Chamfer value (distance from
Y J J
the vertex).
Enabled: only in the block in which it is
programmed.

O X

G21 Linking radius

G21 [I...]
I: radius of the connecting circle
Y
Positive: counterclockwise
direction.
Negative: clockwise direction. I
(If not programmed the last
value is valid).
Enabled: only in the block in which O X
It is programmed.

S4045P S4045 S4040GE S4040


4 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

G25 Cancels G26

G25

G26 Axis reversal compensation (default on)

G26
Enabled: until a G25 is programmed.

First point of a SPLINE


G27 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 Cusp point of a SPLINE curve

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

G29
G26 Last point of a SPLINE curve

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


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

Cancels G31 and re-establishes deceleration


G30
G26 at block end
G30
Enabled: until a G31 is programmed.

S4045P S4045 S4040GE S4040


S4060D S3035 5
S3045P S3045 S3040GE S3040
General G-Functions

Continuous motion mode with automatic feed


G31 adjustment

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


I: minimum speed, (I=0 by default).
Q: multiplication factor for machine acceleration (Q=1 by default).
D14: 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.

End of internal subroutine


G32 and return to the main program
G32

Opens programming of the profile


G34
G26 delimiting the zone of ruled surface to be machined

G34 [I0]
I0: the delimitation profile is not offset by the active tool radius
compensation.

Ends programming of the profile delimiting the zone


G35
G26 of ruled surface to be machined
G35

G36
G26 Disables storing of actual machine axis path

G36

G37
G26 Enables storing of actual machine axis path

G37

G38
G26 Closes the file opened with a G39

G38

S4045P S4045 S4040GE S4040


6 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

G39 Opens a file to store actual machine axis path

G39 K... LNAME:


K: 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 Exit from profile and cutter compensation disable

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


K: selects profile exit mode:
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.
X, Y: coordinates of the point to be reached after exiting the profile. Cutter
compensation is disabled at this point.

G41 Enables tool radius compensation, tool left of profile

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


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

S4045P S4045 S4040GE S4040


S4060D S3035 7
S3045P S3045 S3040GE S3040
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.
Program together with D0 parameter.
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. Program together with D0 parameter.
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.

Paraxial radius compensation: the


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

Paraxial radius compensation: the


G44 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 Recalls and enables tool length compensation

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


K: compensation number.
I: finish stock value.
Note: program G48 I0 to disable the active length compensation.

S4045P S4045 S4040GE S4040


8 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

G49 Defines cylindrical mill radius

G49 Kn [I...]
Kn: recall cutter compensation (n).
I: finish stock value.
G49 I...
I: cutter radius.
Enabled: until a G49 or a T for tool change is programmed.

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

G49 I... [Q...]


I: spherical mill radius.
Q: 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 Defines toroidal mill radius (for G841/G736/G726)

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


I: toroidal mill radius.
J: cutter (or insert) radius.
Q: distance between tool zero
+ +
and tool tip: Q
Q = J: if tool zero coincides J
I
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 Cancels the offset / rotation function G51

G50

S4045P S4045 S4040GE S4040


S4060D S3035 9
S3045P S3045 S3040GE S3040
General G-Functions

Offset / rotation of the coordinate


G51 system on the plane
G51 [X...] [Y...] [Z...] [J...] [I] [K...]
X,Y,Z: coordinates of the new origin
Y
with respect to the current
origin.
J: angle between the abscissa J
X
of the new origin and the
abscissa of the main origin.
O Y X
Positive for counterclockwise
rotation.
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 Cancels mirror machining

G53

X-mirror machining
G54
G26 (change sign to X coordinates)

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

Y-mirror machining
G55
G26 (change sign to Y coordinates)

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

S4045P S4045 S4040GE S4040


10 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

Z-mirror machining
G56
G26 (change sign to Z coordinates)

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

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

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

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

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

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

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

G60
G26 Cancels G61 (scaling factor)

G60

G61
G26 Scaling factor

G61 K...
G61 [X...] [Y...] [Z...] [F...] [Q...] [J...]
K: scaling factor (multiplier) to be applied to all axes.
X,Y,Z: scaling factor to be applied to each axis.
F: scaling factor to be applied to the feed rate.
Q: 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.

S4045P S4045 S4040GE S4040


S4060D S3035 11
S3045P S3045 S3040GE S3040
General G-Functions

G61 Programmable zone scaling

G61 [X...] [Y...] [Z...] D0=... D1=...


D2=... D3=... D4=... [D5=...] [D6=...]
[D7=...] [D8=...] [D9=...] [D10=...]
X: scaling factor for X-axis first First Junction Second Junction Third
zone. zone zone zone zone zone

Y: scaling factor for Y-axis first Factors Factors Factors


zone. X D5 D8
Y D6 D9
Z: scaling factor for Z-axis first Z D7 D10
zone.
D1 D2 D3 D4
D0: selection of the axis along
which the 3 zones are defined:
D0=1 X-axis.
D0=2 Y-axis.
D0=3 Z-axis.
D1=: end coordinate of the first zone.
D2=: starting coordinate of the second zone (>D1).
D3=: end coordinate of the second zone (>D2).
D4=: starting coordinate of the third zone (>D3).
D5=: 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.

Type of coordinates for the definition


G62 of circle center in G2/G3
G62 K...
K: type of coordinates.
K1: absolute coordinates.
K2: incremental coordinates, with respect to circle starting point.

G67
G26 Cancels G68/G69 static TCPM

G67

S4045P S4045 S4040GE S4040


12 S4060D S3035
S3045P S3045 S3040GE S3040
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 Static TCPM for rotary heads

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


A, B: 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.

Inch system programming with


G70
G26 CNC metric configuration
G70
Enabled: until a G71 is programmed.

Metric system programming


G71
G26 with CNC inch configuration

G71
Enabled: until a G70 is programmed.

G72
G26 Cancels subprogram modal recall (G73)

G72

G73 Subprogram modal recall

G73 [K...] L...


K: 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 S4045 S4040GE S4040


S4060D S3035 13
S3045P S3045 S3040GE S3040
General G-Functions

L: 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.
Enabled: until a G72 is programmed.

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 Polar coordinate programming

G76 [X...] [Y...] (with G17)


G76 [Z...] [X...] (with G18)
G76 [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=...]
X,Y: first point of the pocket.
I: stock allowance, removed only if a finish pass is programmed by a
G79.
J: distance between passes in tool radius units (default value J = 1.6).
K: edge linking radius.
D0: machining mode selection.
D0=0 from the border toward the center, with Z increments only
(default).

S4045P S4045 S4040GE S4040


14 S4060D S3035
S3045P S3045 S3040GE S3040
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
D1= : pocket starting depth.
D2= : pass depth.
D3= : pocket bottom depth.
D4= : 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 mm by default).
Note: the following blocks define the pocket profile.

G78 Last point of a polygonal pocket without finish pass

G78 X... Y...

G78 Circular pocket milling (roughing cycle)

G78 X... Y... K... [Q...] [I...] [J...]


[D0=...][D1=...] [D2=...] [D3=...] [D4=...] [D6=...]
[D7=...] [D9=...] [D10=...] [D11=...] [D12=...]
X,Y: pocket center coordinates.
K: pocket diameter (negative = clockwise cutting).
Q: internal diameter.
I: stock allowance (default value I=0).
J: distance between passes in tool radius units (default value J = 1.6).
D0: 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.

S4045P S4045 S4040GE S4040


S4060D S3035 15
S3045P S3045 S3040GE S3040
General G-Functions

D1=: pocket starting depth.


D2=: pass depth.
D3=: pocket bottom depth.
D4=: 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).
D9=: clearance value from pocket walls during tool repositioning atend of
cycle (D9=0.5 mm by default).
D10: 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.
D11: 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).

G79 Last point of a polygonal pocket with finish pass

G79 X... Y...

G79 Circular pocket milling (roughing & finish cycle)

G79 X... Y... K... [Q...] [I...] [J...]


[D0=...][D1=...] [D2=...] [D3=...] [D4=...]
[D5=...] [D6=...] [D7=...] [D9=...]
X,Y: pocket center coordinates.
K: pocket diameter (negative = clockwise cutting).
Q: internal diameter.
I: stock allowance (default value I=0).
J: distance between passes in tool radius units (default value J = 1.6).
D0: 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.
D1=: pocket starting depth.
D2=: pass depth.
D3=: pocket bottom depth.
D4=: clearance distance (default value D4 = 2 mm).

S4045P S4045 S4040GE S4040


16 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

D5=: radius value for tool automatic approach and exit during the finish
pass (default value D5 = I).
D6=: wall taper rate (default value D6=0 - vertical wall).
D7=: percentage of feed rate variation during depth increment (default
value D7=1).
D9=: clearance value from pocket walls during tool repositioning at end
of cycle (D9=0.5 mm by default).

G80 Cancels fixed cycles


G67
G26
G80

G81 Drilling /spot facing fixed cycle

G81 [X... Y...] Z... [I...] J... [Q...] [K...]


[F...] [D8=...] [D9=1] [D10=...] [D11=...] [D13=...]
X, Y: hole coordinates.
Z: hole bottom plane. XY XY
Q Q
I: depth increment prior to dwell J J
for chip breakage. I
Dwell K
J: hole starting plane. I
Dwell K
Q: Z axis clearance plane. I
Dwell K
Dwell K
K: dwell time for chip breakage
(in tenths of a second, in Z
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.

S4045P S4045 S4040GE S4040


S4060D S3035 17
S3045P S3045 S3040GE S3040
General G-Functions

G82 Deep mixed drilling cycle


G82 [X... Y...] Z... I... J... [Q...] [K...] [F...]
[D0=...] [D7=1] [D8=...] [D9=1] [D10=...]
[D11=...] [D12=...] [D13=...] [D14=...]
X, Y: hole coordinates.
Q
Z: hole bottom plane. XY
I: depth increment prior to dwell J
*
for chip breakage. F D13
D11
I
J: hole starting plane. D10
I D10
Q: Z axis clearance plane. I
D12 D0
K: dwell time for chip breakage I
* D0
(in tenths of a second, in I D14
D0
*
alternative to D10). I D14
D0
*
I D14
F: feed rate. Z
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.

S4045P S4045 S4040GE S4040


18 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

Deep drilling fixed cycle


G83 with tool retraction for chip discharge

G83 [X... Y...] Z... J... I... [Q...] [K...] [F...]


[D0=...] [D7=1] [D8=...] [D9=1]
X, Y: hole coordinates.
Z: hole bottom plane. XY Q
I: depth increment prior to (tool) J
return for chip discharge. I
J: hole starting plane and tool D0=xx
retraction plane for chip I-10% D0=xx
discharge.
Z
Q: Z - axis clearance plane.
K: dwell time for cheap breakage at the each increment (in tenths of a
second).
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 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 Tapping fixed cycle

G84 [X... Y...] Z... J... F... [I...] [Q...]


[K...] [D8...] [D9=1]
X, Y: hole coordinates.
XY
Z: hole bottom plane. Q
J: hole starting plane. J
Restoring previous
spindle rotation
F: thread lead in thousands of a
mm.
I: defines a dwell time at the Z Spindle reversal
bottom of the hole (in tenths of
a second) before the spindle inversion command for a DC spindle
motor without transducer.
Q: clearance plane for tool retraction at feed rate with spindle in reverse
rotation.
K: 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 spindle motors equipped with transducer (rigid tapping).
S4045P S4045 S4040GE S4040
S4060D S3035 19
S3045P S3045 S3040GE S3040
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 Reaming fixed cycle

G85 [X... Y...] Z... I... [Q...] [K...] [F...]


[D8=...] [D9=1]
X, Y: hole coordinates.
XY
Z: hole bottom plane. Q
J: hole starting plane. J
Q: clearance plane for tool
retraction at feed rate with
spindle ON. Dwell K Z
K: dwell time at the bottom of the
hole (in tenths of a second).
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 Boring fixed cycle

G86 [X... Y...] Z... J... [Q...] [K...] [I...]


[F...] [D0=...] [D7=...] [D8=...] [D9=1]
X, Y: hole coordinates.
XY
Z: hole bottom plane. Q
J: hole starting plane. Restoring spindle
J rotation
Q: clearance plane for tool
retraction in rapid with spindle
OFF. Dwell K Z Spindle stop (I)
K: dwell time at the bottom of the
hole with spindle ON (in tenths of a second).
I: dwell time at the bottom of the hole with spindle OFF (in tenths of a
second).
F: feed rate
D0=: angle of the bore cutting edge after spindle orientation performed by
the PLC in the same direction as the rotation direction.
D7=: tool off the wall value along D0 angle (D7=0.5 by default).
D8=: scaling factor for rapid positioning feed (value include between 0
and 1; D8=1 by default). (Only for S4000 CNCs).
S4045P S4045 S4040GE S4040
20 S4060D S3035
S3045P S3045 S3040GE S3040
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 Spaced plane drilling fixed cycle

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


X, Y: hole coordinates. XY ZR
Z: first wall depth. J
J: drilling starting plane (end of
Z - axis rapid move). Z
K: dwell time at the bottom of the J1
hole (in tenths of a second).
Dwell K
F: feed rate. Z1

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

Differentiated drilling fixed cycle


G89 (Only for S4000 Series CNCs)

G89 [X... Y...] Z... J... [I...] [K...] [Q...] [F...] [S...]
[D9=1] [D10=...] [D14=...] [D15=...]
[D16=...] [D17=...] [D18=...] [D19=...]
[D20=...] [D21=...] [D22=...] [D23=...]
X,Y : plane hole coordinates.
XY Q
Z: hole bottom plane. J
D14
J: hole starting plane. F... S...
D21 Dwell D22
I: depth increase for chip D15

Dwell K D10
breakage. Dwell K
FD16 SD17 D23=1
D23=0 Rapid
Q: rapid return position at
D21 Dwell D22
end of hole (Q=J if not D18
programmed).
K: pause for chip breakage in FD19 SD20

tenths of a second Z
(K=0 by default).
F: upper zone feed from J to D15. Last programmed F is used if in the
G89 is not programmed.
S: upper zone spindle speed from J to D15. Last programmed S is used
if in the G89 is not programmed.

S4045P S4045 S4040GE S4040


S4060D S3035 21
S3045P S3045 S3040GE S3040
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 between D15 and Z (if D18 is not programmed).
D17=: speed used in intermediate zone, between D15 and D18 (if D18 is
programmed) or between D15 and Z (if D18 is not programmed).
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 Absolute coordinate programming

G90
Enabled: (default) until a G91 is programmed.

G91 Incremental coordinate programming

G91
Enabled: until a G90 is programmed.

S4045P S4045 S4040GE S4040


22 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

Note: As an alternative, program the I function after the coordinates of the


axes that are to be moved incrementally (example: X100Y10I).

G92 F-feed rate override

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 Feed rate defined as inverse of block execution time

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

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

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

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

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

G98 Cancels G99

G98

Drift compensation (compensates for position


G99 offsets caused by servo drives)

G99

G71
G26
Note: to be programmed in MDI mode.

Cancels G201 and G202


G200 (cylindrical/polar programming)

G200

S4045P S4045 S4040GE S4040


S4060D S3035 23
S3045P S3045 S3040GE S3040
General G-Functions

G201 Cylindrical programming

G201 J... [K...]


J: Metric
cylinder system
radius programming
in millimeters.
K: withthe
specifies CNC inch
unit of configuration
measure for the rotary axis coordinates:
K1 degrees (default).
K2 millimeters.
Enabled: until a G200 is programmed.

G202 Polar programming

G202

G71
G26
Enabled: until a G200 is programmed.

Storing profile elements that have not been


G666 machined using the collision control
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
characters max., only for S3000 Series).
Note: the program resides in system memory; this storing procedure is
possible only in the Graphic Execution mode.

G701 Defines tool approach to profiled pockets

G701 [X... Y...]

G71
G26
X, Y: profile approach and exit point.

G710 Cancels G711 (profile storing)

G710

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.

S4045P S4045 S4040GE S4040


24 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

Calculates and stores equidistant


G721 points on a profile

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


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

G726 Ruled surfaces between two profiles: first profile

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


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

Ruled surfaces between two


G727 profiles: second profile

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


X,Y: starting point of the second profile.
Z: Z-coordinate of the second profile.

G728 Ruled surfaces between two profiles: execution

G728 [TRS [X…] [Y…] [Z…]]


[ROTX…] [ROTY…] [ROTZ…]
TRS X: X - axis offset by a given value.
TRS Y: Y - axis offset by a given value.
TRS Z: Z - axis offset by a given value.
ROT X: rotation about the X - axis by a given value.
ROT Y: rotation about the Y - axis by a given value.
ROT Z: rotation about the Z - axis by a given value.
S4045P S4045 S4040GE S4040
S4060D S3035 25
S3045P S3045 S3040GE S3040
General G-Functions

G730 Cancels G731 (Only for S3000 Series CNCs)

G730

High speed milling of profiles defined by points


G731 (Only for S3000 Series CNCs)

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


I: lowest feed rate allowed (I=200 mm/min by default).
J: 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 Cancels G733

G732

High speed milling of profiles defined by points


G733 with S speed ramp

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


[D1=...] [D8=…]
K: G71
G26edge rounding tolerance. To prevent jerks on the axes, geometrical
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.
Q: work acceleration multiplication factor. (By default: Q= value
configured in the system SETUP). Must not exceed the machine’s limit
acceleration, normally its rapid rate. The higher the value of Q, the
lower the work time.

S4045P S4045 S4040GE S4040


26 S4060D S3035
S3045P S3045 S3040GE S3040
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.
D1=: 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).
D1=0: it cancels geometric filter.
D8=: “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

G734 Spiral milling: execution

G734

G735 Spiral milling

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


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

S4045P S4045 S4040GE S4040


S4060D S3035 27
S3045P S3045 S3040GE S3040
General G-Functions

Surfaces defined by a plane profile and one or


G736 more section profiles: plane profile and parameters

G736 I... [X... Y...] [J...] [K...] [Q...] [D0=...] [D1=...]


[D2=...] [D3=...] [D4=...] [D5=...] [D8=1]
I: distance between passes on the section profile containing the K1
parameter (see G737).
X,Y: tool approach point to the plane profile.
J: finish stock allowance.
K: machining mode for the linking radii of the plane profile, depending on
the section profile:
K1 variable radii (default value).
K2 constant radii.
Q: selects the type of passes for open plane profiles:
Q1 unidirectional passes (default value).
Q2 bi-directional passes.
D0: selects type of milling:
D0=0 plane milling (default).
D0=1 special use of G736 for pocketing concaves surface.
D0=2 spiral milling.
D1=: Z-rapid move out coordinate for unidirectional passes.
D2=: tool clearance value for unidirectional pass end/start.
(D2 = 2 by default).
D3=: spiral milling cord error (default D3=0.01 when using D0=2).
D4=: minimum spiral milling cord (dafault D4=0.1 when using D0=2).
D5=: maximum spiral milling cord (default D5=2 when using D0=2).
D8=1: programs island milling cycle, on condition that D0=1 is programmed.

Surfaces defined by a plane profile and one or


G737 more section profiles: section profiles

G737 [Q...] [K1]


Q: number of the section profile (from Q1 to Q10). Q=1 by default.
K1: 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.

Surfaces defined by a plane profile and one or


G738 more section profiles: execution

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


J: with D0=1 in function G736, distance between passes in mil radius
units. If not programmed J=1.
X,Y : 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.
S4045P S4045 S4040GE S4040
28 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

G740
G26 Cancels G748 and G749

G740

G746
G26 Defers G748 cycle

G746

4-axis surface machining (S4045P and Export


G748 versions) or 4/5-axis (S3045P, S4060D and S4045P)
with rotary tables or tilting tables (dynamic TCPM)
G748 [A] [B] [C] [D0=...] [X...] [Y...] [Z...]
A, B, C: axis name.
D0=: selects the operating mode:
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 64).

4-axis surface machining (S4045P and Export


G749 versions) or 4/5 axis (S3045P, S4060D and S4045P)
with 1/2-axis rotary heads (dynamic TCPM)

G749 [A] [B] [C] [I...] [J...] [Q...] [K...] [D0=1] [D1=...]
A, B: rotary axis name.
I,J,Q: 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 64).

S4045P S4045 S4040GE S4040


S4060D S3035 29
S3045P S3045 S3040GE S3040
General G-Functions

G750
G26 Cancels G751

G750

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: X - axis offset by a given value.
TRS Y: Y - axis offset by a given value.
TRS Z: Z - axis offset by a given value.
ROT X: rotation about the X - axis by a given value.

G78
ROT Y: 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.

G753 Cancels G754

G753

G754
G26 Profile direction reversal

G754
Enabled: until a G753 is programmed.

G760
G26 Cancels G761

G760

G761
G26 Axis travel delimitation

G761 [X...] [Y...] [Z...] [I...] [J...] [K...] [Q...] [F...]


[D0=...] [D1=...] [D2=...] [D3=...] [D4=...] [D5=...]
X,Y,Z: lower axis travel limits.
I,J,K: upper axis travel limits for X,Y and Z axis respectively.
Q: selects NC behaviour in case of axis overtravel with respect to the
programmed limits:

S4045P S4045 S4040GE S4040


30 S4060D S3035
S3045P S3045 S3040GE S3040
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 (only with Q1)(D1=1 by default).
D2=: tool clearance value from pocket walls outside the limits
(only with Q1)(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 plane movements to detachment position:
D5=0: programmed F (default).
D5=1: rapid.
Enabled: until a G760 is programmed.

Cancels management Roll-Over axes


G773
G26 (only for S4000 Series CNCs)

G773

Roll-Over rotary axes


G774
G26 (only for S4000 Series CNCs)

G774 [A] [B] [C] [D0=...] [D1=...]


A, B, C: name of the rotary axis where to apply the Roll-Over management.
D0: selects type of activation:
D0=0 G774 not active automatically to the beginning of every block
(D0=0 by default).
D0=1 automatic activation of G774 function at the beginning of
every block.
D1: selects type of positioning:
D1=0 positioning of the rotary axis not for the shortest way
(D1=0 by default).
D1=1 positioning of the rotary axis for the shortest way.
Enabled: until a G760 is programmed.

S4045P S4045 S4040GE S4040


S4060D S3035 31
S3045P S3045 S3040GE S3040
General G-Functions

Opens profile pocket programming


G777
G26 and set parameters

G777 Z... J... I... [Q...] [D1=...] [D2=...]


[D3=...] [D4=...] [D5=...] [D6=...] [D7=1]
Z: pocket bottom depth.
J: starting depth.
I: pass depth.
Q: clearance height for tool rapid out moves (Q=J+2 by default).
D1=: inclined pass angle (D1=0 by default).
D2=: 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,
cuch 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.

G778
G26 Profiled pocket milling cycle without finishing pass

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


X,Y: 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.
J: distance between passes, in mill radius units (J = 1.6 by default).

Profiled pocket milling cycle


G779
G26 with finishing pass

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


X,Y: 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.
J: distance between passes, in mill radius units (J = 1.6 by default).

S4045P S4045 S4040GE S4040


32 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

Grid pattern machining cycles

X, Y,: coordinates of the first hole .


D1= number of holes per line. D2 D6
D2= distance between holes on D4
No. of
the line. holes
per
D3= angle formed by grid lines and D5 column
X - axis (D3 = 0° by default). D3

D4= number of holes per column


Y
No. of holes
D5= distance between holes on D1 per line
the columns. X

D6= angle formed by grid columns and X - axis (D6=90° by default).

Grid/circumference pattern
G780
G26 machining repeat: execution

G780

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

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

S4045P S4045 S4040GE S4040


S4060D S3035 33
S3045P S3045 S3040GE S3040
General G-Functions

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.

G71
G26
G785
G26 Grid pattern reaming supercycle
G78 Circular pocket milling (roughing cycle)
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
G786
G26 Grid pattern boring supercycle
G78 Circular pocket milling (roughing cycle)
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).

S4045P S4045 S4040GE S4040


34 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

G71
G26
G787
G26 Grid pattern machining repeat supercycle
G78 Circular pocket milling (roughing cycle)
G787 X... Y... [D1=...] [D2=...] [D3=...]
[D4=...] [D5=...] [D6=...] [D7=...]
X,Y: starting point coordinates.
D1= number of figures per line.
D2= distance between figures on the line.
D3= angle formed by grid lines and X-axis (D3=0° by default).
D4= number of figures per column.
D5= distance between figures on the columns.
D6= angle formed by grid lines and X-axis (D6=90° by default).
D7= 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.

Grid pattern differentiated drilling supercycle


G789
G26 (Only for S4000 Series CNCs)
G789 X... Y... Z... J... [I...] [K...] [Q...] [F...] D1=...
D2=... [D3=...] [D4=...] [D5=...][D6=...]
[D10=...] [D14=...] [D15=...] [D16=...]
[D17=...] [D18=...] [D19=...] [D20=...]
[D21=...] [D22=...] [D23=...]
X, Y, D1, D2, D3, D4, D5, D6 parameters: refer to grid pattern machining cycles.
Z, J, I, K, Q, F, D10, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23
parameters: refer to G89.

Circumference pattern drilling

X,Y: circumference center coor-


D5=1 D5=0
dinates.
D1= number of holes.
D3
D2= circumference radius with
Y D4
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
D3= angle formed by the first hole holes
and the X-axis (D3=0° by X
default).
D4= angular distance between holes (if D4 is omitted, figures will be evenly
distributed over 360°).

S4045P S4045 S4040GE S4040


S4060D S3035 35
S3045P S3045 S3040GE S3040
General G-Functions

D5= specifies the displacement mode between 2 consecutive holes:


D5=0 linear displacement on the clearance plane (default value)
D5=1 circular displacement on the clearance plane.

Circumference pattern drilling/spot facing


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

Circumference pattern deep mixed drilling


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

G71
G26
G26
G793
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
G26
G794 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.

S4045P S4045 S4040GE S4040


36 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

G71
G26
G26
G795 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
G26
G797 Circumference pattern machining repeat

G797 X... Y... D1=... D2=...


[D3=...] [D4=...] [D5=...]
X,Y: circumference center coordinates.
D1= number of figures.
D2= circumference radius with sign. If the radius is negative, figures will be
machined CW; if the radius is positive they will be machined CCW.
D3= angle formed by the first figure and the X-axis (D3=0 by default).
D4= angular distance between figures (if D4 is omitted, figures will be
evently distributed over 360°)
D5= 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.

S4045P S4045 S4040GE S4040


S4060D S3035 37
S3045P S3045 S3040GE S3040
General G-Functions

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=...] [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, D10, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23,
parameters: refer to G89.

Tool length offset on an axis


G817
G26 non-orthogonal to the machining plane

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

G71
G26
G26
G840 Cancels G841

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

G71
G26
G26
G841 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.

G71
G26
G26
G845 Cancels G846

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

G71
G26
G26
G846
Manual axis control by handwheels
during machining

G846 Axis1 Axis2 Axis3 etc..


Axis1, Axis2 axes under system control. The others can be moved with the
Axis3, etc..: handwheels if enabled by PLC.
Enabled: until a G845 is programmed.
S4045P S4045 S4040GE S4040
38 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

G71
G26
G26
G850 Cancels G851

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

G71
G26
G26
G851 Part origin offset by handwheels

G851 Axis1 Axis2 Axis3 etc..


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

G71
G26
G26
G872 ON/OFF touch probe measuring cycle in space

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


X,Y,Z: expected coordinates of the point to be measured.
I: clearance.
F: measuring cycle feed rate.
R: 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
G26
G873
Touch/copying probe
measuring cycle in space

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


X,Y,Z: expected coordinates of the point to be measured.
I: clearance.
F: measuring cycle feed rate.
R: 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.

S4045P S4045 S4040GE S4040


S4060D S3035 39
S3045P S3045 S3040GE S3040
General G-Functions

G71
G26
G26
G900 Cancels G901

G900

G71
G26
G26
G901
Edit and graphic execution
disabling during machining

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 the machine.
I1: Frees memory after recalling a file.

G71
G26
G26
G910 Cancels G911

G910

G71
G26
G26
G911 Disables travel limit control

G911
The block containing the wrong instruction will be partially executed:
machining will be stopped when an axis reaches its travel limit and an
error message will be displayed.
Enabled: until a G910 is programmed.

G71
G26
G26
G997 Cancels G998 (Only for S3000 Series CNCs)

G997

G71
G26
G26
G998
Block sequence number check
(Only for S3000 Series CNCs)

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

G71
G26
G26
G1000 Cancels G1001

G1000

S4045P S4045 S4040GE S4040


40 S4060D S3035
S3045P S3045 S3040GE S3040
General G-Functions

G71
G26
G26
G1001 Graphic execution of a program sequence

G1001
During program execution on the machine, the program section defined after a
G1001 will be executed only in graphic mode.

G71
G26
G26
G4724
Cancels G4725
(only for S4000 Series CNCs)

G4724

G71
G26
G26
G4725
Planetary milling
(only for S4000 Series CNCs)

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


I: radius of the circle in mm of the circular mill path (if not programmed
I=1).
J: profile increase in mm between circles (if not programmed J=1).
Q: machining allowance (if not programmed Q=0).
K: machining mode selection:
K=1 flush machining.
K=2 not flush machining.
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
G26
G9999
Synchronization of program execution
with tool path display

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

S4045P S4045 S4040GE S4040


S4060D S3035 41
S3045P S3045 S3040GE S3040
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 parallel bi-directional passes and step increments
perpendicular to the passes.
J2 parallel bi-directional passes and step increments at an
angle with respect to the passes.
J3 parallel unidirectional passes and rapid return performed at
a clearance height.
J4 parallel unidirectional passes and rapid return performed at
a clearance height (with Z down inhibit).
J5 plane profile with increments on the perpendicular axis at
completion of each pass.
J7 probe qualification cycle.
J8 radial bi-directional passes rotating about a point.
J9 radial unidirectional passes with rapid return performed at a
clearance height.
J10 radial unidirectional passes with rapid return performed at a
clearance height (with Z down inhibit).
J11 3-D contouring along a programmed profile.

G879 Closing of limit definition

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


I: probe axis upper limit in copying mode 5.
J: probe axis lower limit in copying mode 5.
Q: pass angle for inclined copying (J1, J2, J3 and J4 copying modes).

S4045P S4045 S4040GE S4040


42 S4060D S3035
S3045P S3045 S3040GE S3040
Copying G-Functions

G880 Profile end in copying mode 11

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

G881 Copying cycle start

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


X or Y or Z: 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 the model:
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).
YZ for the YZ-copying plane (K2 in G877).
Q: percentage of copying speed variation during pass increment:
E.g. Q1: increment speed = copying speed.
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 Digitizing cycle end

G882

G883 Digitizing cycle

G883 I... J... K... Q... [D0=...] [D1=...]


[AXES] LNAME:
I: chordal error - maximum allowable error between the theoretic
curve and the segmented line linking the stored points (I = 0.02 by
default).
J: maximum chord length (J = 1 by default).
S4045P S4045 S4040GE S4040
S4060D S3035 43
S3045P S3045 S3040GE S3040
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).
Q: minimum chord length (Q = 0.4).
D0=0: enables continuous point storing in manual copying mode
(default value).
D0=1: enables point storing under operator’s 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.

Copying parameters for unidirectional passes


G884 (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.
I: probe retraction travel covered at copying speed
(I=3 mm by default).
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.
S4045P S4045 S4040GE S4040
44 S4060D S3035
S3045P S3045 S3040GE S3040
Copying G-Functions

Radial copying parameters


G884 (8, 9, 10 copying modes)

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


X,Y,Z: (X... Y... or X... Z... or Y... Z...) coordinates of pass rotation center (pole)
(pole inside copying limits).
Q: 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 Profile learning parameters

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


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

G889 Copying probe data

G889 I... J... K... Q... [X...] [Y...] [Z...] [D0=] [D1=1]
I: nominal deflexion on the plane.
J: probe tracer point radius.
K: 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).
Q: Q0 = with qualification cycle.
Q1 = without qualification cycle.
Q...= descent depth of the probe on the qualification cube
through G877 J7.

S4045P S4045 S4040GE S4040


S4060D S3035 45
S3045P S3045 S3040GE S3040
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 Zeroing deflections with inclined probes

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

S4045P S4045 S4040GE S4040


46 S4060D S3035
S3045P S3045 S3040GE S3040
Logical Mathematical Operators

LOGICAL
MATHEMATICAL OPERATORS
One element operators

SIN sine of an angle in degrees and decimals


COS cosine of an angle in degrees and decimals
TAN tangent of an angle in degrees and decimals
ASN arcsine in degrees and decimals
ACS arccosine in degrees and decimals
ATN arctangent in degrees and decimals
SQR square root
ABS absolute value
INT truncated integer value
NEI closest integer value
LOG natural logarithm
LGT 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).

S4045P S4045 S4040GE S4040


S4060D S3035 47
S3045P S3045 S3040GE S3040
Character String Engraving

CHARACTER STRING ENGRAVING


Character size

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

P1
P3

Clearance and engraving depth

P5 = clearance depth
P5
P6 = engraving depth
0 piece Z

P6

String position (on a straight line)

Y
VZ
P7 = X-coordinate of the 1st string P9
character BA12
P8 = Y-coordinate of the 1st string P8
character
0 piece X
P9 = string angle P7

S4045P S4045 S4040GE S4040


48 S4060D S3035
S3045P S3045 S3040GE S3040
Character String Engraving

Circular engraving position

P9 Y
P7 = X-coordinate of circumfe- 12
rence center A BC

P8 = Y-coordinate of circumfe-
rence center
P7
P9 = starting angle P10+
P10 = circumference radius (posi-
tive) P8
O piece X

Circular engraving position

Y
O piece
P7 = X-coordinate of circumfe-
X
rence center P8
P8 = Y-coordinate of circumfe-
rence center P7 P10-
P9 = starting angle
P9 AB
P10 = circumference radius (nega- C
12
tive)

Scale factor (only for S4000 Series CNCs)

P11 = advancement speed scale factor for axis perpendicular to working


plane. (Value between 0 and 1).

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.

S4045P S4045 S4040GE S4040


S4060D S3035 49
S3045P S3045 S3040GE S3040
Storing Geometric Elements

STORING GEOMETRIC ELEMENTS

Storing points
Point defined by Cartesian coordinates

Ep
Ep = G20 Xp Yp Yp

O
Xp

Point defined by polar coordinates

Ep
G76 Xp
Ep = G20 Xp Yp
G75 Yp
O

Point defined by Cartesian coordinates referred


to an origin different from part zero

Y Ep
Ep = G51 Xo Yo Jo,
G20 Xp Yp Xp
Eo = G51 Xo Yo Jo Eo Xp Jo
Yo
Ep = Eo, G20 Xp Yp O Xo X

S4045P S4045 S4040GE S4040


50 S4060D S3035
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Point as intersection of two straight lines

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

O X

Point as intersection of two circles

Y Ec2
Ep1 =G20 X… Y… I…, Ec1
G20X… Y… I… Ep1
Ep2
Ep2 =G20 X… Y… I…,
G20X… Y… I… K2
O X
Ep1 =Ec1, Ec2
Ep2 =Ec1, Ec2 K2

Point as intersection of a circle and a straight line

Y Er
Ep1 =G13 X… Y… J…, Ep1
G20 X… Y… I… Ep2

Ep2 =G13 X… Y… J…,


G20 X… Y… I… K2 Ec
O X
Ep1 =Er, Ec
Ep2 =Er, Ec K2

Point as center of a stored circle

Y
Ep = Ec I0 Ec

Ep

O X

S4045P S4045 S4040GE S4040


S4060D S3035 51
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Storing straight lines


Straight line point - angle

Y
Ep Er
Er = G13 Xp Yp Jr
Yp
Er = G13 Ep Jr

Jr
O Xp X

Straight line circle - angle

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

Jr
O Xc X

Straight line through two points

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

O X
Xp2 Xp1

Straight line tangent to two circles

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

O X
Xc1 Xc2

S4045P S4045 S4040GE S4040


52 S4060D S3035
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Straight line through a point and tangent to a circle

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

O X
Xp Xc

Straight line tangent to a circle and


passing through a point

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

O X
Xp Xc

Sraight lines parallel to a pre-defined straight line

Y Er 2
Er2 = Er1 Qd1 Er 1
d1
Er3 = Er1 Q-d2 Er 3
d2

O X

Straight line with reverse direction

Y
Er2 = -Er1 Er 1

Er 2
O X

S4045P S4045 S4040GE S4040


S4060D S3035 53
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Storing circles
Circle of known center and radius

Y
Ec2 Ic2
Ec1= G20 Xc1 Yc1 Ic1
Ec2= G51 Xo Yo Jo, Yc2
Jo
G20 Xc2 Yc2 Ic2 Yo Eo Xc2
Ec2= Eo, G20 Xc2 Yc2 Ic2 Ic1
Yc1 Ec1
O X
Xc1 Xo

Circle of known radius tangent to two straight lines

Y
Ec = G13 Xr1 Yr1 Jr1, Er2
G21 Ic, Ec
G13 Xr2 Yr2 Jr2 Ic
Er1
Ec = Er1, G21 Ic, Er2
O X

Circle of known radius and tangent to a


straight line and a circle

Y
Ec1
Ec2 = G13 Xr Yr Jr,
Ic1
G21 Ic2, Yc1 Er
G20 Xc1 Yc1 Ic1
Ec2 = Er, G21 Ic2, Ec1 Ec2 Ic2

O X
Xc1

Circle of known radius tangent to a circle


and a straight line

Y Ec1
Ec2 = G20 Xc1 Yc1 Ic1,
Ic1 Er
G21 Ic2, Yc1
G13 Xr Yr Jr Ec2
Ic2
Ec2 = Ec1, G21 Ic2, Er
O X
Xc1

S4045P S4045 S4040GE S4040


54 S4060D S3035
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Circle of known radius through two circles

Y Ec3
Ec3 = G20 Xc1 Yc1 Ic1, Ec1
Ic3

G21 Ic3, Ic2 Er


G20 Xc2 Yc2 Ic2 Ic1
Ec3 = Ec1, G21 Ic3, Ec2 Ec2
O X

Circle through a point and tangent to a straight line

Y Ec
Ec = G20 Xp Yp, G21 Ic, Ic Er
G13 Xr Yr Jr
Ep
Ec = Ep, G21 Ic, Er
Er

O X

Circle through a point and tangent to a circle

Y
Yp Ep
Ec2 = G20 Xp Yp, Ic2Er
Ec1 Ec2
G21 Ic2, Ic1Er
Yc1
G20 Xc1 Yc1 Ic1
Ec2 = Ep, G21 Ic2, Ec1
O X
Xc1 Xp

Circle of known radius through two points

Y
Ec = G20 Xp1 Yp1, Ec
IcEr
G21 Ic, G20 Xp2 Yp2
Yp1
Ec = Ep1, G21 Ic, Ep2 Yp2
Ep2 Ep1

O Xp2 Xp1 X

S4045P S4045 S4040GE S4040


S4060D S3035 55
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Circle through three points

Y
Ec = G10 Xp1 Yp1, Ec

G20 Xp2 Yp2, Yp2 Ep2


G11 Xp3 Yp3 Yp3 Ep3
Yp1 Ep1
Ec = G10 Ep1, G20 Ep2,
G11 Ep3 O Xp1 Xp3 Xp2 X

Circle passing through two points and


tangent to a straight line

Y
Pr
Ec = G20Xp1Yp1, Ep1
G13XprYprJo, Er Jo
G20Xp2Yp2 Ec
Er
Ec = Ep1, Er, Ep2 Ep2
O X

Circle with center in a point and tangent


to a straight line

Y
Ec = G21 Xct Yct,
G13 Xr Yr Jr Yct Ect
Ec
Ec = G21 Ect, Er

O Xct X

Circle with center in a point and tangent to a circle

Y
Ec2
Ec2 = G21 Xct Yct,
G20 Xc1 Yc1 Ic1 Er
Ect
Yct
Ec2 = G21 Ect, Ec1 Ec1
Yc1 Ic1

O Xc1 Xct X

S4045P S4045 S4040GE S4040


56 S4060D S3035
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Circle with center in a point and tangent to a circle


(K2 = solution with the longest radius)

Y
Ec2 = G21 Xct Yct, Ec2
G20 Xc1 Yc1 Ic1 K2 Er
Ect
Yct Ic1
Ec2 = G21 Ect, Ec1 K2 Yc1 Ec1

O Xc1 Xct X

Concentric circles at a given distance

Y
Ec2 = Ec1 Qd1
Ec3 = Ec1 Q-d2
d2 d1

O X

Concentric to a pre-defined circle

Y
Ec2
Ec2 = Ec1 I2
Ec1
Er

Ic2

O X

Circle with reverse direction

Y Ec1 Ec2
Ec2 = -Ec1

O X

S4045P S4045 S4040GE S4040


S4060D S3035 57
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Circle tangent to three elements

Ec2 = G13 Xr1 Yr1 Jr1, Er2 Ec1


Ic1
G13 Xr2 Yr2 Jr2,
G20 Xc1 Yc1 Ic1 Ec2

Ec2 = Er1, Er2, Ec1


Er1
O X

Circle tangent to two elements in a point


(belonging to one of the two elements)

Y
Ec2 = Er, G20 Xp1
Yp1, Ec1 Er P1

Ec2 Ec1

O X

Storing origin offset/rotation


Direct definition

Y
Eo = G51 Xp Yp Jo
Xp Jo

O Yp X

Indirect definition

Y
Eo = G51 Ep Jo
Jo
Ep
O X

S4045P S4045 S4040GE S4040


58 S4060D S3035
S3045P S3045 S3040GE S3040
Storing Geometric Elements

Storing distance
Distance between two points

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

O X

Distance between a point and a stright line

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

O X

Distance between two straight lines

Y
Ed = Er1, Er2
Ed = G13 Xr1 Yr1 Jr1, Er1

G13 Xr2 Yr2 Jr2 Er2


Ed

O X

S4045P S4045 S4040GE S4040


S4060D S3035 59
S3045P S3045 S3040GE S3040
Display Parameters

DISPLAY PARAMETERS

$0 cancels the drawing on the screen, without modifying the current


parameters.

$1 M...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 disables drawing and leaves the current screen contents unmodified.

$4 re-enables the drawing disabled with $3.

$5 light blue.

$6 the default color codes are blue for rapid movements and green for
feed movements.

$7 red.

$8 green.

$9 yellow.

S4045P S4045 S4040GE S4040


60 S4060D S3035
S3045P S3045 S3040GE S3040
Display Parameters

$10 blue.

$11 pink.

$12 white.

$13 black.

$20 cancels $21.

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

S4045P S4045 S4040GE S4040


S4060D S3035 61
S3045P S3045 S3040GE S3040
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.

S4045P S4045 S4040GE S4040


62 S4060D S3035
S3045P S3045 S3040GE S3040
Messages Displaying

PRINT n, P...,
P..., P... 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.
CLOSE closes the printing file. It must be programmed alone after the
last PRINT command.

MESSAGES DISPLAYING

DISP -2 permits the return from the MESSAGES page to the previously
active one (LIST or DRAWING).
DISP -1 permits the display the MESSAGES page.
DISP 0 cancels all texts currently on the screen.
DISP... (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

S4045P S4045 S4040GE S4040


S4060D S3035 63
S3045P S3045 S3040GE S3040
Index

General G-Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 1


Copying G-Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 42
Logical mathematical operators . . . . . . . . . . . . . . . . . . . . Page 47
Character engraving strings . . . . . . . . . . . . . . . . . . . . . . . Page 48
Storing geometric elements . . . . . . . . . . . . . . . . . . . . . . . Page 50
Storing points . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 50
Storing straight line . . . . . . . . . . . . . . . . . . . . . . . Page 52
Storing circles . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 54
Storing origin offset/rotation . . . . . . . . . . . . . . . . Page 58
Storing distance . . . . . . . . . . . . . . . . . . . . . . . . . Page 59
Display parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 60
Outputting P parameters . . . . . . . . . . . . . . . . . . . . . . . . . . Page 62
Messages displaying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 63

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 of more than one axis.
Example: G748C
G749A
If you program for ex. G748BC or G749AB, the CN will show an error.
(See G748 and G749 on page 29).

S4045P S4045 S4040GE S4040


64 S4060D S3035
S3045P S3045 S3040GE S3040
SELCA S.p.A. - Corso Vercelli, 123 - 10015 IVREA (TO) Italy
Tel. +39 0125 61.44.11 - Fax +39 0125 61.44.08
www.selca.it - E-mail: marketing@selca.it

You might also like