I try to run the following command (windows):
testISO_TCP -l 192.168.0.216
and get the following result:
openSocket: OpenSocket 1
openSocket: OpenSocket 2 6600
openSocket: OpenSocket peer:192.168.0.216=-671045440
openSocket: OpenSocket 6
openSocket: OpenSocket 7
openSocket: OpenSocket: socket is 1976
openSocket: setsockopt Error 0
0
openSocket: enter OpenSocket 8
openSocket: bind Socket error: Error 0
openSocket: Connected to host: 192.168.0.216
IF1 error in daveConnectPLC() step 1. retrying...IF1 error in daveConnectPLC() step 1. retrying...IF1 error in daveConnectPLC() step 1. retrying...Couldn't connect to PLC.
Please make sure you use the -2 option with a CP243 but not with CPs 343 or 443.
Which for me indicates that the PLC is on address 192.168.0.216 but I can't connect correctly to it.
I really need some hints.
Best regards,
Johan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What is the number of the slot your CPU is in? The test program assumes a default of 2 for slot and 0 for rack. I remeber some user reported his 4xx was on 3. He changed that in the test program's source (parameter to daveNewConnection) and recompiled it.
I did modify the test program so it accepts slot numbers as an option:
testISO_TCP --slot=3
But i'm not sure whether this is alread in the current release.
If you still have difficulties, please do allways append the output produced with debug option (-d) to further mails.
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I try to run the following command (windows):
testISO_TCP -l 192.168.0.216
and get the following result:
openSocket: OpenSocket 1
openSocket: OpenSocket 2 6600
openSocket: OpenSocket peer:192.168.0.216=-671045440
openSocket: OpenSocket 6
openSocket: OpenSocket 7
openSocket: OpenSocket: socket is 1976
openSocket: setsockopt Error 0
0
openSocket: enter OpenSocket 8
openSocket: bind Socket error: Error 0
openSocket: Connected to host: 192.168.0.216
IF1 error in daveConnectPLC() step 1. retrying...IF1 error in daveConnectPLC() step 1. retrying...IF1 error in daveConnectPLC() step 1. retrying...Couldn't connect to PLC.
Please make sure you use the -2 option with a CP243 but not with CPs 343 or 443.
Which for me indicates that the PLC is on address 192.168.0.216 but I can't connect correctly to it.
I really need some hints.
Best regards,
Johan
What is the number of the slot your CPU is in? The test program assumes a default of 2 for slot and 0 for rack. I remeber some user reported his 4xx was on 3. He changed that in the test program's source (parameter to daveNewConnection) and recompiled it.
I did modify the test program so it accepts slot numbers as an option:
testISO_TCP --slot=3
But i'm not sure whether this is alread in the current release.
If you still have difficulties, please do allways append the output produced with debug option (-d) to further mails.
Thomas
Thank you! It was the slot number.
I'm a C/C++/... programmer but I'm not familiar with Siemens PLC. I have some things to learn about them I guess.
Johan