FujiSPBHelper 类 |
命名空间: HslCommunication.Profinet.Fuji
FujiSPBHelper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
FujiSPBHelper | 初始化 FujiSPBHelper 类的一个新实例 |
名称 | 说明 | |
---|---|---|
AnalysisIntegerAddress |
将int数据转换成SPB可识别的标准的数据内容,例如 2转换为0200 , 200转换为0002
| |
BuildReadCommand(Byte, FujiSPBAddress, UInt16) |
创建一条读取的指令信息,需要指定一些参数,单次读取最大105个字
| |
BuildReadCommand(Byte, String, UInt16) |
创建一条读取的指令信息,需要指定一些参数,单次读取最大105个字
| |
BuildReadCommand(Byte, String, UInt16, Boolean) |
创建一条读取多个地址的指令信息,需要指定一些参数,单次读取最大105个字
| |
BuildWriteBoolCommand |
创建一条别入byte数据的指令信息,需要指定一些参数,按照字单位,单次写入最大103个字
| |
BuildWriteByteCommand |
创建一条别入byte数据的指令信息,需要指定一些参数,按照字单位,单次写入最大103个字
| |
CalculateAcc |
计算指令的和校验码
| |
CheckResponseData |
检查反馈的数据信息,是否包含了错误码,如果没有包含,则返回成功
| |
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。) | |
GetErrorDescriptionFromCode |
根据错误码获取到真实的文本信息
| |
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的数据,以字为单位,支持读取X,Y,L,M,D,TN,CN,TC,CC,R,W具体的地址范围需要根据PLC型号来确认,地址可以携带站号信息,例如:s=2;D100 Read PLC data in batches, in units of words. Supports reading X, Y, L, M, D, TN, CN, TC, CC, R, W. The specific address range needs to be confirmed according to the PLC model, The address can carry station number information, for example: s=2;D100 | |
ReadAsync |
批量读取PLC的数据,以字为单位,支持读取X,Y,L,M,D,TN,CN,TC,CC,R,W具体的地址范围需要根据PLC型号来确认,地址可以携带站号信息,例如:s=2;D100 Read PLC data in batches, in units of words. Supports reading X, Y, L, M, D, TN, CN, TC, CC, R, W. The specific address range needs to be confirmed according to the PLC model, The address can carry station number information, for example: s=2;D100 | |
ReadBool |
批量读取PLC的Bool数据,以位为单位,支持读取X,Y,L,M,D,TN,CN,TC,CC,R,W,例如 M100, 如果是寄存器地址,可以使用D10.12来访问第10个字的12位,地址可以携带站号信息,例如:s=2;M100 Read PLC's Bool data in batches, in units of bits, support reading X, Y, L, M, D, TN, CN, TC, CC, R, W, such as M100, if it is a register address, you can use D10. 12 to access the 12 bits of the 10th word, the address can carry station number information, for example: s=2;M100 | |
ReadBoolAsync |
批量读取PLC的Bool数据,以位为单位,支持读取X,Y,L,M,D,TN,CN,TC,CC,R,W,例如 M100, 如果是寄存器地址,可以使用D10.12来访问第10个字的12位,地址可以携带站号信息,例如:s=2;M100 Read PLC's Bool data in batches, in units of bits, support reading X, Y, L, M, D, TN, CN, TC, CC, R, W, such as M100, if it is a register address, you can use D10. 12 to access the 12 bits of the 10th word, the address can carry station number information, for example: s=2;M100 | |
ToString | Returns a string that represents the current object. (继承自 Object。) | |
Write(IReadWriteDevice, Byte, String, Boolean) |
写入一个Bool值到一个地址里,地址可以是线圈地址,也可以是寄存器地址,例如:M100, D10.12,地址可以携带站号信息,例如:s=2;D10.12 Write a Bool value to an address. The address can be a coil address or a register address, for example: M100, D10.12. The address can carry station number information, for example: s=2;D10.12 | |
Write(IReadWriteDevice, Byte, String, Byte) |
批量写入PLC的数据,以字为单位,也就是说最少2个字节信息,支持读取X,Y,L,M,D,TN,CN,TC,CC,R具体的地址范围需要根据PLC型号来确认,地址可以携带站号信息,例如:s=2;D100 The data written to the PLC in batches, in units of words, that is, a minimum of 2 bytes of information. It supports reading X, Y, L, M, D, TN, CN, TC, CC, and R. The specific address range needs to be based on PLC model to confirm, The address can carry station number information, for example: s=2;D100 | |
WriteAsync(IReadWriteDevice, Byte, String, Boolean) |
写入一个Bool值到一个地址里,地址可以是线圈地址,也可以是寄存器地址,例如:M100, D10.12,地址可以携带站号信息,例如:s=2;D10.12 Write a Bool value to an address. The address can be a coil address or a register address, for example: M100, D10.12. The address can carry station number information, for example: s=2;D10.12 | |
WriteAsync(IReadWriteDevice, Byte, String, Byte) |
批量写入PLC的数据,以字为单位,也就是说最少2个字节信息,支持读取X,Y,L,M,D,TN,CN,TC,CC,R具体的地址范围需要根据PLC型号来确认,地址可以携带站号信息,例如:s=2;D100 The data written to the PLC in batches, in units of words, that is, a minimum of 2 bytes of information. It supports reading X, Y, L, M, D, TN, CN, TC, CC, and R. The specific address range needs to be based on PLC model to confirm, The address can carry station number information, for example: s=2;D100 |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |