RTOR instruction in RSLogix

Narlin

Lifetime Supporting Member
Join Date
Mar 2010
Location
phoenix
Posts
320
Can someone answer this? I would, but i don’t have access to a RSLogix PLC at the moment.
I am running a FBD_Timer of the type RTOR which is a retentive timer, so it starts and stops based on a condition. My code segment is

if CIP_Circulate.PBStatus and DAMPED_SCLD_VAL[10] >= CIP_TEMP then
CIP_T1.TimerEnable:=1;
else
CIP_T1.TimerEnable := 0;
end_if;
RTOR(CIP_T1);

//Reset code for CIP_T1
if not CIP_Circulate.PBStatus and cIP_T1.ACC>0 then
CIP_T1.Reset := 1;
else
CIP_T1.Reset := 0;
end_if;

Q1? It seems to me that the reset code isn’t needed? I think I have used these before and never needed a reset. Any idea why it would be needed? Does the RTOR cause the need for a Reset whenever the TONR would not?



Later on, the timer is examined as below and if it isn’t running, then the sequence is ended.
The reason I am even looking at this code is that it doesn’t seem to be running this timer. What seems obvious to me is that the first if above could be false, or even more likely, the RTOR could start and stop like it is intended to and this statement would kill the timing sequence.

If not CIP_T1.TT then
CIP_Circulate.SaveState := 0; //Sets the CIP_Circulate PushButton Off
end_if;

I would like to change the above to “If CIP_T1.DN then” and I would like to delete the Reset code.
 
Last edited:
Well? I finally got time on a Logix5000 PLC and found the following.
The RTOR and TONR are the same with respect to reset. The reset is needed because the Timer can be prematurely aborted by a user and it needs to be reset when that happens.

Otherwise, NOT CIP_T1.TT has been changed to CIP_T1.DN quite successfully. I was told that this code had never worked. Not surprised.
 

Similar Topics

Hallo, Please, I would like to ask that ETAP1F can be used as a media convertor from fiber to copper and copper to Fiber in DLR? I have attached...
Replies
3
Views
668
I have a old obsolete AN-X2-AB-DHRIO that I was using and this morning it just died. Ethernet will not communicate no matter what I tried...
Replies
2
Views
576
I have a temporary (yea right) need to provide a 4-20mA analog signal into a PLC5 from a new modbus only device. I can do this if I dedicate an...
Replies
11
Views
5,266
Hi, has anyone ever setup an Adam 4572 Modbus TCP/IP to Modbus serial convertor? I am trying to use one with a Red Lion DSPSX but cannot...
Replies
5
Views
4,399
Hi, I am *not* a involved in programming PLCs in any way. I do IT support for a factory where a couple of the guys maintain the PLCs and I support...
Replies
7
Views
5,635
Back
Top Bottom