CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Aug 20, 2019 9:02 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Jan 30, 2019 11:11 am 
Offline

Joined: Tue Jan 29, 2019 9:06 am
Posts: 1
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?


Top
   
PostPosted: Sun Feb 03, 2019 10:35 am 
Online
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3389
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


Top
   
PostPosted: Tue Feb 05, 2019 5:42 am 
Offline

Joined: Mon May 11, 2015 12:52 pm
Posts: 26
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.


Top
   
PostPosted: Tue Feb 05, 2019 10:29 am 
Online
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3389
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


Top
   
PostPosted: Tue Feb 12, 2019 5:17 am 
Offline

Joined: Mon Aug 31, 2015 5:04 pm
Posts: 15
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!


Top
   
PostPosted: Fri Jul 12, 2019 7:24 am 
Offline

Joined: Mon Feb 04, 2019 2:11 pm
Posts: 35
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 ?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited