点击或拖拽改变大小

OmronFinsNetHelper 类

Omron PLC的FINS协议相关的辅助类,主要是一些地址解析,读写的指令生成。
The auxiliary classes related to the FINS protocol of Omron PLC are mainly some address resolution and the generation of read and write instructions.
继承层次
SystemObject
  HslCommunication.Profinet.OmronOmronFinsNetHelper

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

OmronFinsNetHelper 类型公开以下成员。

构造函数
  名称说明
公共方法OmronFinsNetHelper
初始化 OmronFinsNetHelper 类的一个新实例
Top
方法
  名称说明
公共方法静态成员BuildReadCommand(String, OmronPlcType)
同时读取多个地址的命令报文信息
公共方法静态成员BuildReadCommand(OmronFinsAddress, UInt16, Boolean)
根据读取的地址,长度,是否位读取创建Fins协议的核心报文
According to the read address, length, whether to read the core message that creates the Fins protocol
公共方法静态成员BuildReadCommand(OmronPlcType, String, UInt16, Boolean, Int32)
根据读取的地址,长度,是否位读取创建Fins协议的核心报文
According to the read address, length, whether to read the core message that creates the Fins protocol
公共方法静态成员BuildWriteWordCommand
根据写入的地址,数据,是否位写入生成Fins协议的核心报文
According to the written address, data, whether the bit is written to generate the core message of the Fins protocol
公共方法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。)
公共方法GetHashCode
Serves as the default hash function.
(继承自 Object。)
公共方法静态成员GetStatusDescription
根据欧姆龙返回的错误码,获取错误信息的字符串描述文本
According to the error code returned by Omron, get the string description text of the error message
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法静态成员Read(IOmronFins, String)
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
公共方法静态成员Read(IOmronFins, String, UInt16, Int32)
从欧姆龙PLC中读取想要的数据,返回读取结果,读取长度的单位为字,地址格式为"D100","C100","W100","H100","A100"
Read the desired data from the Omron PLC and return the read result. The unit of the read length is word. The address format is "D100", "C100", "W100", "H100", "A100"
公共方法静态成员ReadAsync(IOmronFins, String)
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
公共方法静态成员ReadAsync(IOmronFins, String, UInt16, Int32)
从欧姆龙PLC中读取想要的数据,返回读取结果,读取长度的单位为字,地址格式为"D100","C100","W100","H100","A100"
Read the desired data from the Omron PLC and return the read result. The unit of the read length is word. The address format is "D100", "C100", "W100", "H100", "A100"
公共方法静态成员ReadBool
从欧姆龙PLC中批量读取位软元件,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Read bit devices in batches from Omron PLC with address format "D100.0", "C100.0", "W100.0", "H100.0", "A100.0"
公共方法静态成员ReadBoolAsync
从欧姆龙PLC中批量读取位软元件,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Read bit devices in batches from Omron PLC with address format "D100.0", "C100.0", "W100.0", "H100.0", "A100.0"
公共方法静态成员ReadCpuTime
[商业授权] 读取CPU的时间信息
[Authorization] Read the time information of the CPU
公共方法静态成员ReadCpuTimeAsync
[商业授权] 读取CPU单元的一些操作状态数据,主要包含运行状态,工作模式,错误信息等。
[Authorization] Read some operating status data of the CPU unit, mainly including operating status, working mode, error information, etc.
公共方法静态成员ReadCpuUnitData
[商业授权] 读取CPU的一些数据信息,主要包含型号,版本,一些数据块的大小
[Authorization] Read some data information of the CPU, mainly including the model, version, and the size of some data blocks
公共方法静态成员ReadCpuUnitDataAsync
[商业授权] 读取CPU的一些数据信息,主要包含型号,版本,一些数据块的大小
[Authorization] Read some data information of the CPU, mainly including the model, version, and the size of some data blocks
公共方法静态成员ReadCpuUnitStatus
[商业授权] 读取CPU单元的一些操作状态数据,主要包含运行状态,工作模式,错误信息等。
[Authorization] Read some operating status data of the CPU unit, mainly including operating status, working mode, error information, etc.
公共方法静态成员ReadCpuUnitStatusAsync
[商业授权] 读取CPU单元的一些操作状态数据,主要包含运行状态,工作模式,错误信息等。
[Authorization] Read some operating status data of the CPU unit, mainly including operating status, working mode, error information, etc.
公共方法静态成员ResponseValidAnalysis
验证欧姆龙的Fins-TCP返回的数据是否正确的数据,如果正确的话,并返回所有的数据内容
Verify that the data returned by Omron's Fins-TCP is correct data, if correct, and return all data content
公共方法静态成员Run
将CPU单元的操作模式更改为RUN,从而使PLC能够执行其程序。
Changes the CPU Unit’s operating mode to RUN, enabling the PLC to execute its program.
公共方法静态成员RunAsync
将CPU单元的操作模式更改为RUN,从而使PLC能够执行其程序。
Changes the CPU Unit’s operating mode to RUN, enabling the PLC to execute its program.
公共方法静态成员Stop
将CPU单元的操作模式更改为PROGRAM,停止程序执行。
Changes the CPU Unit’s operating mode to PROGRAM, stopping program execution.
公共方法静态成员StopAsync
将CPU单元的操作模式更改为PROGRAM,停止程序执行。
Changes the CPU Unit’s operating mode to PROGRAM, stopping program execution.
公共方法ToString
Returns a string that represents the current object.
(继承自 Object。)
公共方法静态成员UdpResponseValidAnalysis
验证欧姆龙的Fins-Udp返回的数据是否正确的数据,如果正确的话,并返回所有的数据内容
Verify that the data returned by Omron's Fins-Udp is correct data, if correct, and return all data content
公共方法静态成员Write(IOmronFins, String, Boolean)
向PLC中位软元件写入bool数组,返回是否写入成功,比如你写入D100,values[0]对应D100.0,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Write the bool array to the PLC's median device and return whether the write was successful. For example, if you write D100, values [0] corresponds to D100.0 and the address format is "D100.0", "C100.0", "W100. 0 "," H100.0 "," A100.0 "
公共方法静态成员Write(IOmronFins, String, Byte)
向PLC写入数据,数据格式为原始的字节类型,地址格式为"D100","C100","W100","H100","A100"
Write data to PLC, the data format is the original byte type, and the address format is "D100", "C100", "W100", "H100", "A100"
公共方法静态成员WriteAsync(IOmronFins, String, Boolean)
向PLC中位软元件写入bool数组,返回是否写入成功,比如你写入D100,values[0]对应D100.0,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Write the bool array to the PLC's median device and return whether the write was successful. For example, if you write D100, values [0] corresponds to D100.0 and the address format is "D100.0", "C100.0", "W100. 0 "," H100.0 "," A100.0 "
公共方法静态成员WriteAsync(IOmronFins, String, Byte)
向PLC写入数据,数据格式为原始的字节类型,地址格式为"D100","C100","W100","H100","A100"
Write data to PLC, the data format is the original byte type, and the address format is "D100", "C100", "W100", "H100", "A100"
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见