Delta Electronics PCI-DMC-B01 Computer Hardware User Manual


 
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);