It's a little test-program that does nearly the same as when you start WinCC with configured variables with addresses MD0, MD4 and MD8.
Originally Posted by saman4389
If the testprogram is able to read out the variables from nettoplcsim, then the setup of plcsim/nettoplcsim and your network is OK. Then the problem is your missing WinCC license.
If you have no program loaded into plcsim, it should show an error when reading variables from DB1 (because not available) and show the values of zero for the marker-words.
Your output seems like this:
openSocketw.c: Connected to host: 192.168.1.10
Trying to read 64 bytes (16 dwords) from data block 1.
Trying to read 16 bytes from FW0.