You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
762 B

FUNCTION_BLOCK BS_Feedback
VAR_EXTERNAL
END_VAR
VAR_INPUT
Control :BOOL; (**)
Run :BOOL; (**)
END_VAR
VAR_OUTPUT
ALARM :BOOL; (**)
END_VAR
VAR
TON1 :TON;
TOF1 :TOF;
END_VAR
(*
20191003
1.0
*)
TON1( IN:=Control , PT:=t#15S);
TOF1( IN:=Control , PT:=t#15S);
IF TON1.q=1 or TOF1.q=1 then
if Control<>Run then
ALARM:=1;
else
ALARM:=0;
end_if;
END_IF;
END_FUNCTION_BLOCK