OmronFinsNetHelperWriteAsync 方法 (IOmronFins, String, Byte) |
向PLC写入数据,数据格式为原始的字节类型,地址格式为"D100","C100","W100","H100","A100"
Write data to PLC, the data format is the original byte type, and the address format is "D100", "C100", "W100", "H100", "A100"
命名空间:
HslCommunication.Profinet.Omron
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult> WriteAsync(
IOmronFins omron,
string address,
byte[] value
)
Public Shared Function WriteAsync (
omron As IOmronFins,
address As String,
value As Byte()
) As Task(Of OperateResult)
public:
static Task<OperateResult^>^ WriteAsync(
IOmronFins^ omron,
String^ address,
array<unsigned char>^ value
)
static member WriteAsync :
omron : IOmronFins *
address : string *
value : byte[] -> Task<OperateResult>
参数
- omron
- 类型:HslCommunication.Profinet.Omron.HelperIOmronFins
PLC设备的连接对象 - address
- 类型:SystemString
初始地址 - value
- 类型:SystemByte
原始的字节数据
返回值
类型:
TaskOperateResult结果
参见