Settings when using the on-board RS485 interface

If an on-board interface is selected, it must first be correctly set in the TwinCAT System Manager, not least in order to obtain the correct process image. Unlike the terminal-based serial interfaces, the communication parameters are also set in the TwinCAT System Manager. Precisely the following settings are to be made on the “Communication Properties” tab of the COM port:

Settings when using the on-board RS485 interface 1:

The activation of the “Sync Mode” is particularly important. This ensures that the interface, which a KL6xx1 only emulates, also works correctly under higher PLC loads.

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.

Settings when using the on-board RS485 interface 2:

First of all, 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.

Settings when using the on-board RS485 interface 3:
Settings when using the on-board RS485 interface 4:

 

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.

Settings when using the on-board RS485 interface 5:

The output variables must be linked in the same way:

Settings when using the on-board RS485 interface 6:
Settings when using the on-board RS485 interface 7:
Settings when using the on-board RS485 interface 8:
Settings when using the on-board RS485 interface 9:
Settings when using the on-board RS485 interface 10: