Read current value „r“ (52h), Read / write target (profile) „s“ (53h), N 143 – Baumer N 143 User Manual

Page 11: Response upon having cleared all targets

Advertising
background image

N 143

www.baumer.com

11

4.2.4. Read current value „R“ (52h)

This command reads the 6-digit current value (lower line of display). Data length is always 6 bytes. In case of a
negative value, the negative sign (2Dh) will be returned together with 5 data bytes. Positive values come in 6
data bytes without sign. Values inferior to 6 (5) digits will come with leading zeroes.

Example: current value = -32.50

SOH Adr Cmd EOT CRC

Transmission

01h 20h 52h 04h 28h

SOH Adr Cmd

Current value = –32,50

EOT CRC

Response

01h 20h 52h 2Dh 30h 33h 32h 35h 30h

04h

54h

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

This command reads the presently active target, sets a specific target respectively reads out latter. Data com-
prise profile number (2 bytes) and target (6 bytes). Important: Negative targets come as a 5 digit number (see
example no. 3)

Example 1: read target of the current profile (current profile number = 12; target = 12.50)

SOH Adr Cmd EOT CRC

Transmission

01h 20h 53h 04h 2A

SOH Adr Cmd Profile =12

target = 12,50

EOT CRC

Response

01h 20h 53h 31h

32

30h

30h

31h

32h

35h

30h

04h

3E

Response upon having cleared all targets:

SOH Adr Cmd Profile=FFh

target = FFFFFFh

EOT CRC

Response

01h 20h 53h 3Fh 3F 3Fh 3Fh 3Fh 3Fh 3Fh 3Fh 04h 2Ah


Beispiel 2: Read target of a specific profile (profile number = 17; target = 12,50)

SOH Adr Cmd Profile =17 EOT CRC

Transmission

01h 20h 53h 31h 37h 04h

16h

SOH Adr Cmd Profile =17

target = 12,50

EOT CRC

Response

01h 20h 53h 31h 37h 30h 30h 31h 32h 35h 30h

04h BCh


Example 3: Set target in a specific profile (profile number = 17; target = -12.50)

SOH Adr Cmd Profile =17

target = -12,50

EOT CRC

Transmission

01h 20h 53h 31h 37h 2Dh 30h 31h 32h 35h 30h

04h FBh

SOH Adr Cmd Profile =17

target = -12,50

EOT CRC

Response

01h 20h 53h 31h 37h 2Dh 30h 31h 32h 35h 30h

04h FBh


Note: Instead of command „S“ you may also use command „SP“. Functionality is fully identical to command
„S“. Due to the equal length of protocol it might be easier using SP in conjunction with command SD.

Example 4: As example 3, but using command „SP“

SOH Adr Cmd Sub Profile=17

target = -12,50

EOT CRC

Transmission

01h 20h 53h 50h 31h 37h 2Dh 30h

31h

32h

35h

30h

04h

29h

SOH Adr Cmd Sub Profile=17

target = -12,50

EOT CRC

Response

01h 20h 53h 50h 31h 37h 2Dh 30h

31h

32h

35h

30h

04h

29h


Advertising