User manual

0150-0296A 81 Vista Columbus Triplex CDR
9.2 Configuration and
Status
i) Data structure
Byte 1: 0xFF
Byte 2: Command Type
0xAA: (SET) Update Triplex with data.
0xBB: (GET) Extract data from Triplex.
Byte 3: Data Length (n)
Byte 4: Data Type
0x61: Restart Triplex
0xFE: Send configuration data to Triplex
0x09: Read Alarm History from Triplex
0xFF: Read configuration and status data
from Triplex
Byte 5: Data byte 1
Byte 6: Data byte 2
:
:
Byte x: Data byte n
ii) Sending data to the Triplex
a) Restart the Triplex
This command will restart the Triplex.
Byte 1: 0xFF
Byte 2: 0xAA
Byte 3: 0
Byte 4: 0x61
b) Send data to the Triplex
Configuration data can be sent to the Triplex,
to change the way it operates. The data is
arranged in the form of 16 byte blocks,
numbered from 1 to 213. Blocks 182, 183 and
185 are status blocks, and hence cannot be
written to. For details about the contents of
each block, contact Norbain and request the
Block Data Structure for the Triplex.
Byte 1: 0xFF
Byte 2: 0xAA
Byte 3: 17
Byte 4: 0xFE
Byte 5: Block Number
(1-181, 184, 186-200)
Byte 6: data[0]
: :
: :
Byte 21:data[15]
After sending a block or series of blocks, block
number 255 must be updated to signal the end of
the configuration session. All data bytes for block
255 must be set to 0.
iii) Requesting data from the Triplex
When a message of type 0xBB is sent to the
Triplex, it will respond by sending 16 bytes of
requested data.
a) Read Alarm History List
Byte 1: 0xFF
Byte 2: 0xBB
Byte 3: 0
Byte 4: 0x09
When the "Read Alarm History List" message is
received by the Triplex, it responds by sending a
start byte 0xFF, followed by ASCII strings for
every alarm event in its alarm history list, and a
stop byte, 0xFF. Each string is formatted as
follows:
dd.bmm/ddbhh:mm:ssbaa<CR><LF>
dd: index number (00 - 99)
b: space character
mm: month (01-12)
dd: day (01-31)
hh: hours (00-23)
mm: minutes (00-59)
ss: seconds (00-59)
aa: alarm number (01-16)
<CR> Carriage return (0x0D)
<LF> Line feed (0x0A)
Example: 03. 11/27 22:48:58 15
b) Read data from the Triplex
Configuration and status data can be read from
the Triplex. The data is arranged in the form of 16
byte blocks, numbered from 1 to 213. For details
about the contents of each block, contact Norbain
and request the Block Data Structure for the
Triplex.
Byte 1: 0xFF
Byte 2: 0xBB
Byte 3: 1
Byte 4: 0xFF
Byte 5: Block Number 1-213 or 255 if all
blocks are requested.
The Triplex responds to the “Read data” request
by sending all the requested data bytes
consecutively, without any start or stop bytes.
A total of either 16 bytes or 3408 bytes will be
transmitted, depending on whether a single block
or all the blocks were requested.