dinodave 0.1.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
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.
- Registered by o3o
- 0.1.0 released 11 years ago
- o3o/dinodave
- LGPL License
- Copyright © 2014, o3o
- 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