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

 

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

 

Search            copyright infringement  

 

   

 

   

 

Content      ..     13      14      15      16     ..

 

 

 

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

 

 

Work preparation
3.19 Punching and nibbling
3.19.2.2
Path segmentation for single axes
If single axes are defined as punching/nibbling axes in addition to path axes, then the automatic
path segmentation function can be activated for them.
Behavior of the single axis for SPP
The programmed path segment length (SPP) basically refers to the path axes. Therefore, in a
block in which in addition to the single-axis movement and the SPP value no path axis has been
programmed, then the SPP value is ignored.
If both individual and path axes are programmed in the block, then the behavior of the single axis
depends on the setting of the appropriate machine data.
1. Default setting
The path traversed by the single axis is distributed evenly among the intermediate blocks
generated by SPP.
Example:
N10 G1 SON X10 A0
N20 SPP=3 X25 A100
As a result of the stroke distance of 3 mm, for the total traversing distance of the X axis (path axis)
of 15 mm, 5 blocks are generated.
The A axis thus rotates through 20 degrees in every block.
100
80
100
60
40
20
1
2
1. Single axis without path segmentation
The single axis traverses its complete distance in the first of the generated blocks.
2. Different path segmentation
The behavior of the single axis is dependent on the interpolation of the path axes:
NC programming
974
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.19 Punching and nibbling
• Circular interpolation: Path segmentation
• Linear interpolation: no path segmentation
Behavior for SPN
The programmed number of path segments also applies if a path axis is not simultaneously
programmed.
Precondition: The single axis is defined as punching-nibbling axis.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
975
Work preparation
3.20 Grinding
3.20
Grinding
3.20.1
Activate/deactivate grinding-specific tool monitoring (TMON, TMOF)
With the predefined procedures TMON(...) and TMOF(...), the grinding-specific tool monitoring
is activated or deactivated (geometry and speed monitoring).
Requirement
The tool-specific parameters $TC_TPG1 to $TC_TPG9 must be set.
Syntax
TMON(<TNo>)
TMOF(<TNo>)
Meaning
TMON(...):
Activate grinding-specific tool monitoring
The command must be programmed in the channel in which the grinding-specific tool
monitoring is to be activated.
TMOF(...):
Deactivate grinding-specific tool monitoring
The command must be programmed in the channel in which the grinding-specific tool
monitoring is to be deactivated.
<TNo>:
T number
Note:
Only required if the monitoring is to be switched on or off for an inactive grinding wheel
rather than the active grinding wheel that is currently in use.
TMOF(0):
Deactivate monitoring for all tools
NC programming
976
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.21 Extended stop and retract (ESR)
3.21
Extended stop and retract (ESR)
The extended stop and retract function - subsequently called ESR - offers the possibility of
flexibly responding when a fault situation occurs as a function of the process:
• Extended stop
Assuming that the specific fault situation permits it, all of the axes, enabled for extended
stopping, are stopped in an orderly way.
• Retraction
The tool currently in use is retracted from the workpiece as quickly as possible.
• Generator operation (SINAMICS drive function "Vdc control")
If a parameterizable value of the DC-link voltage is fallen below, e.g. because the line voltage
fails, the electrical energy required for retraction is generated by recovering the braking
energy of the drive intended for this purpose (generator operation).
Trigger sources
General sources (NC-external/global or mode group-/channel-specific):
• Digital inputs (e.g. on NCU module) or the control-internal digital output image that can be
read back ($A_IN, $A_OUT)
• Channel state ($AC_STAT)
• VDI signals ($A_DBB)
• Group messages of a number of alarms ($AC_ALARM_STAT)
Axial sources
• Emergency retraction threshold of the following axis (synchronism of electronic coupling,
$VA_EG_SYNCDIFF[<following axis>])
• Drive: DC-link warning threshold (imminent undervoltage), $AA_ESR_STAT[<axis>]
• Drive: Generator minimum speed threshold (no further regenerative rotation energy
available), $AA_ESR_STAT[<axis>].
Gating logic of the static synchronized actions: Source/response link
The static synchronized actions' flexible gating possibilities are used to trigger specific reactions
relatively quickly according to the sources.
Linking all relevant sources using static synchronized actions is the responsibility of the user.
They can selectively evaluate the source system variables as a whole or by means of bit masks,
and then make a logic operation with their desired reactions. The static synchronized actions are
effective in all operating modes.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
977
Work preparation
3.21 Extended stop and retract (ESR)
Activation
Function enable
The functions generator operation, shutdown, retraction are released by setting the
corresponding control signal $AA_ESR_ENABLE. This control signal can be changed by
synchronized actions.
Function triggering
ESR is triggered jointly for all enabled axes by setting the system variable $AC_ESR_TRIGGER.
Generator operation is "automatically" activated in the drive when an imminent DC-link
undervoltage is detected.
Drive-independent stopping and/or retraction become active when a communication failure
(between the NC and drive) is detected and when a DC-link undervoltage is detected in the drive
(configuration and enable required).
Drive-independent stopping and/or retraction can also be triggered by the NC by setting the
appropriate control signal $AN_ESR_TRIGGER (broadcast command to all drives).
Further information
Function Manual Axes and Spindles
3.21.1
NC-controlled ESR
3.21.1.1
NC-controlled retraction (POLF, POLFA, POLFMASK, POLFMLIN)
Certain initial conditions are required for NC-controlled retraction (see "NC-controlled retraction
(POLF, POLFA, POLFMASK, POLFMLIN) (Page 978)"). When these requirements have been
satisfied, then the rapid lift (LIFTFAST) configured for retraction axis(axes) in the channel is
activated by setting the system variable $AC_ESR_TRIGGER (or $AA_ESR_TRIGGER for single
axes).
Syntax
POLF(<axis>)=<position>
POLFA(<axis>,<type>,<position>)
POLFMASK(<axis_1>,<axis_2>,...)
POLFMLIN(<axis_1>,<axis_2>,...)
The following abbreviated forms are permitted for POLFA:
POLFA(<axis>,<type>) ; Abbreviated form for single axis retraction
POLFA(axis,0/1/2) ; Quick deactivation or activation
POLFA(axis,0,$AA_POLFA[axis]) ; Causes a preprocessing stop
POLFA(axis,0) ; Does not cause a preprocessing stop
NC programming
978
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.21 Extended stop and retract (ESR)
Meaning
POLF:
Address for specifying the target position of the retraction axis
POLF is modal.
<axis>:
Name of the geometry or channel/machine axis that retracts
<position>:
Retraction position
Type:
REAL
WCS is valid for geometry axes, otherwise MCS.
With the same identifiers for geometry and channel/machine
axes, retraction is in the WCS.
POLFA:
Predefined subprogram call for the specification of the retraction position of single
axes
<axis>:
Channel axis identifier
<type>:
Position specification mode
Type:
INT
Value:
0:
Mark position value as invalid
1:
Position value is absolute
2:
Position value is incremental (distance)
Note:
If an axis is not a single axis or if the type is missing or type=0,
then a corresponding alarm is output.
<position>:
Retraction position (see above)
Note:
The position value is also accepted with type=0. Only this value
is marked as invalid and has to be reprogrammed for retraction.
POLFMASK:
Predefined subprogram call for selection of the axes that are to be retracted after
tripping of rapid lift independently of one another.
<axis_1>,…:
Names of the axes that are to be traversed to their positions
defined with POLF during rapid lift.
All the axes specified must be in the same coordinate system.
POLFMASK() without specification of an axis deactivates the rapid lift for all axes that
have been retracted independently of one another.
POLFMLIN:
Predefined subprogram call for selection of the axes that are to be retracted after
tripping of rapid lift in linear relation.
<axis_1>,…:
See above.
POLFMLIN() without specification of an axis deactivates the rapid lift for all axes that
have been retracted in linear relation.
Note
Before rapid retraction to a fixed position can be enabled via POLFMASK or POLFMLIN, a position
must have been programmed with POLF for the selected axes.
Note
If axes are enabled one after the other with POLFMASK, POLFMLIN or POLFMLIN, POLFMASK,
then the last definition always applies for the particular axis.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
979
Work preparation
3.21 Extended stop and retract (ESR)
Note
The positions programmed with POLF and the activation by POLFMASK or POLFMLIN are
deleted when the part program is started. This means that the user must reprogram the values
for POLF and the selected axes in POLFMASK or POLFMLIN in each part program.
Note
If, when using the abbreviated form POLFA only the type is changed, then the user must ensure
that either the retraction position or the retraction path contains a practical and sensible value.
In particular, the retraction position and the retraction path have to be set again after Power On.
Example
Retracting an individual axis:
Program code
Comment
MD37500 $MA_ESR_REACTION[AX1]=21
; NC-controlled retraction.
$AA_ESR_ENABLE[AX1]=1
POLFA(AX1,1,20.0)
; AX1 is assigned the axial retraction
position 20.0 (absolute).
$AA_ESR_TRIGGER[AX1]=1
; Retraction starts from here.
Further information
Requirements for NC-controlled retraction
• A retraction axis is configured for the NC-controlled retraction in the channel:
MD37500 $MA_ESR_REACTION = 21
• ESR must be must be enabled for this axis:
$AA_ESR_ENABLE = 1
• Delay times are defined:
MD21380 $MC_ESR_DELAY_TIME1
MD21381 $MC_ESR_DELAY_TIME2
• The axis-specific retraction positions have been configured with POLF in the part program.
• The axes are selected with POLFMASK/POLFMLIN for the NC-controlled retraction.
• The activate signals must be set for the retraction movement and remain set.
Enable and start NC-controlled reactions
If system variable $AC_ESR_TRIGGER = 1 is set and if a retraction axis is configured in this channel
(i.e. MD37500 $MA_ESR_REACTION = 21) and $AA_ESR_ENABLE = 1 is set for this axis, then
rapid lift (LIFTFAST) is activated in this channel.
The lift movement configured with POLF (or POLF) for the axes selected with POLFMASK or
POLFMLIN replaces the path motion defined for these axes in the part program.
NC programming
980
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.21 Extended stop and retract (ESR)
The sum of the MD21380 $MC_ESR_DELAY_TIME1 and MD21381 $MC_ESR_DELAY_TIME2
times is the maximum available for the retraction. When this time has expired, rapid
deceleration with follow-up is also initiated for the retraction axis.
Note
The extended retraction (i.e. LIFTFAST/LFPOS triggered by $AC_ESR_TRIGGER) cannot be
interrupted and can only be terminated prematurely via an emergency stop.
Note
Retraction initiated via $AC_ESR_TRIGGER is locked, in order to prevent multiple retractions.
Single axis retraction
With single axis retraction, the retraction position of the single axis must have been
programmed with POLFA and the following conditions must be satisfied:
• $AA_ESR_ENABLE = 1
• <Axis> must be a single axis at the time of triggering ($AAAA_ESR_TRIGGER = 1).
• <Type> must be either 1 or 2.
Retraction direction during rapid lift
The frame valid at the time when the lift fast is activated is taken into consideration.
Note
Frames with rotation also affect the direction of lift via POLF.
Axis replacement
Retraction axes must always be assigned to exactly one NC channel and may not be switched
among the channels. When an attempt is made to exchange a retraction axis in another channel,
an alarm is output. Only once this axis has been deactivated again using $AA_ESR_ENABLE[AX]
= 0 can it be exchanged in a new channel. Once the axis has been exchanged, axes can be acted
upon again with $AA_ESR_ENABLE[AX] = 1.
Neutral axes
Neutral axes cannot undertake NC-controlled ESR.
3.21.1.2
NC-controlled stopping
The NC-controlled stopping is activated for the stopping axes configured in the channel by
setting system variable $AC_ESR_TRIGGER (or $AA_ESR_TRIGGER for single axes).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
981
Work preparation
3.21 Extended stop and retract (ESR)
Requirements
• A stopping axis is configured for the NC-controlled stopping in the channel:
MD37500 $MA_ESR_REACTION = 22
• ESR must be enabled for this axis:
$AA_ESR_ENABLE = 1
• Delay times are defined:
MD21380 $MC_ESR_DELAY_TIME1 (delay time, ESR axes)
MD21381 $MC_ESR_DELAY_TIME2 (ESR time for interpolatory braking)
Execution
This axis continues interpolating as programmed for the time period set in MD21380: After the
time delay specified in MD21380 has expired, controlled braking (ramp stop) is initiated: The
time period in MD21381 is the maximum available for the interpolatory controlled braking.
After this period expires, fast braking with subsequent tracking is initiated.
Example
Stopping a single axis:
Program code
Comment
MD37500 $MC_ESR_REACTION[AX1] = 22
; NC-controlled stopping.
MD21380 $MC_ESR_DELAY_TIME1[AX1] = 0.3
MD21381 $MC_ESR_DELAY_TIME2[AX1] = 0.06
$AA_ESR_ENABLE[AX1]=1
$AA_ESR_TRIGGER[AX1]=1
; Stopping starts from here.
3.21.2
Drive-integrated ESR
3.21.2.1
Configuring drive-integrated stopping (ESRS)
The drive parameters for "stopping" of the drive-integrated ESR function are configured using
the ESRS(...) function.
Syntax
ESRS(<access_1>,<stopping time_1>[,...,<axis_n>,<stopping time_n>])
NC programming
982
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.21 Extended stop and retract (ESR)
Meaning
ESRS(...):
Function to write to the drive parameters for the ESR function "stopping"
The function:
• Must be alone in the block.
• Triggers a preprocessing stop.
• Cannot be used in synchronized actions.
<axis_1>,
Axis for which drive-integrated stopping should be configured
...,
For this axis, drive parameter p0888 (configuration) is written to in the
<axis_n>:
drive:
p0888 = 1
Type:
AXIS
Range of values:
Channel axis identifier
<stopping time_1>,
Time during which the drive continues to travel with the actual speed
...,
setpoint after a fault has occurred
<stopping time_n>:
For the specified axis, drive parameter p0892 (timer) is written to in the
drive:
p0892 = <stopping time>
Unit:
s
Type:
REAL
Range of values:
0.00 - 20.00
A maximum of 5 axes can be programmed in a function call; n = 5
3.21.2.2
Configuring drive-integrated retraction (ESRS)
The drive parameters for "retraction" of the drive-integrated ESR function are configured using
the ESRR(...) function.
Syntax
ESRR(<axis_1>,<retraction distance_1>,<retraction
velocity_1>[,...,<axis_n>,<retraction distance_n>,<retraction
velocity_n>])
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
983
Work preparation
3.21 Extended stop and retract (ESR)
Meaning
ESRR(...):
Function to write to the drive parameters for the ESR function "re-
tract"
The function:
• Must be alone in the block.
• Triggers a preprocessing stop.
• Cannot be used in synchronized actions.
<axis_1>,
Axis for which drive-integrated retraction should be configured
...,
For this axis, drive parameter p0888 (configuration) is written to in
<axis_n>:
the drive:
p0888 = 2
Type:
AXIS
Range of values:
Channel axis identifier
<retraction distance_1>,
For the drive, the retraction distance is converted into a retraction
...,
speed. For the specified axis, the value is written to drive parameter
<retraction distance_n>:
p0893 (speed):
p0893 = (<retraction distance _n> converted into retraction speed)
Unit:
mm/min, inch/min, degrees/min (depending
on the unit of the axis)
Type:
REAL
Range of values:
MIN - MAX
<retraction
For the drive, the retraction velocity is converted into a time. For the
velocity_1>,
specified axis, the value is written to drive parameter p0892 (timer)
...,
[s]:
<retraction
p0892 = <retraction distance_n> / <retraction velocity _n>
velocity_n>:
Unit:
mm/min, inch/min, degrees/min (depending
on the unit of the axis)
Type:
REAL
Range of values:
0.00 - MAX
A maximum of 5 axes can be programmed in a function call; n = 5
NC programming
984
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.22 Program runtime/part counter
3.22
Program runtime/part counter
Information on the program runtime and workpiece counter is provided to support the machine
tool operator.
This information can be processed as system variables in the NC and/or PLC program. This
information is also available to be displayed on the operator interface.
3.22.1
Program runtime
The "program runtime" function provides internal NC timers to monitor technological processes,
which can be read into the part program and into synchronized actions via the NC and channel-
specific system variables.
The trigger for the runtime measurement ($AC_PROG_NET_TIME_TRIGGER) is the only system
variable of the function that can be written to - and is used to selectively measure program
sections. This means, by writing $AC_PROG_NET_TIME_TRIGGER in the NC program, the time
measurement can be enabled and disabled again:
System variable
Meaning
Activity
NC-specific
$AN_SETUP_TIME
Time since the last control power up with default values
• Always active
("cold restart") in minutes.
Is automatically reset to "0" every time the control pow-
ers up with default values.
$AN_POWERON_TIME
Time since the last normal control power up ("warm
restart") in minutes.
Is automatically reset to "0" every time the control pow-
ers up normally.
Channel-specific
$AC_OPERATING_TIME
Total runtime of NC programs in automatic mode in
• Activated via
seconds.
MD27860
The value is automatically reset to "0" every time the
• Only AUTOMATIC
control powers up.
mode
$AC_CYCLE_TIME
Runtime of the selected NC program in seconds.
The value is automatically reset to "0" every time a new
NC program starts up.
$AC_CUTTING_TIME
Processing time in seconds
The runtime of the path axes (at least one is active) is
measured in all NC programs between NC start and end
of program/NC reset without rapid traverse active. The
measurement is interrupted when a dwell time is active.
The value is automatically reset to "0" every time the
control powers up with default values.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
985
Work preparation
3.22 Program runtime/part counter
System variable
Meaning
Activity
$AC_ACT_PROG_NET_TIME
Actual net runtime of the current NC program in sec-
•
Always active
onds.
•
Only AUTOMATIC
Is automatically reset to "0" when a new NC program
mode
starts.
$AC_OLD_PROG_NET_TIME
Net runtime in seconds of the program that has just be
correctly ended with M30
$AC_OLD_PROG_NET_TIME_COUNT
Changes to $AC_OLD_PROG_NET_TIME
After POWER ON, $AC_OLD_PROG_NET_TIME_COUNT
is at "0".
$AC_OLD_PROG_NET_TIME_COUNT is always in-
creased if the control has newly written to
$AC_OLD_PROG_NET_TIME.
$AC_PROG_NET_TIME_TRIGGER
Trigger for the runtime measurement:
•
Only AUTOMATIC
0
Neutral state
mode
The trigger is not active.
1
Exit
Ends the measurement and copies the value from
$AC_ACT_PROG_NET_TIME into
$AC_OLD_PROG_NET_TIME.$AC_ACT_PROG_NET_
TIME is set to "0" and then continues to run.
2
Start
Starts the measurement and in so doing sets
$AC_ACT_PROG_NET_TIME to "0".
$AC_OLD_PROG_NET_TIME is not changed.
3
Stop
Stops the measurement. Does not change
$AC_OLD_PROG_NET_TIME and keeps
$AC_ACT_PROG_NET_TIME constant until it re-
sumes
4
Resume
The measurement is resumed, i.e. a measurement
that was previously stopped is continued.
$AC_ACT_PROG_NET_TIME continues.
$AC_OLD_PROG_NET_TIME is not changed.
All system variables are reset to 0 as a result of POWER ON!
Note
Machine manufacturer
Machine data MD27860 $MC_PROCESSTIMER_MODE is used to switch-in the timer that can be
activated.
The behavior of active time measurements for certain functions (e.g. GOTOS, override = 0%,
active test run feed, program test, ASUB, PROG_EVENT, …) is configured using machine data
MD27850 $MC_PROG_NET_TIMER_MODE and MD27860 $MC_PROCESSTIMER_MODE.
Further information: Function Manual Basic Functions
NC programming
986
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.22 Program runtime/part counter
Note
Residual time for a workpiece
If the same workpieces are machined one after the other, using the following timer values, the
remaining residual time for a workpiece can be determined.
• Processing time for the last workpiece produced (see $AC_OLD_PROG_NET_TIME)
• Current processing time (see $AC_ACT_PROG_NET_TIME)
The residual time is displayed on the user interface in addition to the current processing time.
Note
Using STOPRE
The system variables $AC_OLD_PROG_NET_TIME and $AC_OLD_PROG_NET_TIME_COUNT do
not generate any implicit preprocessing stop. This is uncritical when used in the part program if
the value of the system variables comes from the previous program run. However, if the trigger
for the runtime measurement ($AC_PROG_NET_TIME_TRIGGER) is written very frequently and
as a result $AC_OLD_PROG_NET_TIME changes very frequently, then an explicit STOPRE should
be used in the part program.
Supplementary conditions
• Block search
No program runtimes are determined through block searches.
• REPOS
The duration of a REPOS process is added to the current processing time
($AC_ACT_PROG_NET_TIME).
Examples
Example 1: Measuring the duration of "mySubProgrammA"
Program code
N50 DO $AC_PROG_NET_TIME_TRIGGER=2
N60 FOR ii= 0 TO 300
N70 mySubProgrammA
N80 DO $AC_PROG_NET_TIME_TRIGGER=1
N95 ENDFOR
N97 mySubProgrammB
N98 M30
After the program has processed line N80, the net runtime of "mySubProgrammA" is located in
$AC_OLD_PROG_NET_TIME.
The value from $AC_OLD_PROG_NET_TIME:
• is kept beyond M30.
• is updated each time the loop is run through.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
987
Work preparation
3.22 Program runtime/part counter
Example 2: Measuring the duration of "mySubProgrammA" and "mySubProgrammC"
Program code
N10 DO $AC_PROG_NET_TIME_TRIGGER=2
N20 mySubProgrammA
N30 DO $AC_PROG_NET_TIME_TRIGGER=3
N40 mySubProgrammB
N50 DO $AC_PROG_NET_TIME_TRIGGER=4
N60 mySubProgrammC
N70 DO $AC_PROG_NET_TIME_TRIGGER=1
N80 mySubProgrammD
N90 M30
3.22.2
Workpiece counter
The "Workpiece counter" function makes available various counters which can be used in
particular internally in the control to count workpieces.
The counters exist as channel-specific system variables with read and write access in a range of
values from 0 to 999 999 999.
System variable
Meaning
$AC_REQUIRED_PARTS
Number of workpieces to be produced (setpoint number of workpieces)
In this counter the number of workpieces at which the actual workpiece
count ($AC_ACTUAL_PARTS) will be reset to "0" can be defined.
$AC_TOTAL_PARTS
Total number of completed workpieces (actual workpiece total)
This counter specifies the total number of all workpieces produced since
the start time. The value is only automatically reset to "0" when the con-
trol powers up with default values.
$AC_ACTUAL_PARTS
Number of completed workpieces (actual workpiece total)
This counter registers the total number of all workpieces produced since
the start time. On condition that $AC_REQUIRED_PARTS > 0, the counter
is automatically reset to "0" when the required number of workpieces
($AC_REQUIRED_PARTS) is reached.
$AC_SPECIAL_PARTS
Number of workpieces selected by the user
This counter supports user-specific workpiece counts. An alarm can be
defined to be output when the setpoint number of workpieces is reached
($AC_REQUIRED_PARTS). Users must reset the counter themselves.
Note
All workpiece counters are set to "0" when the control powers up with default values and can be
read and written independent of their activation.
NC programming
988
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.22 Program runtime/part counter
Note
Channel-specific machine data can be used to control counter activation, counter reset timing
and the counting algorithm.
Note
Workpiece counting with user-defined M command
Machine data can be set so that the count pulses for the various workpiece counters are
triggered using user-defined M commands rather than the end of the program (M2/M30).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
989
Work preparation
3.23 Program simulation
3.23
Program simulation
3.23.1
Function
The current part program is calculated completely in the program simulation and the result is
graphically displayed in the user interface. The result of programming is verified without
traversing the machine axes. Incorrectly programmed machining steps are detected at an early
stage and incorrect machining on the workpiece prevented.
Simulation NC
The simulation uses its own NC instance (simulation NC). Therefore, before a simulation is
started, the real NC must be aligned to the simulation NC. With this alignment, all active machine
data is read out of the NC and read into the simulation NC. The NC and cycle machine data is
included in the active machine data.
3.23.2
Program simulation in conjunction with compile cycles
Some compile cycles (CC) are supported in program simulation. The machine data of the
supported compile cycles is aligned once after the control has powered-up. An alignment with
"simulation start" does not take place!
Note
In part programs, CC-specific language commands and machine data of unsupported
CCs cannot be used (see also paragraph "CC-commands in the part program").
Special motion of supported CCs (OEM transformations) are - under certain circumstances -
incorrectly displayed.
CC-commands in the part program
Language commands in the part program of compile cycles that are not supported
(OMA1 ... OMA5, OEMIPO1/2, G810 ... G829, own procedures and functions) therefore result in
an alarm message and cancellation of the simulation without any individual handling.
Solution:
Individually handle the missing CC-specific language elements in the part program ($P_SIM
query).
Example:
Program code
Comment
N1 G01 X200 F500
IF (1==$P_SIM)
N5 X300
; CC not active for simulation.
NC programming
990
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.23 Program simulation
Program code
Comment
ELSE
N5 X300 OMA1=10
ENDIF
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
991
Work preparation
3.24 Additional functions
3.24
Additional functions
3.24.1
Activate machine data (NEWCONF)
The NEWCONF command activates all machine data. The function can also be activated in the
HMI user interface by pressing the "MD data effective" softkey.
When the "NEWCONF" function is executed there is an implicit preprocessing stop; in other
words, path movement is interrupted.
Syntax
NEWCONF
Meaning
NEWCONF:
Command for setting all machine data of the "NEW_CONFIG" effectiveness level active
Cross-channel execution of NEWCONF from the part program
If changes are made to axial machine data from the part program and then activated
with NEWCONF, NEWCONF will only activate the machine data containing changes affecting the
part program channel.
Note
In order to ensure that all changes are applied, the NEWCONF command must be executed in
every channel in which the axes or functions affected by the changes to the machine data is
being calculated.
No axial machine data is effective for NEWCONF.
An axial RESET must be performed for axes controlled by the PLC.
Example
Milling: Machine drill position with different technologies
Program code
Comment
N10 $MA_CONTOUR_TOL[AX]=1.0
; Change machine data.
N20 NEWCONF
; Activate machine data.
NC programming
992
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
3.24.2
Check scope of NC language present (STRINGIS)
Using the function "STRINGIS(...)" it can be checked as to whether the specified string is available
as element of the NC programming language in the actual language scope.
Definition
INT STRINGIS(STRING <Name>)
Syntax
STRINGIS(<Name>)
Meaning
STRINGIS:
Function with return value
<name>:
Name of the NC programming language element to be checked
Return value:
The return value format is yxx (decimal).
Elements of the NC programming language
The following elements of the NC programming language can be checked:
• G commands of all existing G groups, e.g. "G0", "INVCW", "POLY", "ROT", "KONT", "SOFT",
"CUT2D", "CDON", "RMBBL", "SPATH"
• DIN or NC addresses, such as "ADIS", "RNDM", "SPN", "SR", "MEAS"
• Functions, e.g. "TANG(...)" or "GETMDACT"
• Procedures, e.g. "SBLOF".
• Keywords, e.g. "ACN", "DEFINE" or "SETMS"
• System data, e.g. machine data $M... , setting data $S... or option data $O...
• System variables $A... , $V... , $P...
• Arithmetic parameter R...
• Cycle names of activated cycles
• GUD and LUD variables
• Macro names
• Label names
Return value
Only the first three decimal positions of the return value are relevant. The return value format is
yxx, with y = basis information and xx = detailed information.
Return value
Meaning
000
The 'name' string is not known in this system 1)
100
The 'name' string is an element of the NC programming language, but currently cannot be programmed
(option/function is inactive)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
993
Work preparation
3.24 Additional functions
Return value
Meaning
2xx
The 'name' string is a programmable element of the NC programming language (option/function is active).
The detailed information xx contains additional information about the element type:
xx
Meaning
01
DIN address or NC address2)
02
G command (e.g. G04, INVCW)
03
Function with return value
04
Function without return value
05
Keyword, e.g. DEFINE
06
Machine ($M...), setting ($S...) or option data ($O...)
07
System parameters, e.g. system variable ($...) or arithmetic parameter (R...)
08
Cycle (the cycle must be loaded into the NC and the cycle program must be active 3) )
09
GUD variable (the GUD variable must be defined in the GUD definition files and the GUD variables
activated)
10
Macro name (the macro must be defined in the macro definition files and macros activated) 4)
11
LUD variable of the actual part program
12
ISO G command (ISO language mode must be active)
400
The 'name' string is an NC address, that was not identified as xx == 01 or xx == 10 and is not G or R 2)
y00
No specific assignment possible
1) Depending on the control, under certain circumstances, only a subset of the Siemens NC language commands are known,
e.g. SINUMERIK 802D sl. For these controls, for strings that are principally Siemens NC language commands, a value of 0 is
returned. This behavior can be changed using MD10711 $MN_NC_LANGUAGE_CONFIGURATION. For MD10711 = 1, then a
value of 100 is always returned for Siemens NC language commands.
2) NC addresses are the following letters: A, B, C, E, I, J, K, Q, U, V, W, X, Y, Z. These NC addresses can also be programmed with
an address extension. The address extension can be specified when checking with STRINGIS. Example: 201 == STRINGIS("A1").
The letters: D, F, H, L, M, N, O, P, S, T are NC addresses or auxiliary functions that are defined by the user. A value of 400 is always
returned for these. Example: 400 == STRINGIS( "D" ). These NC addresses cannot be specified with address extension when
checking with STRINGIS.
Example: 000 == STRINGIS("M02"), but 400 == STRINGIS("M").
3) Names of cycle parameters cannot be checked with STRINGIS.
4) Address, defined as macro, e.g. G, H, M, L are identified as macro.
Examples
In the following examples it is assumed that the NC language elements specified as string - as
long as nothing else is noted - can in principle be programmed in the control.
1. String "T" is defined as auxiliary function:
400 == STRINGIS("T")
000 == STRINGIS ("T3")
2. String "X" is defined as axis:
201 == STRINGIS("X")
201 == STRINGIS("X1")
3. String "A2" is defined as address with extension:
201 == STRINGIS("A")
201 == STRINGIS("A2")
4. String "INVCW" is defined as named G command:
202 == STRINGIS("INVCW")
NC programming
994
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
5. String "$MC_GCODE_RESET_VALUES" is defined as machine data:
206 == STRINGIS("$MC_GCODE_RESET_VALUES")
6. String "GETMDACT" is an NC language function:
203 == STRINGIS("GETMDACT ")
7. String "DEFINE" is a keyword:
205 == STRINGIS("DEFINE")
8. String "$TC_DP3" is a system parameter (tool length component):
207 == STRINGIS("$TC_DP3")
9. String "$TC_TP4" is a system parameter (tool size):
207 == STRINGIS("$TC_TP4")
10.String "$TC_MPP4" is a system parameter (magazine location state):
- Tool magazine management is active: 207 == STRINGIS("$TC_MPP4") ;
- Tool magazine management is not active: 000 == STRINGIS("$TC_MPP4")
Also refer to the paragraph below: Tool magazine management.
11.String "MACHINERY_NAME" is defined as GUD variable:
209 == STRINGIS("MACHINERY_NAME")
12.String "LONGMACRO" is defined as macro:
210 == STRINGIS("LONGMACRO")
13.String "MYVAR" is defined as LUD variable:
211 == STRINGIS("MYVAR")
14.String "XYZ" is a command that is not known in the NC, GUD variable, macro or cycle name:
000 == STRINGIS("XYZ")
Tool magazine management
If the tool magazine management function is not active, supplies STRINGIS for the system
parameters of the tool magazine management, independent of the machine data
• MD10711 $MN_NC_LANGUAGE_CONFIGURATION
always a value of 000.
ISO mode
If the "ISO mode" function is active:
• MD18800 $MN_MM_EXTERN_LANGUAGE (activation, external NC languages)
• MD10880 $MN_ MM_EXTERN_CNC_SYSTEM (control system to be adapted)
STRINGIS checks the specified string initially as SINUMERIK G command. If the string is not a
SINUMERIK G command, then it is subsequently checked as ISO G command.
Programmed switchovers (G290 (SINUMERIK mode), G291 (ISO Mode)) have no effect on
STRINGIS.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
995
Work preparation
3.24 Additional functions
Example
The machine data, relevant for the function STRINGIS(...), has the following values:
• MD10711 $MN_NC_LANGUAGE_CONFIGURATION = 2 (only the NC language commands
whose options are set are considered to be known)
• MD19410 $ON_TRAFO_TYPE_MASK = 'H0' (option: transformations)
• MD10700 $MN_PREPROCESSING_LEVEL='H43' (preprocessing for cycles is active)
The following program example is executed without error message:
Program code
Comment
N1 R1=STRINGIS("TRACYL")
; R1 == 0, because TRACYL is identified as
"not known" because of the missing transformation
option
N2 IF STRINGIS("TRACYL") == 204
N3 TRACYL(1,2,3)
; N3 is skipped
N4 ELSE
N5 G00
; and instead, N5 is executed
N6 ENDIF
N7 M30
3.24.3
Interactively call the window from the part program (MMC)
User-specific dialogs from an NC program can be displayed on the user interface via the
predefined subprogram MMC(...).
The configuration of the dialogs can be done for the following types of dialogs:
• Run MyScreens
• Easy XML
• User XML
Further information:
• Programming Manual Run MyScreens
• Programming Manual Easy XML
Syntax
MMC("<ADDRESS>,<COMMAND>,<FILE>,<DIALOG>","<QUIT>")
Meaning
MMC(...):
Subprogram identifier
The parameters are specified position-coded and separated by a comma with-
in two strings, the command string and the acknowledgement string.
Parameters within the command string:
NC programming
996
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
<ADDRESS>:
Operating area in which the configured user dialog boxes are implemented
Function
Operating areas
"Run MyScreens" user dialog
CYCLES
"Easy XML" user dialog
CYCLES
User XML
XML
Pop-up window "Run MyScreens"
POPUPDLG
Popup window "Easy XML"
POPUPDLG
<COMMAND>:
Command to be executed
Function
Commands
"Run MyScreens" user dialog
PICTURE_ON, PICTURE_OFF
"Easy XML" user dialog
PICTURE_ON, PICTURE_OFF
User XML
XML_ON, XML_OFF
Pop-up window "Run MyScreens"
PICTURE_ON, PICTURE_OFF
Popup window "Easy XML"
PICTURE_ON, PICTURE_OFF
<FILE>:
Name of the file in which the dialog to be displayed is programmed
Function
Files
"Run MyScreens" user dialog
<name>.com
"Easy XML" user dialog
<name>.xml
User XML
<name>.xml
Pop-up window "Run MyScreens"
<name>.com
Popup window "Easy XML"
<name>.xml
Popup window "Easy XML" with configura-
xmldial_emb.xml
tion direct in the NC program (see example
2)
<DIALOG>:
Name of the dialog to be displayed
Function
Dialog name
All functions except popup window "Easy
Name of the dialog configured
XML" with configuration direct in the NC
in the <FILE> file
program
Popup window "Easy XML" with configura-
main
tion direct in the NC program (see example
3)
Parameters within the acknowledgment string:
<QUIT>:
Acknowledgment type
N:
No acknowledgment.
Program execution is continued when the command has been
transmitted. There is no feedback if the command could not be
successfully executed.
Note
Acknowledgement type "N" must be used if a display time (dwell
time) is programmed in the NC program (see Example 2 below)
A:
Asynchronous acknowledgment
The program execution is continued after the command is issued.
The return value is saved in a user-specific acknowledgement var-
iable (GUD variable), which is defined within the scope of the dia-
log configuration, and can be read in the NC program.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
997
Work preparation
3.24 Additional functions
Supplementary conditions
• The definition files *.com of the dialogs must be saved in the "proj" folder.
• The Easy XML definition files *.xml of the dialogs must be saved in the "appl" folder.
If the definition files are saved in a different directory, the path must be specified indirectly,
starting from the "appl" directory.
• User-defined dialogs from different channels cannot be simultaneously displayed.
• The MMC functionality is not supported in the simulation.
Examples
Example 1
Display of a dialog and response to the user operation in an NC program.
Program code
Comment
; The acknowledgement variable QUIT has already been created as a global user varia-
ble (GUD)
; Of the type STRING when the dialog was configured:
; DEF NCK STRING[20] QUIT
QUIT = "XXX"
; Initialize acknowledgment variable
G4 F5
MMC("CYCLES,PIC-
; Display dialog
TURE_ON,test.com,test1","A")
;
- Operating area: CYCLES
;
- Picture status: PICTURE_ON (display)
;
- Dialog screen file: test.com
;
- Dialog screen: test1
INPUT:
; Wait for user input
STOPRE
;
Preprocessing stop
IF MATCH (QUIT,"RUN") >= 0 GOTOF WORK
;
Softkey "RUN"
IF MATCH (QUIT,"CHK") >= 0 GOTOF CHECK
;
Softkey "CHK"
GOTOB INPUT
; => Wait
WORK:
; Softkey "RUN" pressed
MSG("Continue with processing -> NC
; Output message
start")
MMC("CYCLES,PICTURE_OFF","N")
; Close dialog
M0
; Wait for NC start
GOTOF END
; => Program end
CHECK:
; Softkey "CHK" pressed
MSG("Approach position -> NC start")
; Output message
MMC("CYCLES,PICTURE_OFF","N")
; Close dialog
M0
; Wait for NC start
GOTOF END
; => Program end
NC programming
998
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
Program code
Comment
END:
Example 2
The display time of a dialog is defined in the NC program via a dwell time, for example.
Program code
Comment
F1000 G94
MMC("POPUPDLG,PICTURE_ON,xmldial_emb.xml,main","N")
; Display dialog
X200
Z40
MMC("POPUPDLG,PICTURE_OFF","N")
; Close dialog
Example 3
Embedding a popup script in an NC program and its use.
Program code
PROC POPUP_TEST
; ----------------------------- Script -----------------------------
; <main_dialog entry="rpara_main">
;
<let name="xpos" />
;
<let name="ypos" />
;
<let name="field_name" type="string" />
;
<let name="num" />
;
<menu name="rpara_main">
;
<open_form name="rpara_form"/>
;
<softkey_back>
;
<close_form />
;
</softkey_back>
;
</menu>
;
<form name="rpara_form">
;
<init>
;
<caption>mask from NC part program</caption>
;
<let name="count" >0</let>
;
<op>
;
xpos =
120;
;
ypos = 34;
;
"nck/Channel/Parameter/R[10]" = 10;
;
</op>
;
<!-- load the number of controls -->
;
<op>
;
num = "nck/Channel/Parameter/R[10]";
;
</op>
;
<while>
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
999
Work preparation
3.24 Additional functions
Program code
;
<condition> count < num</condition>
;
<print name="field_name" text="edit%d">count</print>
;
<op>
;
ypos = ypos + 24;
;
count = count + 1;
;
</op>
;
</while>
;
</init>
;
<paint>
;
<op>
;
xpos =
8;
;
ypos = 36;
;
count = 0;
;
</op>
;
<while>
;
<condition>count < num</condition>
;
<print name="field_name" text="R-Parameter%d">count</print>
;
<text xpos = "$xpos" ypos = "$ypos" >$$$field_name</text>
;
<op>
;
ypos = ypos + 24;
;
count = count + 1;
;
</op>
;
</while>
;
</paint>
;
</form>
; </main_dialog>
; ========================= Program section ===========================
G94 F100
MMC("POPUPDLG,PICTURE_ON,xmldial_emb.xml,main","N")
G4 F4
X200
MMC("POPUPDLG,PICTURE_OFF","N")
G4 F2
X0
NC programming
1000
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
3.24.4
Process DataShare - Output to an external device/file (EXTOPEN, WRITE,
EXTCLOSE):
The writing of data from a part program to an external device/file is performed in three steps:
1. Open the external device/file
The external device/file is opened for the channel for writing using the EXTOPEN command.
2. Writing data
The output data can be processed using the string functions of the NC language, e.g. SPRINT.
The WRITE command is used for writing.
3. Close the external device/file
The external device/file assigned in the channel is released again using the EXTCLOSE
command, when the end of the program is reached (M30) or for a channel reset.
Syntax
DEF INT <Result>
DEF STRING[<n>] <Output>
…
EXTOPEN(<Result>,<ExtDev>,<SyncMode>,<AccessMode>,<WriteMode>)
…
<Output>="data output"
WRITE(<Result>,<ExtDev>,<Output>)
…
EXTCLOSE(<Result>,<ExtDev>)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1001
Work preparation
3.24 Additional functions
Meaning
EXTOPEN:
Pre-defined procedure to open an external device/file
<Result>:
Parameter 1: Result variable
By using the result variable value, it can be evaluated in the program as to whether
the operation was successful and processing is then appropriately continued.
Type:
INT
Values:
0
No error
1
External device cannot be opened
2
External device is not configured
3
External device with invalid path configured
4
No access rights for external device
5
Usage mode: External device already "exclusively" occupied
6
Usage mode: External device already being "shared"
7
File length longer than LOCAL_DRIVE_MAX_FILESIZE
8
Maximum number of external devices has been exceeded
9
Option for LOCAL_DRIVE not set
11
Reserved
12
Write mode: Data contradicts extdev.ini
16
Invalid external path has been programmed
22
External device not mounted
NC programming
1002
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
<ExtDev>:
Parameter 2: Symbolic identifier for the external device/file to be opened
Type:
STRING
The symbolic identifier comprises:
1. the logical device name
2. where relevant, followed by a file path (attached using "/").
The following logical device names have been defined:
"LOCAL_DRIVE":
Local CF card (pre-defined)
"CYC_DRIVE":
Reserved drive name for use in SIEMENS cycles (pre-de-
fined)
"/dev/ext/1", ...
Available network drives
"/dev/ext/9":
Note:
It is necessary to configure in the extdev.ini file!
"/dev/cyc/1",
Reserved drive names for use in SIEMENS cycles
"/dev/cyc/2":
Note:
It is necessary to configure in the extdev.ini file!
File path:
• A file path must be specified for "LOCAL_DRIVE" and "CYC_DRIVE" e.g.
"LOCAL_DRIVE/my_dir/my_file.txt"
• The logical device names "/dev/ext/1...9" and "/dev/cyc/1...2" can be configured:
- To already refer to a file, in which case only the logical device names may be
specified, e.g.:
"/dev/ext/4"
- Or to a directory, in which case a file path must be specified, e.g.:
"/dev/ext/5/my_dir/my_file.txt"
Note:
For the logical device names "/dev/ext/1...9", "/dev/v24" and "/dev/cyc/1...2" up-
percase/lowercase is ignored; uppercase/lowercase is significant for specifying a
path to a file. Only uppercase letters are permissible for "LOCAL_DRIVE" and
"CYC_DRIVE".
<SyncMode>:
Parameter 3: Processing mode for the WRITE commands to this device/file
Type:
STRING
Values:
"SYN":
Synchronous writing
Program execution is stopped until the write operation
has been completed.
Successfully completing the synchronous write opera-
tion can be checked by evaluating the error variables of
the WRITE command.
"ASYN":
Asynchronous writing
Program execution is not interrupted by the WRITE com-
mand.
Note.
In this mode, the result variable of the WRITE command
does not provide any information and always has the
value 0 (no error). In this particular mode, there is no
certainty that the WRITE command was successful.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1003
Work preparation
3.24 Additional functions
<AccessMode>:
Parameter 4: Usage mode for this device/file
Type:
STRING
Values:
"SHARED":
Device/file is requested in the "shared" mode. Other
channels can also use the device, i.e. also open in this
mode.
"EXCL":
Device/file is exclusively used in the channel; no other
channel can use the device.
<WriteMode>:
Parameter 5: Write mode for the WRITE commands to this file/device (optional)
Type:
STRING
Values:
"APP":
Attaching
The file is always kept regarding its contents; write calls
are attached at the end.
"OVR":
Overwrite
The contents of the file are deleted and re-generated
using the subsequent write calls.
Note:
Using this parameter, the write mode configured in the extdev.ini file cannot be
overwritten. In the case of a conflict, then the EXTOPEN call is acknowledged with
error.
WRITE:
Pre-defined procedure to write output data
EXTCLOSE:
Pre-defined procedure to close an external device/file that has been opened
<Result>:
Parameter 1: Result variable
Type:
INT
Values:
0
No error
16
Invalid external path has been programmed
21
Error when closing the external device
<ExtDev>:
Parameter 2: Symbolic identifier for the external device/file description to be
closed, see EXTOPEN!
Note:
The identifier must be identical to the identifier specified in the EXTOPEN call!
Example
Program code
N10
DEF INT RESULT
N20
DEF BOOL EXTDEVICE
N30
DEF STRING[80] OUTPUT
N40
DEF INT PHASE
N50
EXTOPEN(RESULT,"LOCAL_DRIVE/my_file.txt","SYN","SHARED")
N60
IF RESULT > 0
N70
MSG("Error for EXTOPEN:" << RESULT)
N80
ELSE
N90
EXTDEVICE=TRUE
NC programming
1004
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
Program code
N100
ENDIF
…
N200
PHASE=4
N210
IF EXTDEVICE
N220
OUTPUT=SPRINT("End phase: %D",PHASE)
N230
WRITE(RESULT,"LOCAL_DRIVE/my_file.txt",OUTPUT)
N240
ENDIF
…
See also
String operations (Page 448)
Write file (WRITE) (Page 566)
3.24.5
Alarms (SETAL)
Alarms can be set in an NC program. Alarms are displayed in a separate field at the user interface.
An alarm always goes hand in hand with a response from the control according to the alarm
category.
Syntax
SETAL(<No>[,<String>])
Meaning
SETAL(...):
Predefined procedure for setting an alarm
SETAL must be programmed in a separate NC block.
<No>:
Alarm number
Data type:
INT
Range of val-
60000 ... 64999 (reserved)
Alarms for SIEMENS cycles
ues:
65000 ... 69999
Alarms for user cycles
<String>:
Character string (optional)
Data type:
STRING
When programming user cycle alarms, a character string with up to four parameters
can be specified.
Variable user texts can be defined in these parameters.
The following predefined parameters are available:
%1
Channel number
%2
Block number, label
%3
Text index for cycle alarms
%4
Additional alarm parameters
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1005
Work preparation
3.24 Additional functions
Note
Alarm texts must be configured in the user interface.
Note
If an alarm is to be output in the language active at the user interface, then the user requires
information about the language that is currently set at the HMI. This information can be
requested in the part program and in synchronized actions via the system
variable $AN_LANGUAGE_ON_HMI (Page 1346).
Example
Program code
Comment
N100 SETAL (65000)
;Set alarm no. 65000
Further information
Alarm response and acknowledgment
User cycle alarms are assigned to number ranges that differ with regard to alarm response and
acknowledgment:
Number range
Alarm response
Alarm acknowl-
edgment
65000 - 65499
Display, NC Start disable
Reset
65500 - 65999
Display, NC Start disable (not for ASUBs for set MD20194)
Reset
66000 - 66999
Display, NC Start disable, motion standstill after executing the
Reset
pre-decoded blocks
67000 - 67999
Display
Cancel
68000 - 68999
Display, NC Start disable, immediate interpolator stop
Reset
69000 - 69999
Display, NC Start disable, stop at next block end
Reset
3.24.6
Define blank (WORKPIECE)
The controller must know the shape and size of a blank to be able to display it in the graphical
simulation. The user therefore has the capability of defining blanks via the user interface or
directly in the NC program. The definitions of blanks are retained beyond a (program end/
channel/BAG) reset. They are automatically deleted the next time that the control system powers
up.
NC programming
1006
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
Syntax
WORKPIECE("<WP>", "<RefP>", "<ZeroOffset>", "<Type>", <Par5>,
<Par6>, ..., <Par12>)
Meaning
WORKPIECE(...):
Predefined procedure for defining a blank
Preprocessing
Yes
stop:
Alone in the
Yes
block:
Parameters:
1
"<WP>":
Name of the workpiece (optional)
Data type:
STRING
A specification is only necessary if there can be several workpieces in
one channel. Without specifying, "WORKP<n>" is automatically ac-
cepted, with <n> being the number of the declaring channel.
2
"<RefP>":
Clamping (optional, only for milling machines)
Data type:
STRING
Range of values:
"Table"
Clamping of the fixed table
"A"
Clamping on rotary axis A
"B"
Clamping on rotary axis B
"C"
Clamping on rotary axis C
Precondition:
The table or the rotary axis must be enabled via the corresponding
machine data for the clamping of the blank (see SINUMERIK Operate
Commissioning Manual).
3
"<ZeroOffset>":
Settable work offset for positioning the blank (not programmable)
The selection of a settable work offset for positioning the blank is only
offered for the blank entry via the user interface. For the direct defi-
nition of the blank in the part program, the blank always relates to the
currently valid work offset.
4
"<Type>":
Blank shape
Data type:
STRING
Range of values:
"CYLINDER":
Cylinder
"PIPE":
Pipe
"RECTANGLE":
Centered cuboid
"BOX":
Cuboid
"N_CORNER":
Polygon with n edges
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1007
Work preparation
3.24 Additional functions
5 ... 12
<Par5> ... <Par12>:
Parameters for description of the blank shape
Data type:
REAL
The number of parameters required and their meaning depend on the
respective blank shape and the value of the bit parameter.
See:
• "Parameters for description of the blank shape" table
• "Bit parameters" table
WORPIECE():
A WORKPIECE call without parameters deletes all blank definitions.
WORPIECE(<WP>):
A WORKPIECE call with workpiece name only deletes this blank defi-
nition.
Table 3-6
Parameters for description of the blank shape
Blank shape
Parameter
<Par5>
<Par6>
<Par7>
<Par8>
<Par9>
<Par10>
<Par11>
<Par12>
Cylinder
Bit parameter
Reference
Length Z1
Machin-
Outer di-
-
Rotation
-
point Z0
ing dimen-
ameter d0
about ro-
Real value that is
sion ZB
tary axis
interpreted as
Pipe
bit-coded inte-
Reference
Length Z1
Machin-
Outer di-
Wall thick-
Rotation
-
ger value. The
point Z0
ing dimen-
ameter d0
ness (inc) /
about ro-
bits define the
sion ZB
inner di-
tary axis
meaning of the
ameter d1
following param-
(abs)
eters (see "Bit pa-
Centered cuboid
Reference
Length Z1
Machin-
Width W
Length L
Rotation
-
rameters" table).
point Z0
ing dimen-
about ro-
sion ZB
tary axis
Cuboid
Reference
Length Z1
Machin-
X0
Y0
X1
Y1
point Z0
ing dimen-
sion ZB
Polygon with n
Reference
Length Z1
Machin-
Number
Width
Rotation
-
edges
point Z0
ing dimen-
of corners
across
about ro-
sion ZB
flats
tary axis
Table 3-7
Bit parameter
Bit
Meaning
4 (0x0010)
Cuboid: X1
= 0
inc
= 1
abs
5 (0x0020)
Cuboid: Y1
= 0
inc
= 1
abs
6 (0x0040)
Length Z1 (final dimension)
= 0
inc
= 1
abs
NC programming
1008
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
Bit
Meaning
Bit 7 (0x0080)
Machining dimension ZB
= 0
inc
= 1
abs
Bit 8 (0x0100)
Pipe: Wall thickness / inner diameter
= 0
inc
= 1
abs
9 (0x0200)
Polygon with n edges
= 0
Width across flats
= 1
Edge length
12 (0x1000)
Clamping for turning machines
= 0
Main spindle
= 1
Counterspindle
13 (0x2000)
Counterspindle
= 0
with mirroring
= 1
without mirroring
Examples
Example 1: Cylinder-shaped blank on a turning machine
=
=%
=
Program code
Comment
WORKPIECE(,,,"CYLINDER",0,0,-200,-150,100)
; Blank definition:
; Blank shape: Cylinder
; Bit parameter=0(no bit set) →
Values for length and machining
dimension are incremental, blank
on main spindle
; Reference point(Z0)=0
; Length(Z1)=-200
; Machining dimension(ZB)=-150
; Outer diameter(d0)=100
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1009
Work preparation
3.24 Additional functions
Example 2: Pipe-shaped blank on a turning machine
=
=%
=
Program code
Comment
WORKPIECE(,,,"PIPE",256,0,-200,-150,100,80)
; Blank definition:
; Blank shape: Pipe
; Bit parameter=256(Bit8=1) → In-
ner diameter is absolute; length
and machining dimension are in-
cremental, blank on main spindle
; Reference point(Z0)=0
; Length(Z1)=-200
; Machining dimension(ZB)=-150
; Outer diameter(d0)=100
; Inner diameter(d1)=80
3.24.7
Switch language mode (G290, G291)
The controller gives you the capability of reading in part programs from external CNC systems
and processing them. The prerequisite is that the corresponding NC language mode (ISO dialect)
has been defined during commissioning.
The ISO dialect mode can be activated separately for each channel. For example, channel 1 can
run in ISO dialect mode while channel 2 is active in SINUMERIK mode.
The switchover between SINUMERIK mode and ISO dialect mode is done in the NC program via
the commands of the G-group 47. The active tool, tool compensation and work offsets are not
influenced by the switchover.
Syntax
G291
G290
NC programming
1010
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.24 Additional functions
Meaning
G290:
Activate SINUMERIK language mode
Alone in the block:
yes
Effective:
Modal
G291:
Activate ISO language mode
Alone in the block:
yes
Effective:
Modal
Conditions
SINUMERIK mode
• The default of the G commands can be defined for each channel via machine data.
• No language commands from the ISO dialects can be programmed in SINUMERIK mode.
ISO dialect mode
• The ISO dialect mode can be set with machine data as the basic setting of the control system.
In ISO dialect mode, the control system then reboots by default.
• Only G commands from the ISO dialect can be programmed. The programming of SINUMERIK
G functions is not possible in ISO dialect mode.
• ISO dialect and SINUMERIK language cannot be mixed in the same NC block.
• G commands cannot be used to switch between ISO dialect M (milling) and ISO dialect T
(turning).
• Subprograms that are programmed in SINUMERIK mode can be called.
• If SINUMERIK functions are to be used, a switchover to SINUMERIK mode must first be made
(see example).
Example
Compression of linear blocks in the ISO dialect mode
Program code
Comment
N5 G290
; Activate SINUMERIK language mode.
N10 COMPCAD
; COMPCAD is a command in the Siemens lan-
guage and activates a compressor function
that replaces the successive linear
blocks with polynomial blocks with path
lengths that are as long as possible.
N15 G291
; Activate ISO language mode.
N20 G01 X100 Y100 F1000
; Since COMPCAD has been activated in the
SINUMERIK mode, even linear blocks in the
ISO dialect mode can be compressed with
this function.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1011
Work preparation
3.24 Additional functions
Further information
Function Manual ISO Dialects
NC programming
1012
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.25 User stock removal programs
3.25
User stock removal programs
3.25.1
Supporting functions for stock removal
Preprogrammed stock removal programs are provided for stock removal. Beyond this, you have
the possibility of generating your own stock removal programs using the following listed
functions:
• Generate contour table (CONTPRON)
• Generate coded contour table (CONTDCON)
• Deactivate contour preparation (EXECUTE)
• Determine point of intersection between two contour elements (INTERSEC)
(Only for tables that were generated using CONTPRON)
• Execute contour elements of a table block-by-block (EXECTAB)
(Only for tables that were generated using CONTPRON)
• Calculate circle data (CALCDAT)
Note
You can use these functions universally, not just for stock removal.
Requirements
The following must be done before calling the CONTPRON or CONTDCON functions:
• A starting point that permits collision-free machining must be approached.
• The cutting radius compensation must be deactivated with G40.
3.25.2
Generate contour table (CONTPRON)
CONTPRON switches on the contour preparation. The NC blocks that are subsequently called are
not executed, but are split-up into individual movements and stored in the contour table. Each
contour element corresponds to one row in the two-dimensional array of the contour table. The
number of relief cuts is returned.
Syntax
Activate contour preparation:
CONTPRON(<contour table>,<machining type>,<relief cuts>,
<machining direction>)
Deactivate contour preparation and return to the normal execution mode:
EXECUTE(<ERROR>)
See "Deactivate contour preparation (EXECUTE) (Page 1027)"
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1013
Work preparation
3.25 User stock removal programs
Meaning
CONTPRON:
Predefined procedure to activate the contour preparation to
generate a contour table
<contour table>:
Name of contour table
<machining type>:
Parameter for the machining type
Type:
CHAR
Value:
"G":
Longitudinal turning: Internal machin-
ing
"L":
Longitudinal turning: External machin-
ing
"N":
Face turning: Internal machining
"P":
Face turning: External machining
<relief cuts>:
Result variable for the number of relief cut elements that
occur
Type:
INT
<machining direction>:
Parameters for the machining direction
Type:
INT
Value:
0
Contour preparation, forward (default
value)
1
Contour preparation in both directions
Example 1
Generating a contour table with:
• Name "KTAB"
• Max. 30 contour elements (circles, straight lines)
• One variable for the number of relief cut elements that occur
• One variable for error messages
NC programming
1014
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.25 User stock removal programs
;
=
NC program:
Program code
Comment
N10 DEF REAL KTAB[30,11]
; Contour table with the name KTAB and
max. 30 contour elements, parameter value
11 (number of table columns) is a fixed
quantity.
N20 DEF INT ANZHINT
; Variable for the number of relief cut
elements with the name ANZHINT.
N30 DEF INT ERROR
; Variable for error feedback signal
(0=no error, 1=error).
N40 G18
N50 CONTPRON(KTAB,"G",ANZHINT)
; Activate contour preparation.
N60 G1 X150 Z20
; N60 to N120: Contour description
N70 X110 Z30
N80 X50 RND=15
N90 Z70
N100 X40 Z85
N110 X30 Z90
N120 X0
N130 EXECUTE(ERROR)
; End filling the contour table, switch-
over to normal program mode.
N140 …
; Continue to process the table.
Contour table KTAB:
Index
Column
Line
(0)
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
7
7
11
0
0
20
150
0
82.40535663
0
0
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1015
Work preparation
3.25 User stock removal programs
0
2
11
20
150
30
110
-1111
104.0362435
0
0
1
3
11
30
110
30
65
0
90
0
0
2
4
13
30
65
45
50
0
180
45
65
3
5
11
45
50
70
50
0
0
0
0
4
6
11
70
50
85
40
0
146.3099325
0
0
5
7
11
85
40
90
30
0
116.5650512
0
0
6
0
11
90
30
90
0
0
90
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Explanation of the column contents:
(0)
Pointer to next contour element (to the row number of that column)
(1)
Pointer to previous contour element
(2)
Coding the contour mode for motion
Possible values for X = abc
a = 102
G90 = 0
G91 = 1
b = 101
G70 = 0
G71 = 1
c = 100
G0 = 0
G1 = 1
G2 = 2
G3 = 3
(3), (4)
Starting point of contour elements
(3) = abscissa, (4) = ordinate of the current plane
(5), (6)
Starting point of the contour elements
(5) = abscissa, (6) = ordinate of the current plane
(7)
Max/min indicator: Identifies local maximum and minimum values on the contour
(8)
Maximum value between contour element and abscissa (for longitudinal machin-
ing) or ordinate (for face cutting). The angle depends on the type of machining
programmed.
(9), (10)
Center point coordinates of contour element, if it is a circle block.
(9) = abscissa, (10) = ordinate
Example 2
Generating a contour table with
• Name KTAB
• Max. 92 contour elements (circles, straight lines)
• Operating mode: Longitudinal turning, external machining
• Preparation, forward and backward
NC programming
1016
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.25 User stock removal programs
X
150
(100, 100)
100
(-30, 80)
(-40, 80)
50
(20, 45)
(0, 45)
(-30, 30)
(-15, 30)
(20, 20)
Z
-50
50
100
NC program:
Program code
Comment
N10 DEF REAL KTAB[92,11]
; Contour table with name KTAB and max.
92 contour elements, parameter value 11
is a fixed quantity.
N20 DEF CHAR BT="L"
; Mode for CONTPRON: Longitudinal turn-
ing, external machining
N30 DEF INT HE=0
;Number of relief cut elements=0
N40 DEF INT MODE=1
; Preparation, forward and backward
N50 DEF INT ERR=0
; Error feedback signal
N100 G18 X100 Z100 F1000
N105 CONTPRON(KTAB,BT,HE,MODE)
; Activate contour preparation.
N110 G1 G90 Z20 X20
N120 X45
N130 Z0
N140 G2 Z-15 X30 K=AC(-15) I=AC(45)
N150 G1 Z-30
N160 X80
N170 Z-40
N180 EXECUTE(ERR)
; End filling the contour table, switch-
over to normal program mode.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1017
Work preparation
3.25 User stock removal programs
Contour table KTAB:
After contour preparation is finished, the contour is available in both directions.
Index
Column
Line
(0)
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
0
61)
72)
11
100
100
20
20
0
45
0
0
1
03)
2
11
20
20
20
45
-3
90
0
0
2
1
3
11
20
45
0
45
0
0
0
0
3
2
4
12
0
45
-15
30
5
90
-15
45
4
3
5
11
-15
30
-30
30
0
0
0
0
5
4
7
11
-30
30
-30
45
-1111
90
0
0
6
7
04)
11
-30
80
-40
80
0
0
0
0
7
5
6
11
-30
45
-30
80
0
90
0
0
8
15)
26)
0
0
0
0
0
0
0
0
0
83
84
07)
11
20
45
20
80
0
90
0
0
84
90
83
11
20
20
20
45
-1111
90
0
0
85
08)
86
11
-40
80
-30
80
0
0
0
0
86
85
87
11
-30
80
-30
30
88
90
0
0
87
86
88
11
-30
30
-15
30
0
0
0
0
88
87
89
13
-15
30
0
45
-90
90
-15
45
89
88
90
11
0
45
20
45
0
0
0
0
90
89
84
11
20
45
20
20
84
90
0
0
91
839)
8510)
11
20
20
100
100
0
45
0
0
Explanation of column contents and comments for lines 0, 1, 6, 8, 83, 85 and 91
The explanations of the column contents given in example 1 apply.
Always in table line 0:
1) Predecessor: Line n contains the contour end (forward)
2) Successor: Line n is the contour table end (forward)
Once each within the contour elements forward:
3) Predecessor: Contour start (forward)
4) Successor: Contour end (forward)
Always in line contour table end (forward) +1:
5) Predecessor: Number of relief cuts (forward)
6) Successor: Number of relief cuts (backward)
Once each within the contour elements backward:
7) Successor: Contour end (backward)
8) Predecessor: Contour start (backward)
Always in last line of table:
9) Predecessor: Line n is the contour table start (backward)
NC programming
1018
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.25 User stock removal programs
10) Successor: Line n contains the contour start (backward)
Further information
Permitted traversing commands, coordinate system
The following G commands can be used for the contour programming:
• G group 1: G0, G1, G2, G3
In addition, the following are possible:
• Rounding and chamfer
• Circle programming using CIP and CT
The spline, polynomial and thread functions result in errors.
Changes to the coordinate system by activating a frame are not permissible between CONTPRON
and EXECUTE. The same applies for a change between G70 and G71 or G700 and G710.
Replacing the geometry axes with GEOAX while preparing the contour table produces an alarm.
Relief cut elements
The contour description for the individual relief cut elements can be performed either in a
subprogram or in individual blocks.
Stock removal independent of the programmed contour direction
The contour preparation with CONTPRON was expanded so that after it has been called, the
contour table is available independent of the programmed direction.
3.25.3
Generate coded contour table (CONTDCON)
With the contour preparation activated with CONTDCON, the following NC blocks that are called
are saved in a coded form in a 6-column contour table to optimize memory use. Each contour
element corresponds to one row in the contour table. When familiar with the coding rules
specified below, e.g. you can combine DIN code programs for cycles from the table lines. The
data of the output point is saved in the table line with the number 0.
Syntax
Activate contour preparation:
CONTDCON(<contour table>,<machining direction>)
Deactivate contour preparation and return to the normal execution mode:
EXECUTE(<ERROR>)
See "Deactivate contour preparation (EXECUTE) (Page 1027)"
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1019
Work preparation
3.25 User stock removal programs
Meaning
CONTDCON:
Predefined procedure to activate the contour preparation to
generate a coded contour table
<contour table>:
Name of the contour table
<machining direction>:
Parameter for machining direction
Type:
INT
Value:
0
Contour preparation according to the se-
quence of contour blocks (default value)
1
Not permissible
Note
The G commands permitted for CONTDCON in the program section to be included in the table are
more comprehensive than for CONTPRON. Further, feedrates and feedrate type are saved for
each contour section.
Example
Generating a contour table with:
• Name "KTAB"
• Contour elements (circles, straight lines)
• Operating mode: Turning
• Machining direction: Forward
X
150
(100, 100)
100
(-30, 80)
(-40, 80)
50
(20, 45)
(0, 45)
(-30, 30)
(-15, 30)
(20, 20)
Z
-50
50
100
NC programming
1020
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.25 User stock removal programs
NC program:
Program code
Comment
N10 DEF REAL KTAB[9,6]
;Contour table with name KTAB and 9
table cells. These allow 8 contour
sets. The parameter value 6 (column
number in table) is a fixed size.
N20 DEF INT MODE = 0
; Variable for the machining direc-
tion. Standard value 0: Only in the
programmed direction of the contour.
N30 DEF INT ERROR = 0
; Variable for the error feedback sig-
nal.
N100 G18 G64 G90 G94 G710
N101 G1 Z100 X100 F1000
N105 CONTDCON (KTAB, MODE)
; Contour preparation call (MODE can
be omitted).
N110 G1 Z20 X20 F200
; Contour description.
N120 G9 X45 F300
N130 Z0 F400
N140 G2 Z-15 X30 K=AC(-15) I=AC(45)F100
N150 G64 Z-30 F600
N160 X80 F700
N170 Z-40 F800
N180 EXECUTE(ERROR)
; End filling the contour table,
switchover to normal program mode.
Contour table KTAB:
Column index
0
1
2
3
4
5
Line index
Contour
End point
End point
Center point
Center point
Feedrate
mode
abscissa
ordinate
abscissa
ordinate
0
30
100
100
0
0
7
1
11031
20
20
0
0
200
2
111031
20
45
0
0
300
3
11031
0
45
0
0
400
4
11032
-15
30
-15
45
100
5
11031
-30
30
0
0
600
6
11031
-30
80
0
0
700
7
11031
-40
80
0
0
800
8
0
0
0
0
0
0
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1021
Work preparation
3.25 User stock removal programs
Explanation of the column contents:
Line 0 Coding for the starting point:
Column 0:
100 (ones digit): G0 = 0
101 (tens digit): G70 = 0, G71 = 1, G700 = 2, G710 = 3
Column 1:
Starting point abscissa
Column 2:
Starting point ordinate
Column 3-4:
0
Column 5:
Line index of last contour piece in the table
Lines 1-n: Entries for contour pieces
Column 0:
100 (ones digit): G0 = 0, G1 = 1, G2 = 2, G3 = 3
101 (tens digit): G70 = 0, G71 = 1, G700 = 2, G710 = 3
102 (hundreds digit): G90 = 0, G91 = 1
103 (thousands digit): G93 = 0, G94 = 1, G95 = 2, G96 = 3
104 (ten thousands digit): G60 = 0, G44 = 1, G641 = 2, G642 = 3
105 (hundred thousands digit): G9 = 1
Column 1:
End point abscissa
Column 2:
End point ordinate
Column 3:
Center point abscissa for circular interpolation
Column 4:
Center point ordinate for circular interpolation
Column 5:
Feedrate
Further information
Permitted traversing commands, coordinate system
The following G groups and G commands can be used for the contour programming:
G group 1:
G0, G1, G2, G3
G group 10:
G60, G64, G641, G642
G group 11:
G9
G group 13:
G70, G71, G700, G710
G group 14:
G90, G91
G group 15:
G93, G94, G95, G96, G961
In addition, the following are possible:
• Rounding and chamfer
• Circle programming using CIP and CT
The spline, polynomial and thread functions result in errors.
Changes to the coordinate system by activating a frame are not permissible between CONTDCON
and EXECUTE. The same applies for a change between G70 and G71 or G700 and G710.
Replacing the geometry axes with GEOAX while preparing the contour table produces an alarm.
NC programming
1022
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.25 User stock removal programs
Machining direction
The contour table generated using CONTDCON is used for stock removal in the programmed
direction of the contour.
3.25.4
Determine point of intersection between two contour elements (INTERSEC)
INTERSEC determines the point of intersection of two normalized contour elements from the
contour tables generated using CONTPRON.
Syntax
<Status>=INTERSEC(<contour table_1>[<contour element_1>],
<contour table_2>[<contour element_2>],<intersection
point>,<machining type>)
Meaning
INTERSEC:
Predefined function to determine the point of intersection between
two contour elements from the contour tables generated
with CONTPRON
<Status>:
Variable for the point of intersection status
Type:
BOOL
Value:
TRUE
Point of intersection found
FALSE
No intersection found
<contour table_1>:
Name of the first contour table
<contour element_1>:
Number of the contour element of the first contour table
<contour table_2>:
Names of the second contour table
<contour element_2>:
Number of the contour element of the second contour table
<point of intersection>:
Intersection coordinates in the active plane (G17 / G18 / G19)
Type:
REAL
<machining type>:
Parameter for the machining type
Type:
INT
Value:
0
Point of intersection calculation in the active
plane with parameter 2
(standard value)
1
Point of intersection calculation independent of
the transferred plane
Note
Please note that the variables must be defined before they are used.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1023
Work preparation
3.25 User stock removal programs
The values defined with CONTPRON must be observed when transferring the contours:
Parameter
Meaning
2
Coding of contour mode for the movement
3
Contour start point abscissa
4
Contour start point ordinate
5
Contour end point abscissa
6
Contour end point ordinate
9
Center point coordinates for abscissa (only for circle contour)
10
Center point coordinates for ordinate (only for circle contour)
Example
Calculate the intersection of contour element 3 in table TABNAME1 and contour element 7 in
table TABNAME2. The intersection coordinates in the active plane are stored in the variables
ISCOORD (1st element = abscissa, 2nd element = ordinate). If no intersection exists, the program
jumps to NOCUT (no intersection found).
Program code
Comment
DEF REAL TABNAME1[12,11]
; Contour table 1
DEF REAL TABNAME2[10,11]
; Contour table 2
DEF REAL ISCOORD [2]
; Variable for the intersection coor-
dinates.
DEF BOOL ISPOINT
; Variable for the intersection sta-
tus.
DEF INT MODE
; Variable for the machining type.
…
MODE=1
; Calculation independent of the ac-
tive plane.
N10 ISPOINT=INTERSEC(TABNAME1[3],TABNAME2[7],
; Intersection of the contour ele-
ISCOORD,MODE)
ments call.
N20 IF ISPOINT==FALSE GOTOF NOCUT
; Jump to NOCUT.
…
3.25.5
Execute the contour elements of a table block-by-block (EXECTAB)
Using EXECTAB, you can execute the contour elements of a table - that were generated, e.g.
with CONTPRON - block-by-block.
Syntax
EXECTAB(<contour table>[<contour element>])
NC programming
1024
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.25 User stock removal programs
Meaning
EXECTAB:
Predefined procedure to execute a contour element
<contour table>:
Name of the contour table
<contour element>:
Number of the contour element
Example
Contour elements 0 to 2 in table KTAB should be executed block-by-block.
Program code
Comment
N10 EXECTAB(KTAB[0])
; Traverse element 0 of table KTAB.
N20 EXECTAB(KTAB[1])
; Traverse element 1 of table KTAB.
N30 EXECTAB(KTAB[2])
; Traverse element 2 of table KTAB.
3.25.6
Calculate circle data (CALCDAT)
With CALCDAT, you can calculate the radius and the circle center point coordinates from the
three or four points known along the circle. The specified points must be different.
Where four points do not lie directly on the circle an average value is formed for the circle center
point and the radius.
Note
Calculation regulation for the averaging
The arc calculation is performed four times:
1. With circle points 1, 2, 3
2. With circle points 1, 2, 4
3. With circle points 1, 3, 4
4. With circle points 2, 3, 4
The values of the circle center point coordinates abscissa and ordinate are calculated by adding
the abscissa and ordinate values of the four arc calculations and dividing by four.
The radius is calculated by forming the root from the sum of the four radii from the arc
calculations and multiplying the result with 0.5.
Syntax
<Status>=CALCDAT(<circle points>[<number>,<type>],<number>,<result>)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1025
Work preparation
3.25 User stock removal programs
Meaning
CALCDAT:
Predefined function to calculate the radius and center point coordinates
of a circle from three or four points
<Status>:
Variable for the circle calculation status
Type:
BOOL
Value:
TRUE
The specified points lie on a circle.
FALSE
The specified points do not lie on a circle.
<circle points>[]:
Variable to specify the circle points
using parameters
<number>:
Number of circle points (3 or 4)
<type>:
Type of coordinate data,
e.g. 2 for 2-point coordinates
<number>:
Parameter for the number of the points used for the calculation (3 or 4)
<result>[3]:
Variable for result:
Circle center point coordinates and radius
0
Circle center point coordinate: Abscissa value
1
Circle center point coordinate: Ordinate value
2
Radius
Note
Please note that the variables must be defined before they are used.
Example
Using three points it should be determined as to whether they are located on a circle segment.
Y
60
(20, 50)
50
(50, 40)
40
30
(65, 20)
20
ERG [1]
10
X
10
20
30
40
50
60
70
ERG [0]
NC programming
1026
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.25 User stock removal programs
Program code
Comment
N10 DEF REAL PT[3,2]=(20,50,50,40,65,20)
; Variable to specify the points
of a circle.
N20 DEF REAL RES[3]
; Variable for result.
N30 DEF BOOL STATUS
; Variable for status.
N40 STATUS=CALCDAT(PKT,3,ERG)
; Call of the determined circle
data.
N50 IF STATUS == FALSE GOTOF ERROR
; Jump to error.
3.25.7
Deactivate contour preparation (EXECUTE)
EXECUTE deactivates the contour preparation and at the same time the system returns to the
normal execution mode.
Syntax
EXECUTE(<ERROR>)
Meaning
EXECUTE:
Predefined procedure to terminate contour preparation
<ERROR>:
Variable for the error feedback signal
Type:
INT
The value of the variable indicates whether the contour was able to be prepared error-
free:
0
Error
1
No error
Example
Program code
N30 CONTPRON(...)
N40 G1 X... Z
N100 EXECUTE(...)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1027
Work preparation
3.26 Programming cycles externally
3.26
Programming cycles externally
3.26.1
Technology cycles
3.26.1.1
Introduction
Contents
This section contains a description of the cycles for the turning, milling, and grinding
technologies.
Structure
The description of a cycle is structured as follows:
• Syntax
Cycle name and call sequence of the transfer parameters
• Parameters
Tables to explain the individual parameters
Parameter description
The following data is specified in the table for a parameter: Name, description, value range, and
dependencies on other parameters.
The column for reference to the parameter in the screen form is provided to more easily locate
values programmed on the control when externally generated cycle calls are recompiled.
"For interface only" parameters
Certain parameters are marked "for interface only" in the table. These are not relevant to
operation of the cycle. They are only needed in order to be able to recompile cycle calls
completely. If they are not programmed the cycle can still be recompiled; the fields are then
identified by color and must be completed in the mask.
"Reserved" parameters
Parameters that are described as "reserved" must be programmed with the value 0 or a comma
so that the assignment of the following call parameters matches the internal cycle parameters.
Exception: string parameters with the value "" or a comma.
Repeating cycles on a position pattern
Drilling and milling cycles can be repeated on the position pattern (modal calls). In such
cases MCALL should be written in the same line before the cycle, e.g. MCALL CYCLE83(...).
NC programming
1028
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.26 Programming cycles externally
Note
If certain transfer parameters (e.g. <_VARI>, <_GMODE>, <_DMODE>, <_AMODE>) have
been indirectly programmed as parameters, the screen form is opened on recompiling but it
cannot be stored as there is no unambiguous assignment to defined selection fields.
3.26.1.2
Technology-specific overview
The following overview table lists all available externally programmable technology cycles and
the technology assigned to each of them:
Technology
Technology cycle
Drilling
• CYCLE81 - drilling, centering (Page 1068)
• CYCLE82 - drilling, counterboring (Page 1069)
• CYCLE85 - reaming (Page 1078)
• CYCLE86 - boring (Page 1079)
• CYCLE83 - deep-hole drilling 1 (Page 1072)
• CYCLE830 - deep-hole drilling 2 (Page 1106)
• CYCLE84 - tapping without compensating chuck (Page 1075)
• CYCLE840 - tapping with compensating chuck (Page 1115)
• CYCLE78 - Drill thread milling (Page 1064)
• CYCLE802 - arbitrary positions (Page 1103)
• HOLES1 - row position pattern (Page 1031)
• CYCLE801 - grid or frame position pattern (Page 1101)
• HOLES2 - circle or pitch circle position pattern (Page 1031)
Turning
• CYCLE951 - stock removal (Page 1126)
• CYCLE930 - groove (Page 1121)
• CYCLE940 - undercut form E and F / undercut thread (Page 1123)
• CYCLE99 - thread turning (Page 1088)
• CYCLE98 - thread chain (Page 1084)
• CYCLE92 - cut-off (Page 1080)
Contour turning
• CYCLE62 - contour call (Page 1050)
• CYCLE952 - stock removal / residual stock removal / plunge cut-
ting / residual plunge cutting / plunge turning / residual plunge
turning (Page 1129)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1029
Work preparation
3.26 Programming cycles externally
Technology
Technology cycle
Milling
•
CYCLE61 - Face milling (Page 1048)
•
POCKET3 - rectangular pocket (Page 1033)
•
POCKET4 - circular pocket (Page 1036)
•
CYCLE76 - rectangular spigot (Page 1059)
•
CYCLE77 - circular spigot (Page 1062)
•
CYCLE79 - multi-edge (Page 1066)
•
SLOT1 - longitudinal slot (Page 1038)
•
SLOT2 - circumferential slot (Page 1041)
•
CYCLE899 - open slot (Page 1118)
•
LONGHOLE - elongated hole (Page 1043)
•
CYCLE70 - thread milling (Page 1055)
•
CYCLE60 - engraving (Page 1045)
Contour milling
•
CYCLE62 - contour call (Page 1050)
•
CYCLE72 - Path milling (Page 1056)
•
CYCLE63 - contour pocket milling / contour pocket residual ma-
terial / contour spigot milling / contour spigot residual material
(Page 1050)
•
CYCLE64 - Predrilling contour pocket (Page 1053)
Grinding
•
CYCLE495 - form-truing (Page 1093)
•
CYCLE435 - Set dresser coordinate system (Page 1093)
•
CYCLE4071 - longitudinal grinding with infeed at the reversal
point (Page 1135)
•
CYCLE4072 - longitudinal grinding with infeed at the reversal
point and cancel signal (Page 1137)
•
CYCLE4073 - longitudinal grinding with continuous infeed
(Page 1141)
•
CYCLE4074 - longitudinal grinding with continuous infeed and
cancel signal (Page 1142)
•
CYCLE4075 - surface grinding with infeed at the reversal point
(Page 1145)
•
CYCLE4077 - surface grinding with infeed at the reversal point
and cancel signal (Page 1148)
•
CYCLE4078 - surface grinding with continuous infeed
(Page 1152)
•
CYCLE4079 - surface grinding with intermittent infeed
(Page 1154)
Other
•
CYCLE782 - adjust to load (Page 1095)
•
CYCLE800 - swivel plane / swivel tool / align tool (Page 1098)
•
CYCLE806 - Interpolation turning (Page 1105)
•
CYCLE832 - High-Speed Settings (Page 1112)
All
•
GROUP_BEGIN - beginning of program block (Page 1157)
•
GROUP_END - end of program block (Page 1157)
•
GROUP_ADDEND - End of trial cut addition (Page 1158)
NC programming
1030
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.26 Programming cycles externally
3.26.1.3
HOLES1 - row position pattern
Syntax
HOLES1(<SPCA>, <SPCO>, <STA1>, <FDIS>, <DBH>, <NUM>, <_VARI>,
<_UMODE>, <_HIDE>, <_NSP>, <_DMODE>)
Parameters
No.
Parameter
Parameter
Data type
Meaning
mask
internal
1
X0
<SPCA>
REAL
Reference point for row of holes along the 1st axis (abs)
2
Y0
<SPCO>
REAL
Reference point for row of holes along the 2nd axis (abs)
3
α0
<STA1>
REAL
Basic angle of rotation (angle to 1st axis)
4
L0
<FDIS>
REAL
Distance from 1st hole to reference point
5
L
<DBH>
REAL
Spacing between the holes
6
N
<NUM>
INT
Number of holes
7
<_VARI>
INT
Reserved
8
<_UMODE>
INT
Reserved
9
<_HIDE>
STRING
Hidden positions
[200]
• Max. 198 characters
• Specification of consecutive position numbers, e.g. "1,3" (positions 1
and 3 are not executed)
10
<_NSP>
INT
Reserved
11
<_DMODE>
INT
Display mode
UNITS:
Machining plane G17/18/19
0 =
Compatibility, the plane effective
before the cycle call remains ac-
tive
1 =
G17 (only active in the cycle)
2 =
G18 (only active in the cycle)
3 =
G19 (only active in the cycle)
3.26.1.4
HOLES2 - circle or pitch circle position pattern
Syntax
HOLES2(<CPA>, <CPO>, <RAD>, <STA1>, <INDA>, <NUM>, <_VARI>,
<_UMODE>, <_HIDE>, <_NSP>, <_DMODE>)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1031
Work preparation
3.26 Programming cycles externally
Parameters
No.
Parameter
Parameter
Data type
Meaning
mask
internal
1
X0
<CPA>
REAL
Center point for circle of holes along the 1st axis
(for XY)
(abs)
(for XA, YB, ZC)
Reference point in the 1st axis
2
Y0
<CPO>
REAL
Center point for circle of holes along the 2nd axis
(for XY)
(abs)
(for XA, YB, ZC)
Reference point in the 2nd axis
3
R
<RAD>
REAL
Radius of the circle of holes
(for XY)
4
α0
<STA1>
REAL
Starting angle
(for XY)
or 1st rotary axis position
(for XA, YB, ZC)
5
α1
<INDA>
REAL
Advance angle (for pitch circle only)
(for XY, XA, YB, ZC)
< 0 =
Clockwise
> 0 =
Counter-clockwise
6
N
<NUM>
INT
Number of positions
7
<_VARI>
INT
Machining type
UNITS:
Reserved
TENS:
Positioning type
0 =
Approach position - linear
1 =
Approach position - circular path
HUNDREDS:
Reserved
THOUSANDS:
Circular pattern
0 =
Compatibility mode, if INDA = 0 then full
circle, INDA <> 0 then pitch circle
1 =
Full circle
2 =
Pitch circle
TEN THOUSANDS:
Position pattern with rotary axis
0 =
XY (without rotary
(for XY)
axis)
1 =
XA (X axis and rota-
(only for XA)
ry axis around X)
2 =
YB (Y axis and rota-
(only for YB)
ry axis around Y)
3 =
ZC (Z axis and rota-
(only for ZC)
ry axis around C)
ONE MILLION + HUN-
Offset (for several rotary axes around the same
DRED THOUSANDS:
axis; if index too large, then 1st axis)
00 =
1st A, B or C axis
01 =
2nd A, B or C axis
10 =
20th A, B or C axis
8
<_UMODE>
INT
Reserved
9
<_HIDE>
STRING
Reserved
[200]
NC programming
1032
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.26 Programming cycles externally
No.
Parameter
Parameter
Data type
Meaning
mask
internal
10
<_NSP>
INT
Reserved
11
<_DMODE>
INT
Display mode
UNITS:
Machining plane G17/18/19
0 =
Compatibility, the plane effective before
the cycle call remains active
1 =
G17 (only active in the cycle)
2 =
G18 (only active in the cycle)
3 =
G19 (only active in the cycle)
3.26.1.5
POCKET3 - rectangular pocket
Syntax
POCKET3(<_RTP>, <_RFP>, <_SDIS>, <_DP>, <_LENG>, <_WID>, <_CRAD>,
<_PA>, <_PO>, <_STA>, <_MID>, <_FAL>, <_FALD>, <_FFP1>, <_FFD>,
<_CDIR>, <_VARI>, <_MIDA>, <_AP1>, <_AP2>, <_AD>, <_RAD1>, <_DP1>,
<_UMODE>, <_FS>, <_ZFS>, <_GMODE>, <_DMODE>, <_AMODE>)
Parameters
No.
Parameter
Parameter
Data type
Meaning
mask
internal
1
RP
<_RTP>
REAL
Retraction plane (abs)
2
Z0
<_RFP>
REAL
Reference point of tool axis (abs)
3
SC
<_SDIS>
REAL
Safety clearance (to be added to reference point, enter without sign)
4
Z1
<_DP>
REAL
Pocket depth (abs/inc), see <_AMODE>
5
L
<_LENG>
REAL
Pocket length (inc, to be entered with sign)
6
W
<_WID>
REAL
Pocket width (inc, to be entered with sign)
7
R
<_CRAD>
REAL
Corner radius of pocket
8
X0
<_PA>
REAL
Reference point 1st axis (abs)
9
YO
<_PO>
REAL
Reference point 2nd axis (abs)
10
α0
<_STA>
REAL
Angle of rotation, angle between longitudinal axis (L) and 1st axis
11
DZ
<_MID>
REAL
Maximum depth infeed
12
UXY
<_FAL>
REAL
Finishing allowance, plane
13
UZ
<_FALD>
REAL
Finishing allowance, depth
14
F
<_FFP1>
REAL
Feedrate in the plane
15
FZ
<_FFD>
REAL
Depth infeed rate
16
<_CDIR>
INT
Milling direction:
0 =
Down-cut
1 =
Up-cut
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1033
Work preparation
3.26 Programming cycles externally
No.
Parameter
Parameter
Data type
Meaning
mask
internal
17
<_VARI>
INT
Machining type
UNITS:
1 =
Roughing
2 =
Finishing
4 =
Edge finishing
5 =
Chamfering
TENS:
0 =
Predrilled, infeed with G0
1 =
Vertically, infeed with G1
2 =
Helical
3 =
Oscillation on pocket longitudinal
axis
HUNDREDS:
Reserved
18
DXY
<_MIDA>
REAL
Maximum plane infeed, for unit, see <_AMODE>
19
L1
<_AP1>
REAL
Length of premachining (inc)
20
W1
<_AP2>
REAL
Width of premachining (inc)
21
AZ
<_AD>
REAL
Depth of premachining (inc)
22
ER
<_RAD1>
REAL
Radius of helical path on helical insertion
EW
Maximum insertion angle for oscillation
23
EP
<_DP1>
REAL
Helical pitch on helical insertion
24
<_UMODE>
INT
Reserved
25
FS
<_FS>
REAL
Chamfer width (inc)
26
ZFS
<_ZFS>
REAL
Insertion depth (tool tip) on chamfering (abs/inc), see <_AMODE>
NC programming
1034
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.26 Programming cycles externally
No.
Parameter
Parameter
Data type
Meaning
mask
internal
27
<_GMODE>
INT
Geometrical mode (evaluation of programmed geometrical data)
UNITS:
Reserved
TENS:
Reserved
HUNDREDS:
Select machining/only calculation of start
point
0 =
Compatibility mode
1 =
Normal machining
THOUSANDS:
Dimensioning via center/corner
0 =
Compatibility mode
1 =
Dimensioning via center
2 =
Dimensioning of corner point,
pocket position +LENG/+WID
3 =
Dimensioning of corner point,
pocket position -LENG/+WID
4 =
Dimensioning of corner point,
pocket position +LENG/-WID
5 =
Dimensioning of corner point,
pocket position -LENG/-WID
TEN THOUSANDS:
Complete machining/remachining
0 =
Compatibility mode
(process <_AP1>, <_AP2>
and <_AD> as before)
1 =
Complete machining
2 =
Post machining
28
<_DMODE>
INT
Display mode
UNITS:
Machining plane G17/G18/G19
0 =
Compatibility, the plane effective
before the cycle call remains ac-
tive
1 =
G17 (only active in the cycle)
2 =
G18 (only active in the cycle)
3 =
G19 (only active in the cycle)
TENS:
Type of feedrate: G group (G94/G95) for
surface and depth feedrate
0 =
Compatibility mode
1 =
G command as before cycle call.
G94/G95 same for surface and
depth feedrate
HUNDREDS:
---
Reserved
THOUSANDS:
---
Reserved
TEN THOUSANDS:
Technology scaling in cycle screen forms
(Page 1158)
0 =
Input: Complete
1 =
Input: Simple
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1035
Work preparation
3.26 Programming cycles externally
No.
Parameter
Parameter
Data type
Meaning
mask
internal
29
<_AMODE>
INT
Alternative mode
UNITS:
Pocket depth (Z1)
0 =
Absolute (compatibility mode)
1 =
Incremental
TENS:
Unit for plane infeed (DXY)
0 =
mm
1 =
% of tool diameter
HUNDREDS:
Insertion depth for chamfering (ZFS)
0 =
Absolute
1 =
Incremental
3.26.1.6
POCKET4 - circular pocket
Syntax
POCKET4(<_RTP>, <_RFP>, <_SDIS>, <_DP>, <_CDIAM>, <_PA>, <_PO>,
<_MID>, <_FAL>, <_FALD>, <_FFP1>, <_FFD>, <_CDIR>, <_VARI>, <_MIDA>,
<_AP1>, <_AD>, <_RAD1>, <_DP1>, <_UMODE>, <_FS>, <_ZFS>, <_GMODE>,
<_DMODE>, <_AMODE>)
Parameters
No.
Parameter
Parameter
Data type
Meaning
mask
internal
1
RP
<_RTP>
REAL
Retraction plane (abs)
2
Z0
<_RFP>
REAL
Reference point of tool axis (abs)
3
SC
<_SDIS>
REAL
Safety clearance (to be added to reference point, enter without sign)
4
Z1
<_DP>
REAL
Pocket depth (abs/inc), see <_AMODE>
5
∅
<_CDIAM>
REAL
Pocket diameter or radius, see
<_DMODE>
6
X0
<_PA>
REAL
Reference point 1st axis (abs)
7
Y0
<_PO>
REAL
Reference point 2nd axis (abs)
8
DZ
<_MID>
REAL
Maximum depth setting, see <_VARI> = by planes
Maximum helical setting, see
<_VARI> = helically
9
UXY
<_FAL>
REAL
Finishing allowance, plane
10
UZ
<_FALD>
REAL
Finishing allowance, depth
11
F
<_FFP1>
REAL
Feedrate for surface machining
12
FZ
<_FFD>
REAL
Depth infeed rate
13
<_CDIR>
INT
Milling direction
0 =
Down-cut
1 =
Up-cut
NC programming
1036
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.26 Programming cycles externally
No.
Parameter
Parameter
Data type
Meaning
mask
internal
14
<_VARI>
INT
Machining type
UNITS:
Machining
1 =
Roughing
2 =
Finishing
4 =
Edge finishing
5 =
Chamfering
TENS:
Infeed type (roughing and finishing)
0 =
Predrilled, infeed with G0 (pocket
is premachined)
1 =
Vertically, infeed with G1
2 =
Helical
HUNDREDS:
Reserved
THOUSANDS:
0 =
Plane-by-plane
1 =
Helical
15
DXY
<_MIDA>
REAL
Maximum plane infeed, see <_AMODE>,
0 = 0.8 x tool diameter
16
∅
<_AP1>
REAL
Diameter/radius of premachining (inc)
17
AZ
<_AD>
REAL
Depth of premachining (inc)
18
ER
<_RAD1>
REAL
Radius of helical path on helical insertion
19
EP
<_DP1>
REAL
Helical pitch on insertion on helical path
20
<_UMODE>
INT
Reserved
21
FS
<_FS>
REAL
Chamfer width (inc)
22
ZFS
<_ZFS>
REAL
Insertion depth (tool tip) on chamfering (abs/inc), see
<_AMODE>
23
<_GMODE>
INT
Geometrical mode (evaluation of programmed geometrical data)
UNITS:
Reserved
TENS:
Reserved
HUNDREDS:
Machining/calculation of start point
0 =
Compatibility mode
1 =
Normal machining
THOUSANDS:
Reserved
TEN THOUSANDS:
Complete machining/remachining
0 =
Compatibility mode
(process <_AP1> and <_AD> as
before)
1 =
Complete machining
2 =
Post machining
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1037
Work preparation
3.26 Programming cycles externally
No.
Parameter
Parameter
Data type
Meaning
mask
internal
24
<_DMODE>
INT
Display mode
UNITS:
Machining plane G17/18/19
0 =
Compatibility, the plane effective
before the cycle call remains ac-
tive
1 =
G17 (only active in the cycle)
2 =
G18 (only active in the cycle)
3 =
G19 (only active in the cycle)
TENS:
Type of feedrate: G group (G94/G95) for
surface and depth feedrate
0 =
Compatibility mode
1 =
G command as before cycle call.
G94/G95 same for surface and
depth feedrate
HUNDREDS:
0 =
Compatibility mode
(enter <_CDIAM>/<_AP1> as ra-
dius)
1 =
Enter <_CDIAM>/<_AP1> as di-
ameter
THOUSANDS:
---
Reserved
TEN THOUSANDS:
Technology scaling in cycle screen forms
(Page 1158)
0 =
Input: Complete
1 =
Input: Simple
25
<_AMODE>
INT
Alternative mode
UNITS:
Pocket depth (Z1)
0 =
Absolute (compatibility mode)
1 =
Incremental
TENS:
Unit for infeed width (DXY)
0 =
mm
1 =
% of tool diameter
HUNDREDS:
Insertion depth for chamfering (ZFS)
0 =
Absolute
1 =
Incremental
3.26.1.7
SLOT1 - longitudinal slot
Syntax
SLOT1 (<RTP>, <RFP>, <SDIS>, <_DP>, <_DPR>, <NUM>, <LENG>, <WID>,
<_CPA>, <_CPO>, <RAD>, <STA1>, <INDA>, <FFD>, <FFP1>, <_MID>,
<CDIR>, <_FAL>, <VARI>, <_MIDF>, <FFP2>, <SSF>, <_FALD>, <_STA2>,
<_DP1>, <_UMODE>, <_FS>, <_ZFS>, <_GMODE>, <_DMODE>, <_AMODE>)
NC programming
1038
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.26 Programming cycles externally
Parameters
No.
Parameter
Parameter
Data type
Meaning
mask
internal
1
RP
<RTP>
REAL
Retraction plane (abs)
2
Z0
<RFP>
REAL
Reference point of tool axis (abs)
3
SC
<SDIS>
REAL
Safety clearance (to be added to reference point, enter without sign)
4
Z1
<_DP>
REAL
Slot depth (abs)
5
<_DPR>
REAL
Slot depth (inc) with respect to Z0 (enter without sign)
6
<NUM>
INT
Number of slots = 1
7
L
<LENG>
REAL
Slot length
8
W
<WID>
REAL
Slot width
9
X0
<_CPA>
REAL
Reference point in the 1st axis of the plane
10
Y0
<_CPO>
REAL
Reference point in the 2nd axis of the plane
11
<RAD>
REAL
Reserved
12
α
<STA1>
REAL
Angle of rotation
13
<INDA>
REAL
Reserved
14
FZ
<FFD>
REAL
Depth infeed rate
15
F
<FFP1>
REAL
Feedrate
16
DZ
<_MID>
REAL
Maximum depth infeed
17
<CDIR>
INT
Milling direction
0 =
Down-cut
1 =
Up-cut
18
UXY
<_FAL>
REAL
Finishing allowance on plane or slot edge
19
<VARI>
INT
Machining type
UNITS:
0 =
Reserved
1 =
Roughing
2 =
Finishing
4 =
Edge finishing (only machine the
edge)
5 =
Chamfering
TENS:
Approach
0 =
Predrilled, infeed with G0 (slot is
premachined)
1 =
Vertically, infeed with G1
2 =
Helical
3 =
Oscillation
HUNDREDS:
Reserved
20
DZF
<_MIDF>
REAL
Reserved
21
FF
<FFP2>
REAL
Reserved
22
SF
<SSF>
REAL
Reserved
23
UZ
<_FALD>
REAL
Finishing allowance, depth
24
ER
<_STA2>
REAL
Radius of helical path on helical insertion
EW
Maximum insertion angle for oscillation
25
EP
<_DP1>
REAL
Insertion depth per rev for helix
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1039
Work preparation
3.26 Programming cycles externally
No.
Parameter
Parameter
Data type
Meaning
mask
internal
26
<_UMODE>
INT
Reserved
27
FS
<_FS>
REAL
Chamfer width (inc) for chamfering
28
ZFS
<_ZFS>
REAL
Insertion depth (tool tip) on chamfering (abs/inc), see
<_AMODE>
29
<_GMODE>
INT
Geometrical mode (evaluation of programmed geometrical data)
UNITS:
Reserved
TENS:
Reserved
HUNDREDS:
Select machining or just calculation of
start point
1 =
Normal machining
THOUSANDS:
Dimensioning of reference point, slot
length
0 =
Center
1 =
Inner left-hand +L
2 =
Inner right-hand -L
3 =
Left-hand edge +L
4 =
Right-hand edge -L
30
<_DMODE>
INT
Display mode
UNITS:
Machining plane G17/18/19
0 =
Compatibility, the plane effective
before the cycle call remains ac-
tive
1 =
G17 (only active in the cycle)
2 =
G18 (only active in the cycle)
3 =
G19 (only active in the cycle)
TENS:
Reserved
HUNDREDS:
Reserved
THOUSANDS:
Software version identification
1 =
Function extension SLOT1
TEN THOUSANDS:
Technology scaling in cycle screen forms
(Page 1158)
0 =
Input: Complete
1 =
Input: Simple
31
<_AMODE>
INT
Alternative mode
UNITS:
Final depth Z1 (abs/inc)
0 =
Compatibility
1 =
Z1 (inc)
2 =
Z1 (abs)
TENS:
Reserved
HUNDREDS:
Insertion depth for chamfering ZFS
0 =
ZFS (abs)
1 =
ZFS (inc)
NC programming
1040
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.26 Programming cycles externally
Note
The cycle is provided with new functions that are not on earlier software versions. Consequently
certain parameters in the screen form (<NUM>, <RAD>, <INDA>) are no longer displayed.
Multiple slots on one position pattern can be programmed using "MCALL" and calling the desired
position pattern, e.g. HOLES2.
3.26.1.8
SLOT2 - circumferential slot
Syntax
SLOT2(<RTP>, <RFP>, <SDIS>, <_DP>, <_DPR>, <NUM>, <AFSL>, <WID>,
<_CPA>, <_CPO>, <RAD>, <STA1>, <INDA>, <FFD>, <FFP1>, <_MID>,
<CDIR>, <_FAL>, <VARI>, <_MIDF>, <FFP2>, <SSF>, <_FFCP>, <_UMODE>,
<_FS>, <_ZFS>, <_GMODE>, <_DMODE>, <_AMODE>)
Parameters
No.
Parameter
Parameter
Data type
Meaning
mask
internal
1
RP
<RTP>
REAL
Retraction plane (abs)
2
Z0
<RFP>
REAL
Reference point of tool axis (abs)
3
SC
<SDIS>
REAL
Safety clearance (to be added to reference point, enter without sign)
4
Z1
<_DP>
REAL
Slot depth (abs)
5
<_DPR>
REAL
Slot depth (inc) with respect to Z0 (enter without sign)
6
N
<NUM>
INT
Number of slots
7
α1
<AFSL>
REAL
Opening angle of the slot
8
W
<WID>
REAL
Slot width
9
X0
<_CPA>
REAL
Reference point = Center point of circle, 1st axis of the plane
10
Y0
<_CPO>
REAL
Reference point = Center point of circle, 2nd axis of the plane
11
R
<RAD>
REAL
Radius of the circle
12
α0
<STA1>
REAL
Starting angle
13
α2
<INDA>
REAL
Incrementing angle
14
FZ
<FFD>
REAL
Depth infeed rate
15
F
<FFP1>
REAL
Feedrate
16
DZ
<_MID>
REAL
Maximum depth infeed
17
<CDIR>
INT
Milling direction
0 =
Down-cut
1 =
Up-cut
18
UXY
<_FAL>
REAL
Finishing allowance on plane or slot edge
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
1041
Work preparation
3.26 Programming cycles externally
No.
Parameter
Parameter
Data type
Meaning
mask
internal
19
<VARI>
INT
Machining type
UNITS:
0 =
Complete machining
1 =
Roughing
2 =
Finishing
3 =
Edge finishing
5 =
Chamfering
TENS:
0 =
Intermediate positioning with G0
line
1 =
Intermediate positioning on circu-
lar path
HUNDREDS:
Reserved
THOUSANDS:
0 =
Compatibility mode, if <INDA>
= 0 then full circle, <INDA> <> 0
then pitch circle
1 =
Full circle
2 =
Pitch circle
20
DZF
<_MIDF>
REAL
Reserved
21
<FFP2>
REAL
Reserved
22
<SSF>
REAL
Reserved
23
FF
<_FFCP>
REAL
Reserved
24
<_UMODE>
INT
Reserved
25
FS
<_FS>
REAL
Chamfer width (inc)
26
ZFS
<_ZFS>
REAL
Insertion depth (tool tip) on chamfering (abs/inc), see <_AMODE>
27
<_GMODE>
INT
Geometrical mode (evaluation of programmed geometrical data)
UNITS:
Reserved
TENS:
Reserved
HUNDREDS:
Select machining or just calculation of
start point
0 =
Compatibility mode
1 =
Normal machining
NC programming
1042
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1

 

 

 

 

 

 

 

Content      ..     13      14      15      16     ..