SiemensS7NetBuildWriteBitCommand 方法 |
生成一个写入位数据的指令 -> Generate an instruction to write bit data
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteBitCommand(
string address,
bool data,
int msgId
)
Public Shared Function BuildWriteBitCommand (
address As String,
data As Boolean,
msgId As Integer
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteBitCommand(
String^ address,
bool data,
int msgId
)
static member BuildWriteBitCommand :
address : string *
data : bool *
msgId : int -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
起始地址,示例M100,I100,Q100,DB1.100 -> Start Address, example M100,I100,Q100,DB1.100 - data
- 类型:SystemBoolean
是否通断 -> Power on or off - msgId
- 类型:SystemInt32
message id informaion
返回值
类型:
OperateResultByte包含结果对象的报文 -> Message containing the result object
参见