beautypg.com

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

Page 244

background image

Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01

16-2

Revised March, 2012

16.1 _DMC_01_get_command

FORMAT

I16 PASCAL _DMC_01_get_command (U16 CardNo, U16 NodeID, U16 SlotID, I32* cmd)


Purpose

Retrieves the Command counter value.


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

cmd

I32*

Number of

pulses

Current value of Command counter


Example

U16 CardNo=0, NodeID=1, SlotID=0; I32 cmd;
I16 status= _DMC_01_get_command (CardNo, NodeID, SlotID, &cmd);

16.2 _DMC_01_set_command

FORMAT

I16 PASCAL _DMC_01_set_command (U16 CardNo, U16 NodeID, U16 SlotID, I32 cmd)


Purpose

Sets the new Command counter value.


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

cmd

I32

Number of

pulses

New Command counter value to be set


Example

U16 CardNo=0, NodeID =1, SlotID=0; I32 cmd=1000000;
I16 status= _DMC_01_set_command (CardNo, NodeID, SlotID, cmd);

This manual is related to the following products: