beautypg.com

3 control and status byte – BECKHOFF KL1501 User Manual

Page 13

background image

Terminal configuration

KL1501

11


3.3 Control and Status Byte

The control byte is transmitted from the controller to the terminal. It can be
used
- in register mode (REG = 1

bin

) or

- during process data exchange (REG = 0

bin

).

Control byte during process data exchange

The control byte triggers various actions in the counter terminal KL1501
during process data exchange:


MSB

REG=0 0

CNT_SET

CNT_INH SET_OUT2 SET_OUT1

EN_OUT2

EN_OUT1

Bit

Function

CNT_SET

The counter is set to the value that is specified via the process
data. Setting of the counter can be edge or level-controlled
(see R32.3).

CNT_INH

The counter is stopped as long as this bit is active. In doing so,
the old counter status is retained.
If two counters are active, the second counter can be set with
this bit.

SET_OUT2

Sets the second output

SET_OUT1

Sets the first output

EN_OUT2

This bit enables the internal function activated by R32.

EN_OUT1

This bit enables the internal function activated by R32.


Setting the outputs
OUT1, OUT2

The functions for setting the outputs can be armed with the control bits
EN_OUT1, EN_OUT2. The control bits SET_OUT1 and SET_OUT2 are
ignored when EN_OUT1, EN_OUT2 is set.

Status byte during process data exchange

The status byte is transferred from the terminal to the control system. The
status byte contains various status bits of the counter terminal KL1501:


MSB

REG=0

0

SET_ACC

INH_ACC

ST_OUT2

ST_OUT1

ST_V/R

ST_CLK

Bit

Function

SET_ACC

The data for setting the counter has been accepted from the
terminal.

INH_ACC

The counter is stropped for as long as this bit is set.

ST_OUT2

The status of output OUT2 is reflected in this bit.

ST_OUT1

The status of output OUT1 is reflected in this bit.

ST_V/R

The status of the V/R input is reflected in this bit.

ST_CLK

The status of the CLOCK input is reflected in this bit.