Menu

testPPI cant't connect to plc

Help
2007-06-15
2013-05-09
  • Nobody/Anonymous

    I am using Linux OS.
    S7-200
    Address = 9
    SlotNo = 1
    RackNo = 0
    Speed = 9.6Kbps

    (i am using testPPI file and PLC connected to the computer with PPI cable...)
    How i must fill parameters in functions
    fds.rfd=setPort(argv[adrPos],"9600",'E'); //What is E?
    fds.wfd=fds.rfd;

    di = daveNewInterface(fds, "IF1", localPPI, daveProtoPPI, daveSpeed19k);
    dc =daveNewConnection(di, plcPPI, 0,9); 
    daveConnectPLC(dc);

    i still can't connect!

    Can anybody help me to resolve this problem?
    Thanks;

     
    • Nobody/Anonymous

      'E' -> means even
      'O' -> means odd

      try with

          di =daveNewInterface(fds, "IF1", localPPI, daveProtoPPI, daveSpeed187k);
          dc =daveNewConnection(di, plcPPI, 0, 0);

      where plcPPi = 9

      bye

       

Anonymous
Anonymous

Add attachments
Cancel