Access from the user program
KL320x
49
Version: 4.4
5.7.2
Example 1
Reading of register 8 in the BK2000 with a KL3202 and the end terminal:
If the following bytes are transferred from the control to the terminal,
Byte
Byte 3
Byte 2
Byte 1
Byte 0
Name
DataOUT 1
DataOUT 0
Not used
Control byte
Value
0xXX
0xXX
0xXX
0x88
the terminal returns the following type identifier (0x0C82 corresponds to unsigned integer 3202).
Byte
Byte 3
Byte 2
Byte 1
Byte 0
Name
DataIN 1
DataIN 0
Not used
Status byte
Value
0x0C
0x82
0x00
0x88
5.7.3
Example 2
Writing of register 31 in the BK2000 with an intelligent terminal and the end terminal:
If the following bytes (code word) are transferred from the control to the terminal,
Byte
Byte 3
Byte 2
Byte 1
Byte 0
Name
DataOUT 1
DataOUT 0
Not used
Control byte
Value
0x12
0x35
0xXX
0xDF
the code word is set, and the terminal returns the register address with bit 7 for register access as
acknowledgement.
Byte
Byte 3
Byte 2
Byte 1
Byte 0
Name
DataIN 1
DataIN 0
Not used
Status byte
Value
0x00
0x00
0x00
0x9F