Menu

S7-1200 + libnodave

Help
2010-07-01
2016-03-24
  • Nobody/Anonymous

    Did anyone communicate with an S7-1200 PLC using Ethernet connection and libnodave?

    I would appreciate your help! Thanks in advance,

    Miki

     
    • Anonymous

      Anonymous - 2016-03-24
      Post awaiting moderation.
  • Nobody/Anonymous

    Yes,
    Rack & Slot = 0. used the c# version in the latest download. The plc only needs the IP address set and some data blocks created

     
  • Nobody/Anonymous

    Hello I use libnodave with VB6.0 to reed and write data from s7-1200 1212C PLC. but have a problem. Reading data from std tags (daveFlags) working OK but when I try to reed data from data blocks (daveDB) its no working OK and function daveReadBytes return code 10 (the desired item is not available in the PLC). What is wrong. Libnodave dosnt work with s7-1200?

     
  • got_fr

    got_fr - 2011-01-04

    Hi,

    did somebody fin a solution for 1200 series and libnodave ?

     
  • Simon

    Simon - 2011-05-20

    I'm assuming it is a mixture of the S7200 and S7300 CPUs - I am hoping to get a unit for test purposes and to evaluate using libnodave. Since the programming environment is more like the Step7 I suspect that you will have multiple DBs as opposed to the one DB that you use when connecting to an S7200 CPU

     
  • Jacek Czapla

    Jacek Czapla - 2011-06-30

    Can you send your connection parameters? I can't connect to S7 1200 (C#).

    If you have DB's with only symbolic names libnodave may not to read this becouse there is no addresses like DBW0.  Uncheck "Symbolic access only" option on "Add new block" window.

     
  • Jacek Czapla

    Jacek Czapla - 2011-06-30

    i use this code for connecting

    fds.rfd = libnodave.openSocket(102, PlcIp);
                fds.wfd = fds.rfd;
                if (fds.rfd <= 0)
                {
                    // some error
                    ;
                }
                di = new libnodave.daveInterface(fds, "IF1", 0, libnodave.daveProtoISOTCP, libnodave.daveSpeed187k);
                di.setTimeout(5000);
                //      res=di.initAdapter();   // does nothing in ISO_TCP. But call it to keep your programs indpendent of protocols
                //      if(res==0) {
                dc = new libnodave.daveConnection(di, 0, rack, slot);
                int cres=dc.connectPLC();
                if (cres != 0)
                {
                    throw new Exception(libnodave.daveStrerror(cres));
                }
    

    an I always getting cres=-1. What is wrong? Bad parameters?

     
    • Anonymous

      Anonymous - 2013-06-19

      Check rack and slot

       
  • Anonymous

    Anonymous - 2013-11-27
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2014-01-27
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2014-05-21
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2014-05-21
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2015-11-14
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2015-12-07
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel