3 read / write profile number „v“ (56h), 4 check position „c“ (43h) – Baumer N 155 User Manual
Page 7

N 155
www.baumer.com
7
Example 2: Read target of a specific profile (profile number = 17; target = 12.50)
SOH
Adr
Cmd Profil-Nr. = 17
EOT
CRC
Send
01h
20h
53h
31h
37h
04h
16h
SOH
Adr
Cmd Profil-Nr. = 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 specific profile (profile number = 17; target = -12.50)
s
SOH
Adr
Cmd Profil-Nr. = 17
target = -12.50
EOT
CRC
Send
01h
20h
53h
31h
37h
2Dh
30h
31h
32h
35h
30h
04h
FBh
SOH
Adr
Cmd Profil-Nr. = 17
target = -12.50
EOT
CRC
Response
01h
20h
53h
31h
37h
2Dh
30h
31h
32h
35h
30h
04h
FBh
4.2.3 Read / write profile number „V“ (56h)
This command is for reading the number of the presently active profile respectively for altering 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 no. = 38 EOT
CRC
Response
01h
20h
56h
33h
38h
04h
28h
Response after reset upon clearing all profiles:
SOH
Adr
Cmd Profile no. = FF EOT
CRC
Response
01h
20h
56h
3Fh
3Fh
04h
16h
Example 2: Send new profile (New profile number = 17)
SOH
Adr
Cmd Profile no. = 17 EOT
CRC
Send
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: Send new profile by broadcast command to each N 155 (Adr = 99 (83h); new profile number = 17)
SOH
Adr
Cmd Profile no. = 17 EOT
CRC
Send
01h
83h
56h
31h
37h
04h
04
Response
No confirmation
To check whether the new profile has been entered by all N 155 in the network, check command „C“ (43h) can
be applied.
4.2.4 Check position „C“ (43h)
This command is providing the alignment status of target versus current value. If current value is in coincidence
with target the response will be „o“ (6Fh) for OK together with the current profile number. If the running value is
beyond the target, „x“ (78H) followed by the current profile number will be replied.
Example: (active profile number = 05)
SOH
Adr
Cmd
EOT
CRC
Send
01h
20h
43h
04h
0Ah
Response if current value = target:
SOH
Adr
Cmd Status Profile no. = 05 EOT
CRC
Response
01h
20h
43h
6Fh
30h
35h
04h
A5h
Response if current value
≠ target:
SOH
Adr
Cmd Status Profile no. = 05 EOT
CRC
Response
01h
20h
43h
78h
30h
35h
04h
1D