
Access from the user program
KL6021-0023 and KL6023
25
Version: 2.0.0
6
Access from the user program
6.1
Process image
The KL6021-0023 is represented in the process image with 12 bytes of input data and 12 bytes of output
data. These are organized as follows:
Byte offset
Format
Input data
Output data
0
Byte
Status byte (
Control byte (
)
1
Byte
DataIn0
DataOut0
2
Byte
DataIn1
DataOut1
3
Byte
DataIn2
DataOut2
4
Byte
DataIn3
DataOut3
5
Byte
DataIn4
DataOut4
6
Byte
DataIn5
DataOut5
7
Byte
DataIn6
DataOut6
8
Byte
DataIn7
DataOut7
9
Byte
DataIn8
DataOut8
10
Byte
DataIn9
DataOut9
11
Byte
DataIn10
DataOut10
6.2
Control and status byte
Register communication
Control byte (for register communication)
The control byte (CB) is located in the
, and is transmitted from the controller to the
terminal.
Bit
CB.7
CB.6
CB.5
CB.4
CB.3
CB.2
CB.1
CB.0
Name
RegAccess
R/W
Reg. no.
Key
Bit
Name
Description
CB.7
RegAccess
1
bin
Register communication switched on
CB.6
R/W
0
bin
Read access
1
bin
Write access
CB.5 to
CB.0
Reg. no.
Register number:
Enter the number of the
that you want to read or write here.
Status byte (for register communication)
The status byte (SB) is located in the
, and is transmitted from the terminal to the
controller.
Bit
SB.7
SB.6
SB.5
SB.4
SB.3
SB.2
SB.1
SB.0
Name
RegAccess
R/W
Reg. no.
Содержание KL6021-0023
Страница 2: ......
Страница 4: ...Table of contents KL6021 0023 and KL6023 4 Version 2 0 0...