PLC Subroutines Manual
6FC5397-0FP40-0BA0, 08/2013
61
3.30
Subroutine 58 (MM_MAIN)
Purpose
To use subroutine 58, you must have licensed the optional Manual Machine Plus function for the SINUMERIK 808D
ADVANCED T (Turning). The subroutines 46, 58 and 59 must be used together. This subroutine is used to control the
manual machine function after the manual machine interface is activated.
Local variable definition
Table 3-38
Inputs
Name
Type
Description
TK_X_P
BOOL
Forward on axis X
TK_X_M
BOOL
Backward on axis X
TK_Z_P
BOOL
Forward on axis Z
TK_Z_M
BOOL
Backward on axis Z
RAPID
BOOL
Rapid feed
SP_CW
BOOL
Clockwise rotation of the spindle
SP_CCW
BOOL
Counter-clockwise rotation of the spindle
SP_STOP
BOOL
Spindle stop
NC_START
BOOL
NC start
NC_STOP
BOOL
NC stop
AUTO_ENABLE
BOOL
AUTO mode allowed
MDA_ENABLE
BOOL
MDA mode allowed
ROV
BOOL
Rapid rate
Table 3-39
Outputs
Name
Type
Description
AL_03
BOOL
Not approaching the reference point on axis X
AL_04
BOOL
Not approaching the reference point on axis Z
AL_09
BOOL
Incorrect start in the spindle direction
AL_11
BOOL
JOG program timeout
AL_12
BOOL
Spindle rate not 100%
AL_13
BOOL
Spindle not being started
AL_14
BOOL
Feed rate 0%
AL_16
BOOL
Spindle direction change in a thread not allowed
Assigned global variables
Byte
Signal
Byte 7 Byte 6
Byte 5
Byte 4
Byte 3
Byte 2
Byte 1
Byte 0
MB170 HMI<->MM
Request
for MM
HMI
startup
MM HMI
enabled
MM HMI
started
MB171 HMI<->MM
MB172 HMI<->MM
MB173 HMI<->MM