MelsecFxSerialHelperBuildWriteBoolPacket 方法 |
生成位写入的数据报文信息,该报文可直接用于发送串口给PLC
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteBoolPacket(
string address,
bool value
)
Public Shared Function BuildWriteBoolPacket (
address As String,
value As Boolean
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteBoolPacket(
String^ address,
bool value
)
static member BuildWriteBoolPacket :
address : string *
value : bool -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
地址信息,每个地址存在一定的范围,需要谨慎传入数据。举例:M10,S10,X5,Y10,C10,T10 - value
- 类型:SystemBoolean
True或是False
返回值
类型:
OperateResultByte带报文信息的结果对象
参见