Delta Electronics PCI-DMC-A01 Programming Manual page 404

High-speed pci 12-axis motion control card
Hide thumbs Also See for PCI-DMC-A01:
Table of Contents

Advertisement

Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01
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
CardNo
NodeID
SlotID
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)
28-26
Unit
U16
Number Unit
U16
Number Unit
U16
Number Unit
U16*
Number Unit
Description
CardNo is between 0~15
Node ID
Slot ID
Motion control error code
Revised March, 2012

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pci-dmc-b01

Table of Contents