login about faq

I'm sure this must be done quite a bit:

Have a customer upgrading a PLC-5 to a CLX. They want to continue to run the PLC-5 in the process, so it uses existing inputs to control outputs. At the same time, they want to use the same inputs as the PLC-5 to demonstrate the converted CLX code... how the outputs would react to the same set of inputs. (This could be demonstrated in a SoftLogix as well.)

A hardware solution would be to wire up the same inputs as the PLC-5 to the CLX, but that would be prohibitively expensive and labour-intensive.

We are looking at a soft solution, probably using OPC in one way or another. Suggestions?

asked Nov 20 '09 at 00:32

Jeff's gravatar image

Jeff
211


I'll make the assumption that both are on ethernet and they can communicate with each other.

First of all, to truly simulate a PLC/5 with a ControlLogix, you need to setup synchronous input mapping and output mapping at the beginning and end of your ControlLogix scan, since Allen-Bradley went from synchronous I/O to asynchronous I/O when they created the ControlLogix. That actually helps here.

So if your ControlLogix already has a bunch of ladder files that copy the inputs bit-by-bit over to internal coils at the beginning of the scan, you could potentially short out those routines and have those bits driven by some other source. In this case, why not use a message instruction in the ControlLogix read the input words from the PLC/5 and write them into the intermediate input bits. Also have it read the output words from the PLC/5, and then do a comparison between the PLC/5 outputs and the ControlLogix outputs you're testing. The ControlLogix is much faster than the PLC/5 so you should have lots of scan time for doing comparisons, etc. You could even setup another task for this.

To do the comparison, I see two alternatives:

  1. Compare a single PLC/5 output with the corresponding ControlLogix output, and if they're different for more than X milliseconds, flag the error.
  2. Use the built in histogram function to compare the two outputs.

That prevents a lot of manual effort with rewiring because you only need an ethernet connection.

link

answered Nov 20 '09 at 01:12

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
635115

I have never seen this done before, but a great idea to prove that the upgrade works!

(Nov 20 '09 at 01:34) Jeremy Sluyters ♦♦

The asynchronous updates with ControlLogix can definitely become problematic when upgrading older platforms. Another option that you could use would be an OPC linkage between the PLC5 input and a ControlLogix tag that would be used to test the new program. Kepware offers a product called LinkMaster that could be used for this shadow testing: http://www.kepware.com/Products/products_linkmaster.asp

link

answered Nov 21 '09 at 00:20

BethA's gravatar image

BethA
511

Great Answer Scott! Just in case it wasn't obvious... To make the comparing quick, you could use the XOR (bitwise exclusive OR) to do it slot by slot. If the result is not equal to zero, a bit is different. With some clever indirect addressing, you may be able to do it with a loop in only a few rungs.

link

answered Nov 20 '09 at 03:24

Marc%20G.'s gravatar image

Marc G.
39017

The only thing I like to add is that SoftLogix does not talk to CLX, you will need some sort of a bridge maybe a PLC5.

link

answered Nov 13 '11 at 14:36

Eugen's gravatar image

Eugen
1

Just noticed the date :-)

link

answered Nov 13 '11 at 14:37

Eugen's gravatar image

Eugen
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×3
×1
×1

Asked: Nov 20 '09 at 00:32

Seen: 978 times

Last updated: Nov 13 '11 at 14:37