RSLogix 5000 TONR won't work in SFC

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.
 
As suspected, I created a loop where I used RTOR with and updated it with the N action. The loop is fast enough so that each step is only active a few scans. The timer is running slower than it should because the N actions that are called when the step first becomes active do not update, so the timer stops on those steps.
 

Similar Topics

Hi. could someone give me an example about TONR instruction in structured text? I need to build a sort of "clock" wich set a bit at each...
Replies
3
Views
8,711
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
157
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
578
First off, I'm a hobbyist-level programmer, and this program isn't controlling anything anything that could even remotely be considered "life...
Replies
18
Views
518
Back
Top Bottom