EtherCAT:EC PDO READ N/zh-hans
语言: | English • 中文(简体) |
---|
描述
通过PDO读取大小为N字节的对象。 此功能专为大于32位的对象而设计。
输入
Slave address, PDO index, PDO sub-index
输出
An array of longs
返回值
成功返回0, 失败返回-1
声明
public function EC_PDO_READ_N(byval slaveaddres as long, byval index as long, byval subindex as long, retVal_array[*] as long) as long
格式
retVal = EC_PDO_READ_N(<Slave address>, <PDO index>, <PDO sub-index>, <array of longs>)
例外规则
EC_SLAVE_ADDRESS_ERROR - "SLAVE ADDRESS ERROR" 20032
EC_PDO_PARMS_ERROR - "INVAILD PDO PARAMETERS" 20040
EC_PDO_DIRECTION_ERROR - "PDO WRONG DIRECTION (INPUT/OUTPUT)" 20046
例子
retVal = EC_PDO_READ_N(2, 0x6041, 1, retVal_array) ' Read analong inputs into retVal_array
|SEE ALSO=