Delta-electronics High-Speed PCI 12-Axis Motion Control Card PCI-DMC Manual de usuario Pagina 245

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 528
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 244
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 16-3
16.3 _DMC_01_get_position
FORMAT
I16 PASCAL _DMC_01_get_position (U16 CardNo, U16 NodeID, U16 SlotID, I32* pos)
Purpose
Retrieves the current position counter value.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
NodeID U16 Number Unit Node ID
SlotID U16 Number Unit Slot ID
pos I32*
Number of
pulses
Returned current value of position counter
Example
U16 CardNo=0, NodeID =1, SlotID=0; I32 pos;
I16 status= _DMC_01_get_position (CardNo, NodeID, SlotID, &pos);
16.4 _DMC_01_set_position
FORMAT
U16 PASCAL _DMC_01_set_position (U16 CardNo, U16 NodeID, U16 SlotID, I32 pos)
Purpose
Sets the new position counter value.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
NodeID U16 Number Unit Node ID
SlotID U16 Number Unit Slot ID
pos I32
Number of
pulses
Set position counter value.
Example
U16 CardNo=0, NodeID =1, SlotID=0; I32 pos =500000;
I16 status= _DMC_01_set_position (CardNo, NodeID, SlotID, pos);
Vista de pagina 244
1 2 ... 240 241 242 243 244 245 246 247 248 249 250 ... 527 528

Comentarios a estos manuales

Sin comentarios