Read version or serial number „x“ (58h), N 143, Structure of the encoded device type transmitted – Baumer N 143 User Manual

Page 26: Example 3: read out serial number, Structure of the encoded serial number transmitted

Advertising
background image

N 143

26 www.baumer.com

4.5.3. Read version or serial number „X“ (58h)

This command reads out version number, device type or serial number. The following sub-commands are avail-
able:

Data = V (56h) = read out version number

Data = T (54h) = read out device type

Data = S (53h) = read out serial number


Example 1: Read out version number

SOH Adr Cmd Data EOT CRC

Transmission

01h 20h 58h 56h 04h D8h

SOH Adr Cmd Data Versionsnummer = 2.00 EOT CRC

Response

01h 20h 58h 56h 20h 32h 30h 30h

04h FAh


Example 2: Read out device type (Device type = 82h = N 143; software no. = 01)

SOH Adr Cmd Data EOT CRC

Transmission

01h 20h 58h 54h 04h DCh

SOH Adr Cmd Data

Typ

EOT CRC

Response

01h 20h 58h 54h 82h 81h

04h 6Eh

Structure of the encoded device type transmitted:

1 0 0 1 0 1 0 1 1 0 0 0 0 0 0 1 = 95 81 hex

┬ ──────┬────── ┬ ───────┬─────
│ │ │ └─────── software no. 01h = software 01
│ │ └──────────────── ever 1
│ └────────────────────────── device type 15h = N 155
└────────────────────────────────── ever 1


Example 3: Read out serial number

SOH Adr Cmd Data EOT CRC

Transmission

01h 20h 58h 53h 04h D2h

SOH Adr Cmd Data

Encoded serial number = 07090EA4

EOT CRC

Response

01h 20h 58h 53h 30h 37h 30h 39h 30h 3Eh 3Ah 34h

04h

20h



Structure of the encoded serial number transmitted:

The Low-Nibble (lower 4 bits of a byte) of the 8 data bytes received equal a 4-byte value encoding the serial
number.
The serial number is composed of production date and time. Since the seconds come encoded as well and per
second only one number will be allocated, the serial number is unique and unambiguous.

Example: serial number for production date and time 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 content

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 example = 15 83 0E A4 hex

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

│ │ │ │ │ └─────── seconds 10

0100 = 24h = 36d

│ │ │ │ └──────────────────── minutes 11

1010 = 3Ah = 58d

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

1

0000 = 10h = 16d

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

0001 = 01h = 01d

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

0110 = 06h = 06d

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

0101 = 05h = 05d

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

Advertising