Control/CompactLogix Host Name

JeremyM

Lifetime Supporting Member
Join Date
May 2014
Location
Dallas, Texas
Posts
1,233
I'm using Studio 5K to write some support programs to provide output tags to be displayed on an HMI or even used throughout a project.

By message, I'm able to retrieve all of these and build strings from them:
- IP Address, Mask, Gateway, DNS1, DNS2, and Domain

However, I can't seem to find the Message configuration (if it exists) to retrieve the Host Name of the controller.

Has anyone else done this? Thanks! :nodi:
 
Got it. KB31238 (Obtaining the Host Name in a 1756-ENBT) covers this.

Same configuration as getting the other IP info, but the attribute is instead 6 and destination is an array SINT[66]. Number of characters is specified by SINT[0] and the name characters begin at SINT[2].
 
This is what I use to retrieve Controller information, use it on all my projects....


Just to clarify data-types...


"Identity" a User-Defined String Data-Type "STRING32" (32 character STRING)

"FirmwareRevision" INT
"FirmwareMajor" and "FirmwareMinor" DINTs
"Firmware_REAL" is obviously REAL

2019-12-15_120059.jpg
 
Last edited:
Yes those are a subset of what I’m making available.

Host Name isn’t necessarily the same as the Project Name.

What I got working is Host Name + Domain Name -> FQDN of the processor as configured on its IP properties tab in 5K/Linx. Both of these can only be retrieved by CIP messaging.
 
Last edited:

Similar Topics

Hey guys, On my system, i got prop valve controling cylinder on the left and right to adjust the center of a lumber before it get in a woodmill...
Replies
8
Views
904
I currently have a setup in Siemens S7 using I-Device connections over PROFINET and I am trying to investigate an equivalent setup using Rockwell...
Replies
7
Views
1,116
Good Evening, I'm loading a recipe into a Rockwell ControlLogix or CompactLogix CPU via Excel, this is all working fine. Is there anyway I can...
Replies
7
Views
2,036
Hello everyone, It's been a while I haven't dive into PLC programming (more than 5 years) and I wasn't doing it alot as programmer. I am now...
Replies
1
Views
1,828
Dear All. I need comm between Compactlogix/Controllogix with PNOZ m1p ETH. What we need the communication option? or can be connect direct? many...
Replies
0
Views
1,174
Back
Top Bottom