19
11 May, 2006 DMC-A2 Series (ALD-00029)
Macro Sensors Tel. (856) 662-8000
www.macrosensors.com
Serial Communications (cont.)
. 64 n 87
~2: Tells the meter to print the current flow rate (display
data), held in register 2, after the word Rate =.
Total =: Tells the meter to print the word Total =.
~16: Tells the meter to print the current total flow (stored
data), held in register 16, after the word Flow =.
The printer would then print, for example, the following:
Rate = 2000
Total = 25000
This means that the current flow rate is 2000 and the total flow
at this point is 25000.
Example of Reading From Register X
Having written the above example to the meter, to check the
contents of register X using the terminal program through the
PC, type the following:
srx$
The following is shown on the PC screen:
Rate = ~2
Total = ~16$
Komentáře k této Příručce