
FEMA ELECTRÓNICA . Series K . K40-232
6
1.13 ASCII protocol - Types of frames
The ASCII protocol used defines the following types of frames :
• Frame ‘write’ (‘
WR
’). Identifier 34. Frame to write data into a regis
-
ter. The register number is indicated in the ‘REG’ byte (section ‘Head
-
er’). Bytes ‘D0’ to ‘Dn’ (section ‘Data’) contain the data to write.
• Frame ‘write with acknowledgment’ (‘
WRA
’). Identifier 35. Frame
to write data into a register, with acknowledgment of success. The
register number is indicated in the ‘REG’ byte (section ‘Header’).
Bytes ‘D0’ to ‘Dn’ (section ‘Data’) contain the data to write. The in
-
strument will reply with a ‘ok’ frame (‘
OK
’) if the writing action suc
-
ceeded, or with a ‘error’ frame (‘
ERR
’) if the writing action did not
succeed.
• Frame ‘ok’ (‘
OK
’). Identifier 39. Informs that the action of writing
data into a register, was successful. This is a response frame to a
‘write with acknowledgment’ frame (‘
WRA
’).
• Frame ‘error’ (‘
ERR
’). Identifier 38. Informs that the data read (‘
RD
’)
or data write (‘
WRA
’) did not succeed. The error code is codified into
the ‘REG’ byte (section ‘Header’). For a list of error codes see section
• Frame ‘read’ (‘
RD
’). Identifier 36. Frame to request the data value
of a register. The register number is indicated in the ‘REG’ byte (sec
-
tion ‘Header’).
• Frame ‘answer’ (‘
ANS
’). Identifier 37. Response frame containing
the requested data of a ‘read’ frame. The register number is indi
-
cated inthe ‘REG’ byte (section ‘Header’). Bytes ‘D0’ to ‘Dn’ (section
‘Data’) contain the requested data.
• Frame ‘ping’ (‘
PING
’). Identifier 32. Frame ‘ping’ is a request of
existence to the remote instrument. The remote instrument will an
-
swer with a ‘pong’ frame.
• Frame ‘pong’ (‘
PONG
’). Identifier 33. Frame ‘pong’ is a response
frame to a ‘ping’ frame. It confirms the existence of the remote in
-
strument.
• Frame ‘write’ (‘
WR
’)
Example, write of the display value.
• Frame ‘write with acknowl-
edgment’ (‘
WRA
’)
• Frame ‘ok’ (‘
OK
’) ...
• ... or frame ‘error’ (‘
ERR
’)
Example, write of the display value with
request of confirmation. Confirmation is a
‘ok’ frame or a ‘error’ frame.
• Frame
‘read’ (‘
RD
’)
• Frame ‘answer’ (‘
ANS
’) ...
• ... or frame ‘error’ (‘
ERR
’)
Example, reading of the display value and
response from the remote instrument
with the value of the display register.
• Frame
‘ping’ (‘
PING
’)
• Frame ‘pong’ (‘
PONG
’)
Example, confirmation that the remote in
-
strument exists and is operative. Answer is
a ‘pong’ frame.
Units
Units
Units
Units
Содержание K Series
Страница 32: ......