ICPDAS
I-8092F Software User Manual
171
i8092_GET_SB
Format:
void
i8092_GET_SB(
unsigned char
cardNo,
WORD
axis)
Function:
Read the synchronous action buffer register.
Parameters:
cardNo
is the board number.
axis
is the motion axis code/name, as shows in Table 2-1.
Example:
//Get the data from the x-axis’s buffer register.
i8092_GET_SB(1, 0x1);
i8092_GET_SM6
Format:
WORD
i8092_GET_SM6(
BYTE
cardNo
,
WORD
axis
)
Function:
Get the value of SM6 register.
Parameters:
cardNo
board number
axis
axis or axes. Please refer to Table A2-1.
Example:
//Get the value of SM6 of X-axis on board 1.
WORD sm6Data;
sm6Data = i8092_GET_SM6(1, 0x1);
i8092_GET_SM7
Format:
WORD
i8092_GET_SM7(
BYTE
cardNo
,
WORD
axis
)
Function:
Get the value of SM7 register.
Parameters:
cardNo
board
number
axis
axis or axes. Please refer to Table A2-1.
Example:
//Get the value of SM7 of X-axis on board 1.
WORD sm7Data ;