点击或拖拽改变大小

KeyenceNanoHelper 类

KeyenceNano的基本辅助方法
继承层次
SystemObject
  HslCommunication.Profinet.KeyenceKeyenceNanoHelper

命名空间:  HslCommunication.Profinet.Keyence
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public class KeyenceNanoHelper

KeyenceNanoHelper 类型公开以下成员。

构造函数
  名称说明
公共方法KeyenceNanoHelper
初始化 KeyenceNanoHelper 类的一个新实例
Top
方法
  名称说明
公共方法静态成员BuildReadCommand(String, UInt16)
建立读取PLC数据的指令,需要传入地址数据,以及读取的长度,地址示例参照类的说明文档
To create a command to read PLC data, you need to pass in the address data, and the length of the read. For an example of the address, refer to the class documentation
公共方法静态成员BuildReadCommand(KeyenceNanoAddress, UInt16)
建立读取PLC数据的指令,需要传入地址数据,以及读取的长度,地址示例参照类的说明文档
To create a command to read PLC data, you need to pass in the address data, and the length of the read. For an example of the address, refer to the class documentation
公共方法静态成员BuildWriteCommand(String, Boolean)
建立写入bool数据的指令,针对地址类型为 R,CR,MR,LR
Create instructions to write bool data, address type is R, CR, MR, LR
公共方法静态成员BuildWriteCommand(String, Boolean)
批量写入数据位到plc地址,针对地址格式为 R,B,CR,MR,LR,VB
Write data bits in batches to the plc address, and the address format is R, B, CR, MR, LR, VB
公共方法静态成员BuildWriteCommand(String, Byte)
建立写入PLC数据的指令,需要传入地址数据,以及写入的数据信息,地址示例参照类的说明文档
To create a command to write PLC data, you need to pass in the address data and the written data information. For an example of the address, refer to the class documentation
公共方法静态成员BuildWriteExpansionMemoryCommand
构建写入扩展单元缓冲寄存器的报文命令,需要传入单元编号,地址,写入的数据,实际写入的数据格式才有无符号的方式
To construct a message command to write to the buffer register of the expansion unit, the unit number, address, and data to be written need to be passed in, and the format of the actually written data is unsigned.
公共方法静态成员CheckPlcReadResponse
校验读取返回数据状态,主要返回的第一个字节是不是E
Check the status of the data returned from reading, whether the first byte returned is E
公共方法静态成员CheckPlcWriteResponse
校验写入返回数据状态,检测返回的数据是不是OK
Verify the status of the returned data written and check whether the returned data is OK
公共方法Equals (继承自 Object。)
公共方法静态成员ExtractActualBoolData
从PLC反馈的数据进行提炼Bool操作
Refine Bool operation from data fed back from PLC
公共方法静态成员ExtractActualData
从PLC反馈的数据进行提炼操作
Refining operation from data fed back from PLC
受保护的方法Finalize (继承自 Object。)
公共方法静态成员GetConnectCmd
连接PLC的命令报文
Command message to connect to PLC
公共方法静态成员GetDisConnectCmd
断开PLC连接的命令报文
Command message to disconnect PLC
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
公共方法静态成员GetWordAddressMultiple
获取当前的地址类型是字数据的倍数关系
受保护的方法MemberwiseClone (继承自 Object。)
公共方法静态成员Read
批量读取字节数组信息,需要指定地址和长度,返回原始的字节数组
Batch read byte array information, need to specify the address and length, return the original byte array
公共方法静态成员ReadAddressAnnotation
[商业授权] 读取指定软元件的注释信息
[Authorization] Read the comment information of the specified device
公共方法静态成员ReadAddressAnnotationAsync
[商业授权] 读取指定软元件的注释信息
[Authorization] Read the comment information of the specified device
公共方法静态成员ReadAsync
批量读取字节数组信息,需要指定地址和长度,返回原始的字节数组
Batch read byte array information, need to specify the address and length, return the original byte array
公共方法静态成员ReadBool
公共方法静态成员ReadBoolAsync
批量读取Boolean数组信息,需要指定地址和长度,返回Boolean 数组
Batch read Boolean array information, need to specify the address and length, return Boolean array
公共方法静态成员ReadExpansionMemory
[商业授权] 从扩展单元缓冲存储器连续读取指定个数的数据,单位为字
[Authorization] Continuously read the specified number of data from the expansion unit buffer memory, the unit is word
公共方法静态成员ReadExpansionMemoryAsync
[商业授权] 从扩展单元缓冲存储器连续读取指定个数的数据,单位为字
[Authorization] Continuously read the specified number of data from the expansion unit buffer memory, the unit is word
公共方法静态成员SetPlcDateTime
[商业授权] 设置PLC的时间
[Authorization] Set PLC time
公共方法静态成员SetPlcDateTimeAsync
[商业授权] 设置PLC的时间
[Authorization] Set PLC time
公共方法ToString (继承自 Object。)
公共方法静态成员Write(IReadWriteDevice, String, Boolean)
公共方法静态成员Write(IReadWriteDevice, String, Boolean)
批量写入Boolean数组数据,返回是否成功
Batch write Boolean array data, return whether the write was successful
公共方法静态成员Write(IReadWriteDevice, String, Byte)
写入原始的byte数组数据到指定的地址,返回是否写入成功
Write the original byte array data to the specified address, and return whether the write was successful
公共方法静态成员WriteAsync(IReadWriteDevice, String, Boolean)
写入单个的Boolean数据,返回是否成功
Write a single Boolean data, and return whether the write was successful
公共方法静态成员WriteAsync(IReadWriteDevice, String, Boolean)
批量写入Boolean数组数据,返回是否成功
Batch write Boolean array data, return whether the write was successful
公共方法静态成员WriteAsync(IReadWriteDevice, String, Byte)
写入原始的byte数组数据到指定的地址,返回是否写入成功
Write the original byte array data to the specified address, and return whether the write was successful
公共方法静态成员WriteExpansionMemory
[商业授权] 将原始字节数据写入到扩展的缓冲存储器,需要指定单元编号,偏移地址,写入的数据
[Authorization] To write the original byte data to the extended buffer memory, you need to specify the unit number, offset address, and write data
公共方法静态成员WriteExpansionMemoryAsync
[商业授权] 将原始字节数据写入到扩展的缓冲存储器,需要指定单元编号,偏移地址,写入的数据
[Authorization] To write the original byte data to the extended buffer memory, you need to specify the unit number, offset address, and write data
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见