(* tool down *)
TRIG_M14(CLK:=M_M14_bit);
IF (
M_M14_bit
) THEN
IF (TRIG_M14.Q) THEN
TIMER_M14(IN:=FALSE);
O_ToolDown := TRUE
;
ELSE
TIMER_M14(IN:=TRUE, PT:=t#5s);
IF (I_ToolDown) THEN
M_M14_bit := FALSE;
ELSIF (TIMER_M14.Q) THEN
M_M14_bit := FALSE;
SPSERROR(F_TOOL_UP_KI, 3, '', 0);
END_IF
END_IF
END_IF
Introduction Manual ENC66
eckelmann.de
M15:
The output O_ToolDown is reset and a timer of 5s is started. If input I_ToolUp is set
after max. 5 s, the function is switched, otherwise an error message occurs.
(* tool up *)
TRIG_M15(CLK:=M_M15_bit);
IF (
M_M15_bit
) THEN
IF (TRIG_M15.Q) THEN
TIMER_M15(IN:=FALSE);
O_ToolDown := FALSE
;
ELSE
TIMER_M15(IN:=TRUE, PT:=t#5s);
IF (I_ToolUp) THEN
M_M15_bit := FALSE;
ELSIF (TIMER_M15.Q) THEN
M_M15_bit := FALSE;
SPSERROR(F_TOOL_DOWN_KI, 3, '', 0);
END_IF
END_IF
END_IF
10.11
Loading of the program into the controller
A connection between PC and the controller can be set via CoDeSys.
There are two connection options, i.e. the serial connection (RS232 interface) or the net-
work.
10.11.1 Serial connection
For the serial connection the RS232 interface is used. You can use the same cable that was