点击或拖拽改变大小

AllenBradleyHelper 类

AB PLC的辅助类,用来辅助生成基本的指令信息
继承层次
SystemObject
  HslCommunication.Profinet.AllenBradleyAllenBradleyHelper

命名空间:  HslCommunication.Profinet.AllenBradley
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public class AllenBradleyHelper

AllenBradleyHelper 类型公开以下成员。

构造函数
  名称说明
公共方法AllenBradleyHelper
初始化 AllenBradleyHelper 类的一个新实例
Top
方法
  名称说明
公共方法静态成员AnalysisArrayIndex
分析地址数据信息里的位索引的信息,例如a[10] 返回 a 和 10 索引,如果没有指定索引,就默认为0
公共方法静态成员BuildEnumeratorCommand
获取枚举PLC数据信息的指令
公共方法静态成员BuildEnumeratorProgrameMainCommand
获取枚举PLC的局部变量的数据信息的指令
公共方法静态成员CheckResponse
初步检查返回的CIP协议的报文是否正确
Initially check whether the returned CIP protocol message is correct
公共方法Equals (继承自 Object。)
公共方法静态成员ExtractActualData
从PLC反馈的数据解析,返回解析后的数据内容,数据类型(在多项数据返回中无效),以及是否有更多的数据
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法静态成员GetStructHandleCommand
获取获得结构体句柄的命令
公共方法静态成员GetStructItemNameType
获取结构体内部数据结构的方法
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法静态成员PackCleanCommandService
将所有的cip指定进行打包操作。
公共方法静态成员PackCommandGetAttributesAll
打包一个读取所有特性数据的报文信息,需要传入slot
公共方法静态成员PackCommandResponse
根据数据创建反馈的数据信息
公共方法静态成员PackCommandService
将所有的cip指定进行打包操作。
公共方法静态成员PackCommandSingleService
将所有的cip指定进行打包操作。
公共方法静态成员PackCommandSpecificData
生成读取直接节点数据信息的内容
公共方法静态成员PackExecutePCCCRead
打包一个PCCC的读取的命令报文
公共方法静态成员PackExecutePCCCWrite
打包一个PCCC的写入的命令报文
公共方法静态成员PackRequestHeader(UInt16, UInt32, Byte, Byte)
将CommandSpecificData的命令,打包成可发送的数据指令
公共方法静态成员PackRequestHeader(UInt16, UInt32, UInt32, Byte)
将CommandSpecificData的命令,打包成可发送的数据指令
公共方法静态成员PackRequestReadSegment
打包生成一个请求读取数据片段的节点信息,CIP指令信息
公共方法静态成员PackRequestWrite(String, Boolean)
写入Bool数据的基本指令信息
公共方法静态成员PackRequestWrite(String, UInt16, Byte, Int32, Boolean)
根据指定的数据和类型,生成对应的数据
公共方法静态成员PackRequsetRead
打包生成一个请求读取数据的节点信息,CIP指令信息
公共方法静态成员ParseRequestPathCommand
从生成的报文里面反解出实际的数据地址,不支持结构体嵌套,仅支持数据,一维数组,不支持多维数据
公共方法静态成员ReadDate
读取指定地址的日期数据,最小日期为 1970年1月1日,当PLC的变量类型为 "Date" 和 "TimeAndDate" 时,都可以用本方法读取。
Read the date data of the specified address. The minimum date is January 1, 1970. When the PLC variable type is "Date" and "TimeAndDate", this method can be used to read.
公共方法静态成员ReadDateAsync
读取指定地址的日期数据,最小日期为 1970年1月1日,当PLC的变量类型为 "Date" 和 "TimeAndDate" 时,都可以用本方法读取。
Read the date data of the specified address. The minimum date is January 1, 1970. When the PLC variable type is "Date" and "TimeAndDate", this method can be used to read.
公共方法静态成员ReadPlcType
从PLC里读取当前PLC的型号信息
Read the current PLC model information from the PLC
公共方法静态成员ReadPlcTypeAsync
从PLC里读取当前PLC的型号信息
Read the current PLC model information from the PLC
公共方法静态成员ReadTime
读取指定地址的时间数据,最小时间为 0,如果获取秒,可以访问 TotalSeconds,当PLC的变量类型为 "Time" 和 "TimeOfDate" 时,都可以用本方法读取。
Read the time data of the specified address. The minimum time is 0. If you get seconds, you can access TotalSeconds. When the PLC variable type is "Time" and "TimeOfDate", you can use this Method to read.
公共方法静态成员ReadTimeAsync
读取指定地址的时间数据,最小时间为 0,如果获取秒,可以访问 TotalSeconds,当PLC的变量类型为 "Time" 和 "TimeOfDate" 时,都可以用本方法读取。
Read the time data of the specified address. The minimum time is 0. If you get seconds, you can access TotalSeconds. When the PLC variable type is "Time" and "TimeOfDate", you can use this Method to read.
公共方法静态成员RegisterSessionHandle
向PLC注册会话ID的报文
Register a message with the PLC for the session ID
公共方法ToString (继承自 Object。)
公共方法静态成员UnRegisterSessionHandle
获取卸载一个已注册的会话的报文
Get a message to uninstall a registered session
公共方法静态成员WriteDate
使用日期格式(Date)将指定的数据写入到指定的地址里,PLC的地址类型变量必须为 "Date",否则写入失败。
Use the date format (Date) to write the specified data to the specified address. The PLC address type variable must be "Date", otherwise the writing will fail.
公共方法静态成员WriteDateAsync
使用日期格式(Date)将指定的数据写入到指定的地址里,PLC的地址类型变量必须为 "Date",否则写入失败。
Use the date format (Date) to write the specified data to the specified address. The PLC address type variable must be "Date", otherwise the writing will fail.
公共方法静态成员WriteTime
使用时间格式(TIME)将时间数据写入到PLC中指定的地址里去,PLC的地址类型变量必须为 "TIME",否则写入失败。
Use the time format (TIME) to write the time data to the address specified in the PLC. The PLC address type variable must be "TIME", otherwise the writing will fail.
公共方法静态成员WriteTimeAndDate
使用日期格式(Date)将指定的数据写入到指定的地址里,PLC的地址类型变量必须为 "Date",否则写入失败。
Use the date format (Date) to write the specified data to the specified address. The PLC address type variable must be "Date", otherwise the writing will fail.
公共方法静态成员WriteTimeAndDateAsync
使用日期格式(Date)将指定的数据写入到指定的地址里,PLC的地址类型变量必须为 "Date",否则写入失败。
Use the date format (Date) to write the specified data to the specified address. The PLC address type variable must be "Date", otherwise the writing will fail.
公共方法静态成员WriteTimeAsync
使用时间格式(TIME)将时间数据写入到PLC中指定的地址里去,PLC的地址类型变量必须为 "TIME",否则写入失败。
Use the time format (TIME) to write the time data to the address specified in the PLC. The PLC address type variable must be "TIME", otherwise the writing will fail.
公共方法静态成员WriteTimeOfDate
使用时间格式(TimeOfDate)将时间数据写入到PLC中指定的地址里去,PLC的地址类型变量必须为 "TimeOfDate",否则写入失败。
Use the time format (TimeOfDate) to write the time data to the address specified in the PLC. The PLC address type variable must be "TimeOfDate", otherwise the writing will fail.
公共方法静态成员WriteTimeOfDateAsync
使用时间格式(TimeOfDate)将时间数据写入到PLC中指定的地址里去,PLC的地址类型变量必须为 "TimeOfDate",否则写入失败。
Use the time format (TimeOfDate) to write the time data to the address specified in the PLC. The PLC address type variable must be "TimeOfDate", otherwise the writing will fail.
Top
字段
  名称说明
公共字段静态成员CIP_Execute_PCCC
CIP命令中PCCC命令相关的信息
公共字段静态成员CIP_MULTIREAD_DATA
CIP命令中的对数据读取服务
公共字段静态成员CIP_READ_DATA
CIP命令中的读取数据的服务
公共字段静态成员CIP_READ_FRAGMENT
CIP命令中的读片段的数据服务
公共字段静态成员CIP_READ_LIST
CIP指令中读取数据的列表
公共字段静态成员CIP_READ_WRITE_DATA
CIP命令中的读并写的数据服务
公共字段静态成员CIP_Type_BitArray
二进制数据内容
公共字段静态成员CIP_Type_Bool
bool型数据,一个字节长度
公共字段静态成员CIP_Type_Byte
byte型数据,一个字节长度,SINT
公共字段静态成员CIP_Type_D1
Bit string, 8 bits, BYTE,
公共字段静态成员CIP_Type_D2
Bit string, 16-bits, WORD
公共字段静态成员CIP_Type_D3
Bit string, 32 bits, DWORD
公共字段静态成员CIP_Type_D4
Bit string, 64 bits LWORD
公共字段静态成员CIP_Type_DATE
日期的格式
公共字段静态成员CIP_Type_Double
实数数据,八个字节的长度
公共字段静态成员CIP_Type_DWord
长整型,四个字节长度,DINT
公共字段静态成员CIP_Type_LInt
特长整型,8个字节,LINT
公共字段静态成员CIP_Type_Real
实数数据,四个字节长度
公共字段静态成员CIP_Type_String
字符串数据内容
公共字段静态成员CIP_Type_Struct
结构体数据,不定长度
公共字段静态成员CIP_Type_TIME
时间的格式
公共字段静态成员CIP_Type_TimeAndDate
日期时间格式,最完整的时间格式
公共字段静态成员CIP_Type_TimeOfDate
一天中的时间格式
公共字段静态成员CIP_Type_UDint
Unsigned 32-bit integer, UDINT
公共字段静态成员CIP_Type_UInt
Unsigned 16-bit integer, UINT
公共字段静态成员CIP_Type_ULint
Unsigned 64-bit integer, ULINT
公共字段静态成员CIP_Type_USInt
Unsigned 8-bit integer, USINT
公共字段静态成员CIP_Type_Word
整型,两个字节长度,INT
公共字段静态成员CIP_WRITE_DATA
CIP命令中的写数据的服务
公共字段静态成员CIP_WRITE_FRAGMENT
CIP命令中的写片段的数据服务
公共字段静态成员OriginatorSerialNumber
连接方的序列号
公共字段静态成员OriginatorVendorID
连接方的厂商标识
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见