点击或拖拽改变大小

AllenBradleyDF1SerialBuildProtectedTypedLogicalReadWithThreeAddressFields 方法 (Int32, String, UInt16)

构建0F-A2命令码的报文读取指令,用来读取文件数据。适用 Micro-Logix1000,SLC500,SLC 5/03,SLC 5/04, PLC-5,地址示例:N7:1
Construct a message read instruction of 0F-A2 command code to read 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[]> BuildProtectedTypedLogicalReadWithThreeAddressFields(
	int tns,
	string address,
	ushort length
)

参数

tns
类型:SystemInt32
消息号
address
类型:SystemString
PLC的地址信息
length
类型:SystemUInt16
读取的数据长度

返回值

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