beautypg.com

Delta Electronics High-Speed PCI 12-Axis Motion Control Card PCI-DMC-A01 User Manual

Page 71

background image

Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01

Revised March, 2012

3-49

5) Set positive/negative value limit, stop motion mode, and whether software limit is

enabled

Figure 3.71

N-Limit item: Value of negative limit. API function's argument variable “NLimit”.
P-Limit item:
Value of positive limit. API function's argument variable “PLimit”.
Stop mode pull-down menu: Stop mode. API function's argument variable
“action”.
Soft-limit Checkbox: Enables/disables software limit.

6) If software limit is enabled, you must check the “Soft-limit Enable” checkbox and

execute the following procedure:

/* Start software limit configuration */

rt = _DMC_01_enable_soft_limit(gDMCCardNo, NodeID, SlotID, action);

// action argument specifies the stop mode to use when limit is reached. A value of 1

means an emergency stop; A value of 2 means a slow down stop.

/* Set the values for positive and negatives */

rt = _DMC_01_set_soft_limit(gDMCCardNo, NodeID, SlotID, PLimit, NLimit);

// PLimit argument is the set value for positive limit; NLimit is the set value for
negative limit

7) To disable software limit, you must use the following procedure:

rt = _DMC_01_disable_soft_limit(gDMCCardNo, NodeID, SlotID);

8) Set Servo Motor Power ON/OFF(servo on/servo off)

Figure 3.72

Click on the “SVON” button to execute the following procedure:

rt = _DMC_01_ipo_set_svon(gDMCCardNo, NodeID, SlotID , ON_OFF);

// ON_OFF: 0 – Servo Power OFF; 1 – Servo Power ON

This manual is related to the following products: