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

Contact

At CropEye, we believe in tailoring each project to your unique needs. Contact us today to initiate a discussion on how we can customize solutions for your farm monitoring and irrigation requirements. Let's work together to optimize your agricultural endeavors.

Let's Chat

Check out our Instagram Page

  • Instagram

Drop us a message below, and our team will get back to you promptly. We're eager to assist you and excited about the opportunity to work together.

Thanks for submitting!

bottom of page