When I'm testing connection (with command ./testISO_TCP -d -b 172.21.49.139) to PLC I get following output:
openSocket: enter OpenSocketopenSocket: OpenSocket: socket is 3
openSocket: setsockopt Success 1
openSocket: Connected to host: 172.21.49.139
openSocket: setsockopt Success 0
send packet: : 03,00,00,16,11,E0,00,00,00,01,00,C1,02,01,00,C2,02,01,02,C0,01,09,
timeout in ReadISOPacket.
IF1 daveConnectPLC() step 1. got packet: :
IF1 error in daveConnectPLC() step 1. retrying...timeout in ReadISOPacket.
IF1 daveConnectPLC() step 1. got packet: :
IF1 error in daveConnectPLC() step 1. retrying...timeout in ReadISOPacket.
IF1 daveConnectPLC() step 1. got packet: :
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.
Anybody know what's wrong? My ethernet adapter is CP 443-1.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I'm testing connection (with command ./testISO_TCP -d -b 172.21.49.139) to PLC I get following output:
openSocket: enter OpenSocketopenSocket: OpenSocket: socket is 3
openSocket: setsockopt Success 1
openSocket: Connected to host: 172.21.49.139
openSocket: setsockopt Success 0
send packet: : 03,00,00,16,11,E0,00,00,00,01,00,C1,02,01,00,C2,02,01,02,C0,01,09,
timeout in ReadISOPacket.
IF1 daveConnectPLC() step 1. got packet: :
IF1 error in daveConnectPLC() step 1. retrying...timeout in ReadISOPacket.
IF1 daveConnectPLC() step 1. got packet: :
IF1 error in daveConnectPLC() step 1. retrying...timeout in ReadISOPacket.
IF1 daveConnectPLC() step 1. got packet: :
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.
Anybody know what's wrong? My ethernet adapter is CP 443-1.
I guess your CPU is in slot 3 in 4xx system. Default for testISO_TCP is 2, which is ok for 3xx systems. Try:
testISO_TCP --slot=3 172.121.49.139
Thomas