Rs232 communications protocol – Dynasonics MFX Series Insertion MagProbe Flow Meter User Manual
Page 76

RS232 PROTOCOL
The RS232 works on a simple command data structure. The basic structure is:
[:] [cmd] [data] [bcc] [\n]
:
Start of transmission, 1 byte
cmd
Command
Code, 1
byte
data
Data or instruction
bcc
Block check character, 1 byte
\n
End of transmission, 1 byte
Command Codes:
The MFX has 4 basic command codes as follows:
01h
Set flow data
05h
Return flow data
11h
Preset Non-volatile data
15h
Return Non-volatile data
01h
Set Flow Data: The data byte instructs the MFX processor to send flow data automati-
cally or to stop automatic sending. Automatic flow data is sent once per second as a
contiguous string followed by a \n. No bbc is returned
Data
Information to be returned
10h
Return velocity at 1 second intervals
[:] [S] [+xx.xx]
11h
Return flow rate at 1 second intervals
[:] [F] [+xxxx.xx]
12h
Return totallizer at 1 second intervals
[:] [T] [+xxxxxx]
13h
Return conductivity after being calculated
[:] [Y] [xxxx]
1Fh
Clear automatic sending
05h
Return Flow Data upon request: The data byte instructs the MFX processor to return
the flow data specified in the data byte. Flow data is sent once. No bbc is returned.
Data
Information to be returned
10h
Return
velocity
[:]
[S]
[+xx.xx]
[\n]
11h
Return flow rate
[:] [F] [+xxxx.xx] [\n]
12h
Return totallizer
[:] [T] [+xxxxxx] [\n]
13h
Return last conductivity [:] Y] [xxxx] [\n]
11h
Preset Non-Volatile Data: This command, followed by 82 bytes of hex data will preset
the MFX programming registers to match the incoming data. The data structure is listed
later as NVD.
[;] [11h] [data] [data]......................[bbc] [\n]
15h
Return Non-Volatile Data:
this command will be cause the MFX to respond with
the data contained in the programming registers. The data structure is listed later as
NVD.
[:] [15h] [bbc] [\n]
RS232 COMMUNICATIONS PROTOCOL
RS232 Communications Protocol
Software Version: 08-01-2000
Page: 1 of 2