AllenBradleyHelperPackRequestWriteSegment 方法 |
根据指定的数据和类型,生成对应的数据
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static byte[] PackRequestWriteSegment(
string address,
ushort typeCode,
byte[] value,
int startIndex,
int length = 1,
bool isConnectedAddress = false
)
Public Shared Function PackRequestWriteSegment (
address As String,
typeCode As UShort,
value As Byte(),
startIndex As Integer,
Optional length As Integer = 1,
Optional isConnectedAddress As Boolean = false
) As Byte()
public:
static array<unsigned char>^ PackRequestWriteSegment(
String^ address,
unsigned short typeCode,
array<unsigned char>^ value,
int startIndex,
int length = 1,
bool isConnectedAddress = false
)
static member PackRequestWriteSegment :
address : string *
typeCode : uint16 *
value : byte[] *
startIndex : int *
?length : int *
?isConnectedAddress : bool
(* Defaults:
let _length = defaultArg length 1
let _isConnectedAddress = defaultArg isConnectedAddress false
*)
-> byte[]
参数
- 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
是否为连接模式的地址
返回值
类型:
ByteCIP的指令信息
参见