A-24 | Thermox Series 2000 WDG-IV /I VC / IVCM
Sample Program
This section provides a sample Quick Basic program that reads and writes
to the serial port
DECLARE FUNCTION Checksum$ (M$)
‘Serial test routine’ Continuously sends a message and prints the string
returned
CLS
‘Open the communications port
OPEN “COM2: 9600,N,8,1 “ FOR RANDOM AS #1
‘String to be sent
T$ = “08”
‘Address of the analyzer
Address% = 0
‘Build the message
M$ = “>” + HEX$(Address%) + “F” + T$
M$ = M$ + Checksum$(M$)
‘Continue sending message until key pressed
‘ (Assumes that analyzer is connected)
WHILE (INKEY$ = “”)
PRINT #1, M$
LINE INPUT #1, A$
‘Show results
PRINT “Sent......”; M$
PRINT “Returned...”; A$
PRINT
WEND
CLOSE #1
STOP
FUNCTION Checksum$ (M$)
DIM Sum AS LONG
Sum = 0
‘Skip FOR i% = 2 TO LEN(M$)
Sum = Sum + ASC(MID$(M$, i%, 1))
NEXT i%
‘Get low byte of checksum
Checksum$ = HEX$(Sum MOD 256)
END FUNCTION<P255D>
Содержание Thermox Series 2000 WDG-IV
Страница 14: ...xiv Thermox Series 2000 WDG IV IVC IVCM This page intentionally left blank ...
Страница 32: ...2 8 Thermox Series 2000 WDG IV IVC IVCM This page intentionally left blank ...
Страница 59: ...Installation 3 27 Figure 3 20 Sensor connections with all sensor options ...
Страница 67: ...Installation 3 35 Figure 3 24 Series 2000 2 wire RS 485 communication connections ...
Страница 69: ...Installation 3 37 Figure 3 25 Series 2000 4 wire RS 485 communication connections ...
Страница 72: ...3 40 Thermox Series 2000 WDG IV IVC IVCM This page intentionally left blank ...
Страница 100: ...4 28 Thermox Series 2000 WDG IV IVC IVCM This page intentionally left blank ...
Страница 126: ...5 26 Thermox Series 2000 WDG IV IVC IVCM This page intentionally left blank ...
Страница 143: ...Service and Parts 7 3 Figure 7 1 Wiring diagram for standard sensor ...
Страница 145: ...Service and Parts 7 5 Figure 7 2 Cell replacement ...
Страница 155: ...7 15 Thermox Series 2000 WDG IV IVC IVCM This page intentionally left blank ...
Страница 181: ...A 26 Thermox Series 2000 WDG IV I VC IVCM This page intentionally left blank ...
Страница 185: ...B 4 Thermox Series 2000 WDG IV IVC IVCM This page intentionally left blank ...
Страница 191: ...D 2 Thermox Series 2000 WDG IV IVC IVCM This page intentionally left blank ...