Red Lion PAX2C User Manual
Page 44
44
RECEIVING DATA FROM THE CONTROLLER
Data is transmitted by the controller in response to either a transmit command
(T), a print block command (P) or User Function print request. The response
from the controller is either a full field transmission or an abbreviated
transmission. The controller response mode is selected via the Abrv parameter in
the Serial Port Parameters.
Full Field Transmission (Address, Mnemonic, Numeric data)
Byte
Description
1, 2 2 byte Node Address field [00-99]
3
4-6
3 byte Register Mnemonic field
7-18 2 byte data field, 10 bytes for number, one byte for sign, one byte for
decimal point
19
20
21
22
23
* These characters only appear in the last line of a block print.
The first two characters transmitted are the node address, unless the node
address assigned = 0, in which case spaces are substituted. A space follows the
node address field. The next three characters are the register mnemonic.
The numeric data is transmitted next. The numeric field is 12 characters long
(to accommodate the 10 digit totalizer), with the decimal point position floating
within the data field. Negative values have a leading minus sign. The data field
is right justified with leading spaces.
The end of the response string is terminated with a carriage return
provide separation between the blocks.
Abbreviated Transmission (Numeric data only)
Byte
Description
1-12 12 byte data field, 10 bytes for number, one byte for sign, one byte for
decimal point
13
14
15
16
17
* These characters only appear in the last line of a block print.
Controller Response Examples:
1. Node address = 17, full field response, Input = 875
17 INP 875
2. Node address = 0, full field response, Alarm 2 = -250.5
SP2 -250.5
3. Node address = 0, abbreviated response, Alarm 2 = 250, last line of block print
250
Auto/Manual Mode Register (MMR) ID: O
This register sets the controlling mode for the outputs. In Auto Mode (0) the
controller controls the digital outputs and analog output. In Manual Mode (1) the
outputs are defined by the registers DOR and AOR. When transferring from auto
mode to manual mode, the controller holds the last output value (until the
register is changed by a write). Each output may be independently changed to
auto or manual. In a write command string (VO), any character besides 0 or 1 in
a field will not change the corresponding output mode.
O abcde
e = Analog Output
d = DO4
c = DO3
b = DO2
a = DO1
Example: VO00011* places DO4 and Analog in manual.
Analog Output Register (AOR) ID: Q
This register stores the present signal value of the analog output. The range
of values of this register is 0 to 4095, which corresponds to the analog output
range per the following chart:
Register
Value
Output Signal*
0-20 mA 4-20 mA
0-10 V
0
0.00
4.00
0.000
1
0.005
4.004
0.0025
2047
10.000 12.000
5.000
4094
19.995 19.996
9.9975
4095
20.000 20.000
10.000
*Due to the absolute accuracy rating and resolution of the output card, the
actual output signal may differ 0.15% FS from the table values. The output
signal corresponds to the range selected (0-20 mA, 4-20 mA or 0-10 V).
Writing to this register (VQ) while the analog output is in the Manual Mode
causes the output signal level to update immediately to the value sent. While in
the Automatic Mode, this register may be written to, but it has no effect until the
analog output is placed in the manual mode. When in the Automatic Mode, the
controller controls the analog output signal level. Reading from this register
(TQ) will show the present value of the analog output signal.
Example: VQ2047 will result in an output of 10.000 mA, 12.000 mA or
5.000V depending on the range selected.
Digital Output Register (DOR) ID: S
This register stores the states of the setpoint outputs. Reading from this
register (TS) will show the present state of all the digital outputs. A “0” in the
setpoint location means the output is off and a “1” means the output is on.
S abcd
d = DO4
c = DO3
b = DO2
a = DO1
In Automatic Mode, the controller controls the digital output state. In Manual
Mode, writing to this register (VS) will change the output state. Sending any
character besides 0 or 1 in a field or if the corresponding output was not first in
manual mode, the corresponding output value will not change. (It is not
necessary to send least significant 0s.)
Example: VS10* will result in output 1 on and output 2 off.