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