Delta Electronics PCI-DMC-A01 Computer Hardware User Manual


 
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 28-27
28.17 _DMC_01_set_rm_04pi_ref_counter
FORMAT
I16 PASCAL _DMC_01_set_rm_04pi_ref_counter (U16 CardNo, U16 NodeID, U16 SlotID ,
U16 mode)
Purpose
Selects the reference position after re-connecting to module under M04PI Mode 1.
Check that link feedback is enabled when using this function.
If yes, set mode parameter to 1; if there is no feedback, set parameter to 0.
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
mode U16 Selection
0: Reference command counter
1: Reference position counter
Example
U16 CardNo=0;
U16 NodeID=1;
U16 SlotID=0;
U16 mode=0; //Reference command counter
I16 status =_DMC_01_set_rm_04pi_ref_counter (CardNo, NodeID, SlotID, mode);