3 control and status byte, 2 terminal-specific register description – BECKHOFF KL1512 User Manual
Page 11

Terminal configuration
KL1512
9
3.2.2 Terminal-specific register description
The KL1512 has no terminal specific registers!
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 KL1512
during process data exchange:
Bit
7
6
5
4
3
2
1
0
Name
REG=0
0
CNT_SET
CNT_INH
0
CNT_OVL
CNT_CLR
CNT_DEC
Bit
Name
Function
7
REG
0 for Process data mode
6
0
not used
5
CNT_SET
The counter is set to the value that is specified via the
process data. Setting of the counter is edge controlled.
4
CNT_INH
If this bit is set, the counter is stopped. The present
counter value is saved.
3
0
not used
2
CNT_OVL
If this bit is set, the counter is stopped,
- if it reaches 0xFFFF while counting forwards
- if it reaches 0x0000 while counting backwards
1
CNT_CLR
The counter is set to the value 0x0000. Setting of the
counter is edge controlled.
0
CNT_DEC
If this bit is set, the counter is decremented with every
positive edge.
Status byte during process data exchange
The status byte is transferred from the terminal to the control system. It
acknowledges the bits of the control byte.:
Bit
7
6
5
4
3
2
1
0
Name
REG=0
0
SET_ACK
INH_ACK
0
OVL_ACK
CLR_ACK
DEC_ACK
Bit
Name
Function
7
REG
0 for Process data mode
6
0
not used
5
SET
_ACK
Acknowledgement for CNT_SET: The data for setting
the counter was taken over by the terminal.
4
INH
_ACK
Acknowledgement for CNT_INH: The counter is
stopped.
3
0
not used
2
OVL
_ACK
Acknowledgement for CNT_OVL: If this bit is set, the
counter is stopped,
- if it reaches 0xFFFF while counting forwards
- if it reaches 0x0000 while counting backwards
1
CLR
_ACK
Acknowledgement for CNT_CLR: The counter is set to
the value 0x0000. Setting of the counter is edge
controlled.
0
DEC
_ACK
Acknowledgement for CNT_DEC: If this bit is set, the
counter is decremented with every positive edge.