MelsecFxLinksHelper 类 |
命名空间: HslCommunication.Profinet.Melsec.Helper
MelsecFxLinksHelper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
MelsecFxLinksHelper | 初始化 MelsecFxLinksHelper 类的一个新实例 |
名称 | 说明 | |
---|---|---|
BuildReadCommand |
创建一条读取的指令信息,需要指定一些参数
| |
BuildReadPlcType |
创建读取PLC类型的命令报文
| |
BuildStart |
创建启动PLC的报文信息
| |
BuildStop |
创建启动PLC的报文信息
| |
BuildWriteBoolCommand |
创建一条别入bool数据的指令信息,需要指定一些参数
| |
BuildWriteByteCommand |
创建一条别入byte数据的指令信息,需要指定一些参数,按照字单位
| |
CheckPlcResponse |
检查PLC的消息反馈是否合法,合法则提取当前的数据信息,当时写入的命令消息时,无任何的数据返回 Check whether the PLC's message feedback is legal. If it is legal, extract the current data information. When the command message is written at that time, no data is returned. | |
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。) | |
GetPlcTypeFromCode |
从编码中提取PLC的型号信息
| |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
PackCommandWithHeader |
将当前的报文进行打包,根据和校验的方式以及格式信息来实现打包操作
| |
Read |
批量读取PLC的数据,以字为单位,支持读取X,Y,M,S,D,T,C,具体的地址范围需要根据PLC型号来确认,地址支持动态指定站号,例如:s=2;D100 Read PLC data in batches, in units of words, supports reading X, Y, M, S, D, T, C. The specific address range needs to be confirmed according to the PLC model, The address supports dynamically specifying the station number, for example: s=2;D100 | |
ReadAsync |
批量读取PLC的数据,以字为单位,支持读取X,Y,M,S,D,T,C,具体的地址范围需要根据PLC型号来确认,地址支持动态指定站号,例如:s=2;D100 Read PLC data in batches, in units of words, supports reading X, Y, M, S, D, T, C. The specific address range needs to be confirmed according to the PLC model, The address supports dynamically specifying the station number, for example: s=2;D100 | |
ReadBool |
批量读取bool类型数据,支持的类型为X,Y,S,T,C,具体的地址范围取决于PLC的类型,地址支持动态指定站号,例如:s=2;D100 Read bool data in batches. The supported types are X, Y, S, T, C. The specific address range depends on the type of PLC, The address supports dynamically specifying the station number, for example: s=2;D100 | |
ReadBoolAsync |
批量读取bool类型数据,支持的类型为X,Y,S,T,C,具体的地址范围取决于PLC的类型,地址支持动态指定站号,例如:s=2;D100 Read bool data in batches. The supported types are X, Y, S, T, C. The specific address range depends on the type of PLC, The address supports dynamically specifying the station number, for example: s=2;D100 | |
ReadPlcType | [商业授权] 读取PLC的型号信息,可以携带额外的参数信息,指定站号。举例:s=2; 注意:分号是必须的。 [Authorization] Read the PLC model information, you can carry additional parameter information, and specify the station number. Example: s=2; Note: The semicolon is required. | |
ReadPlcTypeAsync | [商业授权] 读取PLC的型号信息,可以携带额外的参数信息,指定站号。举例:s=2; 注意:分号是必须的。 [Authorization] Read the PLC model information, you can carry additional parameter information, and specify the station number. Example: s=2; Note: The semicolon is required. | |
StartPLC | [商业授权] 启动PLC的操作,可以携带额外的参数信息,指定站号。举例:s=2; 注意:分号是必须的。 [Authorization] Start the PLC operation, you can carry additional parameter information and specify the station number. Example: s=2; Note: The semicolon is required. | |
StartPLCAsync | [商业授权] 启动PLC的操作,可以携带额外的参数信息,指定站号。举例:s=2; 注意:分号是必须的。 [Authorization] Start the PLC operation, you can carry additional parameter information and specify the station number. Example: s=2; Note: The semicolon is required. | |
StopPLC | [商业授权] 停止PLC的操作,可以携带额外的参数信息,指定站号。举例:s=2; 注意:分号是必须的。 [Authorization] Stop PLC operation, you can carry additional parameter information and specify the station number. Example: s=2; Note: The semicolon is required. | |
StopPLCAsync | [商业授权] 停止PLC的操作,可以携带额外的参数信息,指定站号。举例:s=2; 注意:分号是必须的。 [Authorization] Stop PLC operation, you can carry additional parameter information and specify the station number. Example: s=2; Note: The semicolon is required. | |
ToString | Returns a string that represents the current object. (继承自 Object。) | |
Write(IReadWriteFxLinks, String, Boolean) |
批量写入bool类型的数组,支持的类型为X,Y,S,T,C,具体的地址范围取决于PLC的类型,地址支持动态指定站号,例如:s=2;D100 Write arrays of type bool in batches. The supported types are X, Y, S, T, C. The specific address range depends on the type of PLC, The address supports dynamically specifying the station number, for example: s=2;D100 | |
Write(IReadWriteFxLinks, String, Byte) |
批量写入PLC的数据,以字为单位,也就是说最少2个字节信息,支持X,Y,M,S,D,T,C,具体的地址范围需要根据PLC型号来确认,地址支持动态指定站号,例如:s=2;D100 The data written to the PLC in batches is in units of words, that is, at least 2 bytes of information. It supports X, Y, M, S, D, T, and C. The specific address range needs to be confirmed according to the PLC model, The address supports dynamically specifying the station number, for example: s=2;D100 | |
WriteAsync(IReadWriteFxLinks, String, Boolean) |
批量写入bool类型的数组,支持的类型为X,Y,S,T,C,具体的地址范围取决于PLC的类型,地址支持动态指定站号,例如:s=2;D100 Write arrays of type bool in batches. The supported types are X, Y, S, T, C. The specific address range depends on the type of PLC, The address supports dynamically specifying the station number, for example: s=2;D100 | |
WriteAsync(IReadWriteFxLinks, String, Byte) |
批量写入PLC的数据,以字为单位,也就是说最少2个字节信息,支持X,Y,M,S,D,T,C,具体的地址范围需要根据PLC型号来确认,地址支持动态指定站号,例如:s=2;D100 The data written to the PLC in batches is in units of words, that is, at least 2 bytes of information. It supports X, Y, M, S, D, T, and C. The specific address range needs to be confirmed according to the PLC model, The address supports dynamically specifying the station number, for example: s=2;D100 |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |