Setting And Reading The Encoder Counter - ICP DAS USA I-8092F User Manual

2-axis motion control module
Hide thumbs Also See for I-8092F:
Table of Contents

Advertisement

3.2 Setting and Reading the Encoder Counter

void i8092MF_SET_EP(BYTE
Description:
This function sets the encoder position counter value (real position counter, or
EP).
Parameters:
cardNo:
axis:
wdata:
Return:
None
Example:
i8092MF_SET_EP(1, AXIS_XY, 0);
//Set the EP for the X, Y, Z, and U axes of module 1 as 0.
//This command clears all EP counters on module 1.
long i8092MF_GET_EP(BYTE
Description:
This function reads the encoder position counter value (EP).
Parameters:
cardNo:
axis:
Return:
Current EP value (-2,147,483,648 ~ +2,147,483,647)
Example:
long
X_EP;
X_EP = i8092MF_GET_EP(1, AXIS_X);
//reads the encoder value (EP) of the X axis on module 1.
ICPDAS
cardNo,
Module number
Axis or axes (Please refer to Table 2-1)
Position command
(-2,147,483,648 ~ +2,147,483,647)
cardNo,
Module number
Axis (Please refer to Table 2-1)
The axis can be either X and Y
WORD
long
axis,
wdata)
WORD
axis)
30
I-8092F Software User Manual

Advertisement

Table of Contents
loading

Table of Contents