Armadillo852

Display IP Address

7 posts in this topic

Hello All,

 

   Has anybody tried to get an IP address out of a 1756-EN2T? I want to be able to extract it and display it on my HMI.

Share this post


Link to post
Share on other sites

Have you checked the tags for the card?

Share this post


Link to post
Share on other sites

Posted (edited)

Dillo,

 

Looking at a live system.  I added a GSV for a 1734-AENT with the following:

GSV Module AENT3000 Path Testpath[0] where Testpath is an arrayed SINT[82].

The SINT (viewed is ASCII) was populated as follows:

Testpath[0] '$0E', [1] '$00', [2] '$12', [3] '$p'

Then for [4] thru [15] shows 192.168.1.11

[0] '$0E' shown as a decimal is 14 and equals the LEN of the path.

So I would then COP Testpath[4] to a string with a length of 12 and MOV 12 to string.LEN.  Use string in the HMI

Maybe try it on an ENBT

Edited by pcmccartney1

Share this post


Link to post
Share on other sites

You can send a CIP Generic message to the TCP/IP Object in the 1756-EN2T itself to get the IP configuration.

It's documented in the RA Knowledgebase;   Article ID #26779 (TechConnect required).

Share this post


Link to post
Share on other sites
3 minutes ago, Ken Roach said:

You can send a CIP Generic message to the TCP/IP Object in the 1756-EN2T itself to get the IP configuration.

It's documented in the RA Knowledgebase;   Article ID #26779 (TechConnect required).

I have tried this and have yet to get it to work. 

Share this post


Link to post
Share on other sites

I've done it a handful of times.   I usually don't use the UDT that they use as an example, and forget to make my target data array big enough, but it definitely works.

If you want to copy your code into a simplified application and post it, I've got a 1756-L71 and a 1756-EN2T I can test it on.

Share this post


Link to post
Share on other sites
On 5/11/2018 at 4:25 AM, Ken Roach said:

I've done it a handful of times.   I usually don't use the UDT that they use as an example, and forget to make my target data array big enough, but it definitely works.

If you want to copy your code into a simplified application and post it, I've got a 1756-L71 and a 1756-EN2T I can test it on.

Thank you Ken,

 

   I will be able to test this hopefully on Monday and let you know. I did use their UDt's, so who knows.

 

Thanks for the help on this and all you do for this community!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now