EasyManua.ls Logo

Siemens Simatic S7-300 - Page 66

Siemens Simatic S7-300
332 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Machine information 03/2013
2.3 Test series on the machine
© Siemens AG 2006-2013 All Rights Reserved
2-66 SINUMERIK Integrate AMB, AMC, AMM, Function Manual (FH) - 03/2013
Epilog for the test series:
This section of the program is only executed once at the end of a test series and
also after each single measurement made outside a test series. The actions that
are necessary for minimizing the work the machine operator must do in order to
resume the machining process after performing measurements should be executed
in this block.
Epilog for each measurement:
This section of the program is executed after each measurement, irrespective of
whether the measurement is part of a test series or has been performed
individually. It is useful for undoing actions performed before the measurement. It
may be necessary to move all axes back to their safe initial position.
PROC EPS_PROLOGEPILOG(BOOL doProlog, ePS_error,
ePS_errMsg, STRING[32] testType,
STRING[32] measSeriesName, INT intParam1,
INT intParam2, INT intParam3, INT intParam4,
INT intParam5, INT intParam6, REAL realParam1,
REAL realParam2, REAL realParam3, REAL realParam4,
REAL realParam5, REAL realParam6, AXIS axParam1,
AXIS axParam2, AXIS axParam3, AXIS axParam4,
AXIS axParam5, AXIS axParam6)
; user DEF area
IF (doProlog == TRUE)
MSG("Start of Prolog ... ")
; start of Prolog - user section start
IF ( testType == "FRAME")
MSG("Frame Prolog ...")
; Frame prolog user section actions at the
start of a test series
T0 M6
; Unload tool
GRUNDSTELLUNG
; all axes to safe position
TRAFOOF
; Deactivate transformation
G94
; for lathes, G95 is often placed in front
DIAMOF
G90
ELSE
MSG(testType << " Prolog ...")
; prolog for a specific series of
measurements
; handling irrespective of type of
measurement
; procedure when measuring specific axes:
IF (axParam1 == C) OR
(axParam1 == A)
; if axis A or C are to be measured, Q must
be set to 0
IF ($AA_IW[Q]!=0)
; M code for Q rotation
ENDIF
ENDIF
IF (axParam1 == U) OR
(axParam1 == W)
; if axis U or W are to be measured, Q must
be set to 180
IF ($AA_IW[Q]!=180)
; M code for Q rotation
ENDIF
ENDIF

Table of Contents

Other manuals for Siemens Simatic S7-300

Related product manuals