BECKHOFF KL5121 User Manual

Page 14

Advertising
background image

Data transfer, function

14

KL5121


Status byte 0

The state of the inputs can be read through status byte 0.

MSB

REG=0

ERROR_

BIT

(reserved)

A_INPUT

B_ INPUT

LATCH_

INPUT


Output data word 0

The current counter state is read in the terminal’s output data word zero.
The terminal supplies output word zero.

Bit No.

Meaning

Bit 0-15

Current encoder counter state

Input data word 0

Channel-specific enables are made via the terminal’s input word zero.
A nibble of the data word is reserved for each channel.

Channel 1:

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 operating 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 used 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: the terminal’s input data word 1

Controller input data

ST-1: status byte 1
D0-1, D1-1: the terminal’s output data word 1

Control byte 1

Control byte 1 is transmitted from the controller to the terminal, and is used
for access to the output table.

Advertising