Chapter 17 Software Limit API | PCI-DMC-A01 / PCI-DMC-B01
17-4 Revised March, 2012
17.4 _DMC_01_get_soft_limit_status
FORMAT
I16 PASCAL _DMC_01_get_soft_limit_status (U16 CardNo, U16 NodeID, U16 SlotID,
U16* PLimit_sts,U16* NLimit_sts)
Purpose
Retrieves the positive/negative status of the software limit during motion.
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
PLimit_sts U16* Flag 0: No contact with positive software limit
1: Contact with positive software limit
NLimit_sts U16* Flag
0: No contact with negative software limit
1: Contact with negative software limit
Example
U16 CardNo=0;
U16 NodeID=1;
U16 SlotID=0;
U16 PLimit_sts, NLimit_sts;
I16 status= _DMC_01_get_soft_limit_status(CardNo, NodeID, SlotID, &PLimit_sts,
&NLimit_sts)