C
T
U
-M
x
x
NETRONIX CTU-Mxx
NETRONIX .
34
Example:
If using C_GetEventParam command, we have red that event memory capacity is
4400 inputs; the total value of input events is 5678. For instance, if we want to read
the event with no. 5600, event index event of interest will be 5678-4400=1278.
If we want to read the last event, we can use Pointer value. The last event index will
be Pointer-1.
5.12.4.
Reading the events
Command frame:
Header C_GetEvent
EvNoL, EvNoH
CRC
Wherein:
Parameter name
Parameter description
Value range
C_GetEvent
0x7a
Reading the event
0x7a
EvNoL,EvNoH
LSB and MSB of event index
Response frame:
Header C_G1
YY,MM,DD,hh,mm,ss,type,
B1,B2,B3,B4,B5
OperationCode CRC
YY,MM,DD – year, month, day of event occurrence
hh,mm,ss
- hour, minute, second of event occurrence
type
- event type
Depending on value “type” the 8-th bit of byte, there are distinguished two
assignments:
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
0 – card
Out
of
memory
Removed Added
reserved Master Outside
base
Inside
base
1 -inputs reserved reserved reserved N4
N2
N1
N0
N4:N0 –number of input, on which event trigger signal appeared.
If given event was related to card, the B1-B5 bytes comprise card ID number.
B1
B2
B3
B4
B5
UID1
UID2
UID3
UID4
UID5 (Unique)
If event is related to input change, B1-B5 bytes comprise information regarding
input state, and have format:
B1
B2
B3
B4
B5
IO0 IO1 IO2 IO3 Reserved
Reserved
Reserved
Reserved