Dwyer DPW User Manual
Page 18
7. RS-485/RS-232 SOFTWARE INTERFACE COMMANDS
7.1 - General
The standard DPW comes with an RS-485 interface. For the optional RS-232
interface, the start character (!) and two hexadecimal characters for the address
must be omitted. The protocol described below allows for communications with the
unit using either a custom software program or a “dumb terminal.” All values are
sent as printable ASCII characters. For RS-485 interface, the start character is
always (!). The command string is terminated with a carriage return (line feeds are
automatically stripped out by the DPW). See Section 2.2.5 for information regarding
communication parameters and cable connections.
7.2 - Commands Structure
The structure of the command string:
!
Where:
!
Start character **
Addr
RS485 device address in the ASCII representation of
hexadecimal (00 through FF are valid).**
Cmd
The one or two character command from the table below.
Arg1 to Arg4
The command arguments from the table below.
Multiple arguments are comma delimited.
CR
Carriage Return character.
** - OMIT FOR RS232 INTERFACE.
Several examples of commands for RS-485 option follow. All assume that the DPW
meter has been configured for address 18 (12 hex) on the RS485 bus:
1. To get a flow reading: !12,F
The device will reply: !12,50.0
2. To get current Flow Alarm status: !12,FA,R
The device will reply:
!12,FA,N
(Assuming no alarm conditions)
3. To get a Main Totalizer reading: !12,MT,R
The device will reply: !12,MT:93.05
(Assuming the Main totalizer reading is 93.5)
4. Set the flow high alarm limit to 85% FS flow rate:
!12,FA,H,85.0
The device will reply:
!12,FA,H:85.0
Several examples of commands for RS-232 option follow.
1. To get a flow reading:
F
The device will reply:
50.0
(Assuming the flow is at 50.0% FS)
2. To get current Flow Alarm status: FA,R
The device will reply:
FA,N
(Assuming no alarm conditions)
3. To get a Main Totalizer reading: MT,R
The device will reply:
MT:93.05
(Assuming the Main totalizer reading is 93.5)
4. Set the flow high alarm limit to 85% FS flow rate:
A,H,85.0
The device will reply:
FA,H:85.0 > Command Temperature Diagnostic Diagnostic Meter Info Description Requests the current temperature Read/reset current status of Display/Set Diagnostic Events See list of the Diagnostic Events Requests meter configuration info: - full scale range (L/min) configuration (V,C) - Analog Temp. Output configuration (V,C) No. 2 3 4 5 Command T DE DM MI Argument 1 No Argument R (reset Event Log Argument 2 Argument 3 Argument 4 Response DM: 0x9FFF - DM: 0x9FFF MI: 18.92706,Y,V,V Y - RTD support 7.3 ASCII Commands Set Note: An * indicates power up default settings. An ** indicates optional feature not available on all models. Page 18
Name
Flow
**
Events
Mask
Requests the current flow sensor
reading in current EU.
reading in current EU (°C or °F).
Diagnostic Events log register.
mask register.
below.
- RTD option support(Y,N)
- Analog Flow Output
1
F
(read status)
register to 0x00)
No Argument
(read current
Diagnostic Events
Mask register)
0x0000 to 0xFFFF
Note: All 6
characters are
required.
current engineering
units)
in current engineering
units)
DE:0x10
0x10 - diagnostic word
(16 bits wide)
DE: 0x0
diagnostic mask (16 bits
wide).
Set bit - Enable
Clear bit - Disable
N - No RTD support
V - 0 to 5 VDC output
C - 4 to 20 mA output
DPW METER ASCII SOFTWARE INTERFACE COMMANDS