点击或拖拽改变大小

ModbusTcpMessage 属性

ModbusTcpMessage 类型公开以下成员。

属性
  名称说明
公共属性ContentBytes
消息内容字节
Message content byte
(继承自 NetMessageBase。)
公共属性HeadBytes
消息头字节
Message header byte
(继承自 NetMessageBase。)
公共属性IsCheckMessageId
获取或设置是否进行检查返回的消息ID和发送的消息ID是否一致,默认为true,也就是检查
Get or set whether to check whether the returned message ID is consistent with the sent message ID, the default is true, that is, check
公共属性ProtocolHeadBytesLength
消息头的指令长度,第一次接受数据的长度
Instruction length of the message header, the length of the first received data
公共属性SendBytes
发送的字节信息
Byte information sent
(继承自 NetMessageBase。)
公共属性StationCheckMatch
获取或设置当前是否启用站号检查的功能,默认启用,读写数据时将进行站号确认操作,如果需要忽略站号,则设置为 false 即可。
Gets or sets whether the station ID check function is enabled. It is enabled by default. When reading or writing data, the station ID is confirmed.
Top
参见