![Milltronics OCM II PL-269 Скачать руководство пользователя страница 88](http://html1.mh-extra.com/html/milltronics/ocm-ii-pl-269/ocm-ii-pl-269_instruction-manual_1797001088.webp)
In some cases the message must also contain a date. When this is the case it is placed immediately after the
message type identifier. It must be four digits long and in the form ddmm. For example 2301 would specify the
23 rd of January.
The following example considers sending a request to the OCM II that it transmit its site identification number
(entered as P14 during start up).
To retrieve the SITE NUMBER from the OCM II the user must transmit the following message:
STX; start of text = $02
MT; message type = ‘s’ or ‘S’
CR; carriage return = $0d
In BASIC one might form a request string:
REQUEST$ = CHR$(2)+"S"+CHR$(13) and then print it to the communications port
The message returned by the OCM II will be an ASCII string representing the floating-point site number preceded
by STX and terminated by CR.
STX; start of text = $02
SITE #; 6 digits plus decimal, e.g. ‘15.0000’ CR; carriage return = $0d
In BASIC one might receive the response with:
INPUT (communications port), RESPONSE$ and then strip off the first and last characters
SITE$
=
MID$(RESPONSE$,2,LEN(RESPONSE$)-1)
SUMMARY OF MESSAGE CODES
[Each must be preceded by STX ($02) and suffixed with CR ($0d)]
SEND TO OCM II
OCM II RESPONSE
H
returns the current head
D0
R
returns the current flowrate
D1
P
returns the primary totalizer rdg.
D2
V
returns the resetable totalizer rdg.
D22
C
clears the resetable totalizer
D22
S
returns the site identification number
P14
Tddmm
returns the daily flow total for a specific date from the file of
logged data
Fddmm
returns the 96 entries of the flowrate log (F9) for a specific date
or for slower computers, use Lddmm
Lddmm
sets up to return 96 entries of the flow-rate log (F9) for a specific
date, one at a time in response to a prompt (N)
PL-269
9 – 10
Содержание OCM II PL-269
Страница 1: ...OCM II PROCESS MEASUREMENTS OPEN CHANNEL MONITOR Instruction Manual PL 269 February 1991 33452690 ...
Страница 6: ......
Страница 8: ......
Страница 12: ......
Страница 22: ......
Страница 28: ......
Страница 29: ......
Страница 30: ......
Страница 31: ......
Страница 32: ......
Страница 33: ......
Страница 34: ......
Страница 35: ......
Страница 36: ......
Страница 76: ......
Страница 78: ......
Страница 92: ...PL 269 9 14 ...
Страница 94: ......
Страница 95: ......
Страница 106: ......