Activating Kl6Xx1 Mode; Table 10 Control Word Structure - Beckhoff CX8180 Manual

Embedded pc with rs232/rs485
Hide thumbs Also See for CX8180:
Table of Contents

Advertisement

6.4.6

Activating KL6xx1 mode

The KL6xx1 mode can be used for any serial protocols. Custom protocols or other open protocols can also
be used.
This mode behaves like other Beckhoff terminals with serial interface. It means that the programming and
the interface is similar to a serial interface. The Beckhoff supplement blocks (such as ModbusRTU,
COMLIB, ...) of the serial interface usually offer the 64-byte mode for the PC interface.
Requirements:
• The CX8180 Embedded-PC was selected as the target system.
Proceed as follows:
1. Click Device 2 (RS232) or Device 3 (RS485) in the tree view on the left.
2. Click the Communication Properties tab.
3. Click the option KL6xx1 Mode (Emulation) to use the CX8180 for all other protocols.
ð You have successfully activated the KL6xx1 mode. Follow the same steps to deactivate the KL6xx1
mode.
Programming
Alternatively, you can operate and program the interface yourself. The data structure consists of a control
and status word (2 bytes) and a data array. The control byte is written by the PLC program and
acknowledges the sending of data with the TR bit.
The data (bits 4 to 15) are transmitted when an edge change (toggle) is encountered. The RA bit
acknowledges that the receive data have been read. This enables the interface to recognize that it can copy
new data into the data array. The status word indicates how many data are valid. When a positive edge is
encountered, the IR bit (Reset) clears the buffers and resets the interface. The interface acknowledges the
command in the status word with the IA bit. Finally, the IR bit is set to "False" again.
Table 10: Control word structure.
Bit
15 14 13 12 11 10 09 08 07 06 05 04 03
Name Length of data to be written (OL bits)
CX8180
02
reserve IR bit
Version: 1.5
Configuration
01
00
RA bit
TR bit
41

Advertisement

Table of Contents
loading

Table of Contents