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 Sun Nov 17, 2019 5:18 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Aug 26, 2016 1:30 pm 
Offline

Joined: Wed Sep 30, 2009 3:22 pm
Posts: 4
Hello together,

I am trying to communicate with an EtherNet/IP device via explicit messaging. I found the EtherNet/IP Services library which makes it's possible. It works perfectly for the standard services Set/Get Attribute Single/All. The problem is, that my EIP device implements a vendor specific profile with service code 0x32. Is there a possibility to access class/Attribute/Instance with this service specific code?

Best Regards
/Andreas


Top
   
PostPosted: Sat Sep 03, 2016 7:02 am 
Offline

Joined: Fri Feb 07, 2014 7:21 am
Posts: 86
Hallo Andreas,

schon mal das Beispiel angeschaut?
http://store.codesys.com/ethernet-ip-se ... schreibung
vielleicht hilft das ja schon mal weiter,
habe selber zu wenig EIP Erfahrung.
Viele Grüße
plcmax


Top
   
PostPosted: Mon Sep 05, 2016 12:25 pm 
Offline

Joined: Wed Sep 30, 2009 3:22 pm
Posts: 4
Hallo plcmax,

das Beispiel enthält leider nur den Zugriff mit "Set_Attribute_Single" / "Get_Attribute_Single". Bei EtherNet/IP ist allerdings auch möglich einen eigenen Service zu implementieren (Herstellerspezifisch). Hierfür habe ich leider bisher noch keine Funktionsbausteine gefunden.


Top
   
PostPosted: Tue Sep 27, 2016 8:12 pm 
Offline

Joined: Mon Aug 31, 2015 5:04 pm
Posts: 16
You should use any of these functions. See attached picture. It depends if you need to supply additional parameters or just service to instance. You can play with this and choose what works for you. It sends unconnected message to remote adapter. I don't know what to do if you want to send connected message. All devices send respond back to the message and I couldn't find function that would send/receive message. If you need to read respond you can use next trick if you want. I used GetAttributeService/GetDataService in front of SetAttributeService/GetAttributeService and it would catch respond from device on the second message to device. First time it would give me "not enough parameters" respond and on the second time it was giving me correct respond. I don't if it is good way to do, but I didn't have any help and it worked for me.

CodeSys has tons of functions to work with Ethernet/IP, CIP but with little explanation how to use them.

I asked same question long time ago and didn't get answer...


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Wed Sep 28, 2016 5:19 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3536
Hi,
see this post here:
http://forum-de.codesys.com/viewtopic.p ... 120#p16576
And will be available in 3.5.9.30 Version, too - beside 3.5SP10!

BR
Edwin


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited