
ICPDAS
I-8092F Software User Manual
130
i8092_GET_EP
Format:
long
i8092_GET_EP(
unsigned char
CardNo,
WORD
axis)
Function:
The function can read the current value of real position counter and it will be set in
read registers RR6 and RR7.
Parameters:
cardNo
is the board number.
axis
is the motion axis code, as shows in Table 2-1, only set for single axis.
Example:
//Read the real position counter for the X, Y axes.
i8092_GET_EP(1, 0x1); i8092_GET_EP(1, 0x2);
i8092_GET_CV
Format:
WORD
i8092_GET_CV(
unsigned char
CardNo,
WORD
axis)
Function:
The function can read the current drive speed, and it will be set in read registers RR6
and RR7. When the driving stops, the value becomes 0. The date value will increase
from the setting value of start speed (SV) to the setting value of drive speed (V).
Parameters:
cardNo
is the board number.
axis
is the motion axis code, as shows in Table 2-1, only set for single axis.
Example:
//Read the current velocity for the X, Y axes.
i8092_GET_CV(1, 0x1);
i8092_GET_CV(1, 0x2);