点击或拖拽改变大小

AllenBradleyHelperPackRequestReadModifyWrite 方法 (String, Int32, Boolean, Boolean)

根据传入的地址,或掩码,和掩码来创建一个读-修改-写的请求报文信息

命名空间:  HslCommunication.Profinet.AllenBradley
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.0.0 (12.1.0.0)
语法
public static byte[] PackRequestReadModifyWrite(
	string address,
	int index,
	bool value,
	bool isConnectedAddress = false
)

参数

address
类型:SystemString
标签的地址信息
index
类型:SystemInt32

[缺少 "M:HslCommunication.Profinet.AllenBradley.AllenBradleyHelper.PackRequestReadModifyWrite(System.String,System.Int32,System.Boolean,System.Boolean)" 的 <param name="index"/> 文档]

value
类型:SystemBoolean

[缺少 "M:HslCommunication.Profinet.AllenBradley.AllenBradleyHelper.PackRequestReadModifyWrite(System.String,System.Int32,System.Boolean,System.Boolean)" 的 <param name="value"/> 文档]

isConnectedAddress (Optional)
类型:SystemBoolean
是否为连接模式的地址

返回值

类型:Byte
打包之后的CIP指令信息
参见