writeDiscreteInput()

Description

Write to Discrete Inputs register.

Syntax

node1.writeDiscreteInput(address, value) node2.writeDiscreteInput(address, size, buffer)

Parameters

node1/node2: ModbusSlaveNode object.

address: Discrete Inputs register address to be written.

value: Single Discrete Inputs register value to be written.

size: The number of Discrete Inputs registers to be written.

buffer: Copy the array data in the array space pointed to by buffer to the Discrete Inputs register.

Return

int: If successful, return MODBUS_SUCCESS, otherwise return EXCEPTION_CODE.


Library Reference

The text in the 86Duino reference is modified from the Arduino reference and is licensed under the Creative Commons Attribution-ShareAlike 3.0 License. The code examples in the reference have been released into the public domain.