Chapter 42 Other API | PCI-DMC-A01 / PCI-DMC-B01
42-6 Revised March, 2012
42.6 _DMC_01_set_dda_data
FORMAT
I16 PASCAL _DMC_01_set_dda_data (U16 CardNo, U32* abs_pos)
Purpose
Enters DDA Table data.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
Abs_Pos U32* Numerical data This field is a an array for data from 12 axes
Example
U16 CardNo = 0;
U32 Abs_Pos[0][11] = {1000,2000,0,0,0,0,0,0,0,0,0,0};
//Abs_Pos is a 12-axis data array. Maximum Buffer is 1000 entries. One DDA Table entry is
executed each ms. Please note that other commands will not be accepted before the Buffer
finishes executing (e.g. Sd_Stop).
I16 status = _DMC_01_set_dda_data (CardNo, Abs_Pos);
//Other Node without DDA Table enabled can continue to execute other actions as normal.
42.7 _DMC_01_get_dda_cnt
FORMAT
I16 PASCAL _DMC_01_get_dda_cnt (U16 CardNo, U16* dda_cnt)
Purpose
Retrieves number of remaining entries in DDA Table.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
dda_cnt U16* Numerical data Current number of remaining entries in DDA
Table
Example
U16 CardNo = 0;
U16 dda_cnt;
I16 status = _DMC_01_get_dda_cnt (CardNo, & dda_cnt);;