SiemensMPIBuildReadCommand 方法 |
生成一个读取字数据指令头的通用方法
A general method for generating a command header to read a Word data
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildReadCommand(
byte station,
string address,
ushort length,
bool isBit
)
Public Shared Function BuildReadCommand (
station As Byte,
address As String,
length As UShort,
isBit As Boolean
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildReadCommand(
unsigned char station,
String^ address,
unsigned short length,
bool isBit
)
static member BuildReadCommand :
station : byte *
address : string *
length : uint16 *
isBit : bool -> OperateResult<byte[]>
参数
- station
- 类型:SystemByte
设备的站号信息 -> Station number information for the device - address
- 类型:SystemString
起始地址,例如M100,I0,Q0,V100 ->
Start address, such as M100,I0,Q0,V100 - length
- 类型:SystemUInt16
读取数据长度 -> Read Data length - isBit
- 类型:SystemBoolean
是否为位读取
返回值
类型:
OperateResultByte包含结果对象的报文 -> Message containing the result object
参见