Read / set profile number „v“ (56h), Read/ set offset „u“ (55h), N 143 – Baumer N 143 User Manual
Page 13: Response after reset upon deletion of all profiles, Example 2: set offset, Response in both examples
N 143
www.baumer.com
13
4.2.6. Read / set profile number „V“ (56h)
This command reads the number of the presently active profile respectively will change the profile.
Example 1: read active profile (active profile number = 38)
SOH Adr Cmd EOT CRC
Send
01h 20h 56h 04h 20h
SOH Adr Cmd Profile #=38 EOT CRC
Response
01h 20h 56h 33h 38h 04h
28h
Response after reset upon deletion of all profiles:
SOH Adr Cmd Profile #=FF EOT CRC
Response
01h 20h 56h 3Fh 3Fh 04h
16h
Example 2: transmit new profile (new profile number = 17)
SOH Adr Cmd Profile #=17 EOT CRC
Send
01h 20h 56h 31h 37h 04h
3E
SOH Adr Cmd Profile #=17 EOT CRC
Response
01h 20h 56h 31h 37h 04h
3E
Example 3: transmit new profile to all devices by broadcast command (adr = 99 (83h) ; new profile no. = 17)
SOH Adr Cmd Profile #=17 EOT CRC
Send
01h 83h 56h 31h 37h 04h
04
Response
no confirmation
Command „C“ (43h) may be used to verify whether all SPAs have adopted the new profile.
4.2.7. Read/ set offset „U“ (55h)
This command reads or sets the offset which is added to the true current value. First the
functionality 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: Set offset
SOH Adr Cmd
data (offset = –20,00)
EOT CRC
Tranmission
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