Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending an EtherNet/IP explicit message with a service code of 0x45

I need to configure an EtherNet/IP Xport device and in order to do this I need to be able to lock and unlock the configuration.  To toggle the lock, an explicit message must be sent with a service code of 0x45.  Once the configuration is unlocked I can use the "Ethernet CIP Set Attribute Single.vi" in the Industrial Communications toolkit to configure the device as needed.  However, I have not been able to find a way using the toolkit or LabVIEW to send a message with a modified service code to unlock the configuration.  

 

Can someone either explain how this can be done with the toolkit or point me in the direction of accomplishing this using another method.

 

Thanks in advance,

 

Shane Lynch

Certified ArchitectCertified TestStand Developer

0 Kudos
Message 1 of 6
(7,944 Views)

Hi shanomack54,

 

 

I am not very sure if I understand properly your question. I am not sure if what you need can be accomplished with the Tag Write VI. I would like to send you some information that might guide you a little further, just in case I didn’t understood your question properly.

https://decibel.ni.com/content/docs/DOC-4065 

http://download.ni.com/support/softlib//embedded%20networks/NI-Industrial%20Communication/ethernetip... 

http://www.ni.com/pdf/manuals/374775a.html 

http://forums.ni.com/t5/NI-Labs/Welcome-to-EtherNet-IP-Driver-for-Communication-to-Allen-Bradley/td-... 

https://decibel.ni.com/content/thread/7483 

http://www.ni.com/white-paper/10473/en/ 

 

You can always look into Help >> NI Industrial Communications for EtherNet/IP to obtain more information.

 

Again, I am sorry if these links don’t address your issue properly. If this is so, please reply with further information.

 

Thank you very much for your question.

 

 

Regards,

Luis C.

0 Kudos
Message 2 of 6
(7,919 Views)

Thanks lucaso3.  I will look through the links and see if I can come up with a solution.

 

To better clarify, the "Ethernet CIP Set Attribute Single.vi" sends a message that allows you to set the Class ID, Instance ID, Attribute ID, and Data.  It uses a Service Code of 0x10 which corresponds to setting and getting the attribute single.  In order for me to toggle the configuration lock state, I need to send specific Class ID, Instance ID, Attribute ID, and Data with a service code of 0x45.  I don't believe this is achievable through the toolkit.

 

Shane

Certified ArchitectCertified TestStand Developer

0 Kudos
Message 3 of 6
(7,915 Views)

HI Shane,

 

Service code in not customizable. Only CIP Get/Set Single's are supported, (and for Logix series, also Tag read/write).

The action that a customized service code does could possibly be achieved by a combination of CIP Get/Set Single. The manual should explain what each customized service codes does.

0 Kudos
Message 4 of 6
(7,908 Views)

Hi i would like to set service code as 0X0E can you please advice on the combination of CIP Get/Set Single's

0 Kudos
Message 5 of 6
(5,341 Views)

I realize this is a very old topic but it's what I found when I was looking for the same answer for the same device.

 

The answer to this question on how to lock and unlock the configuration is to use EIP_Tools from OVDA and send the Explicit message with a custom service of 69 (Decimal) with the Class 67 (Hex), Instance of 137 (Decimal) and attribute of 171 (Decimal). Then just enter CD in the data field (row 0, Col 1) and send the request.

0 Kudos
Message 6 of 6
(56 Views)