Communication Problems to PLCSIM Advanced via S7 driver

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
chrmue
Posts:1
Joined: Tue Jul 24, 2018 4:26 pm

Communication Problems to PLCSIM Advanced via S7 driver

Post by chrmue »

I'm trying to connect from WinCC OA to a PLCSIM Advanced Instance. The communication does not work.
I can ping the simulated PLC via the console and the connection to TIA Portal is fine.

The WinCC OA version: 3.16 SP5
S7-PLCSIM advanced: V2.0 SP1

My PC has the following Ethernet ports:
physical Ethernet port: 140.181.81.236
PLCSIM Virtual Ethernet adapter: 192.168.0.123

The log messages are as following:
WCCOAs7 (2), 2019.08.21 09:34:38.303, SYS, SEVERE, 13/s7, Common AGLink error (0xfff50005) for STRINGTEST_POLL(2/1), 13, 33028
WCCOAs7 (2), 2019.08.21 09:34:38.313, SYS, SEVERE, 13/s7, Common AGLink error (0xfff50005) for STRINGTEST_POLL(2/1), 21, 33028
WCCOAs7 (2), 2019.08.21 09:34:38.574, SYS, SEVERE, 7/s7, No active connection for STRINGTEST
WCCOAs7 (2), 2019.08.21 09:34:38.586, SYS, SEVERE, 7/s7, No active connection for STRINGTEST
WCCOAs7 (2), 2019.08.21 09:34:38.586, SYS, SEVERE, 13/s7, Common AGLink error (0xfff5001c) for STRINGTEST(1)

The front end diagnostic panel shows as DS IP the IP address of the physical adapter: 140.181.81.236

The error messages in the front end diagnostic panel are:
2019.08.21 09:07:43.484: Time synchronization STRINGTEST -> DS driver 2 Bad
2019.08.21 09:07:43.485: S7 driver TSPP/polling connection STRINGTEST -> DS driver 2 Bad
2019.08.21 09:07:43.484: Time synchronization STRINGTEST -> DS driver 2 Bad

Do I have to specify the IP address for the DS somewhere? (shouldn't it be 192.168.0.123?)
Does the communication to PLCSIM Advanced work at all with the S7 driver (TSPP, Polling,...)?

Best regards
Christian Müller

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

Re: Communication Problems to PLCSIM Advanced via S7 driver

Post by gschijndel »

For the S7 driver you have to specify the IP address of the CPU (not the PLCSIM virtual Ethernet adapter).
To prevent the 0xfff50005 errors you can use the config entry 'UseConnections = 1' or 'UseOneConnection = "Y"'.

But you could also use the S7Plus driver instead. It can access the PLCSIM without a PLCSIM virtual Ethernet adapter (also the non-advanced version).

Yes, polling PLCSIM advanced does work with the S7 driver.

BTW: What is DS?

2 posts • Page 1 of 1