KeyenceNanoHelperBuildWriteCommand 方法 (String, Byte) |
建立写入PLC数据的指令,需要传入地址数据,以及写入的数据信息,地址示例参照类的说明文档
To create a command to write PLC data, you need to pass in the address data and the written data information. For an example of the address, refer to the class documentation
命名空间:
HslCommunication.Profinet.Keyence
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteCommand(
string address,
byte[] value
)
Public Shared Function BuildWriteCommand (
address As String,
value As Byte()
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteCommand(
String^ address,
array<unsigned char>^ value
)
static member BuildWriteCommand :
address : string *
value : byte[] -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
软元件地址 - value
- 类型:SystemByte
转换后的数据
返回值
类型:
OperateResultByte是否成功的信息
参见