Delta Electronics PCI-DMC-B01 Computer Hardware User Manual


 
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01
28-26 Revised March, 2012
28.16 _DMC_01_rm_04pi_md1_get_mc_error_code
FORMAT
I16 PASCAL _DMC_01_rm_04pi_md1_get_mc_error_code (U16 CardNo, U16 NodeID,
U16 SlotID, U16 error_code)
Purpose
When the alarm code is 299, retrieves the motion control error message under RM04PI Mode 1.
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
error_code U16* Number Unit Motion control error code
Example
U16 CardNo=0;
U16 NodeID =1;
U16 SlotID=0;
U16* error_code;
U32* alm_code;
/* Get Slave error message */
I16 status= _DMC_01_get_alm_code (CardNo, NodeID, SlotID, &alm_code);
/* Use this function when alm_code has a value of 299.
Get error code for current motion of RM04PI. */
I16 status= _DMC_01_rm_04pi_md1_get_mc_error_code (CardNo, NodeID, SlotID,
&error_code);
//Example: error_code of 127 means” Motion command buffer is full” (For a detailed
description of erro_code, please refer to PCI_DMC_01_Err.h)