Aalborg TIO Totalizer I/O Flow Monitor/Controller User Manual

Page 80

Advertising
background image

77

APPENDIX C

Totalizer-IO ASCII Commands Set

RS232/RS485

Rev. A1 07/18/2011

The standard Totalizer-IO comes with an RS232 interface. The protocol described
below allows communication with the unit using either a custom software pro-
gram or a “dumb” terminal. All values are sent as printable ASCII characters. For
RS-232 interface, the start character and two characters of address must be omit-
ted. For the RS485 interface the start character is always ‘!’ and two characters of
the address follow. The command string is terminated with a carriage return (line
feeds are automatically stripped out by the Totalizer-IO:

RS-485:

!<Addr>,<Cmd>,Arg1,Arg2,Arg3,Arg4<CR>

Example: !12,F<CR>

RS-232:

Cmd,Arg1,Arg2,Arg3,Arg4<CR>

Example: F<CR>

Where: !

Start character **

Addr RS485 device address in the ASCII representation of hexidecimal (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.

**Default address for all units is set to 11 hex. Do not submit start character and device

address for RS-232 option.

Several examples of commands follow. All assume that the Totalizer-IO has been config-
ured for address 18 (12 hex) on the RS485 bus:

1. To get a flow reading:

!12,F<CR>

The device will reply:

!12,50.0<CR> (Assuming the flow is at 50.0% FS)

2. To get current Flow Alarm status:

!12,A,S<CR>

The device will reply:

!12,AS:N<CR> > (Assuming no Alarm conditions)

3. To get Totalizer#1 reading:

!12,T,1,R<CR>

The device will reply:

!12,T1R:93.5<CR>

(Assuming the Totalizer#1 reading is 93.5)

4. Set the flow High and Low Alarm limit to 90% and 10% of full scale flow rate:

!12,A,C,90.0,10.0<CR>

The device will reply:

!12, AC:90.0,10.0<CR>

Advertising