P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
993
TV_Bclose := S5T#1S, //Monitoring time value:
//Brake closed
TV_FeedCommand := S5T#1S, //Monitoring time value:
//Traversing command output
TV_FXSreache := S5T#1S, //Monitoring time value:
//Fixed stop reached
TV_FXShold := S5T#2S, //Monitoring time value:
//Brake test time
CloseBrake :=M 111.1, //Request to close brake
MoveAxis :=M 111.2, Initiate //Request traversing motion //
Done :=M 111.3, //Test successfully completed
Error :=M 111.4, //Error has occurred
State := MB 112); //Error status
OPEN "Axis3"; //Brake test, Z axis
U M 111.2; //Moveaxis
FP M 111.5; //FC18 Start
S M 111.7; //Start FC18
O M 111.3; //Test successfully completed
O M 111.4; //Error has occurred
FP M 110.3;
R DBX 28.7; //Request, PLC-monitored axis
UN DBX 63.1; //Checkback signal, axis monitored by PLC
U M 111.0; //Start brake test for FB
U M 110.7; //Brake test running
FP M 110.4;
R M 111.0; //Start brake test for FB
R M 110.7; //Brake test running
//optional begin
JCN m002:
L MB 115; //old channel status
OW W#16#10;
T DBB 8; //Request channel axis
m002: NOP 0;
//optional end
CALL "SpinCtrl" (//Traverse Z axis
Start :=M 111.2, //Start traversing motion
Stop := FALSE,
Funct := B#16#5, //Mode: Axis mode
Mode := B#16#1, //Procedure: Incremental