This description is only intended for the use of trained specialists in control and automation engineering who
are familiar with the applicable national standards.
It is essential that the documentation and the following notes and explanations are followed when installing
and commissioning the components.
It is the duty of the technical personnel to use the documentation published at the respective time of each
installation and commissioning.
The responsible staff must ensure that the application or use of the products described satisfy all the
requirements for safety, including all the relevant laws, regulations, guidelines and standards.
Disclaimer
The documentation has been prepared with care. The products described are, however, constantly under
development.
We reserve the right to revise and change the documentation at any time and without prior announcement.
No claims for the modification of products that have already been supplied may be made on the basis of the
data, diagrams and descriptions in this documentation.
Trademarks
Beckhoff®, TwinCAT®, EtherCAT®, EtherCAT G®, EtherCAT G10®, EtherCAT P®, Safety over EtherCAT®,
TwinSAFE®, XFC®, XTS® and XPlanar® are registered trademarks of and licensed by Beckhoff Automation
GmbH.
Other designations used in this publication may be trademarks whose use by third parties for their own
purposes could violate the rights of the owners.
Patent Pending
The EtherCAT technology is patent protected, in particular by the following applications and patents:
EP1590927, EP1789857, EP1456722, EP2137893, DE102015105702
with corresponding applications or registrations in various other countries.
EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH,
Germany
Real time status information of CNC
TF5200 | TC3 CNC3Version 1.0
General and safety instructions
General and safety instructions
Icons used and their meanings
This documentation uses the following icons next to the safety instruction and the associated text. Please
read the (safety) instructions carefully and comply with them at all times.
Icons in explanatory text
Ø Indicates an action.
ð Indicates an action statement.
DANGER
Acute danger to life!
If you fail to comply with the safety instruction next to this icon, there is immediate danger to human life and
health.
CAUTION
Personal injury and damage to machines!
If you fail to comply with the safety instruction next to this icon, it may result in personal injury or damage to
machines.
NOTICE
Restriction or error
This icon describes restrictions or warns of errors.
Tips and other notes
This icon indicates information to assist in general understanding or to provide additional information.
General example
Example that clarifies the text.
NC programming example
Programming example (complete NC program or program sequence) of the described function or NC command.
Specific version information
Optional or restricted function. The availability of this function depends on the configuration and the
scope of the version.
Real time status information of CNC
TF5200 | TC3 CNC4Version 1.0
Table of contents
Table of contents
Notes on the documentation .......................................................................................................................3
General and safety instructions..................................................................................................................4
2 Status information........................................................................................................................................9
6 Support and Service.....................................................................................................................................22
Index ..............................................................................................................................................................23
Real time status information of CNC
TF5200 | TC3 CNC5Version 1.0
Table of contents
Real time status information of CNC
TF5200 | TC3 CNC6Version 1.0
List of figures
List of figures
Fig. 1Path shape block position over time of D_CoveredDistance.......................................................10
Fig. 2Path velocity at D_ActiveFeed.....................................................................................................10
Fig. 3F Word and status signal “speed limit detected”..........................................................................14
Fig. 4Timing diagram without override weighting (f_override_weight_v_limit = 0) ...............................15
Fig. 5Timing diagram with override weighting (f_override_weight_v_limit = 1) ....................................15
Fig. 6Missing PLC acknowledgement and "speed limit detected" status signal ...................................16
Fig. 7A restart after PLC acknowledgement resets the “speed limit detect” status signal....................17
Fig. 8Inadequate block supply results in the activation of the "speed limit detected" signal. ...............18
Fig. 9F word and “speed limit detected” status signal ..........................................................................19
Real time status information of CNC
TF5200 | TC3 CNC7Version 1.0
Overview
1Overview
Task
The CNC provides the user with 2 types of status information:
1. Status information and status signals of an informative nature provided to the user by means of display data or by the HMI or the PLC.
2. Status information on improved techniques to master machining technologies.
Characteristics
Real-time status signals consist of information from the real-time area of the CNC. The status information
provided by the path interpolator is described below.
This mainly consists of information regarding CNC operation modes such as:
• active manual mode,
• active path interpolation,
• program status and
• state information regarding CNC-internal sequences.
This information is useful for diagnosis purposes. The PLC can control or influence the internal status
process by the logical linking of status signals.
The CNC also provides status information to improve mastery of specific machining technologies with the
support of the PLC.
The information signals described are located in the HLI interface.
Programming
Status information on the HLI with the structure StateBahn is created and is invokable in the PLC
programming language Structured Text on the path pMC[ChannelIdx]^.addr^.StateBahn_Data…
Links to other documents
For the sake of clarity, links to other documents and parameters are abbreviated, e.g. [PROG] for the
Programming Manual or P-AXIS-00001 for an axis parameter.
For technical reasons, these links only function in the Online Help (HMTL5, CHM) but not in pdf files since
pdfs do not support cross-linking.
Real time status information of CNC
TF5200 | TC3 CNC8Version 1.0
Status information
2Status information
This documentation only lists the most important status information that is valid at interpolator level.
A complete description of all available access or influencing options can be found in the documentation [HLI,
section "Status information of a channel"].
The information listed below is saved on the HLI in the structure StateBahn and can be invoked in the PLC
programming language structured text on the path.
pMC[ChannelIdx]^.addr^.StateBahn_Data…
..............
Status informationMeaning
D_CoveredDistanceCurrent block position or path distance
X_WaitErrorRemovalWait for error acknowledgement by user
X_InterpolationActiveInterpolation is active
X_AxesInPositionAxis group is in position
X_WaitAxesInPositionWait until axes are in position
X_WaitTechnoAcknowledgeWait for acknowledgement from PLC
X_WaitContinueWait for user continuation request
X_DwellTimeActiveWait due to dwell time
X_BlockSearchActiveInterpolator block search active
X_SpeedLimitDetectSpeed limit undershot
HLIBahnCoordDispData_CoordCNC coordinates and coordinate system
HLISAddProgInfo_DataAdditional program information
Real time status information of CNC
TF5200 | TC3 CNC9Version 1.0
Description
t
0
s d (t1 )
Covered distance sd(t)
t1
1000
500
3Description
3.1D_CoveredDistance
Data typeHLI_SGN32
ST pathpMC[ChannelIdx]^.addr^.StateBahn_Data.D_CoveredDistance
This variable contains the current block position referred to the path distance in space in the motion block in
per mil sd(t). The path distance in space results from the
path components of the main axes and the path component of a single axis. Within a motion block, the value
sd(t) always varies within the range of 0 < D_CoveredDistance < 1000.
Fig.1: Path shape block position over time of D_CoveredDistance
3.2D_CommandFeed, D_ActiveFeed
Data typeHLI_SGN32
ST-PathpMC[ChannelIdx]^.addr^.StateBahn_Data.D_CommandFeed
The D_CommandFeed variable contains the path velocity programmed via the F word. D_ActiveFeed is the
current command path feedrate in the block.
Data typeHLI_UNS32
ST-PathpMC[ChannelIdx]^.addr^.StateBahn_Data.D_StopConditions
In bit-encoded form, this contains the stop conditions which cause a motion stop or a program execution stop
in the interpolator as a result of NC programming or a PLC command.
The table below shows the constants which are defined for these stop conditions in the PLC:
Stop conditionConstant in PLCStatus bit
FeedholdSC_BIT_FEEDHOLD0x0000 0001
No axis-specific feed enableSC_BIT_VFG0x0000 0002
Single step mode activeSC_BIT_SINGLE_BLOCK0x0000 0004
Wait due to M00, M01SC_BIT_M00_OR_M010x0000 0010
Wait for PLC acknowledgementSC_BIT_PLC_ACKNOWLEDGE0x0000 0020
Wait for axes in case of axis exchangeSC_BIT_WAIT_FOR_AXES0x0000 8000
Channel in error stateSC_BIT_CHANNEL_ERROR0x0001 0000
Waiting for acknowledgement of M/H/ST
technology functions
Wait to continue motion after a collision is
detected
Block supply problem (HSC slope only)SC_BIT_SLOPE_SUPPLY_PROBLEM0x0008 0000
Back-interpolation after tracking mode
active
SC_BIT_STOP_WAIT_TECHNO_ACKN0x0002 0000
SC_BIT_WAIT_CONT_AFTER_COLLISION0x0004 0000
SC_BIT_BACK_INTERPOLATION0x0010 0000
3.4X_ProgramEnd
Data typeHLI_BOOLEAN
ST-PathpMC[ChannelIdx]^.addr^.StateBahn_Data.X_ProgramEnd
This status information indicates that the program end is reached or that no NC program is currently
executed.
Real time status information of CNC
TF5200 | TC3 CNC11Version 1.0
Description
3.5X_WaitErrorRemoval
Data typeHLI_BOOLEAN
ST-PathpMC[ChannelIdx]^.addr^.StateBahn_Data.X_WaitErrorRemoval
This status is indicated in the event of a CNC error in the real-time area that can be removed by means of an
NC reset (depending on the error reaction class).
3.6X_InterpolationActive, X_DwellTimeActive
Data typeHLI_BOOLEAN
ST-PathpMC[ChannelIdx]^.addr^.StateBahn_Data.X_InterpolationActive
The X_InterpolationActive status is indicated if a part program with path motions is in execution and if a path
block is being currently interpolated in the real-time part.
N20 G01 X10 Y20 Z30 F2000 #Block is in the process of being interpolated
Block currently executed with dwell time
The X_DwellTimeActive status is indicated if a part program with dwell time is in execution and a block with a
dwell time is currently being executed in the real-time part.
N20 G04 10 #Block currently executed with dwell time
3.7HLIBahnCoordDispData_Coord
Data typeHLIBahnCoordDispData
ST-PathpMC[ChannelIdx]^.addr^.StateBahn_Data.HLIBahnCoordDispData_Coord[Ch
AxIdx]…
This consists of the coordinates of various coordinate systems that the CNC can provide to the outside
world.
3.8HLISAddProgInfo_Data
Data typeHLISAddProgInfo
ST-PathpMC[ChannelIdx]^.addr^.StateBahn_Data.HLISAddProgInfo_Data….
This consists of additional information that can be retrieved in relation to the NC program.
Real time status information of CNC
TF5200 | TC3 CNC12Version 1.0
Description
3.9Extended status information
3.9.1X_SpeedLimitDetect, Look Ahead für
Geschwindigkeitsgrenzwert
Data typeHLISAddProgInfo
ST-PathpMC[ChannelIdx]^.addr^.StateBahn_Data.X_SpeedLimitDetect
General
This function generates a CNC status signal depending on the motion blocks and the current path velocity. It
is mainly used for plasma cutting technology to deactivate distance control of the cutting head via the PLC if
the speed drops below a certain limit. This occurs, for example
• when decelerating ahead of and
• accelerating after a corner.
Therefore, the critical positions in the motion segment (corner) are defined by a speed limit.
"Speed limit detect” status flag
The “speed limit detect” status flag to the PLC is set if the current path velocity is below the specified limit.
The drop in path velocity results from:
• Reduction in velocity at block transition due to a kink in the path contour.
• Reduction of velocity due to override setting.
• Expected M function acknowledgement from PLC at block transition.
• Look-ahead reduces velocity because of inadequate block supply.
Zone
In addition the signal can be set in advance or cleared with a delay at a specified distance (time/distance).
• Advance: The expected velocity at block end undershoots the speed limit, for example due to a
geometrical corner. The status flag is set in advance at the specified distance to the expected limit
undershoot.
• Delay: The expected velocity at block start already undershoots the speed limit. The status flag is again
cleared with a delay at the specified distance to the actual speed overshoot.
Clear
I.e. the status flag is reset when both of the following conditions are met:
• The current path velocity rises above the speed limit.
• The path position is outside the specified time and distance delay.
Real time status information of CNC
TF5200 | TC3 CNC13Version 1.0
Description
t
t
Statussignal "speed limit detected"
path
velocity
N20 F5000N30 F10000
velocity limit
block transition
distance to "corner"
end velocity of block
N40 F10000
block transition
distance
from
"corner"
3.9.2Description
Activation
When the function is activated, a CNC status signal is generated according to the control flag PCHAN-00017 and signals a speed limit undershoot or the detection of a future speed limit undershoot.
Limit value
The speed limit is defined via the percentage weighting (P-CHAN-00089) of the F word in the NC program.
Advance, delay
The expected drop in velocity at block end can be signalled in advance by the parameter P-CHAN-00013.
Accordingly, the signal can also be cleared with a delay by the parameter P-CHAN-00012. The parameters
P-CHAN-00012 / P-CHAN-00013 can therefore define a type of hysteresis.
Distance, time
The parameter P-CHAN-00018 defines the zone parameter unit as either a distance or time.
The CNC generates the “speed limit detect” status signal if the path position is inside this zone.
Fig.3: F Word and status signal “speed limit detected”
Real time status information of CNC
TF5200 | TC3 CNC14Version 1.0
Description
t
t
State signal "speed limit detected"
Path
velocity
N20 F5000
N30 F10000
Speed limit value
Block transition
Block end velocity
50%
override
N40 F10000
Block transition
t
t
State signal "speed limit detected"
Path
velocity
N20 F5000
N30 F10000
Speed limit value
Block transition
Block end velocity
50%
override
N40 F10000
Block transition
Influence of override
The parameter P-CHAN-00155 controls the influence of the speed limit by means of the real-time feed
override.
In the default setting (P-CHAN-00155 = 0) the real-time
feed override does not influence the speed limit P-CHAN-00089. The “speed limit detect” status signal is also
set if the path feedrate weighted by the override drops below the speed limit P-CHAN-00089.
Since override is a user-initiated online influence of speed, the delay/advance of the status signal cannot be
evaluated in this case.
Fig.4: Timing diagram without override weighting (f_override_weight_v_limit = 0)
When P-CHAN-00155 is set, the parameterised speed limit P-CHAN-00089 is weighted by the override
value. This is desirable e.g. for path start-up or run-in.
Note that, with a non-constant programmed feed, the "speed limit detect" signal is activated in each
acceleration phase because the speed limit at the start of the block is set to the new value.
Fig.5: Timing diagram with override weighting (f_override_weight_v_limit = 1)
Real time status information of CNC
TF5200 | TC3 CNC15Version 1.0
Description
block limit
t
t
Statussignal
"speed limit detected"
path velocity
N10 F10000
velocity limit
distance
from
"corner"
distance to "corner"
deceleration
PLC acknowledge
N20 F10000
Influence of technology functions
The “speed limit detect” status signal is set if the CNC has to stop and wait due to certain types of
technology functions or missing PLC synchronisation. In this case, the signal advance or delay related to the
set time or distance is also evaluated.
Waiting for PLC acknowledgement
Fig.6: Missing PLC acknowledgement and "speed limit detected" status signal
With M functions of the MVS_SNS type, later synchronisation or M functions with look-ahead are only
stopped if the PLC acknowledgement is missing. If the PLC acknowledgement arrives before the motion, a
restart can be executed immediately.
However, the advance signal (advance, distance to “corner”) can still be executed correctly although an
actual speed undershoot no longer arrives.
Real time status information of CNC
TF5200 | TC3 CNC16Version 1.0
PLC acknowledgement during deceleration
block transition
t
t
Statussignal
"speed limit
detected"
path velocity
N20 F10000
velocity limit
deceleration
PLC acknowledge
N10 F10000
distance to "corner"
expected
undercut
Description
Fig.7: A restart after PLC acknowledgement resets the “speed limit detect” status signal.
Interruption of block supply
If the path velocity fluctuates due to short blocks and inadequate block supply, this may cause activation of
the “speed limit detect” status signal. In the example below the advance/delay parameters (distance to
corner and distance from corner) are disabled for the sake of simplification.
Each M or H function of the MVS_SVS or MNS_SNS type always results in a motion stop (see also
[FCT-C1]).
Real time status information of CNC
TF5200 | TC3 CNC17Version 1.0
Description
t
t
Statussignal "speed limit detected"
path velocity
block transition
N10 F10000N20N30
N40
Fig.8: Inadequate block supply results in the activation of the "speed limit detected" signal.
Real time status information of CNC
TF5200 | TC3 CNC18Version 1.0
Example
t
t
Status signal
"speed limit detected"
path velocity
N40 X200
velocity limit: 75% von F5000
distance to "corner"
block end velocity
N50 X250 Y-25
distance from "corner"
1 mm1 mm
block limit
4Example
The “speed limit detect” status signal is generated depending on the set parameters if the programmed paths
cause deceleration along the path and the speed drops below the speed limit, e.g. due to a corner.
Parameters can also be changed in the NC program by appropriate variables (V.G.SPEED_LIMIT.*)
[PROG].
"Speed limit detect” status signal
Speed drop at end of NC block
%main
X0 Y0
N10 G01 X50 F5000
N20 X100
N30 X150
N40 X200 (speed drop at end of NC block)
N50 X250 Y-25
N60 X300 Y-50
M30
The parameters listed above and the F word in the NC program result in:
Speed limit = 75% of the programmed velocity
→ v_limit = 3750mm/min (62500um/s)
In the NC program example the path velocity drops to 8.562um/s at block transition N40 -> N50 due to a
path kink angle of 30 degrees. This means that the “speed limit detect” status signal is set 1 mm before limit
speed undershoot at the block end of N40 and reset 1 mm after limit speed overshoot at the block start of
N50.
Fig.9: F word and “speed limit detected” status signal
Real time status information of CNC
TF5200 | TC3 CNC19Version 1.0
Parameter
5Parameter
5.1Overview
IDParameterDescription
P-CHAN-00012dist_from_cornerDistance to corner
P-CHAN-00013dist_to_cornerDistance from corner
P-CHAN-00017enableEnabling/disabling the function
P-CHAN-00018timeControl flag (distance or time) for P-CHAN-00012/13
P-CHAN-00089limitWeighting of the velocity limit
P-CHAN-00155override_weight_v_limitWeighting of the velocity limit value by override
5.2Description
P-CHAN-00012Distance from corner for speed limit look ahead
DescriptionThe logical signal SLD 1 ->0 is generated depending on the parameters ‘distance
from corner’ or ‘time from corner’. Here, corner means the position in the block at
which the speed rises again above the speed limit.
Parameterspeed_limit_look_ahead.dist_from_corner
Data typeUNS32
Data range0 ... MAX(UNS32)
Dimension0.1µm or µs
Default value0
Remarks
P-CHAN-00013Distance to corner for speed limit look ahead
DescriptionThe logical signal SLD 0 ->1 is generated in advance depending on the parameters
‘distance to corner’ or ‘time to corner’. Here, corner means the position in the block
at which the speed drops below the speed limit.
DescriptionParameter to enable or disable the speed limit look ahead function.
Parameterspeed_limit_look_ahead.enable
Data typeBOOLEAN
Data range0: Speed limit look ahead is disabled.
1: Speed limit look ahead is enabled.
Dimension----
Default value0
Remarksspeed_limit_look_ahead.f_enable (old syntax up to V2.11.2022.13)
Real time status information of CNC
TF5200 | TC3 CNC20Version 1.0
Parameter
P-CHAN-00018Unit to interpret the SLD signal for speed limit look ahead
DescriptionThe logical signal SLD is generated depending on the parameter values for distance
or time.
Parameterspeed_limit_look_ahead.time
Data typeBOOLEAN
Data range0: The parameter values P-CHAN-00012 and P-CHAN-00013 are interpreted as
path.
1: The parameter values P-CHAN-00012 and P-CHAN-00013 are interpreted as
time.
Dimension----
Default value0
Remarksspeed_limit_look_ahead.f_time (old syntax up to V2.11.2022.13)
P-CHAN-00089Weighting of speed limit for speed limit look ahead
DescriptionSpeed limit value in 0.1 percent of programmed speed. If current speed falls below
the limit
v = v
*v_limit/1000,
prog
the logical signal SLD 0 ->1 is generated.
Parameterspeed_limit_look_ahead.v_limit
Data typeUNS32
Data range0 ... MAX(UNS32)
Dimension0.1%
Default value0
Remarks
P-CHAN-00155Weighting the speed limit via override for speed limit look ahead function
DescriptionThis parameter controls the influence of the speed limit via the real-time feed
override. In the default setting, the real-time feed override does not influence the
speed limit P-CHAN-00089 (v_limit). However, if this is desirable e.g. to commission
or engage contours, the parameter is set to 1. Then the parametrised speed limit
value is weighted by the override value. Note that at a non-constant programmed
feed, the SLD signal is activated in each acceleration phase because the speed limit
at the start of the block is set to the new value.
Data range0: No weighting of P-CHAN-00089 (default).
1: Weighting of P-CHAN-00089 via override.
Dimension----
Default value0
Remarksf_override_weight_v_limit (old syntax up to V2.11.2022.13)
Real time status information of CNC
TF5200 | TC3 CNC21Version 1.0
Support and Service
6Support and Service
Beckhoff and their partners around the world offer comprehensive support and service, making available fast
and competent assistance with all questions related to Beckhoff products and system solutions.
Beckhoff Support
Support offers you comprehensive technical assistance, helping you not only with the application of
individual Beckhoff products, but also with other, wide-ranging services:
• Support
• design, programming and commissioning of complex automation systems
• and extensive training program for Beckhoff system components