N 141, Example: serial number for june 1 – Baumer N 141 User Manual

Page 19

Advertising
background image

N 141

www.baumer.com

19

Example 3: Read serial number

SOH

Adr

Cmd

Data

EOT

CRC

Transmission

01h

20h

58h

53h

04h

D2h

SOH

Adr

Cmd Data

Serial number code = 15830EA4

EOT

CRC

Response

01h

20h

58h

53h

31h

35h

38h

33h

30h

3Eh

3Ah

34h

04h

63h

Code configuration of the transmitted serial number:

The Low-Nibble (lower 4 bits of a byte) of the 8 data bits received equal together a 4 byte value comprising the
serial number.
The serial number is composed by date and time of production. Due to also the seconds being coded and by
assigning only one number per second the serial number is unique.

Example: Serial number for June 1

st

, 2005 / 01.06.2005 16:58:36 = 15 83 0E A4 hex

X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Bit position

J J J J J J M M M M T T T T T h h h h h m m m m m m s s s s s s contents

0 0 0 1 0 1 0 1 1 0 0 0 0 0 1 1 0 0 0 0 1 1 1 0 1 0 1 0 0 1 0 0 ex.= 15 83 0E A4 hex

─────┬───── ────┬──── ────┬──── ─────┬───── ──────┬────── ─────┬─────

│ │ │ │ │ └─────── sec. 0

0100 = 24h= 36d

│ │ │ │ └──────────────────── min.11

1010 = 3Ah= 58d

│ │ │ └───────────────────────────────── hours 1

0000 = 10h= 6d

│ │ └──────────────────────────────────────────── day 0

0001 = 01h= 01d

│ └────────────────────────────────────────────────────── month

0110 = 06h= 06d

└───────────────────────────────────────────────────────────────── year 00

0101= 05h= 05d

01.06.05 16:58:36 <──────┘

Advertising