
ICPDAS
I-8092F Software User Manual
114
A.7.1 Register management functions
The definition of the WRn, RRn registers are detail shown in appendix B.
Table A-3 Register management functions
Function Name
Description
i8092_SET_COMMAND
The command register (WR0) for 2-axes setting
i8092_SET_WR1
The mode register (WR1) for 2-axes setting
i8092_SET_WR2
The mode register (WR2) for 2-axes setting
i8092_SET_WR3
The mode register (WR3) for 2-axes setting
i8092_GET_WR4
The output register (WR4) setting
i8092_SET_WR5
The interpolation register (WR5) setting
i8092_GET_RR0
The main status register (RR0) getting
i8092_GET_RR1
The status register 1 (RR1) getting
i8092_GET_RR2
The status register 2 (RR2) getting
i8092_GET_RR3
The status register 3 (RR3) getting
i8092_GET_RR4
The input register (RR4) getting
i8092_GET_RR5
The input register (RR5) getting
i8092_COMMAND
Format:
void
i8092_COMMAND(
unsigned char
cardNo,
WORD
axis,
WORD
cmd)
Function:
Setting the command register (WR0) for 2-axes.
Parameters:
cardNo
is the board number.
axis
is the motion axes, as shown in Table2-1.
cmd
is the command code setting in the WR0 register. Available command codes
are shown in section A.8.
Example:
//Set all axes for axis switching.
i8092_COMMAND(1, 0x3, 0xf);