点击或拖拽改变大小

AllenBradleyHelperPackRequestWriteSegment 方法

根据指定的数据和类型,生成对应的数据

命名空间:  HslCommunication.Profinet.AllenBradley
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.1.0 (12.1.1.0)
语法
public static byte[] PackRequestWriteSegment(
	string address,
	ushort typeCode,
	byte[] value,
	int startIndex,
	int length = 1,
	bool isConnectedAddress = false
)

参数

address
类型:SystemString
地址信息
typeCode
类型:SystemUInt16
数据类型
value
类型:SystemByte
字节值
startIndex
类型:SystemInt32

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

length (Optional)
类型:SystemInt32
如果节点为数组,就是数组长度
isConnectedAddress (Optional)
类型:SystemBoolean
是否为连接模式的地址

返回值

类型:Byte
CIP的指令信息
参见