从PLC中根据输入的数据标签名称,按照类型byte进行读取出数据信息
According to the input data tag name from the PLC, read the data information according to the type byte
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<byte> ReadByte(
string address
)
Public Function ReadByte (
address As String
) As OperateResult(Of Byte)
public:
OperateResult<unsigned char>^ ReadByte(
String^ address
)
member ReadByte :
address : string -> OperateResult<byte>
参数
- address
- 类型:SystemString
标签的地址信息,例如 "全局DB".Static_21
返回值
类型:
OperateResultByte包含是否成功的结果对象
参见