ToledoSerial 类 |
命名空间: HslCommunication.Profinet.Toledo
ToledoSerial 类型公开以下成员。
| 名称 | 说明 | |
|---|---|---|
| ToledoSerial |
实例化一个默认的对象
|
| 名称 | 说明 | |
|---|---|---|
| BaudRate |
当前连接串口信息的波特率 Baud rate of current connection serial port information | |
| HasChk |
获取或设置当前的报文否是含有校验的,默认为含有校验
| |
| LogNet | ||
| PortName |
当前连接串口信息的端口号名称 The port name of the current connection serial port information | |
| ReceiveTimeout |
接收数据的超时时间,默认5000ms Timeout for receiving data, default is 5000ms | |
| RtsEnable |
获取或设置一个值,该值指示在串行通信中是否启用请求发送 (RTS) 信号。 Gets or sets a value indicating whether the request sending (RTS) signal is enabled in serial communication. |
| 名称 | 说明 | |
|---|---|---|
| Close |
关闭当前的串口连接 Close the current serial connection | |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
| GetHashCode | Serves as the default hash function. (继承自 Object。) | |
| GetType | Gets the Type of the current instance. (继承自 Object。) | |
| IsOpen |
获取一个值,指示串口是否处于打开状态 Gets a value indicating whether the serial port is open | |
| MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
| Open |
打开一个新的串行端口连接 Open a new serial port connection | |
| SerialPortInni(ActionSerialPort) |
根据自定义初始化方法进行初始化串口信息 Initialize the serial port information according to the custom initialization method | |
| SerialPortInni(String) |
初始化串口信息,9600波特率,8位数据位,1位停止位,无奇偶校验 Initial serial port information, 9600 baud rate, 8 data bits, 1 stop bit, no parity | |
| SerialPortInni(String, Int32) |
初始化串口信息,波特率,8位数据位,1位停止位,无奇偶校验 Initializes serial port information, baud rate, 8-bit data bit, 1-bit stop bit, no parity | |
| SerialPortInni(String, Int32, Int32, StopBits, Parity) |
初始化串口信息,波特率,数据位,停止位,奇偶校验需要全部自己来指定 Start serial port information, baud rate, data bit, stop bit, parity all need to be specified | |
| ToString | Returns a string that represents the current object. (重写 ObjectToString.) |
| 名称 | 说明 | |
|---|---|---|
| OnToledoStandardDataReceived |
当接收到一条新的托利多的数据的时候触发
|
| 名称 | 说明 | |
|---|---|---|
| ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |