User guide

N 141
www.baumer.com 8
4.2.3. Read current value and key status, command „T“ (54h)
This command is for readout the 6-digit current value (bottom line of the display) as well as the key status.
Amount of data is always 7 byte. Negative values will come with a “-“ sign (2Dh) together with 5 data bytes.
Positive values are transmitted by 6 data bytes less any sign. Values inferior to 6 (5) digits come with preceding
zeroes. The 7
th
data byte is comprising the key status. A readout operation is deleting the status of the actuated
key (21hex) so that any further readout will always be 20hex. Status 1 (21hex) will not be restored until the key
is actuated again.
Example: Current value = -32,50
SOH Adr Cmd EOT CRC
Transmission
01h 20h 54h 04h 40h
SOH Adr Cmd Current value = –32,50 key EOT CRC
Response
key = 0
01h 20h 54h
2Dh 30h 33h 32h 35h 30h 20h
04h E2h
SOH Adr Cmd Current value = –32,50 key EOT CRC
Response
key = 1
01h 20h 54h
2Dh 30h 33h 32h 35h 30h 21h
04h E0h
4.2.4. Read / write parameter target (profile), command „S“ (53h)
This command is for the presently active target readout or for programming respectively reading a specific
target. The data are composed of profile number (2 bytes) and target (6 bytes). Important: Negative targets
come with 5 digits only (see example no. 3).
Example 1: Read active target (current 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 deletion of 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 target of a specific profile (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 target of a specific profile (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
s