Siemens SINUMERIK 840D sl Programming Manual page 376

Measuring cycles
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Miscellaneous functions
7.1 Log measurement results
Programming
The log with the default log header shown above is created using the following program. The
example shows the user how to handle the log.
%_N_MEASPROGRAM_1_MPF
;$PATH=/_N_MPF_DIR
;Measure shaft with measuring log
DEF INT PARTNUM, JOBNUM, MP_COUNTER
; ----------- Set parameters for log -----------------
_CBIT[11]=0
; -------------------------- Log header ----
--------------------
PARTNUM=123456789 JOBNUM=6878
_LOGNAME[0]="MEASPROGRAM_1"
_PROTNAME[1]="LOG_1"
_HEADLINE[0]="Part number: "<<PARTNUM
_HEADLINE[1]="Job number:"<<JOBNUM
_HEADLINE[2]="Supervisor: Müller Phone: 1234"
; ---------------------- Log format --------
--------------
_PROTSYM[0]="," _PROTSYM[1]="*"
_PROTFORM[0]=60
_PROTFORM[1]=80
_PROTFORM[2]=1
_PROTFORM[3]=3
_PROTFORM[4]=1
_PROTFORM[5]=12
; ---------------------- Log contents ------
----------------
; Header lines
_PROTVAL[0]="Meas. , Axis , Set , Act. value, Difference , Time"
_PROTVAL[1]="point , , value"
; ---------------- Other value assignments -
----------------
MP_COUNTER=1 _TXT[0]=<<MP_COUNTER
; -------- Perform measurements with log ---
----------
N100 G0 G17 G90 T3 D1 Z100 F1000
N110 X70 Y90
;
_MVAR=100 _SETVAL=80 _MA=3 _TSA=2 _FA=2
...
; Contents of the value lines
_PROTVAL[2]="_TXT[0],_AXIS,_OVR[0],_OVR[4],_OVR[16],_TIME"
N150 CYCLE100
N160 CYCLE978
N170 Z200
N180 X64 Y38
7-10
;Log with default header
;Name of calling program
;Name of log file
Formats: Default values from GUD6
;Define separators and special
characters
;60 lines per page
;80 characters per line
;Start of page 1
;Three customized
;log header lines
;One value line
;12 characters per line
;Assign counter for measurement log
;Approach start position for
measurement
;Set measuring cycle parameters
;Measuring variant: Measure surface
with
;zero offset
;Activate log
;Measure surface
;Retraction in Z
;Position above shaft center
Programming Manual, Release 04/2006, 6FC5398-4BP10-0BA0
Measuring cycles

Advertisement

Table of Contents
loading

Table of Contents