Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
2-216 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Call examples
1. Position spindle:
//Positive acknowledgment resets Start:
U M112.0; //InPos
R M 100.0; //Start
//Negative acknowledgment, after error evaluation (state: MB114) reset with T12
start
U M113.0; // Error
U I 6.4; //Key T12
R M 100.0; //Start
//Start with T13
U I 6.3; //Key T13
AN F 112.0; //Restart only when InPos or Error = 0
AN F 113.0;
S M 100..0;
CALL FC 18 (
Start := M100.0,
Stop := FALSE,
Funct := Bq16q1, //Position spindle
Mode := Bq16q2, //Shortest path
AxisNo := 5,
Pos := MD104,
FRate := MD108,
InPos := M112.0,
Error := M113.0,
State := MB114);
2. Start spindle rotation:
CALL FC 18 (
Start := M100.0,
Stop := FALSE,
Funct := Bq16q2, //Rotate spindle
Mode := Bq16q5, //Rotational direction as for M4
AxisNo := 5,
Pos := 0.0,
FRate := MD108,
InPos := M112.0,
Error := M113.0,
State := MB114);