我想找...

搜尋

分享

目錄

ModbusSlaveNode.writeCoil()

[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.

也可以看看


函式庫參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

返回頂端