beautypg.com

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

Page 213

background image

Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01

Revised March, 2012

10-7

10.2 _DMC_01_set_home_move

FORMAT

I16 PASCAL _DMC_01_set_home_move (U16 CardNo, U16 NodeID, U16 SlotID)


Purpose

Starts home 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


Example

U16 CardNo=0;
U16 NodeID =1;
U16 SlotID=0; //If Slot ID is set to 0, then the Slave is a servo drive

I16 status= _DMC_01_set_home_move (CardNo, NodeID, SlotID);


NOTE

※ After executing _DMC_01_set_home_move, MDS0 in MC_status returned by

_DMC_01_motion_status API can be used to judge the Home status. Please set dwell
time of 30 ~ 100 ms after executing _DMC_01_set_home_move (this value can be
adjusted based on CPU performance and programming approach) before executing
_DMC_01_motion_status to ensure that the data is correct.

This manual is related to the following products: