5000 online editing- Toggling between subroutines

lftmx3

Member
Join Date
Feb 2014
Location
corporate paradise
Posts
27
I have been asked to extensively modify a piece of machinery that is very mission critical to the operation, thus not allowed much downtime or time to debug online. I don't forsee this being a problem, as I have taken the existing code and downloaded it to a bench PLC, then developed and tested the new application there.

My idea is to simply copy the modified subroutines into the online PLC with a slightly different name, then if needed to revert to the old program, toggle between the old/new JSR's in the mainroutine schedule.

I am almost positive this won't be a problem- there will be identical OTE's in the routines, but as long as one routine is not being scanned, it should be OK, right?

Once the new process has been verified, I will be deleting the old routines from the processor.
 
Only issue with that toggle bit, is if the plc loses power and that toggle bit is on, sometimes that toggle bit gets reset to zero.

So if you have your new code in just put a latch on bit to keep it on if you want it to run for awhile till you think you have the file debugged. Then delete later when you think its working as you want it.
 
You will want to remember the inertia of bits. That is, if a tag is writtten to in one routine, then you stop calling that routine, the tag stays the same value. It doesn't revert to zero just because it is no longer written to.
Make sure all of your tags are accounted for in both routines, or initialized outside of those routines when necessary.

"Bits only move when pushed."
 
I have been asked to extensively modify a piece of machinery that is very mission critical to the operation, thus not allowed much downtime or time to debug online. I don't forsee this being a problem, as I have taken the existing code and downloaded it to a bench PLC, then developed and tested the new application there.

My idea is to simply copy the modified subroutines into the online PLC with a slightly different name, then if needed to revert to the old program, toggle between the old/new JSR's in the mainroutine schedule.

I am almost positive this won't be a problem- there will be identical OTE's in the routines, but as long as one routine is not being scanned, it should be OK, right?

Once the new process has been verified, I will be deleting the old routines from the processor.


If you can program the code offline, why don't you try importing it online when the PLC is running? You can import while online and the tags are automatically created, and you can choose to import as "pending"/"Accepted" /"Finalized". If you are using AB processors, as indicated by the lingo.

This would allow you to test before compiling your code.

Only issue with that toggle bit, is if the plc loses power and that toggle bit is on, sometimes that toggle bit gets reset to zero.

Can you elaborate a little on this?
 
Can you elaborate a little on this?


It depends on how the bit is used as to what happens during "prescan"
for the OTE bit shows that the bit is reset
OTL there is no Action
OTU no Action

Extract from the RS Logix5000 manual below for OTE

Prescan.JPG
 

Similar Topics

I've been tasked to modify a program at one of our sites. Today I connected to the SLC 5/03, uploaded the program to the laptop and went online...
Replies
4
Views
6,458
Ever since I had to change PCs and redownload all my AB software I have been unable to go online with a controller via Studio 5000. I used to be...
Replies
4
Views
1,136
The machine is running production. When trying to go online with the laptop the whole machine looses communication and faults out. Drives, HMI...
Replies
13
Views
1,925
I have a device that is communicating to ControlLogix L83E. During apply of online edits to plc, the communication to the device is increasing 4-7...
Replies
3
Views
1,175
Hello Gentlemen, I am having this weird issue. I can see the controller on Rslinx via ethernet. when I open the RSlogx 5k, open RSWho, I still...
Replies
3
Views
1,972
Back
Top Bottom