Access from the user program
KL5121
34
Version: 3.1.0
Nibble
Meaning
0000
No enable is present. If the automatic switching function was previously active, it is
reset, so that if a workpiece has already been picked up it will not be processed
further when the automatic function becomes active again.
0001
Enable for the automatic switching function
0111
Enable for the "glue nozzle test". If the automatic switching function was previously
active it is interrupted, and is continued again when there is a change of operation
mode, provided that the enable is not reset (e.g. from 0001 to 0111 to 0001)
0011
Output to high level. Interruption of the switching function if it was previously active.
0101
Output to low level. Interruption of the switching function if it was previously active.
The other nibbles for channels 2 - 4 are occupied similarly.
Data channel 1
Data channel 1 transfers the switch values to the terminal. They are temporarily stored in the terminal’s
RAM. Access to this data set is identical to access to the terminal’s register set.
Controller output data
CT-1: Control byte 1
D0-1, D1-1: input data word 1 of the terminal
Controller input data
ST-1: Status byte 1
D0-1, D1-1: output data word 1 of the terminal
Control byte 1
Control byte 1 is transmitted from the controller to the terminal, and is used for access to the output table.
Bit no.
Meaning
Bit 0 - 5
000000-111111 Address bits A0 to A5 of the output table
Bit 6
0/1
0: Read
1: Write
Bit 7
0/1
Table bit
This bit must be set for table accesses. If the controller sees a falling edge
in the terminal here, evaluation of the output table is started, so that, if
sorting or other tasks are necessary, they will be performed.
Status byte 1
Status byte 1 is transmitted from the terminal to the controller.
Bit no.:
Meaning
Bit 0 - 5
000000-111111 Address bits A0 to A5 of the output table
Bit 6
0/1
don´t care
Bit 7
1
Acknowledge for table access
Output data word 1
Output data word AW1 returns the addressed table entry when a table is accessed.
Bit no.
Meaning
Bit 0 - 15
Content of the addressed table entry
Содержание KL5121
Страница 2: ......
Страница 4: ...Table of content KL5121 4 Version 3 1 0...