node-plc
v0.0.1
Published
mitsubishi plc
Downloads
2
Readme
mitsubishi modbus
var plc = require("./plc");
//open Y0
var buf = plc.on("mitsubishi","Y0");
console.log(buf);
//close Y0
var buf2 = plc.off("mitsubishi","Y0");
console.log(buf2);
//write date D200 to 0
var buf2 = plc.wr("mitsubishi","D200","0");
console.log(buf2);//<Buffer 02 31 31 30 32 38 30 32 30 30 31 30 03 32 32>