点击或拖拽改变大小

AllenBradleyDF1SerialBuildProtectedTypedLogicalWriteWithThreeAddressFields 方法 (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.0.0.0 (12.0.0.0)
语法
public static OperateResult<byte[]> BuildProtectedTypedLogicalWriteWithThreeAddressFields(
	int tns,
	string address,
	byte[] data
)

参数

tns
类型:SystemInt32
消息号
address
类型:SystemString
PLC的地址信息
data
类型:SystemByte
写入的数据内容

返回值

类型:OperateResultByte
初步的报文信息
备注
对于SLC 5/01或SLC 5/02而言,一次最多读取82个字节。对于 03 或是 04 为225,236字节取决于是否应用DF1驱动
参见