Examples; Traversal Per Part Program - Siemens SINUMERIK 840D sl Function Manual

Special functions
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

W6: Path length evaluation

20.4 Examples

20.4
Examples
20.4.1

Traversal per part program

Three geometry axes AX1, AX2 and AX3 exist in a machine. For geometry axis AX1, the part
program-driven total traverse path, total travel time and travel count should be calculated.
Parameter assignment
Activation of the overall function:
MD18860 $MN_MM_MAINTENANCE_MON = TRUE
Group activation: "Total travel distance, total travel time and number of travel operations" for
geometry axis AX1:
MD33060 $MA_MAINTENANCE_DATA[AX1] = 1
Programming
To determine the values referred to the part program, the actual value of the system variables
at the beginning of the part program must be saved in a calculation variable. The difference is
acquired at the end of the part program.
Part program (extract):
Program code
...
R10=$AA_TRAVEL_DIST[AX1]
R11=$AA_TRAVEL_TIME[AX1]
R12=$AA_TRAVEL_COUNT[AX1]
...
R10=R10-$AA_TRAVEL_DIST[AX1]
R11=R11-$AA_TRAVEL_TIME[AX1]
R12=R12-$AA_TRAVEL_COUNT[AX1]
728
Comment
; Current values:
; Total traversing distance AX1
; Total traversing time AX1
; Number of traversing operations AX1
; Traversing motion of axes
; Generating the difference:
; Traversing distance AX1 in the part
program
; Traversing time AX1 in the part program
; Number of traversing operations AX1 in the
part program
Function Manual, 09/2011, 6FC5397-2BP40-2BA0
Special Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents