MelsecFxSerialHelper 类 |
命名空间: HslCommunication.Profinet.Melsec.Helper
MelsecFxSerialHelper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
MelsecFxSerialHelper | 初始化 MelsecFxSerialHelper 类的一个新实例 |
名称 | 说明 | |
---|---|---|
ActivePlc |
激活PLC的接收状态,需要再和PLC交互之前进行调用,之后就需要再调用了。 | |
ActivePlcAsync |
激活PLC的接收状态,需要再和PLC交互之前进行调用,之后就需要再调用了。 | |
BuildReadBoolCommand |
根据类型地址长度确认需要读取的指令头
| |
BuildReadWordCommand |
根据类型地址长度确认需要读取的指令头
| |
BuildWriteBoolPacket |
生成位写入的数据报文信息,该报文可直接用于发送串口给PLC
| |
BuildWriteWordCommand |
根据类型地址以及需要写入的数据来生成指令头
| |
CheckPlcReadResponse |
检查PLC返回的读取数据是否是正常的
| |
CheckPlcWriteResponse |
检查PLC返回的写入的数据是否是正常的
| |
CheckReceiveDataComplete |
当消息头报文的长度定义为-1的时候,则使用动态的长度信息,可以使用本方法来判断一个消息是否处于完整的状态。 If the length of the message header is defined as -1, this method can be used to determine whether a message is in the complete state by using dynamic length information. | |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
ExtractActualBoolData |
从PLC反馈的数据进行提炼bool数组操作
| |
ExtractActualData |
从PLC反馈的数据进行提炼操作
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
FxAnalysisAddress |
解析数据地址成不同的三菱地址类型
| |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
Read |
根据指定的地址及长度信息从三菱PLC中读取原始的字节数据,根据PLC中实际定义的规则,可以解析出任何类的数据信息 Read the original byte data from the Mitsubishi PLC according to the specified address and length information. According to the rules actually defined in the PLC, any type of data information can be parsed | |
ReadAsync |
根据指定的地址及长度信息从三菱PLC中读取原始的字节数据,根据PLC中实际定义的规则,可以解析出任何类的数据信息 Read the original byte data from the Mitsubishi PLC according to the specified address and length information. According to the rules actually defined in the PLC, any type of data information can be parsed | |
ReadBool |
从三菱PLC中批量读取位软元件,返回读取结果,该读取地址最好从0,16,32...等开始读取,这样可以读取比较长的数据数组 Read bit devices in batches from Mitsubishi PLC and return the read results. The read address should preferably be read from 0, 16, 32... etc., so that a relatively long data array can be read | |
ReadBoolAsync |
从三菱PLC中批量读取位软元件,返回读取结果,该读取地址最好从0,16,32...等开始读取,这样可以读取比较长的数据数组 Read bit devices in batches from Mitsubishi PLC and return the read results. The read address should preferably be read from 0, 16, 32... etc., so that a relatively long data array can be read | |
ToString | Returns a string that represents the current object. (继承自 Object。) | |
Write(IReadWriteDevice, String, Boolean) |
强制写入位数据的通断,支持的类型参考文档说明 The on-off of the forced write bit data, please refer to the document description for the supported types | |
Write(IReadWriteDevice, String, Byte, Boolean) |
根据指定的地址向PLC写入数据,数据格式为原始的字节类型 Write data to the PLC according to the specified address, the data format is the original byte type | |
WriteAsync(IReadWriteDevice, String, Boolean) |
强制写入位数据的通断,支持的类型参考文档说明 The on-off of the forced write bit data, please refer to the document description for the supported types | |
WriteAsync(IReadWriteDevice, String, Byte, Boolean) |
根据指定的地址向PLC写入数据,数据格式为原始的字节类型 Write data to the PLC according to the specified address, the data format is the original byte type |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |