Delta Electronics PCI-DMC-A01 Programming Manual page 47

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

Advertisement

Motion counter value:
rt = _DMC_01_get_command(gDMCCardNo, NodeID, SlotID, &cmd);
// Get value of command counter
rt = _DMC_01_get_position(gDMCCardNo, NodeID, SlotID, &pos);
// Get value of feedback counter
Motion status:
rt = _DMC_01_get_current_speed(gDMCCardNo, NodeID, SlotID, &speed);
// Get velocity of current motion
rt = _DMC_01_motion_status(gDMCCardNo, NodeID, SlotID, &MC_status);
// Get current status
rt = _DMC_01_motion_done(gDMCCardNo, NodeID, SlotID, &MC_done);
// Get current motor status
8) Stop motion
Hit the "STOP" button to execute an emergency stop:
rt = _DMC_01_emg_stop (gDMCCardNo, NodeID, SlotID);
In this example, emergency stop is used to stop motion. This method quickly stops
motion by setting deceleration time to 0. For more information about the Stop Motion
function, refer to the later section on "Stop Motion Control API".
9) Exit procedure
Click on the "Exit" button to quit and exit the procedure.
"_DMC_01_reset_card" and "_DMC_01_close" must be executed to exit this
function. Please refer to Section 3.12 "Exit procedure" for the function operations.
Revised March, 2012
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01
Figure 3.39
3-25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pci-dmc-b01

Table of Contents