Technical Appendix
6.3 PLC user program for turning (UPGMTURN)
6-153
SINUMERIK 802S
6FC5 597–2AA00–0BP2 (01.02)
6.3.5 UPGMTURN program structure
Program structure
Main program
Subroutine 0 PLC initialization for axis independent–variables.
–Feedrate effective
–Rapid override effective
–Position–measuring system 1 and axis–dependent variables
Subroutine 1 Emergency Stop
Subroutine 2 Processing of machine control panel (MCP) signals
– Emergency Stop and Reset
– Jog control
– NC Start and Stop
Subroutine 3 T function
Subroutine 4 Axis control for X axis
– Axis Enable
– Reference cam switch
– Hardware limit switch
Subroutine 5 Reserved
Subroutine 6 Axis control for Z axis
– Axis Enable
– Reference cam switch
– Hardware limit switch
Subroutine 7 Spindle control
Subroutine 8 reserved for spindle
Subroutine 9 reserved for spindle
Subroutine 10 Turret control
Subroutine 11 Checking tool position
Subroutine 12 Tool change
Subroutine 13 Tool position monitoring
Subroutine 14 Turret clamping
Subroutine 16 Cooling and lubricating
Subroutine 17 (reserved for subroutine 16)
Subroutine 18 (reserved for subroutine 16)
Subroutine 19 (reserved for subroutine 16)
Subroutine 20 Input and Output Control
Subroutine 21 (I/O level control)
Subroutine 22 ALARM Control
Subroutine 23 Handwheel Control
Subroutine 25 X axis jog operation for declined turning machine
Subroutine 26 X axis jog operation for horizontal turning machine