Robert Richter
Member
OP
I have found the TONR instruction resets, the RTOR doesn't reset, but won't update the timer on the first scan of an N rung or a P1 rung. So, in both cases, TimerEnable is effectively false when calling RTOR or TONR from an SFC on a P1 or the first scan of an N even though the bit itself is true.
Create a simple loop that guarantees that an N only runs for one scan and then the step moves on. Put a RTOR in this step's N action and watch the timer never get updated.
Create a simple loop that guarantees that an N only runs for one scan and then the step moves on. Put a RTOR in this step's N action and watch the timer never get updated.