Reading And Setting The Registers; Setting And Reading The Command Position (Lp) - ICP DAS USA I-8092F User Manual

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

Advertisement

3 Reading and Setting the Registers

3.1 Setting and Reading the Command Position (LP)

void i8092MF_SET_LP(BYTE
Description:
This function sets the command position counter value (logical position
counter, LP).
Parameters:
cardNo:
axis:
wdata:
Return:
None
Example:
i8092MF_SET_LP(1, AXIS_XY, 0);
//Set the LP for the X, Y, Z, and U axes of module 1 as 0,
//which means that all LP counters on module 1 will be cleared.
long i8092MF_GET_LP(BYTE
Description:
This function reads the command position counter value (logical position
counter, LP).
Parameters:
cardNo:
axis:
Return:
The current LP value (-2,147,483,648 ~ +2,147,483,647)
Example:
long
X_LP;
X_LP = i8092MF_GET_LP(1, AXIS_X);
//Reads the LP value 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)
29
I-8092F Software User Manual

Advertisement

Table of Contents
loading

Table of Contents