
Access from the user program
6
Access from the user program
6.1
KL5151-0000
6.1.1
Process image
In the process image, the KL5151 is represented with 5 bytes of input and output data. These are organized
as follows:
Format
Input data
Output data
Byte
SB [
}
30]
CB [
}
29]
Double
word
DataIN
DataOUT
Legend
SB: Status byte
CB: Control byte
DataIN: The current value of the 32-bit counter, or the one stored in the latch (the selection is made with bit
CB1.1 [
}
29]
of the control byte)
DataOUT: Value specified for the 32 bit counter
• Please refer to the
Mapping [
}
31]
page for the allocation of the bytes and words to the addresses of
the controller.
• The meaning of the control and status bytes is explained on the
Control and Status bytes [
}
29]
page.
Note
No compact process image
Operation of the KL5151-0000 with compact process image (without control and status
bytes) is not possible, since the control and status bytes are required for useful process
data operation of the terminal. Even if you adjust your Bus Coupler to the compact process
image, the KL5151-0000 will still be represented with its complete process image!
KL5151/KS5151, KL5152/KS5152
28
Version: 2.0.0