Configure TCP-server

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
DmSilkin
Posts:23
Joined: Wed Jun 03, 2020 9:26 am

Configure TCP-server

Post by DmSilkin »

Hello!
I have an IEC-remote driver connected to the redundant system. Configs are:
1. Project #1
[general]
...
data = "Host#1"
event = "Host#1"
[iec_72]
tcpServerPort = 2404
2. Project #2
[general]
...
data = "Host#2"
event = "Host#2"
[iec_72]
tcpServerPort = 2404

This driver is a TCP-server. For now, TCP-client is connected to the driver but ConnectionState is inactive on host#1 and active on host#2. Can i configure the driver to have both hosts active OR can i have the ConnectionState always to an active host?

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

Re: Configure TCP-server

Post by leoknipp »

Are you starting the IEC driver which connect to server 1 and server 2 on the same machine?
Why aren't you starting only one driver which connects to both servers?

If you want to start a remote driver which connects only to server 2 in a redundant system you have to add additional config entries to give the driver the information which server he connects to.
For details please have a look at the WinCC OA Documentation and the config.redu file of the WinCC OA installation.

Best Regards
Leopold Knipp
Senior Support Specialist

DmSilkin
Posts:23
Joined: Wed Jun 03, 2020 9:26 am

Re: Configure TCP-server

Post by DmSilkin »

I'm starting driver on the different machines. Each of its IEC-driver connects to only one host as i mentioned before.
If i start with config:
data = "host#1$host#2"
event = "host#1$host#2"

I get the connection error on my TCP-client and error in PVSS.log:
Unexpected state, InetConnection, searchByAddr, No valid host TCP CLIENT

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

Re: Configure TCP-server

Post by leoknipp »

As described in my previous post you have to add some config entries for the driver connecting only to server 2.
The entries are necessary to give the driver the information that the "_2" datapoints must be used.

Best Regards
Leopold Knipp
Senior Support Specialist

4 posts • Page 1 of 1