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-24 Revised March, 2012
28.14 _DMC_01_rm_04pi_md1_get_soft_limit_status
FORMAT
I16 PASCAL _DMC_01_rm_04pi_md1_get_soft_limit_status (U16 CardNo, U16 NodeID,
U16 SlotID ,U16* NLimit_status,U16* PLimit_status)
Purpose
Retrieves current 4-axis software limit contact status 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
NLimit_status U16* Number Unit Return contact status of negative software limit
PLimit_status U16* Number Unit Return contact status of positive software limit
Example
U16 CardNo=0; U16 NodeID =1, SlotID=0;
U16 NLimit_status, PLimit_status;
I16 status = _DMC_01_rm_04pi_md1_get_soft_limit_status(CardNo, NodeID, SlotID ,
&NLimit_status, &PLimit_status);
// If there is contact with negative software limit, NLimit_status returns 1; Return 0
otherwise
// If there is contact with positive software limit, PLimit_status returns 1; Return 0
otherwise