Check position „c“ (43h), Read actual value „r“ (52h), Read / write target (profile) „s“ (53h) – Baumer N 150 User Manual

Page 7

Advertising
background image

N 150

www.baumer.com

7

4.2.1. Check Position „C“ (43h)

This command provides the alignment status of target versus actual value. If the actual value is within the target
tolerance window, the response will be „o“ (6Fh) for OK together with the current profile number. If the actual
value is outside the tolerances, „x“ (78H) followed by the current profile number will be replied.

Example: (active profile number = 05)

SOH Adr Cmd EOT CRC

Transmission

01h 20h 43h

04h 0Ah

Response if actual value is within the tolerances:

SOH Adr Cmd Stat. Profile no.=05 EOT CRC

Response

01h 20h 43h 6Fh 30h 35h 04h A5h

Response in case of actual value is outside the tolerances:

SOH Adr Cmd Stat. Profile no.=05 EOT CRC

Response

01h 20h 43h

78h 30h

35h 04h 1D


4.2.2. Read actual value „R“ (52h)

This command is utilized to read the 5-digit actual value (bottom line of display). The amount of data is always 6
bytes. In case of a negative value, the “minus“ sign (2Dh) together with 5 data bytes is replied. Positive values
are represented by 6 data bytes without sign. Values of less than 5 (4) digits will come with preceding zeroes.
Please note that N 150 provides a 5-digit actual value.

Example: Actual value = -32.50

SOH

Adr

Cmd

EOT

CRC

Transmission

01h

20h

52h

04h

40h

SOH

Adr

Cmd

Actual value = –32.50

EOT

CRC

Response

01h

20h

52h

2Dh

30h

33h

32h

35h

30h

04h

54h


4.2.3. Read / write target (profile) „S“ (53h)

This command is utilized to read the presently active target (profile value) respectively to read or write a specific
target. Data are composed by profile number (2 bytes) and target (6 bytes). Note: Negative targets are
transmitted as 5-digit number (see example 3). Please consider that SPA targets comprise 5 digits only.

Example 1: Read active target (profile number = 12; target = 12.50)

SOH

Adr

Cmd

EOT

CRC

Transmission

01h

20h

53h

04h

2A

SOH

Adr

Cmd Profile no. = 12

Target = 12.50

EOT

CRC

Response

01h

20h

53h

31h

32

30h

30h

31h

32h

35h

30h

04h

3E

Response upon clearing all targets:

SOH

Adr

Cmd

Profile no. =

FFh

Target = FFFFFFh

EOT

CRC

Response

01h

20h

53h

3Fh

3F

3Fh

3Fh

3Fh

3Fh

3Fh

3Fh

04h

2Ah


Example 2: Read specific target (profile number = 17; target = 12.50)

SOH

Adr

Cmd Profile no. = 17 EOT

CRC

Transmission

01h

20h

53h

31h

37h

04h

16h

SOH

Adr

Cmd Profile no. = 17

Target = 12.50

EOT

CRC

Response

01h

20h

53h

31h

37h

30h

30h

31h

32h

35h

30h

04h

BCh


Example 3: Write specific target (profile number = 17; target = -12.50)

s

SOH

Adr

Cmd Profile no. = 17

Target = -12.50

EOT

CRC

Transmission

01h

20h

53h

31h

37h

2Dh

30h

31h

32h

35h

30h

04h

FBh

SOH

Adr

Cmd Profile no. = 17

Target = -12.50

EOT

CRC

Response

01h

20h

53h

31h

37h

2Dh

30h

31h

32h

35h

30h

04h

FBh

Advertising