Relationship between driver connection name - PLC IP

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
pablo.chamorro
Posts:54
Joined: Mon Jan 27, 2020 1:42 pm

Relationship between driver connection name - PLC IP

Post by pablo.chamorro »

Hello,

We are trying to obtain a list of our S7 driver connections with the name connection and IP, we found that _S7_Config.IPAdress and _S7_Config.Connections.All use not a lineal relationship.
IPs.png
connectionNames.png
How the driver connection knows wich IP has to use?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Relationship between driver connection name - PLC IP

Post by leoknipp »

In my test the entries in the shown DP elements match.
Do you get the correct information when opening the S7 panel and choosing one of the connections?
Did you do the configuration for the S7 connections using the panels or have imported an ASCII file and/or did you use an own script?

Best Regards
Leopold Knipp
Senior Support Specialist

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Relationship between driver connection name - PLC IP

Post by gschijndel »

The dpe '_S7_Config.Connections.All' contains only a list of '_S7_Conn' datapoints. The value of the datapoint element '<_S7_Conn>.DevNr' should be the index in the '_S7_Config.IPAddress' list (and other dyn elements at this level).

pablo.chamorro
Posts:54
Joined: Mon Jan 27, 2020 1:42 pm

Re: Relationship between driver connection name - PLC IP

Post by pablo.chamorro »

Hi gschijndel,

I checked it, you are right.

Thanks so much!

4 posts • Page 1 of 1