N. rs-232c interface – Test Products International 183 User Manual
Page 32
31
30
Auto or Manual Range Codes
Code
Mode
0
Manual Range
1
Auto Range
Example Application Program:
cls
gosub ComOpen
on Com (2) on
WaitLoop:
goto WaitLoop
CompOpen:
close #1
open “com2:1200,n,7,1,rs,cs,ds,cd” as#1
return
GetCom:
com (2) off
input#1,rd$
if len (rd$)>9 then
RdgData$=right$ (rd$,&)
FunCode$=left$ (rd$,1)
ModCode$=mid$ (rd$,2,1)
RgeCode$=mid$ (rd$,3,1)
print FunCodes$, “ “;ModCode$;” “;RgeCode$;RdgData$
end if
com (2) on
return
n. RS-232C Interface
Demonstration software is provided with the 183. The pro-
gram is written for windows using Visual Basic. For your
own applications, consult the following:
1.
Specification:
Baud Rate
1200
Parity Bit
None
Data Bit
7
Stop Bit
1
2.
Data Formats: FAR_DDDDDDT
Indicator
Description
F
Function Code
A
Indicates Auto or Manual Range
R
Range Code
_
Space
DDDDDD
Reading Data (with decimal pointer
and sign)
T
Data Delimiters
Function Codes
Code
Function
Code
Function
Code
Function
0
ACV
4
ACA
8
–
1
OHMS
5
DCA
9
ACmA
2
DCV
6
Diode
A
Capacitance
3
DCmV
7
CmA
B
Frequency
Range Codes
Func. Ranges
Code
0
1
2
3
4
5
0, 2
4.00V
40.00V
400.0V
1000V
–
–
7, 9
40.00MA 400.0MA
–
–
–
–
4, 5
4.000A
10.00A
–
–
–
–
1
400.0
4.000k
40.00k
400.0k
4.000M 40.00M
B
200.00Hz
2.0000kHz
20.000kHz
200.00kHz –
–
A
400.0nF
4.000µF
40.00µF
–
–
–
3
400mV
–
–
–
–
–
6
4.000V
–
–
–
–
–