Lawson 17B Скачать руководство пользователя страница 6

1070 PRINT V
1080 NEXT MUXCHAN
1090 END

2000 REM Set constants
2010 PAUSE = 0.1: REM For the 141, enter settling time + 0.1
2020 ADC = [value]: REM Your A/D board address
2030 BOARDCODE = [value]: REM 128 for Model 141, 0 for others
2040 CH = [value]: REM Your A/D board channel
2050 RETURN

3000 REM Delay for settling time of PAUSE sec.
3010 IF TIMER > 86395 THEN GOTO 3010
3020 START = TIMER
3030 IF TIMER < START + PAUSE THEN GOTO 3030
3040 RETURN

   Include this subroutine if you are using a Model 140.

4000 REM Returns Model 140 voltage in millivolts
4010 OUT ADC + 1, 0
4020 IF INP(ADC) AND 128 THEN 4020
4030 X = INP(ADC)
4040 V = X MOD 16 + (INP(ADC + 1) MOD 16) * 10  + (INP( ADC + 2)
     MOD 16) * 100 + (INP(ADC + 3) MOD 16) * 1000
4050 IF X AND 32 THEN V = V + 10000
4060 IF X AND 64 THEN V = -V
4070 V = V * .25
4080 RETURN

     Include this subroutine if you are using a Model 134. In
line 4030, you may set AVERAGE anywhere from 1 to 255. Larger
numbers reduce noise while smaller numbers increase speed.

4000 REM Returns Model 134 voltage in millivolts
4010 GOSUB 3000
4020 X = INP(ADC)
4030 TOTAL = 0: AVERAGE = 20
4040 FOR X = 1 TO AVERAGE
4050 IF INP(ADC - 1) AND 2 THEN 4050
4060 V = INP(ADC + 1) * 256! + INP(ADC)
4070 TOTAL = TOTAL + V
4080 NEXT X
4090 TOTAL = TOTAL / AVERAGE: V = (TOTAL - 32768) * .152588
4100 RETURN

     Include this subroutine if you are using a Model 141.

4000 REM Returns Model 141 voltage in millivolts
4010 GOSUB 3000
4020 OUT ADC + 1, 1
4030 H = (INP(ADC + 2) AND &H0F)
4040 M = INP(ADC + 1)
4050 L = INP(ADC)
4060 OUT ADC + 1, 0
4070 COUNT = L + M * 256 + H * 65536
4080 V = COUNT * 9.536743E-03 - 5000
4090 RETURN

     The above program will print the voltages at channels zero
through 15 of the Multiplexer connected to input CH of the A/D

Содержание 17B

Страница 1: ...uy your excess underutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing R...

Страница 2: ...tion with Model 66 Expansion Modules up to 32 multiplexers can be handled by a single A D card The control output lines on the A D determine which input is selected Both the plus and minus connections...

Страница 3: ...her input is used the control codes should be adjusted as described in the A D manual The ground terminal G on the Model 17B should be connected to chassis ground at the computer WARNING Use a cover s...

Страница 4: ...d the A D will be overranged Connect the plus and minus wires from the first input channel to be switched to the input terminals labeled 0 and 0 on the Model 17B Before attaching additional inputs you...

Страница 5: ...g the A D channel selection code plus the number of the desired multiplexer channel as the control code For example with the multiplexer at A D channel CH if you are using a Model 134 or 140 the instr...

Страница 6: ...0 IF X AND 64 THEN V V 4070 V V 25 4080 RETURN Include this subroutine if you are using a Model 134 In line 4030 you may set AVERAGE anywhere from 1 to 255 Larger numbers reduce noise while smaller nu...

Страница 7: ...you are using a wall socket ground for the external ground connection make sure that it is actually at ground potential 5 If more than one multiplexer thermometer or other device is connected to the...

Страница 8: ...e 100 Megohms INPUT PROTECTION All inputs protected against overvoltages of up to 130 volts transitory or 60 volts continuous CONTROL INPUTS Fully compatible with all Lawson Labs A D cards TYPICAL CON...

Страница 9: ...consequential damages caused by any defect in this product Some states do not allow the limitation of consequential damages so this exclusion may not apply to you...

Страница 10: ...uipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentat...

Отзывы: