AllenBradleyDF1SerialRead 方法 (String, UInt16) |
读取PLC的原始数据信息,地址示例:N7:0 可以携带站号 s=2;N7:0, 携带 dst 和 src 信息,例如 dst=1;src=2;N7:0
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override OperateResult<byte[]> Read(
string address,
ushort length
)
Public Overrides Function Read (
address As String,
length As UShort
) As OperateResult(Of Byte())
public:
virtual OperateResult<array<unsigned char>^>^ Read(
String^ address,
unsigned short length
) override
abstract Read :
address : string *
length : uint16 -> OperateResult<byte[]>
override Read :
address : string *
length : uint16 -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
PLC的地址信息,支持的类型见类型注释说明 - length
- 类型:SystemUInt16
读取的长度,单位,字节
返回值
类型:
OperateResultByte是否读取成功的结果对象
实现
IReadWriteNetRead(String, UInt16)参见