A.1 shaft encoder connections, A.2 example program – Campbell Scientific QD1 Incremental Shaft Encoder Interface User Manual
Page 9

A-1
APPENDIX A. SHAFT ENCODER CONNECTIONS AND EXAMPLE
PROGRAM
A.1 SHAFT ENCODER CONNECTIONS
QD1 to shaft encoder connections shown below
are for HANDAR's Model 436A and
SYNERGETICS's Model 501A. These
connections were verified in July of 1987. CSI
is not responsible for subsequent changes in
encoder pin configurations by the respective
vendors.
ENCODER
QD1 (encoder side)
6 PIN
CONNECTIONS TO
CONNECTOR HANDAR
SYNERGETICS
A
N/C
GROUND
B
N/C
S1 or S2
C
+5
N/C
D
S1 or S2
GROUND
E
S1 or S2
S1 or S2
F
GROUND
N/C
A.2 EXAMPLE PROGRAM
The following program is an example only and
is not meant to be used verbatim. Sensor
calibration, input channels, and Input Locations
selected must be adjusted for actual
circumstances. The example goes so far as to
place the calculated stage into an Input
Location only. The user must program the
necessary instructions to obtain the data in the
form desired, and store it in Final Memory.
In this example the reference offset would be
keyed into Input Location 4 (STAGE) via *6C.
Refer to the *6 Mode in the datalogger manual
for detailed information on the *6C function.
*
1
Table 1 Programs
01:
60
Sec. Execution Interval
01:
P30
Z=F
LOAD THE POWER SUPPLY mV
01:
5000
F
LEVEL INTO LOCATION 1
02:
1
Z Loc [:mV LEVEL ]
02:
P21
Analog Out
ENABLE CAO 1 TO OUTPUT
01:
1
CAO Chan
5000 mV TO POWER THE QD1
02:
1
mV Loc mV LEVEL
THE STEPS ABOVE ARE REQUIRED FOR 21X AND CR7 DATALOGGERS ONLY.
03:
P3
Pulse Count
MEASURE THE TWO PULSE
01:
2
Reps
COUNT CHANNELS
02:
1
Pulse Input Chan
LOCATION 2 = UP COUNT
03:
0
High frequency
LOCATION 3 = DOWN COUNT
04:
2
Loc [:UP COUNT ]
MULTIPLIER = .01 FOR OUTPUT
05:
.01
Mult
IN FEET (1 FT CIRCUMFERENCE
06:
0
Offset
WHEEL,100 COUNTS/REV)
04:
P33
Z=X+Y
STAGE = STAGE + UP COUNT
01:
4
X Loc STAGE
02:
2
Y Loc UP COUNT
03:
4
Z Loc [:STAGE ]
05:
P35
Z=X-Y
STAGE = STAGE - DWN COUNT
01:
4
X Loc STAGE
02:
3
Y Loc DWN COUNT
03:
4
Z Loc [:STAGE ]
06:
P
End Table 1