Configuration in the TwinCAT System Manager
Unlike the PC interface, the communication parameters
- Baud Rate: 9600 bits/s
- Data bits: 8
- Parity: None
- Stop bits: 1
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.
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.
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.
The output variables must be linked in the same way:
Moreover, the variables of the groups WcState and InfoData have to be linked: