FUNCTION_BLOCK DRILL_CTL

Hover on a highlighted element
to pop up its description (if any).

ECC

An instance of this Function Block (FB) type is used to coordinate the sequence of workpiece loading and clamping, transport to a machine tool, machining, transport to the unload position, unclamping and unloading, according to the Execution Control Chart (ECC) shown above and the algorithms shown below.

For an example of the use of an instance of this FB type, see the DRILL_MVCL System configuration.

ALGORITHMS
ALGORITHM DRILL IN ST : (* Turn Off Slide and Move Tool Forward *)
  FWD := false; TREV := false; TFWD := true;
END_ALGORITHM

ALGORITHM CLAMP IN ST : (* Clamp Workpiece and Start Tool Spindle *)
  CLAMP := true; SPIN := true;
END_ALGORITHM

ALGORITHM ADV IN ST : (* Advance Slide *)
  FWD:=true; REV:=false;
END_ALGORITHM

ALGORITHM RET IN ST : (* Tool Retracted, Now Retract Slide *)
  TREV:= false; SPIN := false; REV := true;
END_ALGORITHM

ALGORITHM UNCLAMP IN ST : (* Unclamp Workpiece *)
  CLAMP := false; REV := false;
END_ALGORITHM

ALGORITHM TRET IN ST : (* Retract tool *)
  TFWD := false; TREV := true;
END_ALGORITHM

ALGORITHM UNLOAD IN ST : UFWD := true; END_ALGORITHM

ALGORITHM UNLOADED IN ST : UFWD := false; END_ALGORITHM