var modbus = require('modbus'); var client = modbus.client.tcp.complete({ 'host' : '192.168.1.1', 'port' : 502, 'autoReconnect' : true, 'reconnectTimeout' : 1000, 'timeout' : 5000, 'unitId' : 1 }); client.connect(); client.on('connect', function () { // PLC connected, now you can read/write values var value = client.readCoils(0, 10, function (resp) { console.log(resp); }); });
top of page

Our Services

bottom of page