beautypg.com

Hall Research HR-4P User Manual

Page 19

background image


Programmable Serial Controller

17

3.23 RS232 Command Summary

The HR-4P uses a simple command protocol that can be used by other software in order
to control and/or configure the unit.

• The unit uses a baud rate of 19200, 8 Data bits, 1 Stop bit and No Parity for all

communications and from the device when it is RUN MODE (Power Led is
NOT blinking)

• The HR-4P supports both a short and long command format style.

• Long command format have the sequence HRTxx before the actual

command.

o The xx is a numeric value from 00 to 99 which sets the units

address

o All HR-4P units will listen to address 00 (for example

HRT00VER?)

o Only units with the correct address that matches the xx address

value will respond or execute the commands received.

• Short command format uses only the command portion listed in the table

in the table below denote the CARRIAGE RETURN (0x0D) and

LINEFEED (0x0A) Characters

• Each command is terminated by a single CARRIAGE RETURN

Command

Function

Response

VER?

Read Firmware version

Version x.y where X.Y is the
firmware version

ADR?

Read Address of Unit

Device address = nn

ADnn

Set an address of the unit to nn

‰

nn = 00 to 99

Set device address (01-99)nn

CLnm

Configure I/O line n to m

‰

n = 1 to 4

‰

m = 1 : 2 : 3 : ? = contact input :

voltage input : output : status

Nothing except Status Reads return:
CLX1 = I/O line X configured as contact
type input
CLX2 = I/O line X configured as voltage
type input
CLX3 = I/O line X configured as
output

IOnm

Set or Read State of I/O line n to m

‰

n = 1 to 4 = output

‰

m = 0 : 1 : ? = low : high : status

Input X = 1 or 0
Output X = 1 or 0

TOGn

Toggle the state of I/O line n

‰

n = 1 to 4

Input X = 1 or 0
Output X = 1 or 0

IRCn

Set or inquire IR

‰

n = 0 : 1 : ? = input : output : status

IRC0 = IR configured as Rxd
IRC1 = IR configured as Txd

IRSn,m Send IR code stored in 1 of 32 IR memory

locations

‰

n = 6 (Learned IR)

‰

m = 1 – 32 (Memory Location)

Nothing