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