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.
How the driver connection knows wich IP has to use?
Relationship between driver connection name - PLC IP
- pablo.chamorro
- Posts:54
- Joined: Mon Jan 27, 2020 1:42 pm
Relationship between driver connection name - PLC IP
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Relationship between driver connection name - PLC IP
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
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
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
Hi gschijndel,
I checked it, you are right.
Thanks so much!
I checked it, you are right.
Thanks so much!