
FEMA ELECTRÓNICA . Series K . K40-232
8
1.15 Frame examples
Header
Trail
STX
ID
RSV
FROM
TO
REG
RSV
LONG
CRC
ETX
2
32
32
32
54
32
32
32
52
3
Start
Ping
---
0
22
0
---
0
CRC
Stop
Header
Trail
STX
ID
RSV
FROM
TO
REG
RSV
LONG
CRC
ETX
2
33
32
54
32
32
32
32
53
3
Start
Pong
---
22
0
0
---
0
CRC
Stop
Example - The ‘Master’ (address ‘0’) requests confirmation of ex
-
istence to the ‘Slave’ at address ‘22’ (frame ‘PING’) and the ‘Slave’
answers to the ‘Master’ with a ‘PONG’ frame.
1.15.1 Frames ‘WRA’ (35) and ‘OK’ (39)
Example - The ‘Master’ (address ‘0’) sends a write frame, with re
-
quest of acknowledgment, (frame ‘WRA’) with value ‘65.43’ to reg
-
ister number ‘0’ (display value) to the ‘Slave’ with address ‘28’. The
Header
Data
Trail
STX
ID
RSV
FROM
TO
REG
RSV
LONG
D0 D1 D2 D3 D4
D5
CRC
ETX
2
35
32
32
60
32
32
38
43
54 53 46 52 51 58
3
Start
WRA
---
0
28
0
---
6
+65.43
CRC
Stop
1.15.2 Frame ‘ERR’ (38)
Header
Trail
STX
ID
RSV
FROM
TO
REG
RSV
LONG
CRC
ETX
2
38
32
60
32
33
32
32
57
3
Start
ERR
---
28
0
1
---
0
CRC
Stop
Example - The ‘Slave’ with address ‘28’ answers to the ‘Master’ (ad
-
dress ‘0’) with an error frame (frame ‘ERR’) indicating that the reg
-
ister is unknown (‘UNKNOWN_REGISTER’, error code ‘1’). The error
1.15.3 Frames ‘PING’ (32) and ‘PONG’ (33)
‘Slave’ answers to the ‘Master’ with a ‘ok’ frame (‘OK’). In case of
error, it will answer with a ‘error’ frame (‘ERR’).
code is indicated in the ‘REG’ byte. For a list of error codes see section
Header
Trail
STX
ID
RSV
FROM
TO
REG
RSV
LONG
CRC
ETX
2
39
32
60
32
32
32
32
57
3
Start
OK
---
28
0
0
---
0
CRC
Stop
Содержание K Series
Страница 32: ......