FujiSPBHelper.BuildReadCommand 方法 (Byte,String[],UInt16[], Boolean) |
创建一条读取多个地址的指令信息,需要指定一些参数,单次读取最大105个字
命名空间:
HslCommunication.Profinet.Fuji
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.3.0.0 (12.3.0.0)
语法public static OperateResult<byte[]> BuildReadCommand(
byte station,
string[] address,
ushort[] length,
bool isBool
)
Public Shared Function BuildReadCommand (
station As Byte,
address As String(),
length As UShort(),
isBool As Boolean
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildReadCommand(
unsigned char station,
array<String^>^ address,
array<unsigned short>^ length,
bool isBool
)
static member BuildReadCommand :
station : byte *
address : string[] *
length : uint16[] *
isBool : bool -> OperateResult<byte[]>
参数
- station
- 类型:System.Byte
PLC的站号 - address
- 类型:System.String[]
地址信息 - length
- 类型:System.UInt16[]
数据长度 - isBool
- 类型:System.Boolean
是否位读取
返回值
类型:
OperateResult<Byte[]>是否成功的结果对象
参见