[Modbus]
説明
Write to the Discrete Inputs register.
構文
node1.writeDiscreteInput(address, value)
node2.writeDiscreteInput(address, size, buffer)
媒介変数
node1/node2: ModbusSlaveNode object.address: The address of the Discrete Inputs registers to write to.value: The value of the single Discrete Inputs register that you want to write to.size: The number of plural Discrete Inputs registers to write to.buffer: Copy the data of the array in the array space pointed to by the buffer to the Discrete Inputs register.
戻り値
int: If it succeeds, send back MODBUS_SUCCESS, and vice versa send back EXCEPTION_CODE.
ライブラリリファレンスホーム
86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。