Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 16-7
16.8 _DMC_01_get_current_speed_rpm
FORMAT
I16 PASCAL _DMC_01_get_current_speed_rpm (U16 CardNo, U16 NodeID, U16 SlotID,
I32 *rpm)
Purpose
Retrieves current RPM x 10.
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
rpm I32* Revolutions/second Actual torque is 1/10 of this variable (RPM)
Example
U16 CardNo=0;
U16 NodeID =1;
U16 SlotID=0;
I32 rpm;
I16 status= _DMC_01_get_current_speed_rpm (CardNo, NodeID, SlotID, &rpm);
// If you get a torque value of 1000, the actual speed is 100RPM.