Access from the user program
KL5121
35
Version: 3.1.0
Input data word 1
Input data word EW1 is entered into the table during a write access by the controller.
Bit no.
Meaning
Bit 0 - 15
Entry in the output table
Output table
The appropriate values for the corresponding function must be entered into the output table (max. 60
switching values).
Index
Entry
0
Number N of entries for the first output
1
Number M of entries for the second output
2
Number O of entries for the third output
3
Number P of entries for the fourth output
4
Switch value 1 channel 1
…
N+4
Switch value N channel 1
N+5
Switch value 1 channel 2
...
N+M+4
Switch value M channel 2
N+M+5
Switch value 1 channel 3
…
N+M+O+4
Switch value O channel 3
N+M+O+5
Switch value 1 channel 4
N+M+O+P+4 Switch value P channel 4
5.5.2
Register communication
Register access via process data exchange
•
Bit 7=1: Register mode
If bit 7 of the control byte is set, the first two bytes of the user data are not used for process data
exchange but written into the register set of the terminal or read from it.
•
Bit 6=0: read, bit 6=1: write
Bit 6 of the control bytes is used to specify whether a register should be read or written.
◦
Bit 6=0:
A register is read without changing it. The value can be found in the input process image.
◦
Bit 6=1:
The user data are written into a register. The process is complete once the status byte in
the input process image has returned an acknowledgment (see example).
•
Bit 0 to 5: Address
The address of the register to be addressed is entered in bits 0 to 5 of the control byte
Содержание KL5121
Страница 2: ......
Страница 4: ...Table of content KL5121 4 Version 3 1 0...