TwinCAT Configuration - RS232 Interface

TwinCAT 2.10 Build 1243 or higher is required for using the TC configuration.

Open the BC8150 template project.

TwinCAT Configuration - RS232 Interface 1:
Selection dialog "New from Template"

Select BC8150.

TwinCAT Configuration - RS232 Interface 2:
Selection of Bus Controller

Open the device (BC8150) and click on BC8150. On the right in the System Manager there are two tabs, i.e. General and Communication Properties. Select Communication Properties. The following settings are available. Watchdog setting - at 0 ms the watchdog is disabled, adjustable up to 64000 ms max. The baud rate and parity are only valid if the address switch is set to 40-59. The input and output sizes are calculated from the attached variables.

TwinCAT Configuration - RS232 Interface 3:
"Communication Properties" tab

Open the BC8150 and right-click on Inputs for setting up inputs or Outputs for setting up outputs to be received or sent via the RS232 interface.

TwinCAT Configuration - RS232 Interface 4:
Creating variables (inputs, outputs)

Please not that an even start address (0, 2, 4, 6, ...) has to be selected for variables with a size of 2 bytes or greater.

TwinCAT Configuration - RS232 Interface 5:
Definition of variables