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
)
Public Shared Function PackRequestReadModifyWrite (
address As String,
index As Integer,
value As Boolean,
Optional isConnectedAddress As Boolean = false
) As Byte()
public:
static array<unsigned char>^ PackRequestReadModifyWrite(
String^ address,
int index,
bool value,
bool isConnectedAddress = false
)
static member PackRequestReadModifyWrite :
address : string *
index : int *
value : bool *
?isConnectedAddress : bool
(* Defaults:
let _isConnectedAddress = defaultArg isConnectedAddress false
*)
-> byte[]
参数
- 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指令信息
参见