dinodave 0.2.0

A libnodave binding for D


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

dinodave

A simple D binding to LIBNODAVE, a free library to communicate to Siemens S7 PLCs

Compiling

With dub:

$ dub build

with make (only for linux):

$ make

On Win32 see also wiki.

Example usage

import std.stdio;
import dinodave;

void main(string[] args) {
   enum string IP = "192.168.221.102";
   enum DB = 11;
   try {
      auto s7 = new IsoTcp(IP);
      s7.openConnection();
      scope(exit) s7.closeConnection();

      int start = 160;
      int length = 2;
      s7.readBytes(DB, start, length);

      int a = s7.getU16();
      writeln("db11.160: ", a);

   } catch(Exception e) {
      writeln(e);
   }
}

See also directory examples/ and wiki.

Authors:Orfeo Da Viá

Dependencies: none

Versions:
0.2.0 2014-Oct-30
0.1.0 2014-Oct-28
~master 2017-Jun-22
Show all 3 versions
Stats:

statistics are temporarily disabled.