CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Raspberry pi w/ CODESYS reading from Allen Bradley compactlogix
https://forum.codesys.com/viewtopic.php?f=21&t=9490
Page 1 of 1

Author:  HA_Noble [ Wed Jan 30, 2019 11:11 am ]
Post subject:  Raspberry pi w/ CODESYS reading from Allen Bradley compactlogix

Hi all,

I am quite new to CODESYS and raspberry pi, I am just wondering is it possible to use the produced and consumed tags from the AB software with the CODESYS software so I can use the information on the web visualisation of the CODESYS software?

Author:  Edwin Schwellinger [ Sun Feb 03, 2019 10:35 am ]
Post subject:  Re: Raspberry pi w/ CODESYS reading from Allen Bradley compactlogix

Hi,
not sure maybe this example will give you an idea how this might work.
https://store.codesys.com/rockwell-1734 ... ation.html
BR
Edwin

Author:  nikk4s [ Tue Feb 05, 2019 5:42 am ]
Post subject:  Re: Raspberry pi w/ CODESYS reading from Allen Bradley compactlogix

Edwin, that example uses a remote i/o device that is typically installed in the project tree of an Allen Bradley project with the tags populated in the tag database as a group when it is added.

Consumed and Produced tags are user declared tags with a produced tag declared on one controller and a corresponding consumed tag declared on a separate controller. I believe these produced/consumed tags can be of any data type. I'm guessing this is a proprietary implementation and is not compatible with non AB systems. Perhaps a messaging instruction of some sort is possible between the two controllers of different types.

Author:  Edwin Schwellinger [ Tue Feb 05, 2019 10:29 am ]
Post subject:  Re: Raspberry pi w/ CODESYS reading from Allen Bradley compactlogix

hm..
CODESYS plc could be EIP scanner or adapter,
so I assume that this might be possible for AB Systems ( Add the CODESYS plc as EIP adaper?)
BR
Edwin

Author:  vitovt1877 [ Tue Feb 12, 2019 5:17 am ]
Post subject:  Re: Raspberry pi w/ CODESYS reading from Allen Bradley compactlogix

Hi,

I see 2 ways of doing this:

1. Use Raspberry PI as remote adapter. Check this topic viewtopic.php?f=21&t=5836

In CodeSys you add remote input modules. You can use one big input module or several several modules different sizes, it depends from your situation. One tip: big input module is 505 bytes. You need to change size of it to 500 to use it with AB (maximum size of input or output connection parameter is 500).
In CompactLogix you add Generic Ethernet Module with same size outputs configuration as for inputs in CodeSys.
Map all tags in CompactLogix Program to outputs of Generic Ethernet Module and you can read them in CodeSys program.

It will give you possibility to pass tags from CompactLogix to Raspberry. If you want to change tags in CompactLogix from Raspi, you need to do it opposite way: outputs at CodeSys side and inputs at CompactLogix plus, I assume, you should use some logic to prevent racing for tags that used both in output and input section.

2. Use explicit messaging. Result of this approach you can see here https://www.youtube.com/watch?v=LZycc7pFr4Q
All information how to access and modify information in the ControlLogix/CompactLogix PLC you can find in these books
https://literature.rockwellautomation.c ... _-en-p.pdf
and "EtherNet/IP Adaptation of CIP Specification"

Thank you!

Author:  mos89@yahoo.com [ Fri Jul 12, 2019 7:24 am ]
Post subject:  Re: Raspberry pi w/ CODESYS reading from Allen Bradley compactlogix

vitovt1877 wrote:
Hi,

I see 2 ways of doing this:

1. Use Raspberry PI as remote adapter. Check this topic viewtopic.php?f=21&t=5836

In CodeSys you add remote input modules. You can use one big input module or several several modules different sizes, it depends from your situation. One tip: big input module is 505 bytes. You need to change size of it to 500 to use it with AB (maximum size of input or output connection parameter is 500).
In CompactLogix you add Generic Ethernet Module with same size outputs configuration as for inputs in CodeSys.
Map all tags in CompactLogix Program to outputs of Generic Ethernet Module and you can read them in CodeSys program.

It will give you possibility to pass tags from CompactLogix to Raspberry. If you want to change tags in CompactLogix from Raspi, you need to do it opposite way: outputs at CodeSys side and inputs at CompactLogix plus, I assume, you should use some logic to prevent racing for tags that used both in output and input section.

2. Use explicit messaging. Result of this approach you can see here https://www.youtube.com/watch?v=LZycc7pFr4Q
All information how to access and modify information in the ControlLogix/CompactLogix PLC you can find in these books
https://literature.rockwellautomation.c ... _-en-p.pdf
and "EtherNet/IP Adaptation of CIP Specification"

Thank you!


Hi,
is it possible to have on example for solution 2 Explicir messaging ?

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/