SCADA_Dude
Member
I am trying to stagger pumps from starting right after each other. I have a running TON that resets after a pump has been called, next pump can only be called when TON is done. The accumulator does get reset, but immediately goes back to 60 secs and the TON always evaluates True even when accumulator is reset... Why is this ?
--- alot stripped out, tried only leave in pertinent stuff----
In one Task:
(* Sequential Start Delay *)
SEQSTRT_TON (IN:=True, PT:=t#60s,
Q=>Sequential_Start_OK, ET=>Seqential_Start_Acc);
In another derived FB, passing accumulator to reset it to t#0s:
(* Pump Motor Start/Stop *)
IF pump_required AND NOT pump_motor_call THEN
pump_motor_call := TRUE ;
seq_start_acc := t#0s;
END_IF;
IF NOT pump_required AND pump_motor_call THEN
pump_motor_call := FALSE;
END_IF;
FYI: Using Unity Pro XL 3.0
--- alot stripped out, tried only leave in pertinent stuff----
In one Task:
(* Sequential Start Delay *)
SEQSTRT_TON (IN:=True, PT:=t#60s,
Q=>Sequential_Start_OK, ET=>Seqential_Start_Acc);
In another derived FB, passing accumulator to reset it to t#0s:
(* Pump Motor Start/Stop *)
IF pump_required AND NOT pump_motor_call THEN
pump_motor_call := TRUE ;
seq_start_acc := t#0s;
END_IF;
IF NOT pump_required AND pump_motor_call THEN
pump_motor_call := FALSE;
END_IF;
FYI: Using Unity Pro XL 3.0