7 download sdo - 8 bit, Download sdo - 8 bit – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 244

Example:
node1.
listenpdo (1,0,0,0)//listen only PDO1
...
// PDO handler calls then a new PDO Transmit message occurs.
function @pdo(int address, int wData, int lData, int length)
// TODO: Add address decomposition
int busId, nodeId, pdoNum
busId = address&0x0100
nodeId = address&0x00FF
pdoNum = address>>16
// TODO: Add your PDO Transmit handling code here...
TRACE( "PDO% for node %", pdoNum, nodeId )
end function
13.7
Maestro
Software Manual
Node DS301 Command Reference
MAN-MASSW (Ver. Q)
Download SDO - 8 bit
This function implements SDO download data (8 bits) to the CAN node.
Syntax:
Input Parameters:
index
–
CAN
object
index
subindex
– CAN object sub index
data
– Data value (8 bits)
Return Value:
None
Example:
node1.
wsdo8 (0x1600,0,0xff)
0x1600 - CAN object index
0x0
– CAN object sub index
0xff
– Data value (8 bits)
13-4