How to Retrieve the IP Address of the 1756-EN2TR Module in RSLogix 5000

Question:

Hello everyone! I’m seeking a method to access the IP address configured on my 1756-EN2TR module. I need this information for internal logic within my controller. There's no requirement to generate a tag for any other controllers. Each I/O card in my rack has a built-in structure containing its settings; however, the EN2TR module lacks this feature. I’m not looking to modify the EN2TR settings through internal logic, but simply wish to read them. Do you have any suggestions? Thank you!

Top Replies

You can access various settings through the GSV instruction. For more comprehensive information, please refer to the help section and select "GSV." Additionally, I’m uncertain if you can retrieve the IP address using this method.

Explore the help documentation for the GSV instruction, which is an integral component of the Module object.

Thank you all! I appreciate the suggestion and will give it a try.

I may have made an error in my previous statement. I have experience with this issue, particularly when working with MSG instructions in a CIP Generic type. For more details, you can visit this helpful resource: [Rockwell Automation Support](https://rockwellautomation.custhelp.com/app/answers/detail/a_id/26779).

To retrieve a single attribute using an MSG instruction, utilize the following parameters: **CIP Generic; Get Single Attribute; service code = e; class = f5; instance = 1; attribute = 5**. The output will be directed to a **SINT[26] type tag**. When setting up the communication path, simply enter the name of your **ENT2R device**. It's important to note that the first four digits will represent the IP address in reverse order; for example, the IP **192.168.1.15** will appear as **15,1,168,192**. Additionally, be aware that because of the SINT data type, values above **127** will be displayed as negative numbers. I hope this helps! Best of luck with your setup!

You might want to try using the `Get_Connection_Info` instruction if you're working within the RSLogix or Studio 5000 environment; it can help you extract the module's IP address programmatically. Another option is to utilize your configuration tool to look up the IP address directly from the module settings, as it typically displays all network parameters. If you’re accessing it through a connected device, enabling the web server on the EN2TR could also let you see the IP address in your browser. Hope this helps!

Hey! Since you're looking to access the IP address configured on your 1756-EN2TR module without getting into tag generation, you might want to consider using the Rockwell Automation’s Logix Designer software. By using the “Where Used” feature, you can often find parameters related to your module. Another option is to utilize the MSG (Message) instruction that communicates directly with the Ethernet module to read its settings, including the IP address. You’ll need to set it up to read the specific class and instance for the EN2TR, but this could give you exactly what you need. Hope that helps!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

You must be a registered user to add a comment. If you've already registered,
sign in. Otherwise, register and sign in.

Frequently Asked Questions (FAQ)

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  →