点击或拖拽改变大小

SiemensMPIBuildReadCommand 方法

生成一个读取字数据指令头的通用方法
A general method for generating a command header to read a Word data

命名空间:  HslCommunication.Profinet.Siemens
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static OperateResult<byte[]> BuildReadCommand(
	byte station,
	string address,
	ushort length,
	bool isBit
)

参数

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
参见