点击或拖拽改变大小

FujiSPBHelper 类

富士SPB的辅助类
继承层次
SystemObject
  HslCommunication.Profinet.FujiFujiSPBHelper

命名空间:  HslCommunication.Profinet.Fuji
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法
public class FujiSPBHelper

FujiSPBHelper 类型公开以下成员。

构造函数
  名称说明
公共方法FujiSPBHelper
初始化 FujiSPBHelper 类的一个新实例
Top
方法
  名称说明
公共方法静态成员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
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见