beautypg.com

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

Page 374

background image

Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01

27-4

Revised March, 2012

27.3 _DMC_01_set_rm_04pi_svon_polarity

FORMAT

I16 PASCAL _DMC_01_set_rm_04pi_svon_polarity (U16 CardNo, U16 NodeID, U16 SlotID,
U16 polarity)


Purpose

Sets POWER ON (SVON) level.


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

polarity

U16

Selection

0: Normal high
1: Normal low


Example

U16 CardNo=0;
U16 NodeID=1;
U16 SlotID=0;
U16 ON_OFF= 1;
U16 polarity = 0; //Set as Normal high

/* Enable POWER ON (Servo ON) */
I16 status = _DMC_01_04pi_set_poweron (CardNo, NodeID, SlotID, polarity);

/* When servo is Low active, the polarity value of this function must be set to 0 (Normal high) */
status = _DMC_01_set_rm_04pi_svon_polarity(CardNo, NodeID, SlotID, polarity);

This manual is related to the following products: