public class AllenBradleyDF1Serial extends Object
| 构造器和说明 |
|---|
AllenBradleyDF1Serial() |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExOne<byte[]> |
BuildProtectedTypedLogicalMaskWithThreeAddressFields(int tns,
String address,
int bitIndex,
boolean value)
构建0F-AB的掩码写入的功能
|
static OperateResultExOne<byte[]> |
BuildProtectedTypedLogicalReadWithThreeAddressFields(byte dstNode,
byte srcNode,
int tns,
String address,
short length)
构建0F-A2命令码的报文读取指令,用来读取文件数据。
|
static OperateResultExOne<byte[]> |
BuildProtectedTypedLogicalReadWithThreeAddressFields(int tns,
String address,
short length) |
static OperateResultExOne<byte[]> |
BuildProtectedTypedLogicalWriteWithThreeAddressFields(byte dstNode,
byte srcNode,
int tns,
String address,
byte[] data)
构建0F-AA命令码的写入读取指令,用来写入文件数据。
|
static OperateResultExOne<byte[]> |
BuildProtectedTypedLogicalWriteWithThreeAddressFields(int tns,
String address,
byte[] data) |
static String |
GetExtStatusDescription(byte code)
根据错误代码,来获取错误的具体描述文本
|
public static OperateResultExOne<byte[]> BuildProtectedTypedLogicalReadWithThreeAddressFields(int tns, String address, short length)
public static OperateResultExOne<byte[]> BuildProtectedTypedLogicalReadWithThreeAddressFields(byte dstNode, byte srcNode, int tns, String address, short length)
dstNode - 目标节点号srcNode - 原节点号tns - 消息号address - PLC的地址信息length - 读取的数据长度public static OperateResultExOne<byte[]> BuildProtectedTypedLogicalWriteWithThreeAddressFields(int tns, String address, byte[] data)
public static OperateResultExOne<byte[]> BuildProtectedTypedLogicalWriteWithThreeAddressFields(byte dstNode, byte srcNode, int tns, String address, byte[] data)
dstNode - 目标节点号srcNode - 原节点号tns - 消息号address - PLC的地址信息data - 写入的数据内容public static OperateResultExOne<byte[]> BuildProtectedTypedLogicalMaskWithThreeAddressFields(int tns, String address, int bitIndex, boolean value)
tns - 消息号address - PLC的地址信息bitIndex - 位索引信息value - 通断值public static String GetExtStatusDescription(byte code)
code - 错误的代码,非0Copyright © 2022. All rights reserved.