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
28-22 Revised March, 2012
28.12 _DMC_01_rm_04pi_md1_set_gear
FORMAT
I16 PASCAL _DMC_01_rm_04pi_md1_set_gear (U16 CardNo, U16 NodeID, U16 SlotID,
I16 numerator,I16 denominator,U16 Enable)
Purpose
Enables and sets Gear parameters under RM04PI Mode 1.
As a step motor does not offer an electronic gear ratio, this function is used instead.
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
numerator I16 Number Unit Electronic gear denominator
denominator I16 Number Unit Electronic gear numerator
Enable U16 Selection
0: Disable Gear
1: Enable Gear
Example
U16 CardNo=0, NodeID =1, SlotID=0;
I16 numerator=1, denominator=2;
U16 Enable=1;
I16 status = _DMC_01_rm_04pi_md1_set_gear (CardNo, NodeID, SlotID, numerator,
denominator, Enable);