SiemensFetchWriteNetReadByteAsync 方法 |
读取指定地址的byte数据
Reads the byte data for the specified address
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<byte>> ReadByteAsync(
string address
)
Public Function ReadByteAsync (
address As String
) As Task(Of OperateResult(Of Byte))
public:
Task<OperateResult<unsigned char>^>^ ReadByteAsync(
String^ address
)
member ReadByteAsync :
address : string -> Task<OperateResult<byte>>
参数
- address
- 类型:SystemString
起始地址,格式为M100,I100,Q100,DB1.100 -> Starting address, formatted as M100,I100,Q100,DB1.100
返回值
类型:
TaskOperateResultBytebyte类型的结果对象 -> Result object of type Byte
备注 警告: |
---|
不适用于DB块,定时器,计数器的数据读取,会提示相应的错误,读取长度必须为偶数
|
参见