SiemensPPIHelper 类 |
命名空间: HslCommunication.Profinet.Siemens.Helper
SiemensPPIHelper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
SiemensPPIHelper | 初始化 SiemensPPIHelper 类的一个新实例 |
名称 | 说明 | |
---|---|---|
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. |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |