Linking the communication variables when using a KL6021

The requirement for the linking of the process image is that the terminal is preset to 5 bytes in advance. Unlike the PC interface, this cannot be configured in the TwinCAT System Manager, but only via the KS2000 software. The communication parameters

are automatically set by the PLC application, so that following the exchange of a terminal and a subsequent restart, this terminal is correctly set.

The linking of the process image to the PLC input and output variables can be accomplished most simply from the hardware side since multi-links are possible from there. The variables must be visible in the right-hand side of the TwinCAT System Manager for this.

Linking the communication variables when using a KL6021 1:

First, just the status is linked with the status variable of the communication input. Note that when doing so the structure for PC communication must be selected.

Linking the communication variables when using a KL6021 2:
Linking the communication variables when using a KL6021 3:

After that the data bytes can be conveniently linked to the corresponding variables by multi-link. The selection of several variables can be achieved by clicking on “Data1” and pressing the ↓ key with the Shift key pressed.

Linking the communication variables when using a KL6021 4:

The output variables must be linked in the same way:

Linking the communication variables when using a KL6021 5:
Linking the communication variables when using a KL6021 6:
Linking the communication variables when using a KL6021 7:
Linking the communication variables when using a KL6021 8: