Menu

Problem connecting to S7-400 via ISO-TCP

Help
JoLi
2005-04-01
2013-05-09
  • JoLi

    JoLi - 2005-04-01

    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

     
    • Thomas Hergenhahn

      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

       
    • JoLi

      JoLi - 2005-04-12

      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

       

Anonymous
Anonymous

Add attachments
Cancel