点击或拖拽改变大小

SiemensPPIHelper 类

西门子PPI协议的辅助类对象
继承层次
SystemObject
  HslCommunication.Profinet.Siemens.HelperSiemensPPIHelper

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

SiemensPPIHelper 类型公开以下成员。

构造函数
  名称说明
公共方法SiemensPPIHelper
初始化 SiemensPPIHelper 类的一个新实例
Top
方法
  名称说明
公共方法静态成员AnalysisAddress
解析数据地址,解析出地址类型,起始地址,DB块的地址
Parse data address, parse out address type, start address, db block address
公共方法静态成员BuildReadCommand(Byte, S7AddressData, UInt16, Boolean)
生成一个读取字数据指令头的通用方法
A general method for generating a command header to read a Word data
公共方法静态成员BuildReadCommand(Byte, String, UInt16, Boolean)
生成一个读取字数据指令头的通用方法
A general method for generating a command header to read a Word data
公共方法静态成员BuildWriteCommand(Byte, String, Boolean)
创建写入PLC的bool类型数据报文指令
公共方法静态成员BuildWriteCommand(Byte, String, Byte)
生成一个写入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.
公共方法静态成员CheckResponse
检查西门子PLC的返回的数据和合法性,对反馈的数据进行初步的校验
公共方法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。)
公共方法静态成员GetExecuteConfirm
根据站号信息获取命令二次确认的报文信息
公共方法GetHashCode
Serves as the default hash function.
(继承自 Object。)
公共方法静态成员GetMsgFromStatus(Byte)
根据错误代号信息,获取到指定的文本信息
According to the error code information, get the specified text information
公共方法静态成员GetMsgFromStatus(Byte, Byte)
根据错误信息,获取到文本信息
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法静态成员Read
从西门子的PLC中读取数据信息,地址为"M100","AI100","I0","Q0","V100","S100"等
Read data information from Siemens PLC with addresses "M100", "AI100", "I0", "Q0", "V100", "S100", etc.
公共方法静态成员ReadBool(IReadWriteDevice, String, Byte, Object)
从西门子的PLC中读取bool数据信息,地址为"M100.0","AI100.1","I0.3","Q0.6","V100.4","S100"等
Read bool data information from Siemens PLC, the addresses are "M100.0", "AI100.1", "I0.3", "Q0.6", "V100.4", "S100", etc.
公共方法静态成员ReadBool(IReadWriteDevice, String, UInt16, Byte, Object)
从西门子的PLC中读取bool数据信息,地址为"M100.0","AI100.1","I0.3","Q0.6","V100.4","S100"等
Read bool data information from Siemens PLC, the addresses are "M100.0", "AI100.1", "I0.3", "Q0.6", "V100.4", "S100", etc.
公共方法静态成员ReadPlcType
读取西门子PLC的型号信息,参数信息可以携带站号信息 "s=2;", 注意,分号是必须的。
Read the model information of Siemens PLC, the parameter information can carry the station number information "s=2;", note that the semicolon is required.
公共方法静态成员Start
启动西门子PLC为RUN模式,参数信息可以携带站号信息 "s=2;", 注意,分号是必须的。
Start Siemens PLC in RUN mode, parameter information can carry station number information "s=2;", note that the semicolon is required.
公共方法静态成员Stop
停止西门子PLC,切换为Stop模式,参数信息可以携带站号信息 "s=2;", 注意,分号是必须的。
Stop Siemens PLC and switch to Stop mode, parameter information can carry station number information "s=2;", note that the semicolon is required.
公共方法ToString
Returns a string that represents the current object.
(继承自 Object。)
公共方法静态成员Write(IReadWriteDevice, String, Boolean, Byte, Object)
将bool数据写入到西门子PLC中,地址为"M100.0","AI100.1","I0.3","Q0.6","V100.4","S100"等
Write the bool data to Siemens PLC with the addresses "M100.0", "AI100.1", "I0.3", "Q0.6", "V100.4", "S100", etc.
公共方法静态成员Write(IReadWriteDevice, String, Byte, Byte, Object)
将字节数据写入到西门子PLC中,地址为"M100.0","AI100.1","I0.3","Q0.6","V100.4","S100"等
Write byte data to Siemens PLC with addresses "M100.0", "AI100.1", "I0.3", "Q0.6", "V100.4", "S100", etc.
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见