SINUMERIK 840D sl NC programming. Programming Manual (2020) - page 1

 

  Index      Manuals     SINUMERIK 840D sl NC programming. Programming Manual (2020)

 

Search            copyright infringement  

    

 

   

 

   

 

Content      ..      1       2         ..

 

 

SINUMERIK 840D sl NC programming. Programming Manual (2020) - page 1

 

 

Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
CUT3DF
G
3D TRC for face milling with change in orien-
m
+
PM-NC
tation
CUT3DFD
G
3D TRC in relation to a differential tool for face
m
+
PM-NC
milling with change in orientation
CUT3DFF
G
3D TRC for face milling with constant orienta-
m
+
PM-NC
tion. The tool orientation is the direction de-
fined by G17 - G19 and, in some cases, rotated
by a frame.
CUT3DFS
G
3D TRC for face milling with constant orienta-
m
+
PM-NC
tion. The tool orientation is defined by G17 -
G19 and is not influenced by frames.
CUTCONOF 6)
G
Deactivate tool radius compensation
m
+
PM-NC
CUTCONON
G
Activate tool radius compensation
m
+
PM-NC
CUTMOD
A
Activate Modification of the offset data for ro-
m
+
PM-NC
tatable tools (in connection with orientable
tool carriers)
CUTMODK
A
Activate Modification of the offset data for ro-
m
+
PM-NC
tatable tools (in connection with orientation
transformations defined by kinematic chains)
CYCLE60
C (T)
Engraving cycle
+
PM-NC
CYCLE61
C (T)
Face milling
+
PM-NC
CYCLE62
C (T)
Contour call
+
PM-NC
CYCLE63
C (T)
Contour pocket milling
+
PM-NC
CYCLE64
C (T)
Contour pocket predrilling
+
PM-NC
CYCLE70
C (T)
Thread milling
+
PM-NC
CYCLE72
C (T)
Path milling
+
PM-NC
CYCLE76
C (T)
Milling the rectangular spigot
+
PM-NC
CYCLE77
C (T)
Circular spigot milling
+
PM-NC
CYCLE78
C (T)
Mill cutting thread
+
PM-NC
CYCLE79
C (T)
Multiple edge
+
PM-NC
CYCLE81
C (T)
Drilling, centering
+
PM-NC
CYCLE82
C (T)
Drilling, counterboring
+
PM-NC
CYCLE83
C (T)
Deep-hole drilling
+
PM-NC
CYCLE84
C (T)
Tapping without compensating chuck
+
PM-NC
CYCLE85
C (T)
Reaming
+
PM-NC
CYCLE86
C (T)
Boring
+
PM-NC
CYCLE92
C (T)
Parting
+
PM-NC
CYCLE95
C (T)
Stock removal along the contour
+
PM-NC
CYCLE98
C (T)
Thread chain
+
PM-NC
CYCLE99
C (T)
Thread cutting
+
PM-NC
CYCLE116
C (M)
Calculation of center point and radius of a circle
+
PM-MC
CYCLE119
C (M)
Determining position in space
+
PM-MC
CYCLE150
C (M)
Displaying/logging measurement results
+
PM-MC
NC programming
1250
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
CYCLE435
C (T)
Calculate dressing tool position
+
PM-NC
CYCLE495
C (T)
Form-truing
+
PM-NC
CYCLE750
C (A)
Internal operating cycle for CYCLE751 ... CY-
-
FM-A
CLE759 (contains the MMC command for the
actual function call)
CYCLE751
C (A)
Open / perform / close an optimization session
M
FM-A
CYCLE752
C (A)
Add axis to an optimization session
M
FM-A
CYCLE753
C (A)
Select optimization mode
M
FM-A
CYCLE754
C (A)
Add / remove language block
M
FM-A
CYCLE755
C (A)
Backing up/restoring data block
M
FM-A
CYCLE756
C (A)
Activate optimization results
M
FM-A
CYCLE757
C (A)
Store optimization data
M
FM-A
CYCLE758
C (A)
Changing the parameter value
M
FM-A
CYCLE759
C (A)
Read parameter value
M
FM-A
CYCLE782
C (T)
Adapt to load
+
PM-NC
CYCLE800
C (T)
Swiveling
+
PM-NC
CYCLE801
C (T)
Grid or frame
+
PM-NC
CYCLE802
C (T)
Arbitrary positions
+
PM-NC
CYCLE806
C (T)
Interpolation turning
+
PM-NC
CYCLE830
C (T)
Deep-hole drilling 2
+
PM-NC
CYCLE832
C (T)
High Speed Settings
+
PM-NC
CYCLE840
C (T)
Tapping with compensating chuck
+
PM-NC
CYCLE899
C (T)
Open slot milling
+
PM-NC
CYCLE930
C (T)
Groove
+
PM-NC
CYCLE940
C (T)
Undercut forms
+
PM-NC
CYCLE951
C (T)
Stock removal
+
PM-NC
CYCLE952
C (T)
Contour grooving
+
PM-NC
CYCLE961
C (M)
Determine the position of a workpiece corner
+
PM-MC
(inner or outer) and insert as work offset
CYCLE971
C (M)
Calibrate tool probe, measure tool length and/
+
PM-MC
or tool radius (only for milling)
CYCLE973
C (M)
Calibrate a workpiece probe on a surface on
+
PM-MC
the workpiece or in a groove (only for turning)
CYCLE974
C (M)
Determine the workpiece zero in the selected
+
PM-MC
measuring axis, determine tool offset with 1-
point measurement (only for turning)
CYCLE976
C (M)
Calibrate a workpiece probe in a calibration
+
PM-MC
ring or on a calibration ball completely in the
working plane or at an edge for a particular
axis and direction
CYCLE977
C (M)
Determine the center in the plane as well as
+
PM-MC
the width or the diameter
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1251
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
CYCLE978
C (M)
Measure the position of an edge in the work-
+
PM-MC
piece coordinate system
CYCLE979
C (M)
Determine center in the plane, measure radius
+
PM-MC
of circle segment
CYCLE982
C (M)
Calibrate tool probe, measure turning drilling
+
PM-MC
and milling tools (only for turning)
CYCLE994
C (M)
Determine the workpiece zero in the selected
+
PM-MC
measuring axis with 2-point measurement (on-
ly for turning)
CYCLE995
C (M)
Measure the angularity of the spindle on a ma-
+
PM-MC
chine tool
CYCLE996
C (M)
Determine transformation-relevant data for
+
PM-MC
kinematic transformations with rotary axes
CYCLE997
C (M)
Determine center and diameter of a ball, meas-
+
PM-MC
ure center of three distributed balls
CYCLE998
C (M)
Determine the angular position of a surface
+
PM-MC
(plane) referred to the working plane, deter-
mine angle of edges in the workpiece coordi-
nate system
CYCLE4071
C (T)
Longitudinal grinding with infeed at the rever-
+
PM-NC
sal point
CYCLE4072
C (T)
Longitudinal grinding with infeed at the rever-
+
PM-NC
sal point and cancel signal
CYCLE4073
C (T)
Longitudinal grinding with continuous infeed
+
PM-NC
CYCLE4074
C (T)
Longitudinal grinding with continuous infeed
+
PM-NC
and cancel signal
CYCLE4075
C (T)
Surface grinding with infeed at the reversal
+
PM-NC
point
CYCLE4077
C (T)
Surface grinding with infeed at the reversal
+
PM-NC
point and cancel signal
CYCLE4078
C (T)
Surface grinding with continuous infeed
+
PM-NC
CYCLE4079
C (T)
Surface grinding with intermittent infeed
+
PM-NC
CYCLE9960
C (M)
Measure kinematics completely
+
PM-MC
Operations D ... F
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1)2)3)4)5) for explanations, see legend (Page 1241).
D
A
Tool offset number
+
PM-NC
D0
A
With D0, offsets for the tool are ineffective
+
PM-NC
DAC
K
Absolute non-modal axis-specific diameter pro-
s
+
PM-NC
gramming
DC
K
Absolute dimensions for rotary axes, approach
s
+
PM-NC
position directly
NC programming
1252
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1)2)3)4)5) for explanations, see legend (Page 1241).
DCI
K
Assign data class I (= Individual) (only SINU-
+
PM-NC
MERIK 828D)
DCM
K
Assign data class M (= Manufacturer) (only
+
PM-NC
SINUMERIK 828D)
DCU
K
Assign data class U (= User) (only SINUMERIK
+
PM-NC
828D)
DEF
K
Variable definition
+
PM-NC
DEFAULT
K
Branch in CASE branch
+
PM-NC
DEFINE
K
Keyword for macro definitions
+
PM-NC
DELAYFSTOF
P
Define the end of a stop delay section
m
+
-
PM-NC
DELAYFSTON
P
Define the start of a stop delay section
m
+
-
PM-NC
DELDL
F
Delete additive offsets
+
-
PM-NC
DELDTG
P
Delete distance-to-go
-
+
FM-SA
DELETE
P
Delete the specified file. The file name can be
+
-
PM-NC
specified with path and file identifier.
DELMLOWNER
F
Delete owner magazine location of the tool
+
-
FM-TM
DELMLRES
F
Delete magazine location reservation
+
-
FM-TM
DELMT
P
Delete multitool
+
-
FM-TM
DELOBJ
F
Deletion of elements from kinematic chains,
+
PM-NC
protection areas, protection area elements,
collision pairs and transformation data
DELT
P
Delete tool
+
-
FM-TM
DELTC
P
Delete toolholder data record
+
-
FM-TM
DELTOOLENV
F
Delete data records describing tool environ-
+
-
PM-NC
ments
DIACYCOFA
K
Axis-specific modal diameter programming:
m
+
FM-A
OFF in cycles
DIAM90
G
Diameter programming for G90, radius pro-
m
+
PM-NC
gramming for G91
DIAM90A
K
Axis-specific modal diameter programming for
m
+
PM-NC
G90 and AC, radius programming for G91 and
IC
DIAMCHAN
K
Transfer of all axes from MD axis functions to
+
PM-NC
diameter programming channel status
DIAMCHANA
K
Transfer of the diameter programming chan-
+
PM-NC
nel status
DIAMCYCOF
G
Channel-specific diameter programming: OFF
m
+
FM-A
in cycles
DIAMOF 6)
G
Diameter programming: OFF
m
+
PM-NC
Normal position, see machine manufacturer
DIAMOFA
K
Axis-specific modal diameter programming:
m
+
PM-NC
OFF
Normal position, see machine manufacturer
DIAMON
G
Diameter programming: ON
m
+
PM-NC
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1253
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1)2)3)4)5) for explanations, see legend (Page 1241).
DIAMONA
K
Axis-specific modal diameter programming:
m
+
PM-NC
ON
Activation, see machine manufacturer
DIC
K
Relative non-modal axis-specific diameter pro-
s
+
PM-NC
gramming
DILF
A
Retraction path (length)
m
+
PM-NC
DISABLE
P
Interrupt OFF
+
-
PM-NC
DISC
A
Transition circle overshoot tool radius compen-
m
+
PM-NC
sation
DISCL
A
Clearance between the end point of the fast
+
PM-NC
infeed motion and the machining plane
DISPLOF
PA
Suppress current block display
+
PM-NC
DISPLON
PA
Revoke suppression of the current block display
+
PM-NC
DISPR
A
Path differential for repositioning
s
+
PM-NC
DISR
A
Distance for repositioning
s
+
PM-NC
DISRP
A
Distance between the retraction plane and the
+
PM-NC
machining plane during smooth approach and
retraction
DITE
A
Thread run-out path
m
+
PM-NC
DITS
A
Thread run-in path
m
+
PM-NC
DIV
K
Integer division
+
PM-NC
DL
A
Select location-dependent additive tool offset
m
+
PM-NC
(DL, total set-up offset)
DO
K
Synchronous action: Triggering of actions
-
+
FM-SA
when condition fulfilled
DRFOF
P
Deactivation of handwheel offsets (DRF)
m
+
-
PM-NC
DRIVE
G
Velocity-dependent path acceleration
m
+
PM-NC
DRIVEA
P
Activate knee-shaped acceleration characteris-
+
-
PM-NC
tic for the programmed axes
DYNFINISH
G
Dynamic response for finishing
m
+
PM-NC
DYNNORM 6)
G
Standard dynamic response
m
+
PM-NC
DYNPOS
G
Dynamic response for positioning mode, tap-
m
+
PM-NC
ping
DYNPREC
G
Dynamic response for smooth finishing
m
+
PM-NC
DYNROUGH
G
Dynamic response for roughing
m
+
PM-NC
DYNSEMIFIN
G
Dynamic response for semi-finishing
m
+
PM-NC
DZERO
P
Marks all D numbers of the TO unit as invalid
+
-
PM-NC
EAUTO
G
Definition of the last spline section by means of
m
+
PM-NC
the last 3 points
EGDEF
P
Definition of an electronic gear
+
-
PM-NC
EGDEL
P
Delete coupling definition for the following axis
+
-
PM-NC
EGOFC
P
Turn off electronic gear continuously
+
-
PM-NC
EGOFS
P
Turn off electronic gear selectively
+
-
PM-NC
EGON
P
Turn on electronic gear
+
-
PM-NC
NC programming
1254
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1)2)3)4)5) for explanations, see legend (Page 1241).
EGONSYN
P
Turn on electronic gear
+
-
PM-NC
EGONSYNE
P
Turn on electronic gear, with specification of
+
-
PM-NC
approach mode
ELSE
K
NC program: Program branch if the IF condi-
+
-
PM-NC
tion is not fulfilled
ELSE
K
Synchronous action: Triggering of actions
-
+
FM-SA
when condition unfulfilled
ENABLE
P
Interrupt ON
+
-
PM-NC
ENAT 6)
G
Natural transition to next traversing block
m
+
PM-NC
ENDFOR
K
End line of FOR counter loop
+
PM-NC
ENDIF
K
End line of IF branch
+
PM-NC
ENDLABEL
K
End label for part program repetitions with RE-
+
PM-NC, FM-B
PEAT
ENDLOOP
K
End line of endless program loop LOOP
+
PM-NC
ENDPROC
K
End line of program with start line PROC
+
ENDWHILE
K
End line of WHILE loop
+
PM-NC
ESRR
P
Parameterizing drive-autonomous ESR retrac-
+
PM-NC
tion in the drive
ESRS
P
Parameterizing drive-autonomous ESR shut-
+
PM-NC
down in the drive
ETAN
G
Tangential transition to next traversing block
m
+
PM-NC
at spline begin
EVERY
K
Execute synchronous action on transition of
-
+
FM-SA
condition from FALSE to TRUE
EX
K
Keyword for value assignment in exponential
+
PM-NC
notation
EXECSTRING
P
Transfer of a string variable with the executing
+
-
PM-NC
part program line
EXECTAB
P
Execute an element from a motion table
+
-
PM-NC
EXECUTE
P
Program execution ON
+
-
PM-NC
EXP
F
Exponential function ex
+
+
PM-NC
EXTCALL
A
Execute external subprogram
+
+
PM-NC
EXTCLOSE
P
Closing external device / file that was opened
+
-
PM-NC
for writing
EXTERN
K
Declaration of a subprogram with parameter
+
PM-NC
transfer
EXTOPEN
P
Opening external device / file for the channel
+
-
PM-NC
for writing
F
A
Feedrate value
+
+
PM-NC
(in conjunction with G4 the dwell time is also
programmed with F)
FA
K
Axial feedrate
m
+
+
PM-NC
FAD
A
Infeed rate for soft approach and retraction
+
PM-NC
FALSE
K
Logical constant: Incorrect
+
+
PM-NC
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1255
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1)2)3)4)5) for explanations, see legend (Page 1241).
FB
A
Non-modal feedrate
+
PM-NC
FCTDEF
P
Define polynomial function
+
-
PM-NC
FCUB
G
Feedrate variable according to cubic spline
m
+
PM-NC
FD
A
Path feedrate for handwheel override
s
+
PM-NC
FDA
K
Axis feedrate for handwheel override
s
+
PM-NC
FENDNORM 6)
G
Corner deceleration OFF
m
+
PM-NC
FFWOF 6)
G
Feedforward control OFF
m
+
PM-NC
FFWON
G
Feedforward control ON
m
+
PM-NC
FGREF
K
Reference radius for rotary axes or path refer-
m
+
PM-NC
ence factors for orientation axes (vector inter-
polation)
FGROUP
P
Definition of axis/axes with path feedrate
+
-
PM-NC
FI
K
Parameter for access to frame data: Fine offset
+
PM-NC
FIFOCTRL
G
Control of preprocessing buffer
m
+
PM-NC
FILEDATE
P
Returns date of most recent write access to file
+
-
PM-NC
FILEINFO
P
Returns summary information listing FILE-
+
-
PM-NC
DATE, FILESIZE, FILESTAT, and FILETIME
FILESIZE
P
Returns current file size
+
-
PM-NC
FILESTAT
P
Returns file status of rights for read, write, ex-
+
-
PM-NC
ecute, display, delete (rwxsd)
FILETIME
P
Returns time of most recent write access to file
+
-
PM-NC
FINEA
K
End of motion when "Exact stop fine" reached
m
+
PM-NC
FL
K
Limit velocity for synchronized axis
m
+
PM-NC
FLIM
A
Adapting maximum path velocity
m
+
-
PM-NC
FLIN
G
Feed linear variable
m
+
PM-NC
FMA
K
Multiple feedrates axial
m
+
PM-NC
FNORM 6)
G
Feedrate normal to DIN 66025
m
+
PM-NC
FOC
K
Non-modal torque/force limitation
s
-
+
FM-SA
FOCOF
K
Switch off modal torque/force limitation
m
-
+
FM-SA
FOCON
K
Switch on modal torque/force limitation
m
-
+
FM-SA
FOR
K
Counter loop with fixed number of passes
+
PM-NC
FP
A
Fixed point: Number of fixed point to be ap-
s
+
PM-NC
proached
FPO
K
Feedrate characteristic programmed via a pol-
+
PM-NC
ynomial
FPR
P
Rotary axis identifier
+
-
PM-NC
FPRAOF
P
Deactivate revolutional feedrate
+
-
PM-NC
FPRAON
P
Activate revolutional feedrate
+
-
PM-NC
FRAME
K
Data type for the definition of coordinate sys-
+
PM-NC
tems
FRC
A
Feedrate for radius and chamfer
s
+
PM-NC
FRCM
A
Feedrate for radius and chamfer, modal
m
+
PM-NC
NC programming
1256
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1)2)3)4)5) for explanations, see legend (Page 1241).
FROM
K
The action is executed if the condition is fulfil-
-
+
FM-SA
led once and as long as the synchronous action
is active
FTOC
P
Change fine tool offset
-
+
FM-SA
FTOCOF 6)
G
Online fine tool offset OFF
m
+
PM-NC
FTOCON
G
Online fine tool offset ON
m
+
PM-NC
FXS
K
Travel to fixed stop ON
m
+
+
PM-NC
FXST
K
Torque limit for travel to fixed stop
m
+
+
PM-NC
FXSW
K
Monitoring window for travel to fixed stop
+
+
PM-NC
FZ
K
Tooth feedrate
m
+
PM-NC
Operations G ... L
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
G0
G
Linear interpolation with rapid traverse (rapid
m
+
PM-NC
traverse motion)
G1 6)
G
Linear interpolation with feedrate (linear inter-
m
+
PM-NC
polation)
G2
G
Circular interpolation clockwise
m
+
PM-NC
G3
G
Circular interpolation counter-clockwise
m
+
PM-NC
G4
G
Dwell time, preset
s
+
PM-NC
G5
G
Oblique plunge-cut grinding
s
+
PM-NC
G7
G
Compensatory motion during oblique plunge-
s
+
PM-NC
cut grinding
G9
G
Exact stop - deceleration
s
+
PM-NC
G17 6)
G
Selection of working plane X/Y
m
+
PM-NC
G18
G
Selection of working plane Z/X
m
+
PM-NC
G19
G
Selection of working plane Y/Z
m
+
PM-NC
G25
G
Lower working area limitation
s
+
PM-NC
G26
G
Upper working area limitation
s
+
PM-NC
G33
G
Thread cutting with constant lead
m
+
PM-NC
G34
G
Thread cutting with linear increasing lead
m
+
PM-NC
G35
G
Thread cutting with linear decreasing lead
m
+
PM-NC
G40 6)
G
Tool radius compensation OFF
m
+
PM-NC
G41
G
Tool radius compensation left of contour
m
+
PM-NC
G42
G
Tool radius compensation right of contour
m
+
PM-NC
G53
G
Suppression of current zero offset (non-modal)
s
+
PM-NC
G54
G
1st settable zero offset
m
+
PM-NC
G55
G
2nd settable zero offset
m
+
PM-NC
G56
G
3rd settable zero offset
m
+
PM-NC
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1257
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
G57
G
4th settable zero offset
m
+
PM-NC
G58 (840D sl)
G
Absolute programmable work offset (coarse
s
+
PM-NC
offset)
G58 (828D)
G
5th settable zero offset
m
+
PM-NC
G59 (840D sl)
G
Additive programmable work offset (fine off-
s
+
PM-NC
set)
G59 (828D)
G
6th settable zero offset
m
+
PM-NC
G60 6)
G
Exact stop - deceleration
m
+
PM-NC
G62
G
Corner deceleration at inside corners when
m
+
PM-NC
tool radius offset is active (G41, G42)
G63
G
Tapping with compensating chuck
s
+
PM-NC
G64
G
Continuous-path mode
m
+
PM-NC
G70
G
Inch dimensions for geometric specifications
m
+
+
PM-NC
(lengths)
G71 6)
G
Metric dimensions for geometric specifications
m
+
+
PM-NC
(lengths)
G74
G
Search for reference
s
+
PM-NC
G75
G
Fixed point approach
s
+
PM-NC
G90 6)
G
Absolute dimensions
m/s
+
PM-NC
G91
G
Incremental dimensions
m/s
+
PM-NC
G93
G
Inverse-time feedrate rpm
m
+
PM-NC
G94 6)
G
Linear feedrate F in mm/min or inch/min and
m
+
PM-NC
degree/min
G95
G
Revolutional feedrate F in mm/rev or inch/rev
m
+
PM-NC
G96
G
Revolutional feedrate (as for G95) and con-
m
+
PM-NC
stant cutting rate
G97
G
Revolutional feedrate and constant spindle
m
+
PM-NC
speed (constant cutting rate OFF)
G110
G
Pole programming relative to the last program-
s
+
PM-NC
med setpoint position
G111
G
Pole programming relative to zero of current
s
+
PM-NC
workpiece coordinate system
G112
G
Pole programming relative to the last valid pole
s
+
PM-NC
G140 6)
G
SAR approach direction defined by G41/G42
m
+
PM-NC
G141
G
SAR approach direction to left of contour
m
+
PM-NC
G142
G
SAR approach direction to right of contour
m
+
PM-NC
G143
G
SAR approach direction tangent-dependent
m
+
PM-NC
G147
G
Soft approach with straight line
s
+
PM-NC
G148
G
Soft retraction with straight line
s
+
PM-NC
G153
G
Suppression of current frames including basic
s
+
PM-NC
frame
G247
G
Soft approach with quadrant
s
+
PM-NC
G248
G
Soft retraction with quadrant
s
+
PM-NC
NC programming
1258
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
G290 6)
G
Switch over to SINUMERIK mode ON
m
+
FM-TM
G291
G
Switch over to ISO2/3 mode ON
m
+
FM-TM
G331
G
Rigid tapping, positive lead, clockwise
m
+
PM-NC
G332
G
Rigid tapping, negative lead, counter-clock-
m
+
PM-NC
wise
G335
G
Turning a convex thread in clockwise direction
m
+
PM-NC
G336
G
Turning a convex thread in counter-clockwise
m
+
PM-NC
direction
G340 6)
G
Spatial approach block (depth and in plane at
m
+
PM-NC
the same time (helix))
G341
G
Initial infeed on perpendicular axis (z), then
m
+
PM-NC
approach in plane
G347
G
Soft approach with semicircle
s
+
PM-NC
G348
G
Soft retraction with semicircle
s
+
PM-NC
G450 6)
G
Transition circle
m
+
PM-NC
G451
G
Intersection of equidistances
m
+
PM-NC
G460 6)
G
Activation of collision detection for the ap-
m
+
PM-NC
proach and retraction block
G461
G
Insertion of a circle into the TRC block
m
+
PM-NC
G462
G
Insertion of a straight line into the TRC block
m
+
PM-NC
G500 6)
G
Deactivation of all adjustable frames, basic
m
+
PM-NC
frames are active
G505 ... G599
G
5 ... 99 Settable work offset
m
+
PM-NC
G601 6)
G
Block change at exact stop fine
m
+
PM-NC
G602
G
Block change at exact stop coarse
m
+
PM-NC
G603
G
Block change at IPO block end
m
+
PM-NC
G621
G
Corner deceleration at all corners
m
+
PM-NC
G641
G
Continuous-path mode with smoothing as per
m
+
PM-NC
distance criterion (= programmable rounding
clearance)
G642
G
Continuous-path mode with smoothing within
m
+
PM-NC
the defined tolerances
G643
G
Continuous-path mode with smoothing within
m
+
PM-NC
the defined tolerances (block-internal)
G644
G
Continuous-path mode with smoothing with
m
+
PM-NC
maximum possible dynamic response
G645
G
Continuous-path mode with smoothing and
m
+
PM-NC
tangential block transitions within the defined
tolerances
G700
G
Inch dimensions for geometric and technolog-
m
+
+
PM-NC
ical specifications (lengths, feedrate)
G710 6)
G
Metric dimensions for geometric and techno-
m
+
+
PM-NC
logical specifications (lengths, feedrate)
G810 6), ..., G819
G
G group reserved for the OEM user
+
PM-NC
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1259
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
G820 6), ..., G829
G
G group reserved for the OEM user
+
PM-NC
G931
G
Feedrate specified by means of traversing
m
+
time, deactivate constant path velocity
G942
G
Freeze linear feedrate and constant cutting
m
+
rate or spindle speed
G952
G
Freeze revolutional feedrate and constant cut-
m
+
ting rate or spindle speed
G961
G
Linear feedrate (as for G94) and constant cut-
m
+
PM-NC
ting rate
G962
G
Linear feedrate or revolutional feedrate and
m
+
PM-NC
constant cutting rate
G971
G
Linear feedrate and constant spindle speed
m
+
PM-NC
(constant cutting rate OFF)
G972
G
Linear feedrate or revolutional feedrate and
m
+
PM-NC
constant spindle speed (constant cutting rate
OFF)
G973
G
Revolutional feedrate without spindle speed
m
+
PM-NC
limitation and constant spindle speed (G97
without LIMS for ISO mode)
GEOAX
P
Assign new channel axes to geometry axes 1 - 3
+
-
PM-NC
GET
P
Replace enabled axis between channels
+
+
PM-NC
GETACTT
F
Gets active tool from a group of tools with the
+
-
FM-TM
same name
GETACTTD
F
Gets the T number associated with an absolute
+
-
PM-NC
D number
GETD
P
Replace axis directly between channels
+
-
PM-NC
GETDNO
F
Returns the D number of a cutting edge (CE) of
+
-
PM-NC
a tool (T)
GETEXET
P
Reading of the loaded T number
+
-
FM-TM
GETFREELOC
P
Find a free space in the magazine for a given
+
-
FM-TM
tool
GETSELT
P
Return selected T number
+
-
FM-TM
GETT
F
Get T number for tool name
+
-
FM-TM
GETTCOR
F
Read out tool lengths and/or tool length com-
+
-
PM-NC
ponents
GETTENV
F
Read T, D and DL numbers
+
-
PM-NC
GETVARAP
F
Read access rights to a system/user variable
+
-
PM-NC
GETVARDFT
F
Read default value of a system/user variable
+
-
PM-NC
GETVARLIM
F
Read limit values of a system/user variable
+
-
PM-NC
GETVARPHU
F
Read physical unit of a system/user variable
+
-
PM-NC
GETVARTYP
F
Read data type of a system/user variable
+
-
PM-NC
GFRAME0 ...
G
Activation of the grinding frame <n> of the
m
+
PM-NC
GFRAME100
data management in channel
NC programming
1260
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
GOTO
K
Jump operation first forward then backward
+
PM-NC
(direction initially to end of program and then
to beginning of program)
GOTOB
K
Jump backward (toward the beginning of the
+
PM-NC
program)
GOTOC
K
As GOTO, but suppress alarm 14080 "Jump
+
PM-NC
destination not found"
GOTOF
K
Jump forward (toward the end of the program)
+
PM-NC
GOTOS
K
Jump back to beginning of program
+
PM-NC
GP
K
Keyword for the indirect programming of posi-
+
PM-NC
tion attributes
GROUP_
C (T)
End of trial cut addition
+
PM-NC
ADDEND
GROUP_BEGIN
C (T)
Beginning of program group
+
PM-NC
GROUP_END
C (T)
End of program group
+
PM-NC
GWPSOF
P
Deselect constant grinding wheel peripheral
s
+
-
PM-NC
speed (GWPS)
GWPSON
P
Select constant grinding wheel peripheral
s
+
-
PM-NC
speed (GWPS)
H...
A
Auxiliary function output to the PLC
+
+
PM-NC, FM-B
HOLES1
C (T)
Row of holes
+
PM-NC
HOLES2
C (T)
Circle of holes
+
PM-NC
I
A
Interpolation parameters
s
+
PM-NC
I1
A
Intermediate point coordinate
s
+
PM-NC
IC
K
Incremental dimensions
s
+
PM-NC
ICYCOF
P
All blocks of a technology cycle are processed
+
+
FM-SA
in one interpolation cycle following ICYCOF
ICYCON
P
Each block of a technology cycle is processed in
+
+
FM-SA
a separate interpolation cycle following ICY-
CON
ID
K
Identifier for modal synchronous actions
m
-
+
FM-SA
IDS
K
Identifier for modal static synchronous actions
-
+
FM-SA
IF
K
Introduction of a conditional jump in the part
+
+
PM-NC
program/technology cycle
INDEX
F
Define index of character in input string
+
-
PM-NC
INICF
K
Initialization of variables for NEWCONF
+
PM-NC
INIPO
K
Initialization of variables at POWER ON
+
PM-NC
INIRE
K
Initialization of variables at reset
+
PM-NC
INIT
P
Selection of a particular NC program for exe-
+
-
PM-NC
cution in a particular channel
INITIAL
Generation of an INI file across all areas
+
PM-NC
INT
K
Data type: Integer with sign
+
PM-NC
INTERSEC
F
Calculate intersection between two contour
+
-
PM-NC
elements
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1261
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
INVCCW
G
Trace involute, counter-clockwise
m
+
PM-NC
INVCW
G
Trace involute, clockwise
m
+
PM-NC
INVFRAME
F
Calculate the inverse frame from a frame
+
-
FM-B
IP
K
Variable interpolation parameter
+
PM-NC
IPOBRKA
P
Motion criterion from braking ramp activation
m
+
+
IPOENDA
K
End of motion when "IPO stop" reached
m
+
PM-NC
IPTRLOCK
P
Freeze start of the untraceable program sec-
m
+
-
PM-NC
tion at next machine function block.
IPTRUNLOCK
P
Set end of untraceable program section at cur-
m
+
-
PM-NC
rent block at time of interruption.
IR
A
Center of circle coordinate (X axis) when turn-
+
PM-NC
ing a convex thread
ISAXIS
F
Check if geometry axis 1 specified as parameter
+
-
PM-NC
ISD
A
Insertion depth
m
+
PM-NC
ISFILE
F
Check whether the file exists in the NC appli-
+
-
PM-NC
cation memory
ISNUMBER
F
Check whether the input string can be conver-
+
-
PM-NC
ted to a number
ISOCALL
K
Indirect call of a program programmed in an
+
PM-NC
ISO language
ISVAR
F
Check whether the transfer parameter con-
+
-
PM-NC
tains a variable declared in the NC
J
A
Interpolation parameters
s
+
PM-NC
J1
A
Intermediate point coordinate
s
+
PM-NC
JERKA
P
Activate acceleration response set via MD for
+
-
programmed axes
JERKLIM
K
Adapt maximum axis jerk
m
+
PM-NC
JERKLIMA
K
Reduction or overshoot of the maximum slave
m
+
+
PM-NC
axis jerk
JR
A
Center of circle coordinate (Y axis) when turn-
+
PM-NC
ing a convex thread
K
A
Interpolation parameters
s
+
PM-NC
K1
A
Intermediate point coordinate
s
+
PM-NC
KONT
G
Travel around contour on tool offset
m
+
PM-NC
KONTC
G
Approach/retract with continuous-curvature
m
+
PM-NC
polynomial
KONTT
G
Approach/retract with continuous-tangent pol-
m
+
PM-NC
ynomial
KR
A
Center of circle coordinate (Z axis) when turn-
+
PM-NC
ing a convex thread
L
A
Subprogram number
s
+
+
PM-NC
LEAD
A
Lead angle
m
+
PM-NC
1st basic tool orientation
2nd orientation polynomials
NC programming
1262
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
LEADOF
P
Axial master value coupling OFF
+
+
PM-NC
LEADON
P
Axial master value coupling on
+
+
PM-NC
LENTOAX
F
Provides information about the assignment of
+
-
PM-NC
tool lengths L1, L2, and L3 of the active tool to
the abscissa, ordinate and applicate
LFOF 6)
G
Fast retraction for thread cutting OFF
m
+
PM-NC
LFON
G
Fast retraction for thread cutting ON
m
+
PM-NC
LFPOS
G
Retraction of the axis declared with POLFMASK
m
+
PM-NC
or POLFMLIN to the absolute axis position pro-
grammed with POLF
LFTXT 6)
G
The plane of the retraction movement for fast
m
+
PM-NC
retraction is determined from the path tangent
and the current tool direction
LFWP
G
The plane of the retraction movement for fast
m
+
PM-NC
retraction is determined by the current work-
ing plane (G17/G18/G19)
LIFTFAST
K
Fast retraction
+
PM-NC
LIMS
K
Speed limitation
m
+
PM-NC
for G96/G961 and G97
LLI
K
Lower limit value of variables
+
PM-NC
LN
F
Natural logarithm
+
+
PM-NC
LOCK
P
Disable synchronous action with ID
-
+
FM-SA
(stop technology cycle)
LONGHOLE
C (T)
Elongated hole
+
PM-NC
LOOP
K
Introduction of an endless loop
+
PM-NC
Operations M ... R
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
M0
Programmed stop
+
+
PM-NC
M1
Optional stop
+
+
PM-NC
M2
End of program, main program (as M30)
+
+
PM-NC
M3
CW spindle rotation
+
+
PM-NC
M4
CCW spindle rotation
+
+
PM-NC
M5
Spindle stop
+
+
PM-NC
M6
Tool change
+
+
PM-NC
M17
End of subprogram
+
+
PM-NC
M19
Spindle positioning to the position entered in
+
+
PM-NC
SD43240
M30
End of program, main program (as M2)
+
+
PM-NC
M40
Automatic gear change
+
+
PM-NC
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1263
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
M41 ... M45
Gear stage 1 ... 5
+
+
PM-NC
M70
Transition to axis mode
+
+
PM-NC
MASLDEF
P
Define master/slave axis grouping
+
+
PM-NC
MASLDEL
P
Uncouple master/slave axis grouping and clear
+
+
PM-NC
grouping definition
MASLOF
P
Deactivation of a temporary coupling
+
+
PM-NC
MASLOFS
P
Deactivation of a temporary coupling with au-
+
+
PM-NC
tomatic slave axis stop
MASLON
P
Activation of a temporary coupling
+
+
PM-NC
MATCH
F
Search for string in string
+
-
PM-NC
MAXVAL
F
Larger value of two variables (arithm. function)
+
+
PM-NC
MCALL
K
Modal subprogram call
+
PM-NC
MEAC
K
Continuous axial measurement without delete
s
+
+
PM-NC
distance-to-go
MEAFRAME
F
Frame calculation from measuring points
+
-
PM-NC
MEAS
A
Measurement with deletion of distance-to-go
s
+
PM-NC
MEASA
K
Axial measurement with delete distance-to-go
s
+
+
PM-NC
MEASURE
F
Calculation method for workpiece and tool
+
-
FM-TE
measurement
MEAW
A
Measurement without delete distance-to-go
s
+
PM-NC
MEAWA
K
Axial measurement without delete distance-
s
+
+
PM-NC
to-go
MI
K
Access to frame data: Mirroring
+
PM-NC
MINDEX
F
Define index of character in input string
+
-
PM-NC
MINVAL
F
Smaller value of two variables (arithm. func-
+
+
PM-NC
tion)
MIRROR
G
Programmable mirroring
s
+
PM-NC
MMC
P
Call the dialog window interactively from the
+
-
PM-NC
part program on the HMI
MOD
K
Modulo division
+
PM-NC
MODAXVAL
F
Determine modulo position of a modulo rotary
+
-
PM-NC
axis
MOV
K
Start positioning axis
-
+
FM-SA
MOVT
A
Specify end point of a traversing motion in the
FM-B
tool direction
MSG
P
Programmable messages
m
+
-
PM-NC
MVTOOL
P
Language command to move tool
+
-
FM-TM
N
A
NC auxiliary block number
+
PM-NC
NAMETOINT
F
Determining the system variable index
+
PM-NC
NC
K
Specify validity range for data
+
PM-NC
NEWCONF
P
Apply modified machine data (corresponds to
+
-
PM-NC
"Activate machine data")
NEWMT
F
Create new multitool
+
-
FM-TM
NC programming
1264
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
NEWT
F
Create new tool
+
-
FM-TM
NORM 6)
G
Standard setting in starting point and end
m
+
PM-NC
point with tool offset
NOT
K
Logic NOT (negation)
+
PM-NC
NPROT
P
Machine-specific protection area ON/OFF
+
-
PM-NC
NPROTDEF
P
Definition of a machine-specific protection area
+
-
PM-NC
NUMBER
F
Convert input string to number
+
-
PM-NC
OEMIPO1
G
OEM interpolation 1
m
+
PM-NC
OEMIPO2
G
OEM interpolation 2
m
+
PM-NC
OF
K
Keyword in CASE branch
+
PM-NC
OFFN
A
Allowance on the programmed contour
m
+
PM-NC
OMA1
A
OEM address 1
m
+
PM-NC
OMA2
A
OEM address 2
m
+
PM-NC
OMA3
A
OEM address 3
m
+
PM-NC
OMA4
A
OEM address 4
m
+
PM-NC
OMA5
A
OEM address 5
m
+
PM-NC
OR
K
Logic operator, OR operation
+
PM-NC
ORIAXES
G
Linear interpolation of machine axes or orien-
m
+
PM-NC
tation axes
ORIAXPOS
G
Orientation angle via virtual orientation axes
m
+
PM-NC
with rotary axis positions
ORIC 6)
G
Orientation changes at outside corners are su-
m
+
PM-NC
perimposed on the circle block to be inserted
ORICONCCW
G
Interpolation on a circular peripheral surface in
m
+
PM-NC, FM-TR
CCW direction
ORICONCW
G
Interpolation on a circular peripheral surface in
m
+
PM-NC, FM-TR
CW direction
ORICONIO
G
Interpolation on a circular peripheral surface
m
+
PM-NC, FM-TR
with intermediate orientation setting
ORICONTO
G
Interpolation on circular peripheral surface in
m
+
PM-NC, FM-TR
tangential transition
(final orientation)
ORICURVE
G
Interpolation of orientation with specification
m
+
PM-NC, FM-TR
of motion of two contact points of tool
ORID
G
Orientation changes are performed before the
m
+
PM-NC
circle block
ORIEULER 6)
G
Orientation angle via Euler angle
m
+
PM-NC
ORIMKS
G
Tool orientation in the machine coordinate sys-
m
+
PM-NC
tem
ORIPATH
G
Tool orientation in relation to path
m
+
PM-NC
ORIPATHS
G
Tool orientation in relation to path, blips in the
m
+
PM-NC
orientation characteristic are smoothed
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1265
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
ORIPLANE
G
Interpolation in a plane
m
+
PM-NC
(corresponds to ORIVECT),
large-radius circular interpolation
ORIRESET
P
Initial tool orientation with up to 3 orientation
+
-
PM-NC
axes
ORIROTA 6)
G
Angle of rotation to an absolute direction of
m
+
PM-NC
rotation
ORIROTC
G
Tangential rotational vector in relation to path
m
+
PM-NC
tangent
ORIROTR
G
Angle of rotation relative to the plane between
m
+
PM-NC
the start and end orientation
ORIROTT
G
Angle of rotation relative to the change in the
m
+
PM-NC
orientation vector
ORIRPY
G
Orientation angle via RPY angle (XYZ)
m
+
PM-NC
ORIRPY2
G
Orientation angle via RPY angle (ZYX)
m
+
PM-NC
ORIS
A
Change in orientation
m
+
PM-NC
ORISOF 6)
G
Smoothing of the orientation characteristic
m
+
PM-NC
OFF
ORISOLH
F
Calculate orientations
+
PM-NC
ORISON
G
Smoothing of the orientation characteristic ON
m
+
PM-NC
ORIVECT 6)
G
Large-circle interpolation (identical to ORI-
m
+
PM-NC
PLANE)
ORIVIRT1
G
Orientation angle via virtual orientation axes
m
+
PM-NC
(definition 1)
ORIVIRT2
G
Orientation angle via virtual orientation axes
m
+
PM-NC
(definition 1)
ORIWKS 6)
G
Tool orientation in the workpiece coordinate
m
+
PM-NC
system
OS
K
Oscillation on/off
+
PM-NC
OSB
K
Oscillating: Starting point
m
+
PM-NC
OSC
G
Continuous tool orientation smoothing
m
+
PM-NC
OSCILL
K
Axis: 1 - 3 infeed axes
m
+
PM-NC
OSCTRL
K
Oscillation options
m
+
PM-NC
OSD
G
Smoothing of tool orientation by specifying
m
+
PM-NC
smoothing distance with SD
OSE
K
Oscillation end point
m
+
PM-NC
OSNSC
K
Oscillating: Number of spark-out cycles
m
+
PM-NC
OSOF 6)
G
Tool orientation smoothing OFF
m
+
PM-NC
OSP1
K
Oscillating: Left reversal point
m
+
PM-NC
OSP2
K
Oscillation right reversal point
m
+
PM-NC
OSS
G
Tool orientation smoothing at end of block
m
+
PM-NC
OSSE
G
Tool orientation smoothing at start and end of
m
+
PM-NC
block
NC programming
1266
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
OST
G
Smoothing of tool orientation by specifying
m
+
PM-NC
angular tolerance in degrees with SD (maxi-
mum deviation from programmed. orientation
characteristic)
OST1
K
Oscillating: Stopping point in left reversal point
m
+
PM-NC
OST2
K
Oscillating: Stopping point in right reversal
m
+
PM-NC
point
OTOL
A
Orientation tolerance for compressor func-
m
+
-
PM-NC
tions, orientation smoothing and smoothing
types
OTOLG0
A
Orientation tolerance for rapid traverse move-
m
+
-
PM-NC
ments
OVR
K
Speed offset
m
+
PM-NC
OVRA
K
Axial speed offset
m
+
+
PM-NC
OVRRAP
K
Rapid traverse override
m
+
PM-NC
P
A
Number of subprogram repetitions
+
PM-NC
PACCLIM
A
Adapting maximum path acceleration
m
+
-
PM-NC
PAROT
G
Align workpiece coordinate system on work-
m
+
PM-NC
piece
PAROTOF 6)
G
Deactivate frame rotation in relation to work-
m
+
PM-NC
piece
PCALL
K
Call subprograms with absolute path and pa-
+
PM-NC
rameter transfer
PDELAYOF
G
Punching with delay OFF
m
+
PM-NC
PDELAYON 6)
G
Punching with delay ON
m
+
PM-NC
PHI
K
Angle of rotation of the orientation around the
+
PM-NC
direction axis of the taper
PHU
K
Physical unit of a variable
+
PM-NC
PL
A
1. B spline: Node clearance
s
+
PM-NC
2. Polynomial interpolation Length of the pa-
rameter interval for polynomial interpolation
PM
K
Per minute
+
PM-NC
PO
K
Polynomial coefficient for polynomial interpo-
s
+
PM-NC
lation
POCKET3
C (T)
Milling the rectangular pocket
+
PM-NC
POCKET4
C (T)
Milling the circular pocket
+
PM-NC
POLF
K
LIFTFAST retraction position
m
+
PM-NC
POLFA
P
Start retraction position of single axes with
m
+
+
PM-NC
$AA_ESR_TRIGGER
POLFMASK
P
Enable axes for retraction without a connec-
m
+
-
PM-NC
tion between the axes
POLFMLIN
P
Enable axes for retraction with a linear connec-
m
+
-
PM-NC
tion between the axes
POLY
G
Polynomial interpolation
m
+
PM-NC
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1267
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
POLYPATH
P
Polynomial interpolation can be selected for
m
+
-
PM-NC
the AXIS or VECT axis groups
PON
G
Punching ON
m
+
PM-NC
PONS
G
Punching ON in interpolation cycle
m
+
PM-NC
POS
K
Axis positioning
+
+
PM-NC
POSA
K
Position axis across block boundary
+
+
PM-NC
POSM
P
Position magazine
+
-
FM-TM
POSMT
P
Position multitool on toolholder at location
+
-
FM-TM
number
POSP
K
Positioning axis in parts (oscillation)
+
PM-NC
POSRANGE
F
Determine whether the currently interpolated
+
+
FM-SA
position setpoint of an axis is located in a win-
dow at a predefined reference position
POT
F
Square
+
+
PM-NC
(arithmetic function)
PR
K
Per revolution
+
PM-NC
PREPRO
PA
Identify subprograms with preparation
+
PM-NC
PRESETON
P
Actual value setting with loss of the referenc-
+
+
PM-NC
ing status
PRESETONS
P
Actual value setting without loss of the refer-
+
+
PM-NC
encing status
PRIO
K
Keyword for setting the priority for interrupt
+
PM-NC
processing
PRLOC
K
Initialization of variables at reset only after lo-
+
PM-NC
cal change
PROC
K
First operation in a program
+
PM-NC
PROTA
P
Request for a recalculation of the collision
+
PM-NC
model
PROTD
F
Calculating the distance between two protec-
+
PM-NC
tion areas
PROTS
P
Setting the protection area status
+
PM-NC
PSI
K
Opening angle of the taper
+
PM-NC
PTP
G
Point-to-point motion (PTP travel)
m
+
PM-NC
PTPG0
G
Point-to-point motion only with G0, otherwise
m
+
PM-NC
path motion CP
PTPWOC
G
Point-to-point motion without compensation
m
+
PM-NC
movements caused by changes in orientation
PUNCHACC
P
Travel-dependent acceleration for nibbling
+
-
PM-NC
PUTFTOC
P
Tool fine offset for parallel dressing
+
-
PM-NC
PUTFTOCF
P
Tool fine offset dependent on a function for
+
-
PM-NC
parallel dressing defined with FCTDEF
PW
A
B spline, point weight
s
+
PM-NC
QU
K
Fast additional
+
PM-NC
(auxiliary) function output
NC programming
1268
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
R...
A
Arithmetic parameter also as settable address
+
PM-NC
identifier and with numerical extension
RAC
K
Absolute non-modal axis-specific radius pro-
s
+
PM-NC
gramming
RDISABLE
P
Read-in disable
-
+
FM-SA
READ
P
Reads one or more lines in the specified file and
+
-
PM-NC
stores the information read in the array
REAL
K
Data type: Floating-point variable with sign
+
PM-NC
(real numbers)
REDEF
K
Redefinition of system variables, user varia-
+
PM-NC
bles, and NC language commands
RELEASE
P
Release machine axes for axis exchange
+
+
PM-NC
REP
K
Keyword for initialization of all elements of an
+
PM-NC
array with the same value
REPEAT
K
Repetition of a program loop
+
PM-NC
REPEATB
K
Repetition of a program line
+
PM-NC
REPOSA
G
Linear repositioning with all axes
s
+
PM-NC
REPOSH
G
Repositioning with semicircle
s
+
PM-NC
REPOSHA
G
Repositioning with all axes; geometry axes in
s
+
PM-NC
semicircle
REPOSL
G
Linear repositioning
s
+
PM-NC
REPOSQ
G
Repositioning in a quadrant
s
+
PM-NC
REPOSQA
G
Linear repositioning with all axes, geometry
s
+
PM-NC
axes in quadrant
RESETMON
P
Language command for setpoint activation
+
-
FM-TM
RET
P
End of subprogram
+
+
PM-NC
RETB
P
End of subprogram
+
+
PM-NC
RIC
K
Relative non-modal axis-specific radius pro-
s
+
PM-NC
gramming
RINDEX
F
Define index of character in input string
+
-
PM-NC
RMB
G
Repositioning to start of block
m
+
PM-NC
RMBBL
G
Repositioning to start of block
s
+
PM-NC
RME
G
Repositioning to end of block
m
+
PM-NC
RMEBL
G
Repositioning to end of block
s
+
PM-NC
RMI 6)
G
Repositioning to interrupt point
m
+
PM-NC
RMIBL 6)
G
Repositioning to interrupt point
s
+
PM-NC
RMN
G
Repositioning to the nearest path point
m
+
PM-NC
RMNBL
G
Repositioning to the nearest path point
s
+
PM-NC
RND
A
Round the contour corner
s
+
PM-NC
RNDM
A
Modal rounding
m
+
PM-NC
ROT
G
Programmable rotation
s
+
PM-NC
ROTS
G
Programmable frame rotations with solid an-
s
+
PM-NC
gles
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1269
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
ROUND
F
Rounding of decimal places
+
+
PM-NC
ROUNDUP
F
Rounding up of an input value
+
+
PM-NC
RP
A
Polar radius
m/s
+
PM-NC
RPL
A
Rotation in the plane
s
+
PM-NC
RT
K
Parameter for access to frame data: Rotation
+
PM-NC
RTLIOF
G
G0 without linear interpolation (single-axis in-
m
+
PM-NC
terpolation)
RTLION 6)
G
G0 with linear interpolation
m
+
PM-NC
Operations S ... Z
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
S
A
Spindle speed
m/s
+/-
+/-
PM-NC
(with G4, G96/G961 different meaning)
SAVE
PA
Attribute for saving information when subpro-
+/-
PM-NC
grams are called
SBLOF
P
Suppress single block
+/-
-
PM-NC
SBLON
P
Revoke suppression of single block
+/-
-
PM-NC
SC
K
Parameter for access to frame data: Scaling
+/-
PM-NC
SCALE
G
Programmable scaling
s
+/-
PM-NC
SCC
K
Selective assignment of transverse axis to G96/
+/-
PM-NC
G961/G962. Axis identifiers may take the form
of geometry, channel or machine axes.
SCPARA
K
Program servo parameter set
+/-
+/-
PM-NC
SD
A
Spline degree
s
+/-
PM-NC
SET
K
Keyword for initialization of all elements of an
+/-
PM-NC
array with listed values
SETAL
P
Set alarm
+/-
+/-
PM-NC
SETDNO
F
Assign the D number of a cutting edge (CE) of
+/-
-
PM-NC
a tool (T)
SETINT
K
Define which interrupt routine is to be activa-
+/-
PM-NC
ted when an NC input is present
SETM
P
Setting of markers in dedicated channel
+/-
+/-
PM-NC
SETMS
P
Reset to the master spindle defined in machine
+/-
-
PM-NC
data
SETMS(n)
P
Set spindle n as master spindle
+/-
PM-NC
SETMTH
P
Set master toolholder number
+/-
-
FM-TM
SETPIECE
P
Set piece number for all tools assigned to the
+/-
-
FM-TM
spindle
SETTA
P
Activate tool from wear group
+/-
-
FM-TM
NC programming
1270
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
SETTCOR
F
Modification of tool components taking all sup-
+/-
-
PM-NC
plementary conditions into account
SETTIA
P
Deactivate tool from wear group
+/-
-
FM-TM
SF
A
Starting point offset for thread cutting
m
+/-
PM-NC
SIN
F
Sine (trigon. function)
+/-
+/-
PM-NC
SIRELAY
F
Activate the safety functions parameterized
-
+/-
FM-SI
with SIRELIN, SIRELOUT, and SIRELTIME
SIRELIN
P
Initialize input variables of function block
+/-
-
FM-SI
SIRELOUT
P
Initialize output variables of function block
+/-
-
FM-SI
SIRELTIME
P
Initialize timers of function block
+/-
-
FM-SI
SLOT1
C (T)
Longitudinal groove
+/-
PM-NC
SLOT2
C (T)
Circumferential groove
+/-
PM-NC
SOFT
G
Soft path acceleration
m
+/-
PM-NC
SOFTA
P
Activate jerk-limited axis acceleration for the
+/-
-
PM-NC
programmed axes
SON
G
Nibbling ON
m
+/-
PM-NC
SONS
G
Nibbling ON in interpolation cycle
m
+/-
PM-NC
SPATH 6)
G
Path reference for FGROUP axes is arc length
m
+/-
PM-NC
SPCOF
P
Switch master spindle or spindle(s) from posi-
m
+/-
-
PM-NC
tion control to speed control
SPCON
P
Switch master spindle or spindle(s) from speed
m
+/-
-
PM-NC
control to position control
SPI
F
Converts spindle number into axis identifier
+/-
-
PM-NC
SPIF1 6)
G
Fast
m
+/-
FM-TE
NC inputs/outputs for punching/nibbling byte 1
SPIF2
G
Fast
m
+/-
FM-TE
NC inputs/outputs for punching/nibbling byte 2
SPLINEPATH
P
Define spline grouping
+/-
-
PM-NC
SPN
A
Number of path sections per block
s
+/-
PM-NC
SPOF 6)
G
Stroke OFF,
m
+/-
PM-NC
nibbling, punching OFF
SPOS
K
Spindle position
m
+/-
+/-
PM-NC
SPOSA
K
Spindle position across block boundaries
m
+/-
PM-NC
SPP
A
Length of a path section
m
+/-
PM-NC
SPRINT
F
Returns an input string formatted
+/-
PM-NC
SQRT
F
Square root
+/-
+/-
PM-NC
(arithmetic function)
SR
A
Oscillation retraction path for synchronous ac-
s
+/-
PM-NC
tion
SRA
K
Oscillation retraction path with external input
m
+/-
PM-NC
axial for synchronous action
ST
A
Oscillation sparking-out time for synchronous
s
+/-
PM-NC
action
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1271
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
STA
K
Oscillation sparking-out time axial for synchro-
m
+/-
PM-NC
nous action
START
P
Start selected programs simultaneously in sev-
+/-
-
PM-NC
eral channels from current program
STARTFIFO 6)
G
Execute; fill preprocessing memory simultane-
m
+/-
PM-NC
ously
STAT
Position of joints
s
+/-
PM-NC
STOLF
A
G0 tolerance factor
m
+/-
PM-NC
STOPFIFO
G
Stop machining; fill preprocessing memory un-
m
+/-
PM-NC
til STARTFIFO is detected, preprocessing mem-
ory is full or end of program
STOPRE
P
Preprocessing stop until all prepared blocks in
+/-
-
PM-NC
the main run are executed
STOPREOF
P
Revoke preprocess stop
-
+/-
FM-SA
STRING
K
Data type: Character string
+/-
PM-NC
STRINGIS
F
Checks the present scope of NC language and
+/-
-
PM-NC
the NC cycle names, user variables, macros,
and label names belonging specifically to this
command to establish whether these exist, are
valid, defined or active.
STRLEN
F
Define string length
+/-
-
PM-NC
SUBSTR
F
Define index of character in input string
+/-
-
PM-NC
SUPA
G
Suppression of current work offset, including
s
+/-
PM-NC
programmed offsets, system frames, hand-
wheel offsets (DRF), external work offset, and
overlaid movement
SUPD
G
Suppression of the active tool offsets
s
+/-
-
PM-NC
SVC
K
Tool cutting rate
m
+/-
PM-NC
SYNFCT
P
Evaluation of a polynomial as a function of a
-
+/-
FM-SA
condition in the motion-synchronous action
SYNR
K
The variable is read synchronously, i.e. at the
+/-
PM-NC
time of execution
SYNRW
K
The variable is read and written synchronously,
+/-
PM-NC
i.e. at the time of execution
SYNW
K
The variable is written synchronously, i.e. at
+/-
PM-NC
the time of execution
T
A
Call tool
+/-
PM-NC
(only change if specified in machine data; oth-
erwise M6 command necessary)
TAN
F
Tangent (trigon. function)
+/-
+/-
PM-NC
TANG
P
Tangential control: Define coupling
+/-
-
PM-NC
TANGDEL
P
Tangential control: Delete coupling
+/-
-
PM-NC
TANGOF
P
Tangential control: Deactivate coupling
+/-
-
PM-NC
TANGON
P
Tangential control: Activate coupling
+/-
-
PM-NC
NC programming
1272
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
TCA
P
Tool selection/tool change irrespective of tool
+/-
-
FM-TM
(828D: _TCA)
status
TCARR
A
Request toolholder (number "m")
+/-
PM-NC
TCI
P
Load tool from buffer into magazine
+/-
-
FM-TM
TCOABS 6)
G
Determine tool length components from the
m
+/-
PM-NC
current tool orientation
TCOFR
G
Determine tool length components from the
m
+/-
PM-NC
orientation of the active frame
TCOFRX
G
Determine tool orientation of an active frame
m
+/-
PM-NC
on selection of tool, tool points in X direction
TCOFRY
G
Determine tool orientation of an active frame
m
+/-
PM-NC
on selection of tool, tool points in Y direction
TCOFRZ
G
Determine tool orientation of an active frame
m
+/-
PM-NC
on selection of tool, tool points in Z direction
THETA
A
Angle of rotation
s
+/-
PM-NC
TILT
A
Tilt angle
m
+/-
PM-NC
TLIFT
P
Tangential control: Activate intermediate
+/-
-
PM-NC
block generation
TML
P
Tool selection with magazine location number
+/-
-
FM-TM
TMOF
P
Deselect tool monitoring
+/-
-
PM-NC
TMON
P
Activate tool monitoring
+/-
-
PM-NC
TO
K
Designates the end value in a FOR counter loop
+/-
PM-NC
TOFF
A
Tool length offset in the direction of the tool
m
+/-
PM-NC
length component that is effective parallel to
the geometry axis specified in the index.
TOFFL
A
Tool length offset in the direction of the tool
m
+/-
PM-NC
length component L1, L2 or L3
TOFFLR
A
Simultaneous tool length offset and tool radius
m
+/-
PM-NC
offset
TOFFOF
P
Deactivate online tool offset
+/-
-
PM-NC
TOFFON
P
Activate online tool length offset
+/-
-
PM-NC
TOFFR
A
Tool radius offset
m
+/-
PM-NC
TOFRAME
G
Align Z axis of the WCS by rotating the frame
m
+/-
PM-NC
parallel to the tool orientation
TOFRAMEX
G
Align X axis of the WCS by rotating the frame
m
+/-
PM-NC
parallel to the tool orientation
TOFRAMEY
G
Align Y axis of the WCS by rotating the frame
m
+/-
PM-NC
parallel to the tool orientation
TOFRAMEZ
G
As TOFRAME
m
+/-
PM-NC
TOLOWER
F
Convert the letters of a string into lowercase
+/-
-
PM-NC
TOOLENV
F
Save current states which are of significance to
+/-
-
PM-NC
the evaluation of the tool data stored in the
memory
TOOLGNT
F
Determine number of tools of a tool group
+/-
-
FM-TM
TOOLGT
F
Determine T number of a tool from a tool group
+/-
-
FM-TM
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1273
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
TOROT
G
Align Z axis of the WCS by rotating the frame
m
+/-
PM-NC
parallel to the tool orientation
TOROTOF 6)
G
Frame rotations in tool direction OFF
m
+/-
PM-NC
TOROTX
G
Align X axis of the WCS by rotating the frame
m
+/-
PM-NC
parallel to the tool orientation
TOROTY
G
Align Y axis of the WCS by rotating the frame
m
+/-
PM-NC
parallel to the tool orientation
TOROTZ
G
As TOROT
m
+/-
PM-NC
TOUPPER
F
Convert the letters of a string into uppercase
+/-
-
PM-NC
TOWBCS
G
Wear values in the basic coordinate system
m
+/-
PM-NC
(BCS)
TOWKCS
G
Wear values in the coordinate system of the
m
+/-
PM-NC
tool head for kinetic transformation (differs
from machine coordinate system through tool
rotation)
TOWMCS
G
Wear values in machine coordinate system
m
+/-
PM-NC
(MCS)
TOWSTD 6)
G
Initial setting value for offsets in tool length
m
+/-
PM-NC
TOWTCS
G
Wear values in the tool coordinate system
m
+/-
PM-NC
(toolholder ref. point T at the tool holder)
TOWWCS
G
Wear values in workpiece coordinate system
m
+/-
PM-NC
(WCS)
TR
K
Offset component of a frame variable
+/-
PM-NC
TRAANG
P
Transformation inclined axis
+/-
-
PM-NC
TRACON
P
Cascaded transformation
+/-
-
PM-NC
TRACYL
P
Cylinder: Peripheral surface transformation
+/-
-
PM-NC
TRAFOOF
P
Deactivate active transformations in the chan-
+/-
-
PM-NC
nel
TRAFOON
P
Activate a transformation defined with kine-
+/-
-
PM-NC
matic chains
TRAILOF
P
Asynchronous coupled motion OFF
+/-
+/-
PM-NC
TRAILON
P
Asynchronous coupled motion ON
+/-
+/-
PM-NC
TRANS
G
Absolute programmable work offset
s
+/-
PM-NC
TRANSMIT
P
Pole transformation (face machining)
+/-
-
PM-NC
TRAORI
P
4-axis, 5-axis transformation, generic transfor-
+/-
-
PM-NC
mation
TRUE
K
Logical constant: True
+/-
PM-NC
TRUNC
F
Truncation of decimal places
+/-
+/-
PM-NC
TU
Axis angle
s
+/-
PM-NC
TURN
A
Number of turns for helix
s
+/-
PM-NC
ULI
K
Upper limit value of variables
+/-
PM-NC
UNLOCK
P
Enable synchronous action with ID (continue
-
+/-
FM-SA
technology cycle)
UNTIL
K
Condition for end of REPEAT loop
+/-
PM-NC
NC programming
1274
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
Operation
Type
Meaning
W 2)
TP 3)
SA 4)
Description see 5)
1)
1) 2) 3) 4) 5) for explanations, see legend (Page 1241).
UPATH
G
Path reference for FGROUP axes is curve pa-
m
+/-
PM-NC
rameter
VAR
K
Keyword: Type of parameter transfer
+/-
PM-NC
VELOLIM
K
Adapt maximum axis velocity or spindle speed
m
+/-
-
PM-NC
VELOLIMA
K
Reduction or overshoot of the maximum slave
m
+/-
+/-
PM-NC
axis velocity
WAITC
P
Wait for the coupling block change criterion to
+/-
-
PM-NC
be fulfilled for the axes/spindles
WAITE
P
Wait for end of program in another channel.
+/-
-
PM-NC
WAITENC
P
Wait for synchronized or restored axis positions
+/-
-
PM-NC
WAITM
P
Wait for marker in specified channel; terminate
+/-
-
PM-NC
previous block with exact stop.
WAITMC
P
Wait for marker in specified channel; exact stop
+/-
-
PM-NC
only if the other channels have not yet reached
the marker.
WAITP
P
Wait for end of travel of the positioning axis
+/-
-
PM-NC
WAITS
P
Wait for spindle position to be reached
+/-
-
PM-NC
WALCS0 6)
G
Workpiece coordinate system working area
m
+/-
-
PM-NC
limitation deselected
WALCS1
G
WCS working area limitation group 1 active
m
+/-
-
PM-NC
WALCS2
G
WCS working area limitation group 2 active
m
+/-
-
PM-NC
WALCS3
G
WCS working area limitation group 3 active
m
+/-
-
PM-NC
WALCS4
G
WCS working area limitation group 4 active
m
+/-
-
PM-NC
WALCS5
G
WCS working area limitation group 5 active
m
+/-
-
PM-NC
WALCS6
G
WCS working area limitation group 6 active
m
+/-
-
PM-NC
WALCS7
G
WCS working area limitation group 7 active
m
+/-
-
PM-NC
WALCS8
G
WCS working area limitation group 8 active
m
+/-
-
PM-NC
WALCS9
G
WCS working area limitation group 9 active
m
+/-
-
PM-NC
WALCS10
G
WCS working area limitation group 10 active
m
+/-
-
PM-NC
WALIMOF
G
BCS working area limitation OFF
m
+/-
-
PM-NC
WALIMON 6)
G
BCS working area limitation ON
m
+/-
-
PM-NC
WHEN
K
The action is executed once whenever the con-
-
+/-
FM-SA
dition is fulfilled.
WHENEVER
K
The action is executed cyclically in each inter-
-
+/-
FM-SA
polator cycle when the condition is fulfilled.
WHILE
K
Start of WHILE program loop
+/-
PM-NC
WRITE
P
Write text to file system.
+/-
-
PM-NC
Appends a block to the end of the specified file.
WRTPR
P
Write string in OPI variable
+/-
-
PM-NC
X
A
Axis name
m/s
+/-
+/-
PM-NC
XOR
O
Logic exclusive OR
+/-
PM-NC
Y
A
Axis name
m/s
+/-
+/-
PM-NC
Z
A
Axis name
m/s
+/-
+/-
PM-NC
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1275
Tables
4.1 Operations
/HJHQG
1)
Type of operation:
A
Address
Identifier to which a value is assigned (e.g. OVR=10). There are also some addresses that
switch on or off a function without value assignment (e.g. CPLON and CPLOF).
C (A)
AST cycle
Predefined NC program for automatic post optimization (tuning) with AST (= Automatic Servo
Tuning). Parameters are used to adapt to the specific optimization situation; these parameters
are transferred at the call.
C (M)
Measuring cycle
Predefined NC program in which a specific, generally valid, measuring operation, such as
determining the inner diameter of a cylindrical workpiece, is programmed. Parameters are
used to adapt to the specific measurement situation; these parameters are transferred at the
call.
C (T)
Technological cycle
Predefined NC program in which a specific, generally valid, machining operation, such as
tapping of a thread or milling a pocket, is programmed. The adaptation to a specific machine
situation is realized via parameters that are transferred to the cycle during the call.
F
Predefined function (supplies a return value)
The call of the predefined function can be an operand in an expression.
G
G command
The G commands are divided into G groups. Only one G command of a group can be pro-
grammed in a block. A G command can be either modal (until it is canceled by another
command of the same group) or only effective for the block in which it is programmed (non-
modal).
K
Keyword
Identifier that defines the syntax of a block. No value is assigned to a keyword, and no NC
function can be switched on/off with a keyword.
Examples: Control structures (IF, ELSE, ENDIF, WHEN, ...), program execution (GOTOB, GOTO,
RET ...)
O
Operator
Operator for a mathematical, comparison or logical operation
P
Predefined procedure (does not supply a return value)
PA
Program attribute
Program attributes are at the end of the definition line of a subprogram:
PROC <program name>(...) <program attribute>
They determine the behavior during execution of the subprogram.
2)
Effectiveness of the operation:
m
Modal
s
Non-modal
3)
Programmability in part program:
+
Programmable
-
Not programmable
M
Programmable only by the machine manufacturer
NC programming
1276
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.1 Operations
4)
Programmability in synchronous actions:
+
Programmable
-
Not programmable
T
Programmable only in technology cycles
5)
Reference to the document containing the detailed description of the operation:
FM-A
Function Manual Axes and Spindles
FM-B
Function Manual Basic Functions
FM-SA
Function Manual Synchronous Actions
FM-SI
Function Manual, Safety Integrated
FM-TE
Function Manual Technologies
FM-TM
Function Manual, Tool Management
FM-TR
Function Manual Transformations
PM-MC
Programming Manual Measuring Cycles
PM-NC
Programming Manual NC Programming
6)
Default setting at beginning of program (factory settings of the control, if nothing else programmed).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1277
Tables
4.2 Addresses
4.2
Addresses
4.2.1
Address letters
Letter
Meaning
Numeric ex-
tension
A
Settable address identifier
x
B
Settable address identifier
x
C
Settable address identifier
x
D
Selection/deselection of tool length compensation, tool cutting edge
E
Settable address identifier
x
F
Feedrate
x
Dwell time in seconds
G
G command
H
H function
x
I
Settable address identifier
x
J
Settable address identifier
x
K
Settable address identifier
x
L
Subprogram name, subprogram call
M
M function
x
N
Subblock number
O
Unassigned
P
Number of program runs
Q
Settable address identifier
x
R
Variable identifier (R parameter)
x
Settable address identifier (without numeric extension)
S
Spindle value
x
Dwell time in spindle revolutions
x
T
Tool number
x
U
Settable address identifier
x
V
Settable address identifier
x
W
Settable address identifier
x
X
Settable address identifier
x
Y
Settable address identifier
x
Z
Settable address identifier
x
%
Start character and separator for file transfer
:
Main block number
/
Skip identifier
NC programming
1278
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.2 Addresses
4.2.2
Fixed addresses
Fixed addresses without axial extension
Address
Address
Modal/
G70/
G700/
G90/
IC
AC
DC,
CIC,
QU
Data type of the
identifier
type
non-
G71
G710
G91
ACN,
CAC,
assigned value
modal
ACP
CDC,
CACN,
CACP
D
Offset num-
m
x
Unsigned
ber
INT
F
Feed, dwell
m, s
x
x
Unsigned
time
REAL
FLIM
Maximum
m
Unsigned
path velocity
REAL
G
G command
See list
Unsigned
of the
INT
G func-
tions
H
Auxiliary
s
x
M:
functions
unsigned
INT
H:
REAL
L
Subprogram
s
Unsigned
number
INT
M
Auxiliary
s
x
M:
functions
unsigned
INT
H:
REAL
N
Block num-
s
Unsigned
ber
INT
OVR
Override
m
Unsigned
REAL
OVRRAP
Override for
m
Unsigned
rapid tra-
REAL
verse veloci-
ty
P
Number of
s
Unsigned
subprogram
INT
repetitions
PACCLIM
Maximum
m
Unsigned
path acceler-
REAL
ation
S
Spindle,
m, s
x
Unsigned
dwell time
REAL
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1279
Tables
4.2 Addresses
Address
Address
Modal/
G70/
G700/
G90/
IC
AC
DC,
CIC,
QU
Data type of the
identifier
type
non-
G71
G710
G91
ACN,
CAC,
assigned value
modal
ACP
CDC,
CACN,
CACP
SCC
Assignment
m
REAL
of a trans-
verse axis to
G96
/G961/G962
SPOS
Spindle posi-
m
x
x
x
REAL
tion
SPOSA
Spindle posi-
m
x
x
x
REAL
tion across
block boun-
daries
T
Tool number
m
x
Unsigned
INT
Fixed addresses with axial extension
Address
Address
Modal/
G70/
G700/
G90/
IC
AC
DC,
CIC,
QU
Data type of the
identifier
type
non-
G71
G710
G91
ACN,
CAC,
assigned value
modal
ACP
CDC,
CACN,
CACP
ACC
Axial accel-
m
Unsigned
eration
REAL
ACCLIMA
Axial accel-
m
Unsigned
eration limi-
REAL
tation of fol-
lowing axis
1)
AX
Variable axis
x
x
x
x
x
x
REAL
identifier
FA
Axial fee-
m
x
x
Unsigned
drate
REAL
FDA
Axis fee-
s
x
Unsigned
drate for
REAL
handwheel
override
FGREF
Reference
m
x
x
Unsigned
radius
REAL
FL
Axial fee-
m
x
Unsigned
drate limit
REAL
FMA
Axial
m
Unsigned
synchron-
REAL
ized feedrate
FOC
Non-modal
s
REAL
traversing
with limited
torque
NC programming
1280
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.2 Addresses
Address
Address
Modal/
G70/
G700/
G90/
IC
AC
DC,
CIC,
QU
Data type of the
identifier
type
non-
G71
G710
G91
ACN,
CAC,
assigned value
modal
ACP
CDC,
CACN,
CACP
FOCOF
Modal tra-
m
REAL
versing with
limited tor-
que OFF
FOCON
Modal tra-
m
REAL
versing with
limited tor-
que ON
FXS
Travel to
m
Unsigned
fixed stop ON
INT
FXST
Torque limit
m
REAL
for travel to
fixed stop
FXSW
Monitoring
m
REAL
window for
travel to
fixed stop
IP
Variable in-
s
x
x
x
x
x
REAL
terpolation
parameter
JERKLIM
Axial jerk
m
Unsigned
limitation
REAL
JERKLIMA
Axial jerk
m
Unsigned
limitation of
REAL
following ax-
is
MEAC
Cyclic meas-
s
INT
uring
Mode and
1 - 4 trigger
events
MEASA
Axial meas-
s
INT
urement
Mode and
with delete
1 - 4 trigger
distance-to-
events
go
MEAWA
Axial meas-
s
INT
urement
Mode and
without de-
1 - 4 trigger
lete dis-
events
tance-to-go
MOV
Start posi-
m
x
x
x
x
x
x
x
REAL
tioning axis
OS
Oscillation
m
Unsigned
ON/OFF
INT
OSB
Oscillation
m
x
x
x
x
x
x
REAL
starting
point
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1281
Tables
4.2 Addresses
Address
Address
Modal/
G70/
G700/
G90/
IC
AC
DC,
CIC,
QU
Data type of the
identifier
type
non-
G71
G710
G91
ACN,
CAC,
assigned value
modal
ACP
CDC,
CACN,
CACP
OSCILL
Axis assign-
m
Axis:
ment for os-
1 - 3 infeed axes
cillation, ac-
tivate oscilla-
tion
OSCTRL
Oscillation
m
Unsigned
options
INT:
Setting options,
unsigned
INT: Reset op-
tions
OSE
Oscillation
m
x
x
x
x
x
x
REAL
end position
OSNSC
Number of
m
Unsigned
spark-out cy-
INT
cles (oscilla-
tion)
OSP1
Left reversal
m
x
x
x
x
x
x
REAL
point (oscil-
lation)
OSP2
Right rever-
m
x
x
x
x
x
x
REAL
sal point (os-
cillation)
OST1
Stopping
m
REAL
time at left
reversal
point (oscil-
lation)
OST2
Stopping
m
REAL
time at right
reversal
point (oscil-
lation)
OVRA
Axial over-
m
x
Unsigned
ride
REAL
PO
Polynomial
s
x
x
x
x
x
Unsigned
coefficient
REAL
POLF
LIFTFAST po-
m
x
x
Unsigned
sition
REAL
POS
Positioning
m
x
x
x
x
x
x
x
REAL
axis
POSA
Positioning
m
x
x
x
x
x
x
x
REAL
axis across
block boun-
daries
NC programming
1282
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.2 Addresses
Address
Address
Modal/
G70/
G700/
G90/
IC
AC
DC,
CIC,
QU
Data type of the
identifier
type
non-
G71
G710
G91
ACN,
CAC,
assigned value
modal
ACP
CDC,
CACN,
CACP
POSP
Positioning
m
x
x
x
x
x
x
REAL:
axis in parts
End position
(oscillation)
Real:
Partial length
INT: Option
STA
Sparking out
m
Unsigned
time (axial)
REAL
SRA
Retraction
m
Unsigned
path on ex-
REAL
ternal input
(axial)
VELOLIM
Axial veloci-
m
Unsigned
ty limitation
REAL
VELOLIMA
Axial veloci-
m
Unsigned
ty limitation
REAL
of following
axis
1)
Absolute end points: Modal, incremental end points: Non-modal, otherwise modal/non-modal depending on the G function
that determines the syntax.
4.2.3
Settable addresses
Address iden-
Address type
Modal/
G90/
IC
AC
DC,
CIC,
PR,
QU
Max.
Data type of
tifier (default
non-
G91
ACN,
CAC,
PM
num-
the assigned
setting)
modal
ACP
CDC,
ber
value
CACN,
CACP
Axis values and end points
1)
X, Y, Z,
Axis
x
x
x
x
8
REAL
A, B, C
AP
Polar angle
m/s 1)
x
x
x
1
REAL
RP
Polar radius
m/s 1)
x
x
x
1
Unsigned
REAL
Tool orientation
A2, B2, C2
Euler angle or
s
3
REAL
RPY angle
A3, B3, C3
Components of
s
3
REAL
the directional
vector
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1283
Tables
4.2 Addresses
Address iden-
Address type
Modal/
G90/
IC
AC
DC,
CIC,
PR,
QU
Max.
Data type of
tifier (default
non-
G91
ACN,
CAC,
PM
num-
the assigned
setting)
modal
ACP
CDC,
ber
value
CACN,
CACP
A4, B4, C4
Components of
s
3
REAL
the surface nor-
mal vector at the
start of the block
A5, B5, C5
Components of
s
3
REAL
the surface nor-
mal vector at the
end of the block
A6, B6, C6
Components of
s
3
REAL
the direction vec-
tor for the rotary
axis of the taper
A7, B7, C7
Vector compo-
s
3
REAL
nents for the in-
termediate ori-
entation on the
peripheral sur-
face of a taper
LEAD
Lead angle
m
1
REAL
THETA
Angle of rota-
m
x
x
1
REAL
tion, rotation
around the tool
direction
TILT
Tilt angle
m
1
REAL
ORIS
Orientation
m
1
REAL
change (in rela-
tion to the path)
Interpolation parameters
I, J, K
Interpolation pa-
s
x2)
x2)
3
REAL
rameter
intermediate
point coordinate
I1, J1, K1
s
x
x
x
3
REAL
RPL
Rotation in the
s
1
REAL
plane
CR
Circle radius
s
1
Unsigned
REAL
AR
Opening angle
s
1
Unsigned
REAL
TURN
Number of turns
s
1
Unsigned
for helix
INT
PL
Parameter inter-
s
1
Unsigned
val length
REAL
PW
weight
s
1
Unsigned
REAL
NC programming
1284
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.2 Addresses
Address iden-
Address type
Modal/
G90/
IC
AC
DC,
CIC,
PR,
QU
Max.
Data type of
tifier (default
non-
G91
ACN,
CAC,
PM
num-
the assigned
setting)
modal
ACP
CDC,
ber
value
CACN,
CACP
SD
Spline degree
m
1
Unsigned
INT
TU
Axis angle
s
1
Unsigned
INT
STAT
Position of joints
m
1
Unsigned
INT
SF
Starting point
m
1
REAL
offset for thread
cutting
DISCL
Safety clearance
s
1
Unsigned
SAR
REAL
DISR
Repositioning
s
1
Unsigned
clearance / SAR
REAL
clearance
DISPR
Path differential
s
1
Unsigned
for repositioning
REAL
ALF
Rapid lift angle
m
1
Unsigned
INT
DILF
Rapid lift length
m
1
REAL
FP
Fixed point:
s
1
Unsigned
Number of fixed
INT
point to be ap-
proached
RNDM
Modal rounding
m
1
Unsigned
REAL
RND
Non-modal
s
1
Unsigned
rounding
REAL
CHF
Chamfer non-
s
1
Unsigned
modal
REAL
CHR
Chamfer in origi-
s
1
Unsigned
nal direction of
REAL
motion
ANG
Contour angle
s
1
REAL
ISD
Insertion depth
m
1
REAL
DISC
Transition circle
m
1
Unsigned
overshoot tool
REAL
radius compen-
sation
OFFN
Offset contour
m
1
REAL
normal
DITS
Thread run-in
m
1
REAL
path
DITE
Thread run-out
m
1
REAL
path
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1285
Tables
4.2 Addresses
Address iden-
Address type
Modal/
G90/
IC
AC
DC,
CIC,
PR,
QU
Max.
Data type of
tifier (default
non-
G91
ACN,
CAC,
PM
num-
the assigned
setting)
modal
ACP
CDC,
ber
value
CACN,
CACP
Corner rounding criteria
ADIS
Rounding clear-
m
1
Unsigned
ance
REAL
ADISPOS
Rounding clear-
m
1
Unsigned
ance for rapid
REAL
traverse
Measurement
MEAS
Measurement
s
1
Unsigned
with touch-trig-
INT
ger probe
MEAW
Measurement
s
1
Unsigned
with touch-trig-
INT
ger probe with-
out deletion of
distance-to-go
Axis, spindle behavior
LIMS
Spindle speed
m
1
Unsigned
limitation
REAL
COARSEA
Block change be-
m
havior: Exact
stop coarse axial
FINEA
Block change be-
m
havior: Exact
stop fine axial
IPOENDA
Block change be-
m
havior: Interpola-
tor stop axial
DIACYCOFA
Transverse axis:
m
Axial diameter
programming
OFF in cycles
DIAM90A
Transverse axis:
m
Axial diameter
programming
for G90
DIAMCHAN
Transverse axis:
m
Transfer of all
transverse axes
in the diameter
programming
channel status
NC programming
1286
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.2 Addresses
Address iden-
Address type
Modal/
G90/
IC
AC
DC,
CIC,
PR,
QU
Max.
Data type of
tifier (default
non-
G91
ACN,
CAC,
PM
num-
the assigned
setting)
modal
ACP
CDC,
ber
value
CACN,
CACP
DIAMCHANA
Transverse axis:
m
Transfer of the di-
ameter program-
ming channel
status
DIAMOFA
Transverse axis:
m
Axial diameter
programming
OFF
DIAMONA
Transverse axis:
m
Axial diameter
programming
ON
GP
Position: Indirect
m
programming of
position attrib-
utes
Feedrates
FAD
Speed of the
s
x
1
Unsigned
slow feed move-
REAL
ment
FD
Path feedrate for
s
1
Unsigned
handwheel over-
REAL
ride
FRC
Feedrate for radi-
s
1
Unsigned
us and chamfer
REAL
FRCM
Feedrate for radi-
m
1
Unsigned
us and chamfer,
REAL
modal
FB
Non-modal fee-
s
1
Unsigned
drate
REAL
Nibbling/punching
SPN
Number of path
s
1
INT
sections per
block
SPP
Length of a path
m
1
REAL
section
Grinding
ST
Sparking-out
s
1
Unsigned
time
REAL
SR
Retraction path
s
1
Unsigned
REAL
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1287
Tables
4.2 Addresses
Address iden-
Address type
Modal/
G90/
IC
AC
DC,
CIC,
PR,
QU
Max.
Data type of
tifier (default
non-
G91
ACN,
CAC,
PM
num-
the assigned
setting)
modal
ACP
CDC,
ber
value
CACN,
CACP
Tool selection
TCARR
Tool carrier
m
1
INT
Tool management
DL
Total tool offset
m
1
INT
OEM addresses
OMA1
OEM address 1
m
x
x
x
1
REAL
OMA2
OEM address 2
m
x
x
x
1
REAL
OMA3
OEM address 3
m
x
x
x
1
REAL
OMA4
OEM address 4
m
x
x
x
1
REAL
OMA5
OEM address 5
m
x
x
x
1
REAL
Miscellaneous
CUTMOD
Modification of
m
INT
the offset data
for rotatable
tools (in combi-
nation with ori-
entable tool car-
riers)
CUTMODK
Modification of
m
STRING
the offset data
for rotatable
tools (in combi-
nation with ori-
entation trans-
formations that
have been de-
fined by means
of kinematic
chains)
TOFF
Tool length off-
m
REAL
set parallel to the
specified geome-
try axis
TOFFL
Tool length off-
m
REAL
set in the direc-
tion of the tool
length compo-
nent
L1, L2 or L3
NC programming
1288
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.2 Addresses
Address iden-
Address type
Modal/
G90/
IC
AC
DC,
CIC,
PR,
QU
Max.
Data type of
tifier (default
non-
G91
ACN,
CAC,
PM
num-
the assigned
setting)
modal
ACP
CDC,
ber
value
CACN,
CACP
TOFFR
Tool radius offset
m
REAL
TOFFLR
Simultaneous
m
REAL
tool length offset
and tool radius
offset
1)
Absolute end points: Modal, incremental end points: non-modal, otherwise modal/non-modal depending on the G command
that determines the syntax.
2)
As circle center points, IPO parameters act incrementally. They can be programmed in absolute mode with AC. The address
modification is ignored when the parameters have other meanings (e.g. thread lead).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1289
Tables
4.3 G commands
4.3
G commands
4.3.1
G commands
The G commands are divided into G groups. In part programs or synchronized actions, in a block,
only a G command of a G group can be written. A G command can be modal or non-modal.
Modal: up to programming another G command of the same G group.
4.3.2
G group 1: Modally valid motion commands
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G0
1
Rapid traverse
+
m
G1
2
Linear interpolation (linear interpolation)
+
m
x
G2
3
Circular interpolation clockwise
+
m
G3
4
Circular interpolation counter-clockwise
+
m
CIP
5
Circular interpolation through intermediate point
+
m
ASPLINE
6
Akima spline
+
m
BSPLINE
7
B spline
+
m
CSPLINE
8
Cubic spline
+
m
POLY
9
Polynomial interpolation
+
m
G33
10
Thread cutting with constant lead
+
m
G331
11
Tapping
+
m
G332
12
Retraction (tapping)
+
m
OEMIPO1
13
Reserved
+
m
OEMIPO2
14
Reserved
+
m
CT
15
Circle with tangential transition
+
m
G34
16
Thread cutting with linear increasing lead
+
m
G35
17
Thread cutting with linear decreasing lead
+
m
INVCW
18
Involute interpolation clockwise
+
m
INVCCW
19
Counter-clockwise involute interpolation
+
m
G335
20
Turning a convex thread in clockwise direction
+
m
G336
21
Turning a convex thread in counter-clockwise direction
+
m
NC programming
1290
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.3
G group 2: Non-modally valid motion, dwell time
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G4
1
Dwell time, preset
-
s
G63
2
Tapping without synchronization
-
s
G74
3
Reference point approach with synchronization
-
s
G75
4
Fixed-point approach
-
s
REPOSL
5
Linear repositioning
-
s
REPOSQ
6
Repositioning in a quadrant
-
s
REPOSH
7
Repositioning in semicircle
-
s
REPOSA
8
Linear repositioning with all axes
-
s
REPOSQA
9
Linear repositioning with all axes, geometry axes in
-
s
quadrant
REPOSHA
10
Repositioning with all axes; geometry axes in semicircle
-
s
G147
11
Approach contour with straight line
-
s
G247
12
Approach contour with quadrant
-
s
G347
13
Approach contour with semicircle
-
s
G148
14
Leave contour with straight line
-
s
G248
15
Leave contour with quadrant
-
s
G348
16
Leave contour with semicircle
-
s
G5
17
Oblique plunge-cut grinding
-
s
G7
18
Compensatory motion during oblique plunge-cut grind-
-
s
ing
4.3.4
G group 3: Programmable frame, working area limitation and pole
programming
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
TRANS
1
TRANSLATION: Programmable offset
-
s
ROT
2
ROTATION: Programmable rotation
-
s
SCALE
3
SCALE: Programmable scaling
-
s
MIRROR
4
MIRROR: Programmable mirroring
-
s
ATRANS
5
Additive TRANSLATION: Additive programmable trans-
-
s
lation
AROT
6
Additive ROTATION: Programmable rotation
-
s
ASCALE
7
Additive SCALE: Programmable scaling
-
s
AMIRROR
8
Additive MIRROR: Programmable mirroring
-
s
-
9
Unassigned
-
-
G25
10
Minimum working area limitation/spindle speed limita-
-
s
tion
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1291
Tables
4.3 G commands
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G26
11
Maximum working area limitation/spindle speed limita-
-
s
tion
G110
12
Pole programming relative to the last programmed set-
-
s
point position
G111
13
Polar programming relative to origin of current work-
-
s
piece coordinate system
G112
14
Pole programming relative to the last valid pole
-
s
G58
15
Absolute programmable work offset
-
s
G59
16
Additive programmable work offset
-
s
ROTS
17
Rotation with solid angle
-
s
AROTS
18
Additive rotation with solid angle
-
s
4.3.5
G group 4: FIFO
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
STARTFIFO
1
Start FIFO
+
m
x
Execute and simultaneously fill preprocessing memory
STOPFIFO
2
STOP FIFO
+
m
Stop machining; fill preprocessing memory until START-
FIFO is detected, FIFO is full or end of program
FIFOCTRL
3
Activation of automatic preprocessing memory control
+
m
4.3.6
G group 6: Plane selection
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G17
1
Plane selection 1. - 2. Geometry axis
+
m
x
G18
2
Plane selection 3. - 1. Geometry axis
+
m
G19
3
Plane selection 2. - 3. Geometry axis
+
m
4.3.7
G group 7: Tool radius compensation
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G40
1
No tool radius compensation
+
m
x
G41
2
Tool radius compensation left of the contour
-
m
G42
3
Tool radius compensation right of the contour
-
m
NC programming
1292
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.8
G group 8: Settable work offset
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G500
1
Deactivation of settable work offset (G54 to G57, G505
+
m
x
to G599)
G54
2
1st settable work offset
+
m
G55
3
2nd settable work offset
+
m
G56
4
3rd settable work offset
+
m
G57
5
4th settable work offset
+
m
G505
6
5th settable work offset
+
m
+
m
G599
100
99th settable work offset
+
m
Each of the G commands in this G group is used to activate an adjustable user frame $P_UIFR[ ].
G54 corresponds to frame $P_UIFR[1], G505 corresponds to frame $P_UIFR[5].
The number of adjustable user frames and therefore the number of G commands in this G group can be set using machine data
MD28080 $MC_MM_NUM_USER_FRAMES.
4.3.9
G group 9: Frame and tool offset suppression
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G53
1
Suppression of current frames:
-
s
Programmable frame including
system frame for TOROT and TOFRAME and
active adjustable frame (G54 to G57, G505 to G599)
SUPA
2
As for G153 including suppression of
-
s
system frames for actual value setting, scratching, ex-
ternal work offset, PAROT including handwheel offsets
(DRF), [external work offset], overlaid movement
G153
3
As for G53 including suppression of all channel-specific
-
s
and/or NCU-global basic frames
SUPD
4
Suppression of the active tool offsets
-
s
4.3.10
G group 10: Exact stop - continuous-path mode
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G60
1
Exact stop
+
m
x
G64
2
Continuous-path mode
+
m
G641
3
Continuous-path mode with smoothing according to
+
m
distance criterion (= programmable rounding clear-
ance)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1293
Tables
4.3 G commands
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G642
4
Continuous-path mode with smoothing within the de-
+
m
fined tolerances
G643
5
Continuous-path mode with smoothing within the de-
+
m
fined tolerances (block-internal)
G644
6
Continuous-path mode with smoothing with maximum
+
m
possible dynamic response
G645
7
Continuous-path mode with smoothing and tangential
+
m
block transitions within defined tolerances
4.3.11
G group 11: Exact stop, non-modal
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G9
1
Exact stop
-
s
4.3.12
G group 12: Block change criteria at exact stop (G60/G9)
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G601
1
Block change at exact stop fine
+
m
x
G602
2
Block change at exact stop coarse
+
m
G603
3
Block change at IPO block end
+
m
4.3.13
G group 13: Workpiece measuring inch/metric
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G70
1
Input system inches (length)
+
m
G71
2
Input system metric mm (lengths)
+
m
x
G700
3
Input system inch, inch/min
+
m
(lengths + velocity + system variable)
G710
4
Input system metric mm, mm/min
+
m
(lengths + velocity + system variable)
NC programming
1294
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.14
G group 14: Workpiece measuring absolute/incremental
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G90
1
Absolute dimension
+
m
x
G91
2
Incremental dimensions
+
m
4.3.15
G group 15: Feed type
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G93
1
Inverse-time feedrate rpm
+
m
G94
2
Linear feedrate in mm/min, inch/min
+
m
x
G95
3
Revolutional feedrate in mm/rev, inch/rev
+
m
G96
4
Revolutional feedrate (as for G95) and constant cutting
+
m
rate
G97
5
Revolutional feedrate and constant spindle speed (con-
+
m
stant cutting rate OFF)
G931
6
Feedrate specified by means of traversing time, deacti-
+
m
vate constant path velocity
G961
7
Linear feedrate (as for G94) and constant cutting rate
+
m
G971
8
Linear feedrate and constant spindle speed (constant
+
m
cutting rate OFF)
G942
9
Linear feedrate and constant cutting rate or constant
+
m
spindle speed
G952
10
Revolutional feedrate and constant cutting rate or con-
+
m
stant spindle speed
G962
11
Linear feedrate or revolutional feedrate and constant
+
m
cutting rate
G972
12
Linear feedrate or revolutional feedrate and constant
+
m
spindle speed (constant cutting rate OFF)
G973
13
Revolutional feedrate without spindle speed limitation
+
m
and constant spindle speed (G97 without LIMS for ISO
mode)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1295
Tables
4.3 G commands
4.3.16
G group 16: Feedrate override at inside and outside curvature
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
CFC
1
Constant feedrate at contour effective for internal and
+
m
x
external radius
CFTCP
2
Constant feedrate in tool center point (center point
+
m
path)
CFIN
3
Constant feedrate for internal radius only, acceleration
+
m
for external radius
4.3.17
G group 17: Approach and retraction response, tool offset
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
NORM
1
Normal position at starting and end points
+
m
x
KONT
2
Travel around contour at starting and end points
+
m
KONTT
3
Approach/retraction with constant tangent
+
m
KONTC
4
Approach/retraction with constant curvature
+
m
4.3.18
G group 18: Corner behavior, tool offset
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G450
1
Transition circle
+
m
x
(tool travels around workpiece corners on a circular
path)
G451
2
Intersection of equidistant paths
+
m
(tool backs off from the workpiece corner)
4.3.19
G group 19: Curve transition at beginning of spline
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
BNAT
1
Natural transition to first spline block
+
m
x
BTAN
2
Tangential transition to first spline block
+
m
BAUTO
3
Definition of the first spline section by means of the next
+
m
3 points
NC programming
1296
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.20
G group 20: Curve transition at end of spline
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
ENAT
1
Natural transition to next traversing block
+
m
x
ETAN
2
Tangential transition to next traversing block
+
m
EAUTO
3
Definition of the last spline section by means of the last
+
m
3 points
4.3.21
G group 21: Acceleration profile
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
BRISK
1
Fast non-smoothed path acceleration
+
m
x
SOFT
2
Soft smoothed path acceleration
+
m
DRIVE
3
Velocity-dependent path acceleration
+
m
4.3.22
G group 22: Tool offset type
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
CUT2D
1
2½D TRC
+
m
x
CUT2DF
2
2½D TRC relative to the current frame (inclined plane)
+
m
CUT3DC
3
3D TRC for circumferential milling
+
m
CUT3DF
4
3D TRC for face milling with change in orientation
+
m
CUT3DFS
5
3D TRC for face milling with constant orientation. The
+
m
tool orientation is defined by G17 - G19 and is not in-
fluenced by frames.
CUT3DFF
6
3D TRC for face milling with constant orientation. The
+
m
tool orientation is the direction defined by G17 - G19
and, in some cases, rotated by a frame.
CUT3DCC
7
3D TRC for circumferential milling taking into account
+
m
a limitation surface with 3D radius compensation: Con-
tour on the machining surface
CUT3DCCD
8
3D TRC for circumferential milling taking into account
+
m
a limitation surface with a differential tool on the tool
center-point path: Infeed to the limitation surface
CUT2DD
9
2½ D TRC in relation to the differential tool
+
m
CUT2DFD
10
2½D TRC in relation to a differential tool relative to the
+
m
current frame (inclined plane)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1297
Tables
4.3 G commands
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
CUT3DCD
11
3D TRC in relation to a differential tool for circumfer-
+
m
ential milling
CUT3DFD
12
3D TRC in relation to a differential tool for face milling
+
m
with change in orientation
4.3.23
G group 23: Collision monitoring at inside contours
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
CDOF
1
Collision detection OFF
+
m
x
CDON
2
Collision detection ON
+
m
CDOF2
3
Collision detection OFF for 3D circumferential milling
+
m
4.3.24
G group 24: Precontrol
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
FFWOF
1
Feedforward control OFF
+
m
x
FFWON
2
Feedforward control ON
+
m
4.3.25
G group 25: Tool orientation reference
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
ORIWKS
1
Tool orientation in workpiece coordinate system (WCS)
+
m
x
ORIMKS
2
Tool orientation in machine coordinate system (MCS)
+
m
4.3.26
G group 26: Repositioning mode for REPOS (modal)
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
RMB
1
Repositioning to start of block
-
m
RMI
2
Repositioning to interrupt point
-
m
x
RME
3
Repositioning to end of block
-
m
RMN
4
Repositioning to the nearest path point
-
m
NC programming
1298
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.27
G group 27: Tool offset for change in orientation at outside corners
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
ORIC
1
Orientation changes at outside corners are superim-
+
m
x
posed on the circle block to be inserted
ORID
2.
Orientation changes are performed before the circle
+
m
block
4.3.28
G group 28: Working area limitation
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
WALIMON
1
Working area limitation ON
+
m
x
WALIMOF
2
Working area limitation OFF
+
m
4.3.29
G group 29: Radius/diameter programming
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
DIAMOF
1
Modal channel-specific diameter programming OFF
+
m
x
Deactivation activates channel-specific radius program-
ming.
DIAMON
2
Modal independent channel-specific diameter program-
+
m
ming ON
The effect is independent of the programmed dimen-
sions mode (G90/G91).
DIAM90
3
Modal dependent channel-specific diameter program-
+
m
ming ON
The effect is dependent on the programmed dimen-
sions mode (G90/G91).
DIAMCYCOF
4
Modal channel-specific diameter programming during
+
m
cycle processing OFF
4.3.30
G group 30: NC block compression
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
COMPOF
1
NC block compression OFF
+/-
m
x
COMPON
2
Compressor function COMPON ON
+/-
m
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1299
Tables
4.3 G commands
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
COMPCURV
3
Compressor function COMPCURV ON
+/-
m
COMPCAD
4
Compressor function COMPCAD ON
+/-
m
COMPSURF
5
COMPSURF ON compressor function
+/-
m
4.3.31
G group 31: OEM G commands
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G810
1
OEM G command
-
m
G811
2
OEM G command
-
m
G812
3
OEM G command
-
m
G813
4
OEM G command
-
m
G814
5
OEM G command
-
m
G815
6
OEM G command
-
m
G816
7
OEM G command
-
m
G817
8
OEM G command
-
m
G818
9
OEM G command
-
m
G819
10
OEM G command
-
m
Two G groups are reserved for the OEM user. This enables the OEM to program functions that can be customized.
4.3.32
G group 32: OEM G commands
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G820
1
OEM G command
-
m
G821
2
OEM G command
-
m
G822
3
OEM G command
-
m
G823
4
OEM G command
-
m
G824
5
OEM G command
-
m
G825
6
OEM G command
-
m
G826
7
OEM G command
-
m
G827
8
OEM G command
-
m
G828
9
OEM G command
-
m
G829
10
OEM G command
-
m
Two G groups are reserved for the OEM user. This enables the OEM to program functions that can be customized.
NC programming
1300
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.33
G group 33: Settable fine tool offset
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
FTOCOF
1
Online fine tool offset OFF
+
m
x
FTOCON
2
Online fine tool offset ON
-
m
4.3.34
G group 34: Tool orientation smoothing
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
OSOF
1
Tool orientation smoothing OFF
+
m
x
OSC
2
Continuous tool orientation smoothing
+
m
OSS
3
Tool orientation smoothing at end of block
+
m
OSSE
4
Tool orientation smoothing at start and end of block
+
m
OSD
5
Block-internal smoothing with specification of path
+
m
length
OST
6
Block-internal smoothing with specification of angular
+
m
tolerance
4.3.35
G group 35: Punching and nibbling
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
SPOF
1
Stroke US, punching and nibbling OFF
+
m
x
SON
2
Nibbling ON
+
m
PON
3
Punching ON
+
m
SONS
4
Nibbling ON in interpolation cycle
-
m
PONS
5
Punching ON in interpolation cycle
-
m
4.3.36
G group 36: Punching with delay
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
PDELAYON
1
Punching with delay ON
+
m
x
PDELAYOF
2
Punching with delay OFF
+
m
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1301
Tables
4.3 G commands
4.3.37
G group 37: Feedrate profile
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
FNORM
1
Feedrate normal to DIN 66025
+
m
x
FLIN
2
Feed linear variable
+
m
FCUB
3
Feedrate variable according to cubic spline
+
m
4.3.38
G group 38: Assignment of fast inputs/outputs for punching/nibbling
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
SPIF1
1
Fast NC inputs/outputs for punching/nibbling byte 1
+
m
x
SPIF2
2
Fast NC inputs/outputs for punching/nibbling byte 2
+
m
4.3.39
G group 39: Programmable contour accuracy
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
CPRECOF
1
Programmable contour accuracy OFF
+
m
x
CPRECON
2
Programmable contour accuracy ON
+
m
4.3.40
G group 40: Tool radius compensation constant
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
CUTCONOF
1
Constant tool radius compensation OFF
+
m
x
CUTCONON
2
Constant tool radius compensation ON
+
m
4.3.41
G group 41: Interruptible thread cutting
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
LFOF
1
Interruptible thread cutting OFF
+
m
x
LFON
2
Interruptible thread cutting ON
+
m
NC programming
1302
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.42
G group 42: Tool carrier
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
TCOABS
1
Determine tool length components from the current
+
m
x
tool orientation
TCOFR
2
Determine tool length components from the orienta-
+
m
tion of the active frame
TCOFRZ
3
Determine tool orientation of an active frame on selec-
+
m
tion of tool, tool points in Z direction
TCOFRY
4
Determine tool orientation of an active frame on selec-
+
m
tion of tool, tool points in Y direction
TCOFRX
5
Determine tool orientation of an active frame on selec-
m
tion of tool, tool points in X direction
4.3.43
G group 43: SAR approach direction
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G140
1
SAR approach direction defined by G41/G42
+
m
x
G141
2
SAR approach direction to left of contour
+
m
G142
3
SAR approach direction to right of contour
+
m
G143
4
SAR approach direction tangent-dependent
+
m
4.3.44
G group 44: SAR path segmentation
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G340
1
Spatial approach block; in other words, infeed depth
+
m
x
and approach in plane in one block
G341
2
Start with infeed on perpendicular axis (Z), then ap-
+
m
proach in plane
4.3.45
G group 45: Path reference for FGROUP axes
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
SPATH
1
Path reference for FGROUP axes is arc length
+
m
x
UPATH
2
Path reference for FGROUP axes is curve parameter
+
m
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1303
Tables
4.3 G commands
4.3.46
G group 46: Plane selection for fast retraction
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
LFTXT
1
The plane is determined from the path tangent and the
+
m
x
current tool orientation
LFWP
2
The plane is determined by the current working plane
+
m
(G17/G18/G19)
LFPOS
3
Axial retraction to a position
+
m
4.3.47
G group 47: Mode switchover for external NC code
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G290
1
Activate SINUMERIK language mode
+
m
x
G291
2
Activate ISO language mode
+
m
4.3.48
G group 48: Approach and retraction response with tool radius compensation
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
G460
1
Collision detection for approach and retraction block ON
+
m
x
G461
2
Extend border block with arc if no intersection in TRC
+
m
block
G462
3
Extend border block with straight line if no intersection
+
m
in TRC block
4.3.49
G group 49: Point-to-point motion
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
CP
1
Path motion
+
m
x
PTP
2
Point-to-point motion (synchronized axis motion)
+
m
PTPG0
3
Point-to-point motion only with G0, otherwise path mo-
+
m
tion CP
PTPWOC
4
Point-to-point motion without compensationary mo-
+
m
tion, which is caused by orientation changes
NC programming
1304
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.50
G group 50: Orientation programming
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
ORIEULER
1
Orientation angle via Euler angle
+
m
x
ORIRPY
2
Orientation angle via RPY angle (rotation sequence XYZ)
+
m
ORIVIRT1
3
Orientation angle via virtual orientation axes (definition
+
m
1)
ORIVIRT2
4
Orientation angle via virtual orientation axes (definition
+
m
2)
ORIAXPOS
5
Orientation angle via virtual orientation axes with rota-
+
m
ry axis positions
ORIRPY2
6
Orientation angle via RPY angle (rotation sequence ZYX)
+
m
4.3.51
G group 51: Interpolation type for orientation programming
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
ORIVECT
1
Large-circle interpolation (identical to ORIPLANE)
+
m
x
ORIAXES
2
Linear interpolation of machine axes or orientation axes
+
m
ORIPATH
3
Tool orientation trajectory referred to path
+
m
ORIPLANE
4
Interpolation in plane (identical to ORIVECT)
+
m
ORICONCW
5
Interpolation on the peripheral surface of a taper in the
+
m
clockwise direction
ORICONCCW
6
Interpolation on the peripheral surface of a taper in the
+
m
counter-clockwise direction
ORICONIO
7
Interpolation on a conical peripheral surface with inter-
+
m
mediate orientation setting
ORICONTO
8
Interpolation on a peripheral surface of the cone with
+
m
tangential transition
ORICURVE
9
Interpolation with additional space curve for orientation
+
m
ORIPATHS
10
Tool orientation in relation to the path, kinks in the ori-
+
m
entation characteristic are smoothed
4.3.52
G group 52: Frame rotation in relation to workpiece
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
PAROTOF
1
Frame rotation in relation to workpiece OFF
+
m
x
PAROT
2
Frame rotation in relation to workpiece ON
+
m
The workpiece coordinate system is aligned on the
workpiece.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1305
Tables
4.3 G commands
4.3.53
G group 53: Frame rotation in relation to tool
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
TOROTOF
1
Frame rotation in relation to tool OFF
+
m
x
TOROT
2
Align Z axis of the WCS by rotating the frame parallel to
+
m
the tool orientation
TOROTZ
3
As TOROT
+
m
TOROTY
4
Align Y axis of the WCS by rotating the frame parallel to
+
m
the tool orientation
TOROTX
5
Align X axis of the WCS by rotating the frame parallel to
+
m
the tool orientation
TOFRAME
6
Align Z axis of the WCS by rotating the frame parallel to
+
m
the tool orientation
TOFRAMEZ
7
As TOFRAME
+
m
TOFRAMEY
8
Align Y axis of the WCS by rotating the frame parallel to
+
m
the tool orientation
TOFRAMEX
9
Align X axis of the WCS by rotating the frame parallel to
+
m
the tool orientation
4.3.54
G group 54: Vector rotation for polynomial programming
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
ORIROTA
1
Vector rotation absolute
+
m
x
ORIROTR
2
Vector rotation relative
+
m
ORIROTT
3
Vector rotation tangential
+
m
ORIROTC
4
Tangential rotational vector in relation to path tangent
+
m
4.3.55
G group 55: Rapid traverse with/without linear interpolation
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
RTLION
1
Rapid traverse motion with linear interpolation ON
+
m
x
RTLIOF
2
Rapid traverse motion with linear interpolation OFF
+
m
Rapid traverse motion is achieved with single-axis inter-
polation.
NC programming
1306
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.56
G group 56: Taking into account tool wear
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
TOWSTD
1
Initial setting value for offsets in tool length
+
m
x
TOWMCS
2
Wear values in the machine coordinate system (MCS)
+
m
TOWWCS
3
Wear values in the workpiece coordinate system (WCS)
+
m
TOWBCS
4
Wear values in the basic coordinate system (BCS)
+
m
TOWTCS
5
Wear values in the tool coordinate system (toolholder
+
m
ref. point T at the toolholder)
TOWKCS
6
Wear values in the coordinate system of the tool head
+
m
for kinetic transformation
(differs from machine coordinate system through tool
rotation)
4.3.57
G group 57: Corner deceleration
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
FENDNORM
1
Corner deceleration OFF
+
m
x
G62
2
Corner deceleration at inside corners when tool radius
+
m
compensation is active (G41/G42)
G621
3
Corner deceleration at all corners
+
m
4.3.58
G group 59: Dynamic response mode for path interpolation
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
DYNNORM
1
Standard dynamic response
+
m
x
DYNPOS
2
Positioning mode, tapping
+
m
DYNROUGH
3
Roughing
+
m
DYNSEMIFIN
4
Rough finishing
+
m
DYNFINISH
5
Finishing
+
m
DYNPREC
6
Smooth finishing
+
m
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1307
Tables
4.3 G commands
4.3.59
G group 60: Working area limitation
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
WALCS0
1
Workpiece coordinate system working area limitation
+
m
x
OFF
WALCS1
2
WCS working area limitation group 1 active
+
m
WALCS2
3
WCS working area limitation group 2 active
+
m
WALCS3
4
WCS working area limitation group 3 active
+
m
WALCS4
5
WCS working area limitation group 4 active
+
m
WALCS5
6
WCS working area limitation group 5 active
+
m
WALCS6
7
WCS working area limitation group 6 active
+
m
WALCS7
8
WCS working area limitation group 7 active
+
m
WALCS8
9
WCS working area limitation group 8 active
+
m
WALCS9
10
WCS working area limitation group 9 active
+
m
WALCS10
11
WCS working area limitation group 10 active
+
m
4.3.60
G group 61: Tool orientation smoothing
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
ORISOF
1
Tool orientation smoothing OFF
+
m
x
ORISON
2
Tool orientation smoothing ON
+
m
4.3.61
G group 62: Repositioning mode for REPOS (non-modal)
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
SAG
MH
RMBBL
1
Repositioning to start of block
-
s
RMIBL
2
Repositioning to interrupt point
-
s
x
RMEBL
3
Repositioning to end of block
-
s
RMNBL
4
Repositioning to the nearest path point
-
s
NC programming
1308
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.3 G commands
4.3.62
G group 64: Grinding frames
G command
No. 1)
Meaning
MD20150 2)
W 3)
STD 4)
Active grinding frame in the channel $P_GFRAME =
SAG
MH
GFRAME[ 0 ]
1
Grinding frame of the data management $P_GFR[ 0 ]
+
m
x
(null frame)
GFRAME[ 1 ]
2
Grinding frame of the data management $P_GFR[ 1 ]
+
m
GFRAME[ 2 ]
3
Grinding frame of the data management $P_GFR[ 2 ]
+
m
+
m
GFRAME[ 100
101
Grinding frame of the data management $P_GFR[ 100 ]
+
m
]
/HJHQG
1)
Internal number (e.g. for PLC interface)
2)
Configurability of the G command as a reset setting for the G group on power up, reset or end of part
program (with MD20150 $MC_GCODE_RESET_VALUES):
+
Configurable
-
Not configurable
3)
Effectiveness of the G command:
m modal
s
Non-modal
4)
Reset setting, see the following machine data:
• MD20149GCODE_RESET_S_VALUES (reset position of G groups (fix))
• MD20150 $MC_GCODE_RESET_VALUES (reset position of the G groups)
• MD20151GCODE_RESET_S_MODE (reset behavior of G groups (fix))
• MD20152 $MC_GCODE_RESET_MODE (reset behavior of G groups)
• MD20154 $MC_EXTERN_GCODE_RESET_VALUES (reset position of the G groups in ISO mode)
• MD20156 $MC_EXTERN_GCODE_RESET_MODE (reset behavior of external G groups)
SAG Default setting Siemens AG
MM Default setting Machine Manufacturer (see machine manufacturer's specifications)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1309
Tables
4.4 Predefined procedures
4.4
Predefined procedures
The call of a predefined procedure triggers the execution of a predefined NC function. A
predefined procedure does not supply a return value in contrast to a predefined function.
Coordinate system
Identifier
Parameter
Explanation
1.
2.
3. - 15.
4. - 16.
PRESETON
AXIS *):
REAL:
As 1 ...
As 2 ...
Set actual value for the programmed
Axis identifier
Preset offset
axes with loss of the referencing sta-
of
G700/G710
tus
machine axis
context
PRESETONS
AXIS *):
REAL:
As 1 ...
As 2 ...
Set actual value for the programmed
Axis identifier
Preset offset
axes without loss of the referencing
of
G700/G710
status
machine axis
context
DRFOF
Deletes the DRF offset for all axes as-
signed to the channel.
)
As a general rule, geometry or special axis identifiers can also be used instead of the machine axis identifier, as long as the
reference is unambiguous.
Axis groupings
Identifier
Parameter
Explanation
GEOAX
1.
2.
3. / 5.
4. / 6.
Selection of a parallel coordinate sys-
tem
INT:
AXIS:
As 1
As 2
Geometry axis
Channel axis
number 1 ... 3
identifier
FGROUP
1. - 8.
Variable F value reference: Definition
of the axes to which the path feed re-
AXIS:
fers
Channel axis identifier
Maximum number of axes: 8
The default setting for the F value ref-
erence is activated with FGROUP ( )
without parameters
SPLINEPATH
1.
2. - 9.
Definition of the spline grouping
INT:
AXIS:
Maximum number of axes: 8
Spline group-
Geometry of additional identifier
ing (must be
1)
POLYPATH
1.
2.
Activation of the polynomial interpo-
lation for selective axis groups
STRING
STRING
NC programming
1310
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Coupled motion
Identifier
Parameter
Explanation
1.
2.
3.
4.
5.
6.
TANG
AXIS: Ax-
AXIS:
AXIS:
REAL:
CHAR:
CHAR
Tangential control: Define coupling
is name
Leading
Leading
Coupling
Option:
optimiza-
The tangent for the follow-up is de-
following
axis 1
axis 2
factor
"B": Track-
tion:
termined by the two master axes
axis
ing in the
"S":
specified. The coupling factor speci-
BCS
Standard
fies the relationship between a
"W":
"P":
change in the angle of tangent and
Tracking
Autom.
the following axis. It is usually 1.
in the
with
WCS
rounding
clear-
ance, an-
gle toler-
ance
TANGON
AXIS: Ax-
REAL: Off-
REAL:
REAL:
Tangential control: Activate cou-
is name
set angle
Round-
Angular
pling
following
ing clear-
tolerance
axis
ance
TANGOF
AXIS: Ax-
Tangential control: Deactivate cou-
is name
pling
following
axis
TLIFT
AXIS:
Tangential control: Activate inter-
Tracked
mediate block generation
axis
TRAILON
AXIS: Fol-
AXIS:
REAL:
Asynchronous coupled motion OFF
lowing
Leading
Coupling
axis
axis
factor
TRAILOF
AXIS: Fol-
AXIS:
Deactivate coupled-axis motion
lowing
Leading
axis
axis
TANGDEL
AXIS: Fol-
Tangential control: Delete coupling
lowing
axis
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1311
Tables
4.4 Predefined procedures
Curve tables
Identifier
Parameter
Explanation
1.
2.
3.
4.
5.
CTABDEF
AXIS:
AXIS:
INT:
INT:
STRING:
Table definition ON
Following
Leading axis
Table num-
Behavior at
Specifica-
The following motion blocks deter-
axis
ber
edges of
tion of the
mine the curve table
the defini-
storage lo-
tion range
cation
CTABEND
AXIS:
AXIS:
INT:
INT:
Table definition OFF
Following
Leading axis
Table num-
Behavior at
axis
ber
edges of
the defini-
tion range
CTABDEL
INT:
INT:
STRING:
Clear curve table
Table num-
Table num-
Specifica-
ber n
ber m
tion of the
storage lo-
cation
CTABLOCK
INT:
Locks the curve table with number
Table num-
n, i.e. this table cannot be deleted/
ber n
overwritten
CTABUNLOCK
INT:
Releases the table with the number
Table num-
n protected with CTABLOCK again
ber n
LEADON
AXIS:
AXIS:
INT:
Master value coupling ON
Following
Leading axis
Table num-
axis
ber
LEADOF
AXIS:
AXIS:
Master value coupling OFF
Following
Leading axis
axis
Axial acceleration profile
Identifier
Parameter
Explanation
1. - 8.
BRISKA
AXIS
Activate stepped axis acceleration for
the programmed axes
SOFTA
AXIS
Activate jerk-limited axis acceleration
for the programmed axes
DRIVEA
AXIS
Activate knee-shaped acceleration
characteristic for the programmed ax-
es
JERKA
AXIS
The acceleration behavior set in ma-
chine data $MA_AX_JERK_ENABLE is
active for the programmed axes
NC programming
1312
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Revolutional feedrate
Identifier
Parameter
Explanation
FPRAON
1.
2.
Axial revolutional feedrate ON
AXIS:
AXIS:
Axis for which revolutional fee-
Axis/spindle from which revolu-
drate is activated
tional feedrate is derived.
If no axis has been program-
med, the revolutional feedrate
is derived from the master spin-
dle.
FPRAOF
1. - n.
Axial revolutional feedrate OFF
AXIS:
The revolutional feedrate can be de-
Axes for which revolutional feedrate is deactivated
activated for several axes simultane-
ously. You can program as many axes
as are permitted in a block.
FPR
1.
Selection of a rotary axis or spindle
from which the revolutional feedrate
AXIS:
of the path is derived for G95.
Axis/spindle from which revolu-
tional feedrate is derived.
The setting made with FPR is modal.
If no axis has been program-
med, the revolutional feedrate
is derived from the master spin-
dle.
Transformations
Identifier
Parameter
Explanation
1.
2.
3.
TRACYL
REAL:
INT:
Cylinder: Peripheral surface transformation
Working diam-
Number of the
Several transformations can be set per channel. The
eter
transforma-
transformation number specifies which transforma-
tion
tion is to be activated. If the 2nd parameter is omitted,
the transformation grouping set via MD is activated.
TRANSMIT
INT:
Transmit: Polar transformation
Number of the
Several transformations can be set per channel. The
transforma-
transformation number specifies which transforma-
tion
tion is to be activated. If the parameter is omitted, the
transformation group defined in the MD is activated.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1313
Tables
4.4 Predefined procedures
Transformations
Identifier
Parameter
Explanation
1.
2.
3.
TRAANG
REAL:
INT:
Transformation inclined axis
Angle
Number of the
Several transformations can be set per channel. The
transforma-
transformation number specifies which transforma-
tion
tion is to be activated. If the 2nd parameter is omitted,
the transformation grouping set via MD is activated.
If the angle is not programmed
(TRAANG ( ,2) or TRAANG)
the last angle applies modally.
TRAORI
INT:
4-axis, 5-axis transformation
Number of the
Several transformations can be set per channel. The
transforma-
transformation number specifies which transforma-
tion
tion is to be activated.
TRACON
INT:
REAL: Further
Cascaded transformation
Number of the
parameters,
The meaning of the parameters depends on the type
transforma-
MD-depend-
of cascading.
tion
ent
TRAFOOF
Deactivate transformation
TRAFOON
STRING:
REAL:
BOOL:
Activate a transformation defined with kinematic
Name of the
Reference or
With/without
chains
transforma-
working diam-
groove side
tion data set
eter
offset
(TRACYL only)
(TRACYL only)
Spindle
Identifier
Parameter
Explanation
1
2. - n.
SPCON
INT:
INT:
Switch to position-controlled spindle operation.
Spindle number
Spindle number
SPCOF
INT:
INT:
Switch to speed-controlled spindle operation.
Spindle number
Spindle number
SETMS
INT:
Declaration of spindle as master spindle for the current
Spindle number
channel
With SETMS( ), the machine data default applies auto-
matically without any need for parameterization.
NC programming
1314
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Grinding
Identifier
Parameter
Explanation
1.
GWPSON
INT:
Constant grinding wheel peripheral speed ON
Spindle number
If the spindle number is not programmed, the grinding wheel periph-
eral speed for the spindle of the active tool is selected.
GWPSOF
INT:
Constant grinding wheel peripheral speed OFF
Spindle number
If the spindle number is not programmed, the grinding wheel periph-
eral speed for the spindle of the active tool is deselected.
TMON
INT:
Grinding-specific tool monitoring ON
T number
If no T number is programmed, monitoring is activated for the active
tool.
TMOF
INT:
Tool monitoring OFF
T number
If no T number is programmed, monitoring is deactivated for the active
tool.
Stock removal
Identifier
Parameter
Explanation
1.
2.
3.
4.
CONTPRON
REAL [ ,11]:
CHAR: Ma-
INT:
INT:
Activate reference preprocessing
Contour table
chining type
Number of re-
Status of the
The contour programs or NC blocks
lief cuts
calculation
which are called in the following
steps are divided into individual
movements and stored in the contour
table.
The number of relief cuts is returned.
CONTDCON
REAL [ , 6]:
INT:
Contour decoding
Contour table
Machining di-
The blocks for a contour are stored in
rection
a named table with one table line per
block and coded to save memory.
EXECUTE
INT: Error sta-
Activate program execution
tus
This switches back to normal program
execution from reference point edit-
ing mode or after setting up a protec-
tion area.
Execute table
Identifier
Parameter
Explanation
1.
EXECTAB
REAL [ 11]:
Execute an element from a motion table
Element from motion table
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1315
Tables
4.4 Predefined procedures
Protection areas
Identifier
Parameter
Explanation
1.
2.
3.
4.
5.
CPROTDEF
INT:
BOOL:
INT:
REAL: Limit in
REAL: Limit in
Definition of a channel-
Number of the
TRUE:
plus direction
minus direc-
specific protection area
0:
protection
Tool-related
tion
4th and 5th
area
protection
parameters
area
are not evalu-
ated
1:
4th parameter
is evaluated
2:
5th parameter
is evaluated
3:
4th and 5th
parameters
are evaluated
NPROTDEF
INT:
BOOL:
INT:
REAL: Limit in
REAL: Limit in
Definition of a ma-
Number of the
TRUE:
plus direction
minus direc-
chine-specific protec-
0:
protection
Tool-related
tion
tion area
4th and 5th
area
protection
parameters
area
are not evalu-
ated
1:
4th parameter
is evaluated
2:
5th parameter
is evaluated
3:
4th and 5th
parameters
are evaluated
NC programming
1316
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Protection areas
Identifier
Parameter
Explanation
1.
2.
3.
4.
5.
CPROT
INT:
INT: Option
REAL: Offset of
REAL: Offset of
REAL: Offset of
Channel-specific pro-
Number of the
the protection
the protection
the protection
tection area ON/OFF
0: Protection
protection
area in the
area in the sec-
area in the
area OFF
area
first geometry
ond geometry
third geome-
1: Preactivate
axis
axis
try axis
protection
area
2: Protection
area ON
3: Preactivate
protection
area with con-
ditional stop,
only with pro-
tection areas
active
NPROT
INT:
INT: Option
REAL: Offset of
REAL: Offset of
REAL: Offset of
Machine-specific pro-
Number of the
the protection
the protection
the protection
tection area ON/OFF
0: Protection
protection
area in the
area in the sec-
area in the
area OFF
area
first geometry
ond geometry
third geome-
1: Preactivate
axis
axis
try axis
protection
area
2: Protection
area ON
3: Preactivate
protection
area with con-
ditional stop,
only with pro-
tection areas
active
Preprocessing / single block
Identifier
Parameter
Explanation
STOPRE
Preprocessing stop until all prepared blocks in the main
run are executed
SBLOF
Suppress single-block processing
SBLON
Cancel suppression of the single-block processing
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1317
Tables
4.4 Predefined procedures
Interrupts
Identifier
Parameter
Explanation
1.
DISABLE
INT:
Deactivates the interrupt routine assigned to the specified hardware input. Fast
Number of the in-
retraction is not executed. The assignment between the hardware input and the
terrupt input
interrupt routine made with SETINT remains valid and can be reactivated with EN-
ABLE.
ENABLE
INT:
Reactivation of the interrupt routine assignment deactivated with DISABLE.
Number of the in-
terrupt input
CLRINT
INT:
Delete assignment of interrupt routines and attributes to an interrupt input. The
Number of the in-
interrupt routine is deactivated and no reaction occurs when the interrupt is gen-
terrupt input
erated.
Synchronized actions
Identifier
Parameter
Explanation
1. - n.
CANCEL
INT:
Aborts the modal synchronized action with the speci-
Number of the synchronized action
fied ID. Several IDs, separated by commas, can be
specified.
CANCELSUB
Cancel current subprogram level
Function definition
Identifier
Parameter
Explanation
1.
2.
3.
4.-7.
FCTDEF
INT:
REAL:
REAL:
REAL:
Define polynomial function
Function num-
Lower limit
Upper limit
Coefficients a0 -
This is evaluated in SYFCT or PUTF-
ber
value
value
a3
TOCF.
Communication
Identifier
Parameter
Explanation
1.
2.
MMC
STRING:
CHAR:
Command to HMI command Inter-
Command
Acknowledgement mode*)
preter for the configuration of win-
"N": Without acknowledgement
dows via NC program
"S": Synchronous acknowledgement
"A": Asynchronous acknowledgement
)
Commands are acknowledged on request from the executing component (channel, NC, etc.).
NC programming
1318
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Program coordination
Identifier
Parameter
Explanation
INIT
1.
2.
3.
Selection of an NC program for execution in a
channel
INT:
STRING:
CHAR:
Channel
Path specifi-
Acknowl-
number
cation
edgement
mode**)
or
channel
name from
MD20000*)
1. - n.
START
INT:
Start selected programs simultaneously in sev-
Channel number
eral channels from current program
or
This command has no effect for the own chan-
channel name from MD20000*)
nel
WAITE
INT:
Wait for end of program in one or more other
Channel number
channels
or
channel name from MD20000*)
1.
2. - n.
WAITM
INT:
INT:
Wait until a marker is reached in the specified
Marker
Channel number
channels
number
or
The previous block is terminated with exact stop
channel name from MD20000*)
WAITMC
INT:
INT:
Wait until a marker is reached in the specified
Marker
Channel number
channels
number
or
An exact stop is initiated only if the other chan-
channel name from MD20000*)
nels have not yet reached the marker
1. - n.
SETM
INT:
Set one or more markers for the channel coor-
Marker number
dination
The processing in own channel is not affected
by this.
CLEARM
INT:
Delete one or more markers for the channel co-
Marker number
ordination
The processing in own channel is not affected
by this.
1. - n.
WAITP
AXIS:
Wait until the specified positioning axes that
Axis identifier
were previously programmed with POSA, reach
their programmed end point
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1319
Tables
4.4 Predefined procedures
Program coordination
Identifier
Parameter
Explanation
WAITS
INT:
Wait until the specified spindles that were pre-
Spindle number
viously programmed with SPOSA, reach their
programmed end point
RET
1.
2.
3.
4.
End of subprogram with no function output to
the PLC
INT (or
INT:
INT:
BOOL:
STRING):
Number of
Return to
If the 1st parameter (jump destination) is speci-
0:
Jump target
subpro-
first block in
fied, the return jump is first made to the block
Return
(block no./
gram levels
the main
after the calling block. The target is then sought
jump to
marker) for
to be skip-
program
depending on the programming (RET or RETB)
jump desti-
return
ped
according to the following strategy:
nation from
1st par.
• RET:
> 0:
Search in the direction of the end of the
Return to
program. A search is made toward the start
the follow-
of the program if the search was not suc-
ing block
cessful.
RETB
INT (or
INT:
INT:
BOOL:
• RETB:
STRING):
Number of
Return to
Search in the direction of the start of the
0:
Jump target
subpro-
first block in
Return
program. A search is made toward the end
(block no./
gram levels
the main
jump to
of the program if the search was not suc-
marker) for
to be skip-
program
jump desti-
cessful.
return
ped
nation from
1st par.
> 0:
Return to
the follow-
ing block
1. - n.
GET
AXIS:
Assign machine axis(axes)
Axis identifier ***)
The specified axes must be released in the other
channel with RELEASE
GETD
AXIS:
Assign machine axis(axes) directly
Axis identifier ***)
The specified axes must not be released with
RELEASE
RELEASE
AXIS:
Release machine axis(axes)
Axis identifier ***)
1.
2.
3.
4.
PUTFTOC
REAL:
INT:
INT:
INT: Spindle
Change of fine tool compensation
Offset value
Parameter
Channel
number
number
number
or
channel
name from
MD20000*)
NC programming
1320
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Program coordination
Identifier
Parameter
Explanation
PUTFTOCF
INT:
VAR REAL:
INT: Param-
INT:
Change of fine tool compensation depending
No. of the
Reference
eter num-
Channel
on a function defined with FCTDEF
function
value
ber
number
(max. 3rd degree polynomial)
or
The number used here must be specified in
channel
FCTDEF
name from
MD20000*)
AXTOCHAN
1.
2.
3. - n.
4. - m.
Axes transferred to other channels
AXIS:
INT:
As 1 ...
As 2 ...
Axis identifi-
Channel
er
number
or
channel
name from
MD20000*)
)
Instead of channel numbers, the channel names defined via MD20000 $MC_CHAN_NAME can also be programmed.
**) Commands are acknowledged on request from the executing component (channel, NC, etc.).
***) The SPI function can be used to program a spindle instead of an axis. E.g. GET(SPI(1))
Data access
Identifier
Parameter
Explanation
CHANDATA
1.
Set channel number for channel data access (only permitted in the initialization block).
The following access refers to the channel set with CHANDATA.
INT:
Channel num-
ber
NEWCONF
Accept changed machine data
Messages
Identifier
Parameter
Explanation
1.
2.
MSG
STRING:
INT:
Output arbitrary character string as message on the user in-
Message
Execution
terface
WRTPR
STRING:
INT:
Write string in OPI variable
Character string
Execution
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1321
Tables
4.4 Predefined procedures
File access
Identifier
Parameter
Explanation
READ
1.
2.
3.
4.
5.
Read blocks from file
system
VAR INT:
CHAR[160]:
INT:
INT:
VAR
Error
File name
Start line of
Number of
CHAR[255]:
the file section
lines to be
Variable array
to be read
read
in which the
read informa-
tion is stored
WRITE
1.
2.
3.
4.
Write block to file sys-
tem (or to an external
VAR INT:
CHAR[160]:
STRING:
CHAR[200]:
device/file)
Error
File name
Device/file for
Block
external out-
put
DELETE
1.
2.
Delete file
VAR INT:
CHAR[160]:
Error
File name
Alarms
Identifier
Parameter
Explanation
1.
2.
SETAL
INT:
STRING:
Set alarm
Alarm num-
Character
A character string with up to four parameters can be specified in addition
ber (cycle
string
to the alarm number.
alarms)
The following predefined parameters are available:
%1 = channel number
%2 = block number, label
%3 = text index for cycle alarms
%4 = additional alarm parameters
Tool management
Identifier
Parameter
Explanation
1.
2.
DELDL
INT:
INT:
Delete all additive off-
T no.
D no.
sets of the tool edge
(or of a tool if D is not
specified)
DELT
STRING[32]:
INT:
Delete tool
Tool identifier
Duplo no.
Duplo number can be
omitted
NC programming
1322
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Tool management
Identifier
Parameter
Explanation
DELTC
INT:
INT:
Delete tool carrier data
Data set no. n
Data set no.
set number n to m
m
DZERO
Set D numbers of all
tools of the TO unit as-
signed to the channel
to invalid
1.
2.
3.
4.
5.
6.
GETFREELOC
VAR INT:
VAR INT:
INT:
INT:
CHAR:
INT:
Find empty location for
Magazine no.
Location
T no.
Reference
Specifica-
Reserva-
a tool
(return value)
no. (return
magazine
tion dep.
tion
value)
no.
on 4th
mode
parame-
ter
1.
2.
GETSELT
VAR INT:
INT:
Returns the T number
T no. (return
Spindle no.
of the tool preselected
value)
for the spindle
GETEXET
VAR INT:
INT:
Returns the T number
T no. (return
Spindle no.
of the tool active from
value)
the point of view of the
NC program
GETTENV
STRING:
INT AR-
Reads the T, D and DL
Name of the
RAY[3]:
numbers stored in a
tool environ-
Return val-
tool environment
ment
ues
1.
2.
3.
4.
POSM
INT:
INT:
INT:
INT: Maga-
Position magazine
No. of the lo-
No. of the
Location
zine no. of
cation for po-
magazine
no. of the in-
the internal
sitioning
to be moved
ternal mag-
magazine
azine
RESETMON
VAR INT:
INT: Internal
INT:
INT:
Set actual value of tool
Status = result
T no.
D no. of the
Optional
to setpoint
of the opera-
tool
bit-coded
tion (return
parameter
value)
SETDNO
1.
2.
3.
Set offset number (D)
of the cutting edge of
INT:
INT: Cutting
INT:
the tool (T)
T no.
edge no.
D no.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1323
Tables
4.4 Predefined procedures
Tool management
Identifier
Parameter
Explanation
SETMTH
1.
Set tool carrier no.
INT:
Tool carrier
no.
SETPIECE
1.
2.
Decrement workpiece
counter of the spindle
INT:
INT: Spindle
Value used
no.
Update the count mon-
when decre-
itoring data of the tools
menting
associated with the
machining process
1.
2.
3.
4.
SETTA
VAR INT:
INT: Maga-
INT: Wear
INT:
Activate tool from
Status = result
zine no.
group no.
Tool sub-
wear group
of the opera-
group
tion (return
value)
SETTIA
VAR INT:
INT: Maga-
INT: Wear
INT:
Deactivate tool from
Status = result
zine no.
group no.
Tool sub-
wear group
of the opera-
group
tion (return
value)
TCA
1.
2.
3.
Tool selection/change
irrespective of the tool
STRING[32]:
INT:
INT:
status
Tool identifier
Duplo no.
Tool carrier
no.
TCI
1.
2.
Load tool from buffer
into the magazine
INT:
INT:
No. of the buf-
Tool carrier
fer
no.
MVTOOL
1.
2.
3.
4.
5.
Language command
to move tool
INT:
INT: Maga-
INT:
INT: Maga-
INT: Tar-
Status
zine no.
Location no.
zine no. af-
get loca-
ter moving
tion no.
after
moving
NC programming
1324
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Tool orientation
Identifier
Parameter
Explanation
1.
2.
3.
ORIRESET
REAL:
REAL:
REAL:
Initial setting of the tool orientation
Initial setting,
Initial setting,
Initial setting,
1st geometry
2nd geometry
3rd geometry
axis
axis
axis
Synchronous spindle
Identifier
Parameter
Explanation
1.
2.
3.
4.
5.
6.
COUPDEF
AXIS:
AXIS:
REAL:
REAL:
STRING[8]:
STRING[2]:
Define synchronous
Follow-
Leading
Numerator
Denomina-
Block
Coupling
spindle grouping
ing spin-
spindle
of transmis-
tor of trans-
change be-
type
dle
sion ratio
mission ra-
havior
tio
COUPDEL
AXIS:
AXIS:
Delete synchronous
Follow-
Leading
spindle grouping
ing spin-
spindle
dle
COUPRES
AXIS:
AXIS:
Reset coupling param-
Follow-
Leading
eters to configured MD
ing spin-
spindle
and SD values
dle
COUPON
AXIS:
AXIS:
REAL:
Switch-on synchro-
Follow-
Leading
Switch-on
nous spindle coupling
ing spin-
spindle
position of
If a switch-on position
dle
the follow-
is specified for the fol-
ing spindle
lowing spindle (angu-
lar offset between FS
and LS that refers -- ab-
solutely or incremen-
tally -- to the zero de-
gree position of the LS
in the positive direc-
tion of rotation), the
coupling is only switch-
ed on when the speci-
fied position is crossed.
COUPONC
AXIS:
AXIS:
Switch-on synchro-
Follow-
Leading
nous spindle coupling
ing spin-
spindle
With COUPONC, the
dle
currently active speed
of the following spin-
dle is taken over when
switching on the cou-
pling
(M3/M4 S...).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1325
Tables
4.4 Predefined procedures
Synchronous spindle
Identifier
Parameter
Explanation
1.
2.
3.
4.
5.
6.
COUPOF
AXIS:
AXIS:
REAL:
REAL:
Switch-off synchro-
Follow-
Leading
Switch-off
Switch-off
nous spindle coupling
ing spin-
spindle
position of
position of
If positions are speci-
dle
the follow-
the leading
fied, the coupling is on-
ing spindle
spindle (ab-
ly cancelled when all
(absolute)
solute)
the specified positions
have been overtrav-
eled
The following spindle
continues to revolve at
the last speed pro-
grammed before deac-
tivation of the coupling
COUPOFS
AXIS:
AXIS:
REAL:
Switch off the synchro-
Follow-
Leading
Switch-off
nous spindle coupling
ing spin-
spindle
position of
with stop of the follow-
dle
the follow-
ing spindle
ing spindle
If a position is speci-
(absolute)
fied, the coupling is on-
ly cancelled when the
specified position is
crossed
WAITC
AXIS:
STRING
AXIS:
STRING[8]:
Wait until the coupling
Follow-
[8]:
Following
Block
block change criterion
ing spin-
Block
spindle
change be-
for the spindles (max.
dle
change
havior
2) has been fulfilled
behavior
If the block change be-
havior is not specified,
the block change be-
havior specified in the
definition with COUP-
DEF applies
Electronic gear
Identifier
Parameter
Explanation
EGDEL
1.
Delete cou-
pling defini-
AXIS:
tion for the fol-
Follow-
lowing axis
ing axis
EGDEF
1.
2. / 4. / 6. /
3. / 5. / 7. /
Definition of
8. / 10.
9. / 11.
an electronic
gear
AXIS:
AXIS:
INT:
Follow-
Leading
Coupling
ing axis
axis
type
NC programming
1326
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Electronic gear
Identifier
Parameter
Explanation
EGON
1.
2.
3. / 6. / 9. /
4. / 7. /
5. / 8. /
Electronic
12. / 15.
10. / 13. /
11. / 14. /
gear ON with-
16.
17.
out synchroni-
zation
AXIS:
STRING:
AXIS:
REAL:
REAL:
Follow-
Block
Leading
Numera-
Denomi-
ing axis
change
axis
tor of the
nator of
behavior
coupling
the cou-
factor
pling fac-
tor
EGONSYN
1.
2.
3.
4. / 8. /
5. / 9. /
6. / 10. /
7. / 11. /
Electronic
12. / 16. /
13. / 17. /
14. / 18. /
15. / 19. /
gear ON with
20.
21.
22.
23.
synchroniza-
tion
AXIS:
STRING:
REAL:
AXIS:
REAL:
REAL:
REAL:
Follow-
Block
Synchron
Leading
Synchron
Numera-
Denomi-
ing axis
change
ized posi-
axis
ized posi-
tor of the
nator of
behavior
tion of
tion of
coupling
the cou-
the fol-
the lead-
factor
pling fac-
lowing
ing axis
tor
axis
EGONSYNE
1.
2.
3.
4.
5. / 9. /
6. / 10. /
7. / 11. /
8. / 12. /
Electronic
13. / 17. /
14. / 18. /
15. / 19. /
16. / 20. /
gear ON with
21.
22.
23.
24.
synchroniza-
tion and
AXIS:
STRING:
REAL:
STRING:
AXIS:
REAL:
REAL:
REAL:
specification
Follow-
Block
Synchron
Ap-
Leading
Synchron
Numera-
Denomi-
of the ap-
ing axis
change
ized posi-
proach
axis
ized posi-
tor of the
nator of
proach mode
behavior
tion of
mode
tion of
coupling
the cou-
the fol-
the lead-
factor
pling fac-
lowing
ing axis
tor
axis
EGOFS
1.
2. - n.
Turn off elec-
tronic gear se-
AXIS:
AXIS:
lectively
Follow-
Leading axis
ing axis
EGOFC
1.
Switch off
electronic
AXIS:
gear (version
Follow-
only for spin-
ing spin-
dles)
dle
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1327
Tables
4.4 Predefined procedures
Nibbling
Identifier
Parameter
Explanation
1.
2.
3.
4.
PUNCHAAC
REAL:
REAL:
REAL:
REAL:
Activate travel-dependent acceler-
Minimum
Initial acceler-
Maximum
Final accelera-
ation
hole spacing
ation
hole spacing
tion
Information functions in the passive file system
Identifier
Parameter
Explanation
1.
2.
3.
FILEDATE
VAR INT:
CHAR[160]:
VAR CHAR[8]:
Returns the date of the last write access to a file
Error message
File name
Date in the for-
mat
"dd.mm.yy"
FILETIME
VAR INT:
CHAR[160]:
VAR CHAR[8]:
Returns the time of the last write access to a file
Error message
File name
Time in the for-
mat
"hh.mm.ss"
FILESIZE
VAR INT:
CHAR[160]:
VAR INT:
Returns the current size of a file
Error message
File name
File size
FILESTAT
VAR INT:
CHAR[160]:
VAR CHAR[5]:
Returns the status of a file with respect to the follow-
Error message
File name
Date in the for-
ing rights:
mat "rwxsd"
• Read (r: read)
• Write (w: write)
• Execute (x: execute)
• Show (s: show)
• Delete (d: delete)
FILEINFO
VAR INT:
CHAR[160]:
VAR CHAR[32]:
Returns the sum of the information for a file that can
Error message
File name
Date in the for-
be read out via FILEDATE, FILETIME, FILESIZE, and
mat "rwxsd
FILESTAT
nnnnnnnn
dd.mm.yy
hh:mm:ss"
Axis container
Identifier
Parameter
Explanation
1. - n.
AXCTSWE
AXIS:
Rotate axis container
Axis container
AXCTSWED
AXIS:
Rotating axis container (command variant for commissioning!)
Axis container
AXCTSWEC:
AXIS:
Cancel enable for axis container rotation
Axis container
NC programming
1328
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.4 Predefined procedures
Master/slave coupling
Identifier
Parameter
Explanation
1. - n.
MASLON
AXIS:
Switch on master/slave coupling
Axis identifier
MASLOF
AXIS:
Separate master/slave coupling
Axis identifier
MASLOFS
AXIS:
Separate master/slave coupling and automatically brake slave spindles
Axis identifier
MASLDEF
AXIS:
Define master/slave coupling
Axis identifier
The last axis is the master axis
MASLDEL
AXIS:
Separate master/slave coupling and delete the definition of the group-
Axis identifier
ing
Online tool length offset
Identifier
Parameter
Explanation
1.
2.
TOFFON
AXIS:
REAL:
Activate online tool length offset in the specified offset direction
Offset direc-
Offset value in
tion
offset direc-
tion
TOFFOF
AXIS:
Reset online tool length offset in the specified offset direction
Offset direc-
tion
SERUPRO
Identifier
Parameter
Explanation
IPTRLOCK
Start of untraceable program section
IPTRUNLOCK
End of search-suppressed program section
Retraction
Identifier
Parameter
Explanation
1. - n.
POLFMASK
AXIS:
Enable axes for rapid retraction
Geometry or machine axis name
(without a connection between the
axes)
POLFMLIN
AXIS:
Enable axes for linear rapid retrac-
Geometry or machine axis name
tion
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1329
Tables
4.4 Predefined procedures
Retraction
Identifier
Parameter
Explanation
POLFA
1.
2.
3.
Retraction position for single axes
AXIS:
INT:
REAL:
Channel axis identi-
Type
Value
fier
Collision avoidance
Identifier
Parameter
Explanation
1.
PROTA
STRING:
Request for a recalculation of the collision model
"R"
PROTS
1.
2. - n.
Set protection area status
CHAR:
STRING:
Status
Protection
zone name
Intelligent load adjustment
Identifier
Parameter
Explanation
CADAPTON
1.
2.
3.
4.
Activate load adjustment
INT:
AXIS:
INT:
REAL:
Status
machine axis
input variable
input value (op-
name
tional)
CADAPTOF
1.
2.
3.
Deactivate load adjustment
INT:
AXIS:
INT:
Status
machine axis
input variable
name
Jerk adaptation
Identifier
Parameter
Explanation
CALCFIR
Adapting the FIR jerk filter to the dynamic mode
CALCFIR is used in the CUST_832 manufacturer cycle.
NC programming
1330
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.5 Predefined procedures in synchronized actions
4.5
Predefined procedures in synchronized actions
The following predefined procedures are only available in synchronized actions.
Synchronous procedures
Identifier
Parameter
Explanation
STOPREOF
Revoke preprocessing stop
A synchronized action with a STOPREOF command causes a
preprocessing stop after the next output block (= block for the
main run). The preprocessing stop is canceled with the end of
the output block or when the STOPREOF condition is fulfilled.
All synchronized action operations with the STOPREOF com-
mand are therefore interpreted as having been executed.
RDISABLE
Read-in disable
DELDTG
1.
Delete distance-to-go
AXIS:
A synchronized action with a DELDTG command causes a pre-
Axis for axial delete distance-to-go (op-
processing stop after the next output block (= block for the
main run). The preprocessing stop is canceled with the end of
tional). If the axis is omitted, delete dis-
the output block or when the first DELDTG condition is fulfil-
tance-to-go is triggered for the path dis-
tance.
led. The axial distance to the destination point on an axial
delete distance-to-go is stored in $AA_DELT[axis]; the dis-
tance-to-go is stored in $AC_DELT.
Program coordination of technology cycles
Identifier
Parameter
Explanation
1.
LOCK
INT:
Lock synchronized action with ID or stop technology cycle
ID of the synchronized action to be disa-
One or more IDs can be programmed
bled
UNLOCK
INT:
Unlock synchronized action with ID or continue technology
ID of the synchronized action to be un-
cycle
locked
One or more IDs can be programmed
ICYCON
Each block of a technology cycle is processed in a separate
interpolation cycle following ICYCON
ICYCOF
All blocks of a technology cycle are processed in one interpo-
lation cycle following ICYCOF
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1331
Tables
4.5 Predefined procedures in synchronized actions
Polynomial functions
Identifier
Parameter
Explanation
SYNFCT
1.
2.
3.
If the condition in the motion-
synchronous action is fulfilled,
INT:
VAR REAL:
VAR REAL:
the polynomial determined by
Number of
Result varia-
Input varia-
the first expression is evaluated
the polyno-
ble *)
ble **)
at the input variable. The upper
mial func-
and lower range of the value is
tion defined
limited and the result variable is
with
assigned.
FCTDEF
FTOC
1.
2.
3.
4.
5.
Change of fine tool compensa-
tion depending on a function de-
INT:
VAR REAL:
INT:
INT:
INT:
fined with FCTDEF (max. 3rd de-
Number of
Input varia-
Length
Channel
Spindle
gree polynomial).
the polyno-
ble **)
1, 2, 3
number
number
The number used here must be
mial func-
specified in FCTDEF.
tion defined
with
FCTDEF
*) Only special system variables are permissible as a result variable (see Function Manual Synchronized Actions).
**) Only special system variables are permissible as input variable (see Function Manual Synchronized Actions).
NC programming
1332
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.6 Predefined functions
4.6
Predefined functions
The call of a predefined function triggers the execution of a predefined NC function, which in
contrast to the predefined procedure, supplies a return value. The call of the predefined function
can be an operand in an expression.
Coordinate system
Identifier
Return val-
Parameter
Explanation
ue
1.
2.
3. - 15.
4. - 16.
CTRANS
FRAME
AXIS:
REAL: Offset
AXIS:
REAL: Offset
Translation: Zero offset
Axis identifier
Axis identifier
COARSE for multiple axes
CFINE
FRAME
AXIS:
REAL: Offset
AXIS:
REAL: Offset
Translation: Zero offset
Axis identifier
Axis identifier
for FINE multiple axes
CSCALE
FRAME
AXIS:
REAL:
AXIS:
REAL:
Scale: Scale factor for
Axis identifier
Scale factor
Axis identifier
Scale factor
multiple axes
1.
2.
3. and 5.
4. and 6.
CROT
FRAME
AXIS:
REAL: Rotation
AXIS:
REAL: Rotation
Rotation: Rotation of the
Axis identifier
Axis identifier
current coordinate sys-
tem
Maximum number of pa-
rameters: 6
(one axis identifier and
one value per geometry
axis)
CROTS
FRAME
AXIS:
REAL: Rotation
AXIS:
REAL: Rotation
Rotation: Rotation of the
Axis identifier
with solid an-
Axis identifier
with solid an-
current coordinate sys-
gle
gle
tem with solid angle
Maximum number of pa-
rameters: 6
(one axis identifier and
one value per geometry
axis)
CMIRROR
1.
2. - 8.
Mirror: Mirror on a coor-
dinate axis
FRAME
AXIS
AXIS
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1333
Tables
4.6 Predefined functions
Coordinate system
Identifier
Return val-
Parameter
Explanation
ue
1.
2.
CRPL
FRAME
INT:
REAL:
Frame rotation in any
Rotary axis
Angle of rota-
plane
tion
ADDFRAME
INT:
FRAME:
STRING:
Calculates the target
Additively
Specified tar-
frame specified by the
0: OK
measured or
get frame
string
1: Speci-
calculated
The target frame is calcu-
fied target
frame
lated in such a way that
(string) is
the new complete frame
wrong
appears as a chain of the
2: Target
old complete frame and
frame is
the transferred frame.
not config-
ured
3: Rotation
in frame is
not permit-
ted
INVFRAME
FRAME
1.
Calculates the inverse
frame from a frame
FRAME
The frame chaining of a
frame with its inverse
frame always results in a
zero frame
MEAFRAME
FRAME
1.
2.
3.
Frame calculation from 3
measuring points in
REAL[3,3]:
REAL[3,3]:
VAR REAL:
space
Coordinates of
Coordinates of
Variable with
the measured
the specified
which the in-
spatial points
points
formation on
the quality of
FRAME calcula-
tion is re-
turned
NC programming
1334
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.6 Predefined functions
Geometry functions
Identifier
Return value
Parameter
Explanation
1.
2.
3.
CALCDAT
BOOL:
VAR REAL [n, 2]:
INT:
VAR REAL [3]:
Calculates the center point coor-
Error status
Table (abscissa,
Number of
Result: Abscissa,
dinates and the radius of the cir-
ordinate) of
points
ordinate and ra-
cle from 3 or 4 points
points 1 to n
dius of calcula-
The points must be different.
ted circle center
point
INTERSEC
BOOL:
VAR REAL [11]:
VAR REAL [11]:
VAR REAL [2]:
Calculates the intersection coor-
Error status
First contour ele-
Second contour
dinates between two contour el-
Result vector for
ment
element
ements.
the intersection
coordinates: Ab-
The error status indicates wheth-
scissa and ordi-
er an intersection was found.
nate
Curve table functions
Identifier
Return
Parameter
Explanation
value
1.
2.
3.
4.
5.
6.
CTAB
REAL:
REAL:
INT:
VAR RE-
AXIS:
AXIS:
Determines the follow-
Follow-
Leading
Table
AL[ ]:
Follow-
Leading
ing axis position to the
ing axis
axis posi-
number
Pitch re-
ing axis
axis for
specified leading axis
position
tion
sult
for scal-
scaling
position from the
ing
curve table.
If parameters 4/5 are
not programmed, cal-
culation is with stand-
ard scaling.
CTABINV
REAL:
REAL:
REAL:
INT:
VAR RE-
AXIS:
AXIS:
Determines the lead-
Leading
Follow-
Leading
Table
AL[ ]:
Follow-
Leading
ing axis position to the
axis posi-
ing axis
position
number
Pitch re-
ing axis
axis for
specified following axis
tion
position
sult
for scal-
scaling
position from the
ing
curve table.
If parameters 5/6 are
not programmed, cal-
culation is with stand-
ard scaling.
CTABID
INT:
INT:
STRING:
Determines the curve
Curve ta-
Entry
Storage
table number entered
ble num-
number
location:
under the specified
ber
in memo-
"SRAM",
number in the memo-
ry
"DRAM"
ry.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1335
Tables
4.6 Predefined functions
Curve table functions
Identifier
Return
Parameter
Explanation
value
1.
2.
3.
4.
5.
6.
CTABISLOCK
INT:
INT:
Determines the lock
Lock state
Table
state of the curve table:
number
> 0: Table is locked
1: CTABLOCK
2: Active coupling
3: CTABLOCK and ac-
tive coupling
0: Table is not locked
-1: Table does not exist
CTABEXISTS
INT:
INT:
Determines the exis-
Existence
Table
tence of the curve ta-
number
ble in the static or dy-
namic NC memory:
0: FALSE
1: TRUE
CTABMEMTYP
INT:
INT:
Determines the stor-
Storage
Table
age location of the
location
number
curve table:
1: DRAM
0: SRAM
-1: Table does not exist
CTABPERIOD
INT:
INT:
Determines the perio-
Periodici-
Table
dicity of the curve ta-
ty
number
ble:
0: Not periodic
1: Periodic in leading
axis
2: Periodic in leading
and following axis
-1: Table does not exist
CTABNO
INT:
Determines the num-
Number
ber of defined curve ta-
of curve
bles (in static and dy-
tables
namic NC memory)
CTABNOMEM
INT:
STRING:
Determines the num-
Number
Storage
ber of defined curve ta-
of curve
location:
bles in the specified
tables
"SRAM",
memory
"DRAM"
CTABFNO
INT:
STRING:
Determines the num-
Number
Storage
ber of curve tables still
of tables
location:
possible in the speci-
"SRAM",
fied memory
"DRAM"
NC programming
1336
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.6 Predefined functions
Curve table functions
Identifier
Return
Parameter
Explanation
value
1.
2.
3.
4.
5.
6.
CTABSEG
INT:
STRING:
STRING:
Determines the num-
Number
Storage
Segment
ber of curve segments
of curve
location:
type:
used of the specified
segments
"SRAM",
segment type in the
"L": Linear
"DRAM"
specified memory
"P": Poly-
>=0: Number
nomial
-1: Invalid memory
type
If parameter 2 is not
programmed, the sum
of the linear and poly-
nomial segments is
output.
CTABFSEG
INT:
STRING:
STRING:
Determines the num-
Number
Storage
Segment
ber of still possible
of curve
location:
type:
curve segments of the
segments
"SRAM",
specified segment type
"L": Linear
"DRAM"
in the specified memo-
"P": Poly-
ry
nomial
>=0: Number
-1: Invalid memory
type
CTABSEGID
INT:
INT:
STRING:
Determines the num-
Number
Table
Segment
ber of curve segments
of curve
number
type:
of the specified seg-
segments
ment type that are
"L": Linear
used by the curve table
"P": Poly-
>=0: Number
nomial
-1: Table does not exist
CTABMSEG
INT:
STRING:
STRING:
Determines the maxi-
Number
Storage
Segment
mum possible number
of curve
location:
type:
of curve segments of
segments
"SRAM",
the specified segment
"L": Linear
"DRAM"
type in the specified
"P": Poly-
memory
nomial
>=0: Number
-1: Table does not exist
CTABPOL
INT:
STRING:
Determines the num-
Number
Storage
ber of used curve poly-
of curve
location:
nomials in the speci-
polyno-
"SRAM",
fied memory
mials
"DRAM"
>=0: Number
-1: Table does not exist
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1337
Tables
4.6 Predefined functions
Curve table functions
Identifier
Return
Parameter
Explanation
value
1.
2.
3.
4.
5.
6.
CTABPOLID
INT:
INT:
Determines the num-
Number
Table
ber of curve polyno-
of curve
number
mials used by the curve
polyno-
table
mials
>=0: Number
-1: Table does not exist
CTABFPOL
INT:
STRING:
Determines the maxi-
Number
Storage
mum possible number
of curve
location:
of curve polynomials
polyno-
"SRAM",
in the specified memo-
mials
"DRAM"
ry:
>=0: Number
-1: Table does not exist
CTABMPOL
INT:
STRING:
Determines the maxi-
Number
Storage
mum possible number
of curve
location:
of curve polynomials
polyno-
"SRAM",
in the specified memo-
mials
"DRAM"
ry:
>=0: Number
-1: Table does not exist
CTABSSV
REAL:
REAL:
INT:
VAR RE-
AXIS:
AXIS:
Determines the follow-
Follow-
Leading
Table
AL[ ]:
Follow-
Leading
ing axis position at the
ing axis
axis posi-
number
Pitch re-
ing axis
axis for
start of the curve seg-
position
tion
sult
for scal-
scaling
ment belonging to the
ing
specified leading axis
value
CTABSEV
REAL:
REAL:
INT:
VAR RE-
AXIS:
AXIS:
Determines the follow-
Follow-
Leading
Table
AL[ ]:
Follow-
Leading
ing axis position at the
ing axis
axis posi-
number
Pitch re-
ing axis
axis for
end of the curve seg-
position
tion
sult
for scal-
scaling
ment belonging to the
ing
specified leading axis
value
CTABTSV
REAL:
INT:
VAR RE-
AXIS:
Determines the follow-
Follow-
Table
AL[ ]:
Follow-
ing axis position at the
ing axis
number
Pitch re-
ing axis
start of the curve table.
position
sult at
start of
the table
CTABTEV
REAL:
INT:
VAR RE-
AXIS:
Determines the follow-
Follow-
Table
AL[ ]:
Follow-
ing axis position at the
ing axis
number
Pitch re-
ing axis
end of the curve table.
position
sult at
end of
the table
NC programming
1338
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.6 Predefined functions
Curve table functions
Identifier
Return
Parameter
Explanation
value
1.
2.
3.
4.
5.
6.
CTABTSP
REAL:
INT:
VAR RE-
AXIS:
Determines the lead-
Leading
Table
AL[ ]:
Leading
ing axis position at the
axis posi-
number
Pitch re-
axis
start of the curve table.
tion
sult at
start of
the table
CTABTEP
REAL:
INT:
VAR RE-
AXIS:
Determines the lead-
Leading
Table
AL[ ]:
Leading
ing axis position at the
axis posi-
number
Pitch re-
axis
end of the curve table.
tion
sult at
end of
the table
CTABTMIN
REAL:
INT:
REAL:
REAL:
AXIS:
AXIS:
Determines the mini-
Mini-
Table
Leading
Leading
Follow-
Leading
mum value of the fol-
mum val-
number
value in-
value in-
ing axis
axis
lowing axis in the en-
ue
terval
terval up-
tire definition range of
lower lim-
per limit
the curve table or in a
it
defined interval
CTABTMAX
REAL:
INT:
REAL:
REAL:
AXIS:
AXIS:
Determines the maxi-
Maxi-
Table
Leading
Leading
Follow-
Leading
mum value of the fol-
mum val-
number
value in-
value in-
ing axis
axis
lowing axis in the en-
ue
terval
terval up-
tire definition range of
lower lim-
per limit
the curve table or in a
it
defined interval
Note:
The curve table functions can also be programmed in synchronized actions.
Axis functions
Identifier
Return value
Parameter
1.
2.
3.
4.
Explanation
AXNAME
AXIS:
STRING [ ]:
Converts input string in-
Axis identifier
to axis identifier
Input string
AXSTRING
STRING[ ]:
AXIS:
Converts axis identifier
Axis name
Axis identifier
into string
ISAXIS
BOOL:
INT:
Checks whether the ge-
Axis present
ometry axes 1 to 3
(TRUE) or not
Number of the
specified as parameters
(FALSE)
geometry axis
are present in accord-
(1 to 3)
ance with machine data
MD20050 $MC_AX-
CONF_GEOAX_AS-
SIGN_TAB
SPI
AXIS:
INT:
Converts spindle num-
Axis identifier
Spindle num-
ber into axis identifier
ber
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1339
Tables
4.6 Predefined functions
Axis functions
Identifier
Return value
Parameter
1.
2.
3.
4.
Explanation
AXTOSPI
INT:
AXIS:
Converts axis identifier
Spindle num-
Axis identifier
into spindle number
ber
MODAXVAL
REAL:
AXIS:
REAL:
From the entered axis
modulo value
Axis identifier
Axis position
position, calculates the
modulo rest
If the specified axis is
not a modulo axis, the
axis position is returned
unchanged.
POSRANGE
BOOL:
AXIS:
REAL:
REAL:
INT:
Determines whether
Position set-
Axis identifier
Reference po-
Position win-
Coordinate
the position setpoint of
point within
sition in the
dow width
system
an axis is located in a
the position
coordinate
window at a predefined
window
system
reference position
(TRUE) or not
(FALSE)
Tool management
Identifier
Return value
Parameter
Explanation
1.
2.
3.
CHKDM
INT:
INT:
INT:
Checks the uniqueness of the D
Status: Result
Magazine num-
D number
number within a magazine
of the check:
ber
CHKDNO
INT:
INT:
INT:
INT:
Checks the uniqueness of the D
Status: Result
T number of the
T number of the
D number
number
of the check:
1st tool
2nd tool
GETACTT
INT:
INT:
STRING [32]:
Determines the active tool from
Status
T number
Tool name
a group of tools with the same
name
GETACTTD
INT:
VAR INT:
INT:
Determines the T number associ-
Status: Result
T number found
D number
ated with an absolute D number
of the check:
(return value)
GETDNO
INT:
INT:
INT:
Determines the D number of the
D number
T number
Cutting edge
cutting edge of tool T
number
GETT
INT:
STRING [32]:
INT:
Determines the T number for the
T number
Tool name
Duplo number
tool name
NEWT
INT:
STRING [32]:
INT:
Sets up a new tool (provides the
T number
Tool name
Duplo number
tool data)
The duplo number can be omit-
ted.
TOOLENV
INT:
STRING:
Stores the tool environment with
Status
Name
the specified name in the static
NC memory
NC programming
1340
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.6 Predefined functions
Tool management
Identifier
Return value
Parameter
Explanation
1.
2.
3.
DELTOOLENV
INT:
STRING:
Deletes the tool environment
Status
Name
with the specified name in the
static NC memory
Deletes all tool environments if
no name is specified.
GETTENV
INT:
STRING:
VAR INT:
Determines the T number, D
Status
Name
number, and DL number from a
T number [0]
tool environment with the speci-
D number [1]
fied name
DL number [2]
Arithmetic
Identifier
Return value
Parameter
Explanation
1.
2.
3.
SIN
REAL
REAL
Sine
ASIN
REAL
REAL
Arc sine
COS
REAL
REAL
Cosine
ACOS
REAL
REAL
Arc cosine
TAN
REAL
REAL
Tangent
ATAN2
REAL
REAL
REAL
Arc tangent 2
SQRT
REAL
REAL
Square root
POT
REAL
REAL
Square
TRUNC
REAL
REAL
Integer component
ROUND
REAL
REAL
Round down
ROUNDUP
REAL
REAL
Round up
ABS
REAL
REAL
Absolute value
LN
REAL
REAL
Natural logarithm
EXP
REAL
REAL
Exponential function ex
MINVAL
REAL
REAL
REAL
Determines the smaller value of
two parameters
MAXVAL
REAL
REAL
REAL
Determines the larger value of
two parameters
BOUND
REAL:
REAL:
REAL:
REAL:
Determines whether the refer-
Check status
Lower limit
Upper limit
Reference value
ence value is within the limits.
Note:
The arithmetic functions can also be programmed in synchronized actions. These arithmetic functions are calculated and
evaluated in the main run. The synchronized action parameter $AC_PARAM[<n>] can also be used for calculations and as buffer.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1341
Tables
4.6 Predefined functions
String functions
Identifier
Return value
Parameter
Explanation
1.
2.
3.
ISNUMBER
BOOL
STRING:
Checks whether the input string can be conver-
Input string
ted to a number.
NUMBER
REAL
STRING:
Converts the input string into a number.
Input string
TOUPPER
STRING
STRING:
Converts the input string into upper case
Input string
TOLOWER
STRING
STRING:
Converts the input string into lower case
Input string
STRLEN
INT
STRING:
Determines the length of the input string up to
Input string
the end of the string (/0)
INDEX
INT
STRING:
CHAR:
Determines the position of the character in the
Input string
Search char-
input string from left to right.
acters
The 1st character of the string from the left has
the index 0.
RINDEX
INT
STRING:
CHAR:
Determines the position of the character in the
Input string
Search char-
input string from right to left.
acters
The 1st character of the string from the right
has the index 0.
MINDEX
INT
STRING:
STRING:
Determines the position of a character specified
Input string
Search char-
in the 2nd parameter in the input string from
acter
left to right.
The 1st character of the input string from the
left has the index 0.
SUBSTR
STRING
STRING:
INT
INT
Determines the substring of the input string,
Input string
defined by the start character (2nd parameter)
and number of characters (3rd parameter).
SPRINT
STRING
STRING:
Determines the formatted input string
Input string
NC programming
1342
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.6 Predefined functions
Functions for measuring cycles
Identifier
Return
Parameter
Explanation
value
1.
2.
3.
4.
5.
6.
CALCPOSI
INT:
REAL[3]:
REAL[3]:
REAL[5]:
REAL[3]:
BOOL:
INT:
Checks whether the ge-
Status
Starting
Incre-
Mini-
Return ar-
Conver-
Type of
ometry axes can traverse
position
mental
mum dis-
ray for
sion of
limit
a defined path without vi-
in the
path
tances to
the poss.
the meas-
monitor-
olating the axis limits
WCS
specifica-
the moni-
incr. dis-
uring sys-
ing
starting from a specified
tion in re-
toring
tance
tem
starting point.
lation to
limits
Yes/No
If the defined path cannot
the start-
be traversed without vio-
ing posi-
lating limits, the maxi-
tion
mum permissible value is
returned.
GETTCOR
INT:
REAL
STRING:
STRING:
INT:
INT:
INT:
Determines the tool
Status
[11]:
Tool
Name of
Internal T
Cutting-
Number
lengths and tool length
length
the tool
no. of the
edge
of the lo-
components from tool en-
compo-
environ-
tool
number
cation-
vironment or current en-
nent: Co-
ment
(D no.) of
depend-
vironment
ordinate
the tool
ent offset
system
(DL no.
of the
tool)
LENTOAX
INT:
INT[3]:
REAL[3]:
STRING:
Determines information
Status
Axis as-
Matrix
Coordi-
about the assignment of
sign-
for map-
nate sys-
the tool lengths L1, L2, L3
ment of
ping the
tem for
of the active tool to abscis-
the ge-
tool
the as-
sa, ordinate, applicate.
ometry
lengths
signment
The assignment to the ge-
axes
in the co-
ometry axes is affected by
ordinate
frames and the active
system
plane (G17 - 19).
SETTCOR
INT:
1.
2.
3.
4.
5.
6.
7.
8.
9.
Status
REAL
STR.:
INT:
INT:
INT:
STRING
INT:
INT:
INT:
Changes
[3]:
Com-
Com-
Type
Index
:
int. T
D no.
DL no.
the tool
Offset
po-
po-
of
of the
Name
No. of
of the
of the
compo-
vector
nent
nent(s)
write
geom-
of the
the
tool
tool
nents, con-
in
identi-
to be
opera-
etry ax-
tool
tool
sidering all
space
fier
correc-
tion
is
envi-
supplemen-
ted
0 - 3
ron-
tary condi-
0 - 11
ment
tions that
are included
in the evalu-
ation of the
individual
components
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1343
Tables
4.6 Predefined functions
Other functions
Identifier
Return
Parameter
Explanation
value
1.
2.
3.
4.
5.
6.
STRINGIS
INT:
STRING:
Checks whether the
Informa-
Name of
specified string is availa-
tion
the ele-
ble as element of the NC
about
ment to
programming language
the string
be
in the current language
checked
scope.
ISVAR
BOOL:
STRING:
Checks whether the
Variable
Name of
transfer parameter con-
known
the varia-
tains a variable known
Yes/No
ble
in the NC (machine da-
ta, setting data, system
variable, general varia-
bles such as GUDs).
GETVARTYP
INT:
STRING:
Determines the data
Data type
Name of
type of a system/user
the varia-
variable
ble
GETVARPHU
INT:
STRING:
Determines the physical
Numeric
Name of
unit of a system/user
value of
the varia-
variable
the physi-
ble
cal unit
GETVARAP
INT:
STRING:
STRING:
Determines the access
Protec-
Name of
Type of
right to a system/user
tion level
the varia-
access
variable
for access
ble
GETVARLIM
INT:
STRING:
CHAR:
VAR RE-
Determines the lower/
Status
Name of
Specifies
AL:
upper limit value of a
the varia-
which
Return of
system/user variable
ble
limit val-
the limit
ue
value
should
be read
out
GETVARDFT
INT:
STRING:
VAR REAL
INT:
INT:
INT:
Determines the default
Status
Name of
/STRING/
Index to
Index to
Index to
value of a system/user
the varia-
FRAME:
the first
the sec-
the third
variable
ble
Return of
dimen-
ond di-
dimen-
the de-
sion (op-
mension
sion (op-
fault val-
tional)
(option-
tional)
ue
al)
COLLPAIR
INT:
STRING:
STRING:
BOOL:
Checks whether part of
Check re-
Name of
Name of
Alarm
a collision pair
sult
the 1st
the 2nd
suppres-
protec-
protec-
sion (op-
tion area
tion area
tional)
NC programming
1344
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Tables
4.6 Predefined functions
Other functions
Identifier
Return
Parameter
Explanation
value
1.
2.
3.
4.
5.
6.
PROTD
REAL:
STRING:
STRING:
VAR RE-
BOOL:
Determines the clear-
Clear-
Name of
Name of
AL:
Measur-
ance of the two speci-
ance of
the 1st
the 2nd
Return
ing sys-
fied protection areas.
the two
protec-
protec-
value:
tem for
protec-
tion area
tion area
3-dimen-
clear-
tion
sional
ance and
zones
clear-
clear-
ance vec-
ance vec-
tor
tor (op-
tional)
DELOBJ
INT:
STRING:
INT:
INT:
BOOL:
Deletes elements from
Error
Compo-
Start in-
End in-
Alarm
kinematic chains, pro-
number
nent type
dex of
dex of
suppres-
tection areas, protec-
to be de-
the com-
the com-
sion
tion area elements, col-
leted
ponents
ponents
(option-
lision pairs and transfor-
to be de-
to be de-
al)
mation data
leted (op-
leted (op-
tional)
tional)
NAMETOINT
INT:
STRING:
STRING:
BOOL:
Determines the associ-
System
Name of
Charac-
Alarm
ated system variable in-
variable
the sys-
ter
suppres-
dex based on the char-
index
tem vari-
string /
sion
acter string
able array
name
(option-
al)
ORISOLH
INT:
INT:
REAL:
REAL:
Helps the user to set the
rotary axis positions of a
Error
Controls
First an-
Second
machine so that a turn-
number
the be-
gle
angle
ing tool can be brought
havior of
into a defined, kinemat-
the func-
ic-independent posi-
tion
tion relative to the work-
piece.
Requirement:
A 6-axis transformation
is active that has been
parameterized with kin-
ematic chains.
CORRTRAFO
INT:
REAL:
INT:
INT:
BOOL:
Modifies offset vectors
Error
Correc-
Element
Correc-
Alarm
or direction vectors of
number
tion vec-
to be
tion
suppres-
the orientation axes in
tor
modified
mode
sion
the kinematic model of
(option-
the machine.
al)
CORRTC
INT:
REAL:
INT:
INT:
BOOL:
Modify offset vectors or
Error
Correc-
Element
Correc-
Alarm
direction vectors of ori-
number
tion vec-
to be
tion
suppres-
entable tool carriers ac-
tor
modified
mode
sion
cording to machine
(option-
measurement.
al)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1345
Tables
4.7 Currently set language in the HMI
4.7
Currently set language in the HMI
The table below lists all of the languages available at the user interface.
The currently set language can be queried in the part program and in the synchronized actions
using the following system variable:
$AN_LANGUAGE_ON_HMI = <value>
<value>
Language
Language code
1
German (Germany)
GER
2
French
FRA
3
English (Great Britain)
ENG
4
Spanish
ESP
6
Italian
ITA
7
Dutch
NLD
8
Simplified Chinese
CHS
9
Swedish
SVE
18
Hungarian
HUN
19
Finnish
FIN
28
Czech
CSY
50
Portuguese (Brazil)
PTB
53
Polish
PLK
55
Danish
DAN
57
Russian
RUS
68
Slovakian
SKY
72
Rumanian
ROM
80
Traditional Chinese
CHT
85
Korean
KOR
87
Japanese
JPN
89
Turkish
TRK
Note
$AN_LANGUAGE_ON_HMI is updated:
• after the system boots.
• after NC and/or PLC reset.
• after switching over to another NC within the scope of M2N.
• after changing over the language on the HMI.
NC programming
1346
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1

 

 

 

 

 

 

 

 

Content      ..      1       2         ..

 

//////////////////////////////////////////