Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@vladimir Thanks so much!
Hello,
How can I write a script for MODBUS to write on multiple register? Similar to the packet below, but in a scrip. I have a script for single register but I can't find the field "value" for multiple registers.
Code for single register:
ModbusRtuWritePacket packetWS; packetWS.initialize(); packetWS.m_adu.m_deviceAddress = addr; packetWS.m_pdu.m_func = io.ModbusFunc.WriteSingleRegister; packetWS.m_pdu.m_address = 0x1006; packetWS.m_pdu.m_value = 0x5501; packetWS.updateChecksum(); // Transmit the packet transmit(&packetWS, sizeof(packetWS));
Thanks for your help.