AllenBradleyDF1SerialBuildProtectedTypedLogicalWriteWithThreeAddressFields 方法 (Byte, Byte, Int32, String, Byte) |
构建0F-AA命令码的写入读取指令,用来写入文件数据。适用 Micro-Logix1000,SLC500,SLC 5/03,SLC 5/04, PLC-5,地址示例:N7:1
Construct a write and read command of 0F-AA command code to write file data. Applicable to Micro-Logix1000, SLC500, SLC 5/03, SLC 5/04, PLC-5, address example: N7:1
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildProtectedTypedLogicalWriteWithThreeAddressFields(
byte dstNode,
byte srcNode,
int tns,
string address,
byte[] data
)
Public Shared Function BuildProtectedTypedLogicalWriteWithThreeAddressFields (
dstNode As Byte,
srcNode As Byte,
tns As Integer,
address As String,
data As Byte()
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildProtectedTypedLogicalWriteWithThreeAddressFields(
unsigned char dstNode,
unsigned char srcNode,
int tns,
String^ address,
array<unsigned char>^ data
)
static member BuildProtectedTypedLogicalWriteWithThreeAddressFields :
dstNode : byte *
srcNode : byte *
tns : int *
address : string *
data : byte[] -> OperateResult<byte[]>
参数
- dstNode
- 类型:SystemByte
目标节点号 - srcNode
- 类型:SystemByte
原节点号 - tns
- 类型:SystemInt32
消息号 - address
- 类型:SystemString
PLC的地址信息 - data
- 类型:SystemByte
写入的数据内容
返回值
类型:
OperateResultByte初步的报文信息
备注
对于SLC 5/01或SLC 5/02而言,一次最多读取82个字节。对于 03 或是 04 为225,236字节取决于是否应用DF1驱动
参见