P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
990 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
The brake test is divided into the following steps:
Declaration of the function
Brake test sequence
Step Expected feedback Monitoring time value
Start brake test DBX 71.0 = 1 TV_BTactiv
Close brake Bclosed = 1 TV_Bclose
Output traversing command DBX 64.6 Or DBX 64.7 TV_FeedCommand
Issue test travel command DBX 62.5 = 1 TV_FXSreached
Wait for the holding time DBX 62.5 = 1 TV_FXShold
Deselect brake test /
open brake
DBX 71.0 = 0 TV_BTactiv
Output test ok
Function_BLOCK FB 11
VAR_INPUT
Start : BOOL ; //Start of brake test
Ackn : BOOL ; //Acknowledge error
Bclosed : BOOL ; //Brake closed input (single channel - PLC)
Axis : INT; //Testing axis no.
TimerNo : TIMER ; //Timer from user
TV_BTactiv : S5TIME ; //TimeValue -> brake test active
TV_Bclose : S5TIM; //TimeValue -> close brake
TV_FeedCommand : S5TIME ; //TimeValue -> force FeedCommand
TV_FXSreached : S5TIME ; //TimeValue -> fixed stop reached
TV_FXShold : S5TIME ; //TimeValue -> test brake
END_VAR
VAR_OUTPUT
CloseBrake : BOOL ; //Signal close brake
MoveAxis : BOOL ; //Do move axis
Done : BOOL ;
Error : BOOL ;
State : BYTE ; //Error byte
END_VAR