dinodave 1.4.0
A libnodave binding for D
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
dinodave
A simple D binding to LIBNODAVE, a free library to communicate to Siemens S7 PLCs
Note that project's development happens on the GitLab. GitHub repository is a mirror, it might not always be up-to-date.
Compiling
With dub:
$ dub build
with make (linux):
$ make
(win32)
$ make -f makefile.win32
On Win32 see also wiki.
Testing
With dub:
$ dub test
with make (only for linux):
$ make test
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(0);
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.
Install libnodave
$ git clone [email protected]:netdata/libnodave.git
$ cd libnodave
$ make
$ sudo make install
or use install-libnodave.sh
- Registered by o3o
- 1.4.0 released 6 years ago
- o3o/dinodave
- LGPL v3.0.0
- Copyright © 2017, Orfeo Da Viá
- Authors:
- Dependencies:
- none
- Versions:
-
1.7.1 2018-Nov-30 1.7.0 2018-Nov-28 1.6.0 2018-Nov-28 1.5.0 2018-Nov-28 1.4.0 2018-Nov-27 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
255 downloads total
-
- Score:
- 0.7
- Short URL:
- dinodave.dub.pm