theColonel26
Lifetime Supporting Member
On Omron/CX-Programmer: How do I access the Timer Done Flag in ST?
TimerS is TIMER
TimerRun is BOOL
TimerTime is UINT
TimerS as a bool doesn't work and TimerS.Q doesn't work.
EDIT: Found it on page 142 of the V9 Function Block Manual. If I could delete this I would.
TimerS is TIMER
TimerRun is BOOL
TimerTime is UINT
TimerS as a bool doesn't work and TimerS.Q doesn't work.
Code:
TIMX(TimerRun,TimerS,TimerTime);
IF (TimerS.Q) = true THEN
TimerRun := False;
ELSE
TimerRun := True;
END_IF;
EDIT: Found it on page 142 of the V9 Function Block Manual. If I could delete this I would.
Code:
Timer.CF Completion Flag
Timer.PV Present Value
Last edited: