PLC5 BTW BTR

Hello. Been a while for anything PLC5. Module has a bad output. Module is 1791-NDC. From what I can track down rung 5 is the bad output and rung 6 should be the spare. Question is how do I shift all down to use the spare output?BTW.PNG
 
Rung 5 and 6 are block transfers. They are what transfers data to and from the PLC-5 controller and the analog module. They are not "the outputs". Your analog module has four inputs and two outputs.

Rung #5 is used to send all output and configuration data from the PLC-5 to the analog module. This includes alarm info and scaling data. That all amounts to 27 words of data. That's the length you see in the instruction. This block transfer would occur on powerup, because the module would not retain this data when power is removed.

Rung #6 is used to send a small amount of configuration data (1 word) and one word of data for each output. That is a total of 3 words. This block transfer would execute over and over after power up has completed. So rung #5 would execute once, and then this one would run over and over. It would actually alternate with a Block transfer Read instruction that I would assume is above these on rung #4.

Now digging in a little further, there is a Data File of N9:90 specified for these two instructions. That means:
  • N9:90 contains some configuration data for the module
  • N9:91 contains the data for Output Channel 0
  • N9:92 contains the data for Output Channel 1

So, in your logic, anywhere N9:91 is used, that is a reference to Channel 0 and anywhere N9:92 is used, that is a reference for Channel 1. The RSLogix software has a search and replace feature that would allow you to search through the logic for one, and replace with the other. This can only be done offline, so when you are finished you would have to save and download to the controller. This would shut it down while the download takes place so be careful with that.

If you need to perform this online, without shutting down, you would need to use the search to locate one and then you would have to manually edit the logic to replace it with the other address. That can all be done without needing to shutdown the system, but if the address is frequently used, it can be tedious making these changes to every instance. This is referred to as Online Editing and it can be dangerous as you are making changes to a live running system. It should only be done by someone experienced at doing so.

OG
 
@Operaghost summarized it well. You can do the offline find & replace, BUT....be careful! If you're wanting to replace N9:91 with N9:92, for example, FIRST search for all instances of N9:92. Make sure it's really not used or Weird Things can happen. If it's used anywhere (other than the BTR/BTW instructions), carefully analyze its use and make sure it's genuinely not being written to somewhere other than where you intend and that its reuse for a new purpose won't break something else. Then, go online with the current PLC and Save, selecting to upload online values. Then, go offline and Save As a copy of the file, preserving the original. Then, do your Find & Replace in the copy. Then Save and Download to the PLC. If Weird Things happen, you can quickly re-download the original file.

Note that downloading to the PLC will stop the PLC and everything it controls.

Generally, if possible, I prefer to do this sort of thing online, but the Find & Replace function doesn't work online. In this case, go online and Save, uploading online values. Then Save As a copy (still online) and make your changes. If N9:91 (in our example) is used in a bunch of places, be aware of how the process will be affected during the time when you've changed some but not all of the instances. This can also cause Weird Things to happen that you need to predict and be prepared for.
 

Similar Topics

Dear Pros, Need help on converting PLC5 to Studio 5000.:bow: I found few BTW/BTR block pointing back to Rack 000, group 0, module 0, which should...
8
Replies
3,436
Views
I want to use PLC5 to communicate with flex IO, using RIO. Before I proceed I want to clarify my confusion about the addressing scheme, as I am...
8
Replies
5,089
Views
I have an old PLC5 program with block transfers for many A/I cards. The "setup screens" won't come up because the modules were never added to the...
7
Replies
6,084
Views
When performing a Block Transfer Write and Read operations from analog cards on a A\B PLC 5, is it recommended to utilize the error (ER) bit for...
4
Replies
3,809
Views
This one has me climbing the walls right now... Should have been simple, toss a SDN scanner into the PLC rack, configure it up with RSNetworx...
4
Replies
3,671
Views
Top