MelsecA1EAsciiNetBuildWriteBoolCommand 方法 |
根据类型地址以及需要写入的数据来生成指令头
命名空间:
HslCommunication.Profinet.Melsec
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteBoolCommand(
string address,
bool[] value,
byte plcNumber
)
Public Shared Function BuildWriteBoolCommand (
address As String,
value As Boolean(),
plcNumber As Byte
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteBoolCommand(
String^ address,
array<bool>^ value,
unsigned char plcNumber
)
static member BuildWriteBoolCommand :
address : string *
value : bool[] *
plcNumber : byte -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
起始地址 - value
- 类型:SystemBoolean
数据值 - plcNumber
- 类型:SystemByte
PLC编号
返回值
类型:
OperateResultByte带有成功标志的指令数据
参见