PLC Subroutines Manual
44
6FC5397-0FP40-0BA0, 08/2013
Local variable definition
Table 3-9
Inputs
Name
Type
Description
DELAY
WORD
Spindle braking duration (unit: 0.1 s)
DrvEn
BOOL
Drive enable
SP_EN
BOOL
Spindle action condition (1: allowed; 0: not allowed)
IsBrake
BOOL
Spindle braking function (1: enabled; 0: forbidden)
Table 3-10
Outputs
Name
Type
Description
SP_brake
BOOL
Spindle braking output
SP_LED
BOOL
Spindle running state
Assigned global variables
SP_B_CMD
BOOL
Spindle braking command
T11
TIMER
Spindle braking timer
Relevant PLC machine data
No.
Type
Description
14510 [13]
BOOL
Spindle braking duration (unit: 0.1 s)
14512 [19].1
BOOL
Selection of spindle braking function (1: enabled; 0: forbidden)
Example for calling subroutine 42
3.16
Subroutine 43 - MEAS_JOG (measurement in the JOG mode)
Purpose
Subroutine 43 is used to process the information from the measuring probe and to realize the "measuring in the JOG mode"
function. You can use this subroutine to calibrate the probe and measure a tool.
The precondition for calling this subroutine is to call subroutine MCP_NCK (SBR38) in the main program. The "measuring in
the JOG mode" function is automatically deactivated if you have changed the operating mode when the function becomes
active.
Local variable definition
Table 3-11
Inputs
Name
Type
Description
Meas_Enable
BOOL
Activating the function of "measuring in JOG mode"