Documentation ¶
Index ¶
- func BuildReadCoilStatus(Id uint8, RegisterAddress, Length uint16) (Message []byte)
- func BuildReadHoldingRegister(Id uint8, RegisterAddress, Length uint16) (Message []byte)
- func BuildReadInputRegister(Id uint8, RegisterAddress, Length uint16) (Message []byte)
- func BuildReadInputStatus(Id uint8, RegisterAddress, Length uint16) (Message []byte)
- func BuildWriteMultipleCoilStatus(Id uint8, RegisterAddress uint16, Data []bool) (Message []byte)
- func BuildWriteMultipleHoldingRegister(Id uint8, RegisterAddress uint16, Data []byte) (Message []byte)
- func BuildWriteSingleCoilStatus(Id uint8, RegisterAddress uint16, Data bool) (Message []byte)
- func BuildWriteSingleHoldingRegister(Id uint8, RegisterAddress uint16, Data []byte) (Message []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildReadCoilStatus ¶
BuildReadCoilStatus 构建读取线圈状态报文
func BuildReadHoldingRegister ¶
BuildReadHoldingRegister 构建读取保持寄存器报文
func BuildReadInputRegister ¶
BuildReadInputRegister 构建读取输入寄存器报文
func BuildReadInputStatus ¶
BuildReadInputStatus 构建读取输入状态报文
func BuildWriteMultipleCoilStatus ¶
BuildWriteMultipleCoilStatus 构建写多个线圈报文
func BuildWriteMultipleHoldingRegister ¶
func BuildWriteMultipleHoldingRegister(Id uint8, RegisterAddress uint16, Data []byte) (Message []byte)
BuildWriteMultipleHoldingRegister 构建写多个保持寄存器报文
func BuildWriteSingleCoilStatus ¶
BuildWriteSingleCoilStatus 构建写单个线圈报文
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.