• No results found

Appendix G – Event system walkthrough

event log module selection - in order to read the events we must first select which event log we wish to read. please note that the PowerWizard has separate event logs for events raised by the module and those raised by ancillaries such as the engine ECM. (please see note 1, page 24 for a list of event logs)

in order to read the events raised by the PowerWizard control panel we must select event log module selection 0. to do this write the value 0 to register 1498 (0x05DA)

Query: 01 06 01 2D 00 00 18 3F

Breakdown: node: 01

function code: 06 starting address hi: 05 starting address lo: D9 preset data hi: 00 preset data lo: 00

CRC hi: 18

CRC lo: 3F

Response: 01 06 01 2D 00 00 18 3F

Breakdown: node: 01

function code: 06 starting address hi: 01 starting address lo: 2D preset data hi: 00 preset data lo: 00

CRC hi: 18

CRC lo: 3F

Event log entries - having selected the appropriate modules event log it is possible to pull the event information for the 20 events from register 1500 to 1780. The below example only reads the first event and explains how to interpret the information.

To read event log entry #1 (0x05DC)

Query: 01 03 05 DB 00 0E B4 F9

Breakdown: node: 01

function code: 03 starting address hi: 05

starting address lo: DB (offset by 1) no. of registers hi: 00

no. of registers lo: 0E

CRC hi: B4

Response: 01 03 1C C4 31 0B 03 52 16 90 05 0E 04 17 15 00 0025 9E 00 00 00 00 F5 09 FF 01 F4 FF 00 00 07 89

Breakdown: node: 01 data hi: 00 (register 8)

function code: 03 data lo: 00

byte count: 1C data hi: 00 (register 9)

data hi: C4 (register 0) data lo: 00

data lo: 31 data hi: F5 (register 10)

data hi: 0B (register 1) data lo: 09

data lo: 03 data hi: FF (register 11)

data hi: 52 (register 2) data lo: 01

data lo: 16 data hi: F4 (register 12)

data hi: 90 (register 3) data lo: FF

data lo: 05 data hi: 00 (register 13)

data hi: 0E (register 4) data lo: 00

data lo: 04 CRC hi: 07

data hi: 17 (register 5) CRC lo: 89

data lo: 15

data hi: 00 (register 6) data lo: 00

data hi: 25 (register 7) data lo: 9E

Register 13 contains the log entry index. Converting 0x0000 into decimal gives 0, as such this is the first event in the event log (the log has 20 entries, 0-19)

Registers 12 and 11 contain the SPN/FMI information. Firstly convert the value from hex into binary. hex = 0xFF01F4FF

binary = 11111111000000011111010011111111

now we need to breakdown the information

bits 31:24 = 11111111 these are unused and can be ignored bits 23:5 = 0000000111110100111 this represents the SPN

bits 4:0 = 11111 this represents the FMI now convert the SPN information into decimal (bits 23:5)

binary = 0000000111110100111 decimal = 4007

subsequently the SPN of the event is 4007

now convert the FMI information into decimal (bits (4:0) binary = 11111

decimal = 31 subsequently the FMI of this event is 31

now we have the SPN/FMI combination we can check this with the SPN/FMI list (Appendix F) and we find that SPN/FMI 4007/31 = generator control not in automatic warning

Register 10 contains the event status and occurrence count information. Firstly convert the information into binary.

hex = 0xF509

binary = 1111010100001001 now we need to breakdown the information

bits 15:12 = 1111 these are unused and can be ignored bits 11:8 = 0101 this represents the event status

bits 7:0 = 00001001 this represents the number of occurrences of the event

using the information in the event breakdown section (page 25) event status 0101 = Present

as such this event is currently present

now convert the occurrence information into decimal (bits 7:0) binary = 00001001

decimal = 9

register pairs 9:8 and 7:6 give the engine operating hours when the event first and last occurred. from the event breakdown section (page 25)

range : 0-210554060.75 scale : 0.000278 hour/bit offset : 0

for first hour meter (register 9:8) 00000000 (hex) = 0 (decimal) multiplying by the scale 0 * 0.000278 = 0

adding the offset 0 + 0 = 0

and checking the range 0 <= 0 <= 210554060.75 so the first hour meter is 0 hours

for last hour meter (register 7:6) 0000259E (hex) = 9630 (decimal) multiplying by the scale 9630 * 0.00278 = 2.68

adding the offset 481.5 + 0 = 2.68

and checking the range 0 <= 2.68 <= 210554060.75 so the last hour meter is 2.68 hours

registers 5:3 and 2:0 contain the first and last time stamp information the information is divided into byte long sections.

for the first timestamp

Byte 5 contains the year information. From the event breakdown section: scale : 1 year/bit

range : 1985-2235 offset : 1985

byte 5 = 15 (hex), converting this to decimal gives 21 multiplying by the scale 21 * 1 = 21 adding the offset 21 + 1985 = 2006 as such the year is 2006

Byte 4 contains the day information. From the event breakdown section: scale : 0.25 days/bit

range : 0-62.5 offset : 0

byte 4 = 17 (hex), converting this to decimal gives 23

multiplying by the scale 23 * 0.25 = 5.75 adding the offset 5.75 + 0 = 5.75

Byte 3 contains the month information. From the event breakdown section: scale : 1 month/bit

range : 0-250 offset : 0

Byte 3 = 04 (hex), converting this to decimal gives 4 multiplying by the scale 4 * 1 = 4 adding the offset 4 + 0 = 4 as such the event occurred on the 4th month of the year

Byte 2 contains the hour information. From the event breakdown section: scale : 1 hour/bit

range : 0-250 offset : 0

Byte 2 = 0E (hex), converting this to decimal gives 14 multiplying by the scale 14 * 1 = 14 adding the offset 14 + 0 = 14 as such the event occurred on the 14th hour of the day

Byte 1 contains the minute information. From the event breakdown section: scale : 1 minute/bit

range : 0-250 offset : 0

Byte 1 = 05 (hex), converting this to decimal gives 5

multiplying by the scale 05 * 1 = 05 adding the offset 05 + 0 = 05 as such the event occurred on the 5th minute of the hour

Byte 0 contains the second information. From the event breakdown section: scale : 0.25 minute/bit

range : 0-62.5 offset : 0

Byte 0 = 90 (hex), converting this to decimal gives 144

multiplying by the scale 144 * 0.25 = 36 adding the offset 36 + 0 = 36 as such the event occurred on the 36th second of the minute

for the last timestamp

Byte 5 contains the year information. From the event breakdown section : scale : 1 year/bit

range : 1985-2235 offset : 1985

byte 5 = 16 (hex), converting this to decimal gives 22 multiplying by the scale 22 * 1 = 22 adding the offset 22 + 1985 = 2007 as such the year is 2007

Byte 4 contains the day information. From the event breakdown section : scale : 0.25 days/bit

range : 0-62.5 offset : 0

byte 4 = 52 (hex), converting this to decimal gives 82

multiplying by the scale 82 * 0.25 = 20.5 adding the offset 20.5 + 0 = 20.5

Byte 3 contains the month information. From the event breakdown section : scale : 1 month/bit

range : 0-250 offset : 0

Byte 3 = 03 (hex), converting this to decimal gives 3 multiplying by the scale 3 * 1 = 3 adding the offset 3 + 0 = 3 as such the event occurred on the 3rd month of the year

Byte 2 contains the hour information. From the event breakdown section : scale : 1 hour/bit

range : 0-250 offset : 0

Byte 2 = 0B (hex), converting this to decimal gives 11 multiplying by the scale 11 * 1 = 11 adding the offset 11 + 0 = 11 as such the event occurred on the 11th hour of the day

Byte 1 contains the minute information. From the event breakdown section: scale : 1 minute/bit

range : 0-250 offset : 0

Byte 1 = 31 (hex), converting this to decimal gives 49 multiplying by the scale 49 * 1 = 49 adding the offset 49 + 0 = 49 as such the event occurred on the 49th minute of the hour

Byte 0 contains the second information. From the event breakdown section: scale : 0.25 minute/bit

range : 0-62.5 offset : 0

Byte 0 = C4 (hex), converting this to decimal gives 196

multiplying by the scale 196 * 0.25 = 49 adding the offset 49 + 0 = 49

as such the event occurred on the 49th second of the minute

Related documents