Serial rlc protocol communications, Sending serial commands and data, Command chart – Red Lion PAXDP User Manual

Page 23: Command string construction, Register identification chart, Command string examples, Transmitting data to the meter

Advertising
background image

23

1

For Input Registers, replace the 4xxxx with a 3xxxx in the above register address. The 3xxxx are a mirror of the 4xxxx Holding Registers.

2

An attempt to exceed a limit will set the register to its high or low limit value.

400

300

200

99999

99999

99999

-19999

-19999

-19999

Alternate Setpoint 4 Value (Hi word)

Alternate Setpoint 3 Value (Hi word)

Alternate Setpoint 2 Value (Hi word)

Alternate Setpoint 4 Value (Lo word)

Alternate Setpoint 3 Value (Lo word)

Alternate Setpoint 2 Value (Lo word)

40047

40045

40043

40048

40046

40044

Setpoint List B

Setpoint List B

Setpoint List B

FREQUENTLY USED REGISTERS (Continued)

COMMENTS

ACCESS

FACTORY

SETTING

HIGH LIMIT

2

LOW LIMIT

2

REGISTER NAME

REGISTER

ADDRESS

1

Read/Write

Read/Write

Read/Write

SERIAL RLC PROTOCOL COMMUNICATIONS

RLC Communications requires the Serial Communications Type Parameter

(



) be set to



.

SENDING SERIAL COMMANDS AND DATA

When sending commands to the meter, a string containing at least one

command character must be constructed. A command string consists of a

command character, a value identifier, numerical data (if writing data to the

meter) followed by a the command terminator character * or $.

Command Chart

COMMAND DESCRIPTION

NOTES

N

Node (Meter)

Address Specifier

Address a specific meter. Must be followed by

a one or two digit node address. Not required

when address = 0.

T

Transmit Value

(read)

Read a register from the meter. Must be

followed by register ID character

V

Value Change

(write)

Write to register of the meter. Must be followed

by register ID character and numeric data.

R

Reset

Reset a register or output. Must be followed by

register ID character.

P

Block Print Request

(read)

Initiates a block print output. Registers are

defined in programming.

Command String Construction

The command string must be constructed in a specific sequence. The meter

does not respond with an error message to invalid commands. The following

procedure details construction of a command string:
1. The first characters consist of the Node Address Specifier (N) followed by a

1 or 2 character address number. The address number of the meter is

programmable. If the node address is 0, this command and the node address

itself may be omitted. This is the only command that may be used in

conjunction with other commands.

2. After the address specifier, the next character is the command character.

3. The next character is the Register ID. This identifies the register that the

command affects. The P command does not require a Register ID character.

It prints according to the selections made in print options.

4. If constructing a value change command (writing data), the numeric data is

sent next.

5. All command strings must be terminated with the string termination

characters * or $. The meter does not begin processing the command string

until this character is received. See Timing Diagram figure for differences

between terminating characters.

Register Identification Chart

1. Register Names are also used as Register Mnemonics during full transmission.
2. The registers associated with the P command are set up in Print Options

(Module 7). Unless otherwise specified, the Transmit Details apply to both T

and V Commands.

Command String Examples:

1. Address = 17, Write 350 to Setpoint 1

String: N17VM350*

2. Address = 5, Read Input A value

String: N5TA*

3. Address = 0, Reset Setpoint 4 output

String: RS*

Transmitting Data To the Meter

Numeric data sent to the meter must be limited to Transmit Details listed in

the Register Identification Chart. Leading zeros are ignored. Negative numbers

must have a minus sign. The meter ignores any decimal point and conforms the

number to the scaled resolution. (ie. The meter’s scaled decimal point position

is set for 0.0 and 25 is written to a register. The value of the register is now 2.5.

In this case, write a value of 250 to equal 25.0).
Note: Since the meter does not issue a reply to value change commands, follow

with a transmit value command for readback verification.

OFB

SOR

Input B Offset

Setpoint Register

J

X

OFA

AOR

Input A Offset

Analog Output Register

I

W

ABB

MMR

Auto/Manual Register

H

U

ABA

SP4

Setpoint 4

G

S

MAX

SP3

Max

Setpoint 3

F

Q

MIN

SP2

Min

Setpoint 2

E

O

TOT

SP1

Total

Setpoint 1

D

M

CLC

Calculation Value

C

INB

B

INA

A

REGISTER

NAME

1

VALUE DESCRIPTION

ID

COMMAND SUPPORTED

2

T
T, R (reset command zeros Total)

T

T, V

T

T, V

T, V

T, V

T, V

T, R (reset command zeros

or tares input)
T, R (reset command zeros

or tares input)

Input A Absolute

(Gross) Value
Input B Absolute

(Gross) Value

T, V, R (reset command resets

setpoint output)
T, V, R (reset command resets

setpoint output)
T, V, R (reset command resets

setpoint output)
T, V, R (reset command resets

setpoint output)

Input A

Relative Value
Input B

Relative Value

T, R (reset command loads

current reading)
T, R (reset command loads

current reading)

Advertising