08.04.2015 Views

TTDM–NMM and - California Detection Systems

TTDM–NMM and - California Detection Systems

TTDM–NMM and - California Detection Systems

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Input Registers — Event Records<br />

Modbus Function 04 to Read<br />

As noted previously, each event record can be accessed using the overlay in Input Registers 30021 to 30027; this requires writing<br />

the desired event number in Holding Register 40001 before reading the selected event record. Event records can also be<br />

accessed directly (without writing the event number in the Holding Register). Input Registers 30357 through 32148 store the event<br />

records, with a group of seven registers for each event. The following table identifies the register <strong>and</strong> addresses for event entries.<br />

Input Registers<br />

Event record<br />

Event nos.<br />

Description overlay Event no. 1 Event no. 2 3 to 254 Event no 255 Event no 256<br />

Event Type 30021 30357 30364 See 32135 32142<br />

SIM module address (channel number) 30022 30358 30365 formula 32136 32143<br />

Module Subaddress (not used) 30023 30359 30366 below 32137 32144<br />

Event Time Stamp (high byte: hours; low byte: minutes) 30024 30360 30367 32138 32145<br />

Event Date Stamp (high byte: month; low byte: day) 30025 30361 30368 32139 32146<br />

Event Date Stamp (low byte: year) 30026 30362 30369 32140 32147<br />

Event Data (location) 30027 30363 30370 32141 32148<br />

Decimal address range 20– 356– 363– 370– 2134– 2141–<br />

26 362 369 2133 2140 2147<br />

Hex address range 0014– 0164– 016B– 0172– 0856– 085D–<br />

001A 016A 0171 0855 085C 0863<br />

Formula to calculate the first register for an event record:<br />

First register for event record = 30357 + ( [ (Event number – 1) modulo 256] x 7)<br />

X modulo 256 = the integer remainder after dividing the value X by 256<br />

Examples: 5 modulo 256 = 5, 500 modulo 256 = 244, 700 modulo 256 = 188<br />

For example to calculate the registers for event number 5:<br />

30357 + ( [ 4 modulo 256] x 7) = 30357 + 28 = 30385<br />

Event number 5 occupies Input Registers 30385 to 30391, with the same format as Input Registers 30021—30027.<br />

Holding Registers - Query Selections<br />

Modbus Function 03 to Read<br />

Modbus Function 06 to Write<br />

Modbus Function 16 to Block Write<br />

Holding Address Address Name/description of 16-bit value<br />

Register (decimal) (hex) (4 hexadecimal characters)<br />

SIM <strong>and</strong> events overlay pointers<br />

40001 0 0000 Number of event for which the event record overlay is used<br />

40002 1 0001 Number of SIM channel for which the SIM status overlay is used<br />

40003 2 0002 spare<br />

43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!