Read /write offset „u“ (55h), Read / write profile number „v“ (56h) – Baumer N 150 User Manual

Page 8

Advertising
background image

N 150

www.baumer.com

8

4.2.4. Read /write offset „U“ (55h)

This command is utilized to read or write the offset that is added to the true actual value. First however the
function must be enabled in command bit parameter ‚a’ (61h).

Example 1: Read offset

SOH

Adr

Cmd

EOT

CRC

Transmission

01h

20h

55h

04h

26h

Example 2: Write offset

SOH

Adr

Cmd

Data (offset = –20,00)

EOT

CRC

Transmission

01h

20h

55h

2Dh

30h

32h

30h

30h

30h

04h

C3h

Response in both examples:

SOH

Adr

Cmd

Data (offset = –20,00)

EOT

CRC

Response

01h

20h

55h

2Dh

30h

32h

30h

30h

30h

04h

C3h


4.2.5. Read / write profile number „V“ (56h)

This command is utilized to read the presently active profile number or to alter the profile.

Example 1: Read active profile (active profile number = 38)

SOH

Adr

Cmd

EOT

CRC

Transmission

01h

20h

56h

04h

20h

SOH

Adr

Cmd Profile no. = 38 EOT

CRC

Response

01h

20h

56h

33h

38h

04h

28h

Response after reset upon having cleared all profiles:

SOH

Adr

Cmd Profil-Nr. = FF

EOT

CRC

Response

01h

20h

56h

3Fh

3Fh

04h

16h


Example 2: Transmit profile (new profile number = 17)

SOH

Adr

Cmd Profile no. = 17 EOT

CRC

Transmission

01h

20h

56h

31h

37h

04h

3E

SOH

Adr

Cmd Profile no. = 17 EOT

CRC

Response

01h

20h

56h

31h

37h

04h

3E


Example 3: New profile to all N 150 by broadcast (identifier = 99 (83h); new profile number = 17)

SOH

Adr

Cmd Profile no. = 17 EOT

CRC

Transmission

01h

83h

56h

31h

37h

04h

04

Response

not confirmed

To check whether the new profile has been adopted by all N150 utilize check command „C“ (43h).

Advertising