AllenBradleyHelperPackRequestReadSegment 方法 |
打包生成一个请求读取数据片段的节点信息,CIP指令信息
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static byte[] PackRequestReadSegment(
string address,
int startIndex,
int length
)
Public Shared Function PackRequestReadSegment (
address As String,
startIndex As Integer,
length As Integer
) As Byte()
public:
static array<unsigned char>^ PackRequestReadSegment(
String^ address,
int startIndex,
int length
)
static member PackRequestReadSegment :
address : string *
startIndex : int *
length : int -> byte[]
参数
- address
- 类型:SystemString
节点的名称 -> Tag Name - startIndex
- 类型:SystemInt32
起始的索引位置,以字节为单位 -> The initial index position, in bytes - length
- 类型:SystemInt32
读取的数据长度,一次通讯总计490个字节 -> Length of read data, a total of 490 bytes of communication
返回值
类型:
ByteCIP的指令信息
参见