5136-DNP-PCI
Hardware Reference
© 1999 SST/Woodhead Canada Limited
14
4.5.3 Application Module Header
The following table defines the layout of the Application Module Header. The non-shaded sections of the table are
common to all application modules for the 5136-DNP-PCI. The shaded areas are either optional or the function is
determined by the application module. See the application module reference guide for details.
Offset
Name
Data Type
Description
0000h
ModuleType
CHAR[2]
"DN" (0444eh) = card OK
"ER" (04552h) = fatal error
0002h
WinSize
UINT2
Set by loader to indicate host interface window size.
0 = 16K, 1 = 32K, 2 = 64K, 3=128K
0004h
CardId
UINT2
For host application use
0006h
Kernel Id
UINT2
Kernel identification.
0x01 = CAN 2.0A kernel
0x02 = CAN 2.0B kernel
0008h
Kernel Rev
UINT2
Kernel Revision
000ah
ModuleId
UINT2
Module Id.
000ch
ModuleRev
UINT2
Module revision.
000eh
NetSerial
UINT4
DeviceNet serial number.
0012h
CardType
CHAR[16]
Card type. (i.e. "5136-DNP-PCI")
0022h
CardSerial
CHAR[8]
Card Serial number.
002ah
IrqControl
1
UINT2
Card interrupt control.
002ch
IrqStatusA
1
UINT1
Card interrupt status.
002dh
IrqStatusB
1
UINT1
002eh
MainCode
1
UINT2
Main Application Error Code
0030h
CanStatus
UINT2
CAN status word.
0032h
CanTx
UINT2
CAN transmit counter. Incremented when messages are
submitted to the CAN controller.
0034h
CanAck
UINT2
CAN ack error counter. Incremented when a transmit message is
aborted due to lack of acknowledgment from other stations. When
CanAck is incremented, CanTx is decremented to compensate for
messages not actually transmitted.
0036h
CanRx
2
UINT2
CAN receive counter. Incremented when messages are received.
Messages that fail the receive filter still increment CanRx.
0038h
CanError
UINT2
CAN communication error counter. Incremented when a CAN
frame error is detected.
003ah
CanLost
2
UINT2
CAN lost messages counter. Incremented when a CAN message
is received before the previous one is queued.
003ch
CanOverrun
2
UINT2
CAN receive queue overrun counter. Incremented when a CAN
message is lost due to a full receive queue.
003eh
AddCode
1
UINT2
Additional Application Error Code
0040h
Message
CHAR[60]
When ModuleType is "DN", contains the module identification
string. When ModuleType is "ER”, contains the kernel error string.
007ch
MajorTickInterval
UINT2
Major Tick Interval (equivalent of system timebase)
007eh
MinorTickCount
UINT2
Number of minor ticks per major tick interval
0080h
Application
1
Undefined
Application host interface. The format of this area is defined by the
application module.
1
Format / meaning defined by the application module, see module documentation
2
May not be supported by the application module, see module documentation
StockCheck.com