N 141, Example 1: restore default at specific n 141, Code configuration of the transmitted device type – Baumer N 141 User Manual

Page 18

Advertising
background image

N 141

www.baumer.com

18

4.5.2. N 141 restore default, command „Q“ (51h)

This command restores default either of individual or collective parameters.

Data = p (70h) = clear offset. Tool radius is again 0,00

Data = q (71h) = restore default

Data = t (74h) = Device identifier = 98

Data = x (78h) = Multiturn counter is set to 4096 corresponding to 0.

Data = ∆ (7Fh) = All above functions are enabled.

Note: No profile reset. Profile reset by command „R“.

Example 1: Restore default at specific N 141

SOH

Adr

Cmd

Data

EOT

CRC

Transmission

01h

20h

51h

7Fh

04h

AEh

SOH

Adr

Data

EOT

CRC

Response

01h

20h

6Fh

04h

52h Device replies by standard response ‚o’ (6Fh) = OK


Example 2: Restore default at all N 141 by broadcast command (identifier = 99)

SOH

Adr

Cmd

Data

EOT

CRC

Transmission

01h

83h

51h

7Fh

04h

B3

Response

Not confirmed

4.5.3. Read version, device type or serial number, command „X“ (58h)

This command is for reading version number, device type or serial number. The following sub-commands are
available:

Data = V (56h) = read version

Data = T (54h) = read device type

Data = S (53h) = read serial number


Example 1: Read version

SOH

Adr

Cmd

Data

EOT

CRC

Transmission

01h

20h

58h

56h

04h

D8h

SOH

Adr

Cmd

Data

Version number = 2.00

EOT

CRC

Response

01h

20h

58h

56h

20h

32h

30h

30h

04h

FAh



Example 2: Read device type (device type = N 141; 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 81h 81h

04h 6Eh


Code configuration of the transmitted device type:

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

┬ ──────┬────── ┬ ───────┬─────
│ │ │ └─────── software no. 01h = software 01
│ │ └──────────────── permanent 1
│ └────────────────────────── device type 01h = N 141
└────────────────────────────────── permanent 1


Advertising