
Motion Control Theory
191
PCI-8254 / PCI-8258
•
Example:
#include
"APS168.h"
#include
"APS_define.h"
#include
"ErrorCodeDef.h"
void
pt_move_example ()
//This example shows how pt move operation
I32 ret;
I32 Board_ID = 0;
I32 PtbId = 0; //Point table 0
I32 Dimension = 2; //2D Dimension
I32 AxisArr[2] = { 0, 1 }; //Set Axis 0 & Axis 1 to point table 0
PTLINE Prof;
PTSTS Status;
//Enable
point
table
id
0
for
2D
dimension
with
aixs
0
and
axis
1.
APS_pt_enable
(Board_ID
,
PtbId,
Dimension,
&
AxisArr);
//Enable
point
table
id
0
//Get
status
of
point
table
id
0
to
monitor
buffer
APS_get_pt_status
(Board_ID
,
PtbId,
&Status);
if
(
!(Status.BitSts
&
0x02
)
)
//Point
buffer
is
not
full
//Push
move
into
point
buffer
Prof.Dim
=
2;
Prof.Pos[0]
=
10000;
Prof.Pos[1]
=
10000;
ret
=
APS_pt_line
(Board_ID,
PtbId,
&Prof,
&Status);
//Start
point
table
move
APS_pt_start
(Board_ID,
PtbId,
0);
Содержание PCI-8254
Страница 2: ...ii Revision History Revision Date Description 2 00 2014 08 13 First release ...
Страница 8: ...viii Table of Contents Important Safety Instructions 209 Getting Service 211 ...
Страница 12: ...xii List of Figures ...
Страница 14: ...xiv List of Tables ...
Страница 24: ...10 Introduction ...
Страница 54: ...40 Getting Start with The Installation ...
Страница 78: ...64 Signal Connection ...
Страница 111: ...Motion Control Theory 97 PCI 8254 PCI 8258 MCP2 Bode plot page ...
Страница 165: ...Motion Control Theory 151 PCI 8254 PCI 8258 Example Figure 4 55 Continuous interpolation examples ...
Страница 222: ...208 Motion Control Theory ...