Delta Electronics PCI-DMC-A01 Computer Hardware User Manual


 
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 28-25
28.15 _DMC_01_rm_04pi_md1_set_sld
FORMAT
I16 PASCAL _DMC_01_rm_04pi_md1_set_sld (U16 CardNo, U16 NodeID, U16 SlotID,
I16 enable, I16 sd_logic,I16 mode)
Purpose
Enables SLD port (DI3) and sets the profile.
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
enable I16 Selection
0: Disable SLD port
1: Enable SLD port
sd_logic I16 Selection
0: Normal high
1: Normal low
mode I16 Selection
1: Use EMG stop (emergency stop)
2: Use Slow down stop (slow down stop)
Example
U16 CardNo=0, NodeID =1, SlotID=0;
I16 enable=1;
I16 sd_logic=1; //Port polarity is Normal high
I16 mode=1; //Stop mode used is EMG stop
I16 status= _DMC_01_rm_04pi_md1_set_sld(CardNo, NodeID, SlotID, enable, sd_logic,
mode);