SerialDeviceBase 属性 |
SerialDeviceBase 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | BaudRate |
当前连接串口信息的波特率 (继承自 SerialBase。)Baud rate of current connection serial port information |
![]() ![]() | ByteTransform |
当前的数据变换机制,当你需要从字节数据转换类型数据的时候需要。 The current data transformation mechanism is required when you need to convert type data from byte data. |
![]() | ConnectionId |
当前连接的唯一ID号,默认为长度20的guid码加随机数组成,方便列表管理,也可以自己指定 The unique ID number of the current connection. The default is a 20-digit guid code plus a random number. |
![]() | IsClearCacheBeforeRead |
是否在发送数据前清空缓冲数据,默认是false (继承自 SerialBase。)Whether to empty the buffer before sending data, the default is false |
![]() ![]() | LogNet |
组件的日志工具,支持日志记录,只要实例化后,当前网络的基本信息,就以DEBUG等级进行输出 (继承自 SerialBase。)The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG |
![]() | PortName |
当前连接串口信息的端口号名称 (继承自 SerialBase。)The port name of the current connection serial port information |
![]() | ReceiveEmptyDataCount |
获取或设置连续接收空的数据次数,在数据接收完成时有效,每个单位消耗的时间为SleepTime,配合CheckReceiveDataComplete(MemoryStream)来更好的控制完整数据接收。 (继承自 SerialBase。)Get or set the number of consecutive empty data receptions, which is valid when data reception is completed. The time consumed by each unit is SleepTime, which is better with CheckReceiveDataComplete(MemoryStream) Control complete data reception. |
![]() | ReceiveTimeout |
接收数据的超时时间,默认5000ms (继承自 SerialBase。)Timeout for receiving data, default is 5000ms |
![]() | RtsEnable |
获取或设置一个值,该值指示在串行通信中是否启用请求发送 (RTS) 信号。 (继承自 SerialBase。)Gets or sets a value indicating whether the request sending (RTS) signal is enabled in serial communication. |
![]() | SleepTime |
连续串口缓冲数据检测的间隔时间,默认20ms,该值越小,通信速度越快,但是越不稳定。 (继承自 SerialBase。)Continuous serial port buffer data detection interval, the default 20ms, the smaller the value, the faster the communication, but the more unstable. |
![]() | WordLength |
一个字单位的数据表示的地址长度,西门子为2,三菱,欧姆龙,modbusTcp就为1,AB PLC无效 The address length represented by one word of data, Siemens is 2, Mitsubishi, Omron, modbusTcp is 1, AB PLC is invalid |