Hardware Reference Manual
Software Setup
33
CLOSE
Note:
After loading this program, set I5=2 or 3 and ENABLE PLC 1.
Analog Inputs Setup
The optional analog-to-digital converter inputs are ordered either through Option-2 on the axes expansion
board. Each option provides two 12-bit analog inputs with a ±10Vdc range. The M-variables associated
with these inputs provided a range of values b2048 and –2048 for the respective ±10Vdc input
range. The following is the software procedure to setup and read these ports on the first ACC-1P.
Analog Inputs first ACC-1P
I7103 = 1746
;Set ADC clock frequency at 4.9152 MHz
I7106 = $1FFFFF
;Clock strobe set for bipolar inputs
M505->Y:$78105,12,12,S
;ADCIN_1 on JMACH1 connector (Acc-1P) pin 45
M605->Y:$7810D,12,12,S
;ADCIN_2 on JMACH1 connector (Acc-1P) pin 46
Analog Inputs second ACC-1P
M7203 = 1746
;Set ADC clock frequency at 4.9152 MHz
M7206 = $1FFFFF
;Clock strobe set for bipolar inputs
M905->Y:$78145,12,12,S
;ADCIN_1 on JMACH1 connector (Acc-1P) pin 45
M1005->Y:$7814D,12,12,S
;ADCIN_2 on JMACH1 connector (Acc-1P) pin 46
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com