APX-3302 User's Manual (OM110000019A)
-80 -
Change absolute position encoder type to multi point. Configure bit30 of APX-3302 encoder control register
as 1 by using AcapSetReg function. Do not change other bit.
The address of encoder control register is 1028h for ch1 and 2028h for ch2.
bit
Function
30
Select absolute position encoder type.
0: Single point
1: Multi point
Power on status is "0": Single point
Table6-6: Encoder control register (bit30)
// Enable multipoint
// Standard functions of AcapLib2 do not support this processing,
// so you have to configure register of APX-3302 directly.
// CH1: Configure bit30 of register address 1028h as 1
// CH2: Configure bit30 of register address 2028h as 1
// Get the value of encoder control register
dwRegOffset = (INPUT_CH - 1) * APX3302_CH_OFFSET;
AcapGetReg(ghDev, INPUT_CH, 0, dwRegOffset, &dwRegVal);)
// Change to multipoint mode (configure bit30 as 1)
dwRegVal | = 0x40000000;
// Configure encoder control register
AcapSetReg(ghDev, INPUT_CH, 0, dwRegOffset, dwRegVal);
Summary of Contents for APX-3302
Page 1: ...APX 3302 User s Manual ...