beautypg.com

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

Page 229

background image

Chapter 13 Using PDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01

Revised March, 2012

13-3

13.2 _DMC_01_get_buffer_length

FORMAT

I16 PASCAL _DMC_01_get_buffer_length (U16 CardNo, U16 NodeID, U16 SlotID,
U16* bufferLength)


Purpose

Retrieves the motion command which has yet to be executed.


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

bufferLength

U16*

Integer

Un-executed motion command


Example

U16 CardNo=0;
U16 NodeID =1;
U16 SlotID =0;
U16 bufferLength;
I16 status;

/* Start synchronized motion control command */
status= _DMC_01_sync_move(CardNo);
/* Get un-executed motion commands from each Node */
status= _DMC_01_get_buffer_length (CardNo, NodeID, SlotID, &bufferLength);

This manual is related to the following products: