Elmomc Multi-Axis Motion Controller-Maestro Manuel d'utilisateur Page 244

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 313
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 243
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:
<node>.wsdo8(index, subindex, data)
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
Vue de la page 243
1 2 ... 239 240 241 242 243 244 245 246 247 248 249 ... 312 313

Commentaires sur ces manuels

Pas de commentaire