Read / write parameter offset, command „u“ (55h), Align current value with preset, command „z“ (5ah), N 140 – Baumer N 140 User Manual

Page 9: Example 2: write offset, Response in both examples, Current value, Preset offset + offset

Advertising
background image

N 140

www.baumer.com

9

Response after reset upon deletion of all profiles:

SOH

Adr

Cmd Profile no. = FF EOT

CRC

Response

01h

20h

56h

3Fh

3Fh

04h

16h


Example 2: Transmit new 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: Transmit new profile by broadcast command to all N 140 (Identifier = 99 (83h); new profile no. =
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 accepted by all N140 utilize check command „C“ (43h).

4.2.5. Read / write parameter offset, command „U“ (55h)


This command is to read or write the offset that is added to the true current 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.6. Align current value with preset, command „Z“ (5Ah)

The Z command is for setting the current value to any optional position. The required position value is
transmitted to the SPA. The SPA will calculate a so-called “preset offset” -value relating to the true absolute
sensor position. When calculating the preset offset any programmed offset transmitted by command “U” will be
considered, so that after having accomplished the “Z” command the current value always equals the preset.

The current value displayed is composed as follows:

Current

value

Anz

= current value

Abs

+ Preset offset + Offset

Current value

Anz

current value displayed and read out by interface

Current value

Abs

internal absolute current value.

Preset offset

Offset generated by command „Z“.

Offset

Additional offset defined by command „U“. This function however must be enabled in
command bit parameter ‚a’ (61h), otherwise offset = 0.


Example 1: Readout current preset

SOH Adr Cmd EOT CRC

Transmission

01h 20h 5Ah 04h 38h

SOH Adr Cmd

Preset = 2,50

EOT CRC

Response

01h 20h 5Ah 30h 30h 30h 32h 35h 30h

04h

27h


Advertising