Configure the serial interface (N03x)
This chapter explains how to configure a CX51x0 with serial interface (N03x) in TwinCAT.
The procedure for commissioning the CX51x0-N03x with serial interface under TwinCAT differs from that for other Embedded PCs. In order to avoid configuration errors, the procedure for adding and configuring the CX51x0 in TwinCAT is described below.
Prerequisites for this step:
- A scanned and selected target system.
- The description applies to TwinCAT2 from TC2.11.2248 and TwinCAT 3 from TC3.1.4018
Configure the CX51x0-N03x as follows:
- 1. In the tree view on the left, right-click on Devices.
- 2. In the context menu click on Scan.
The window new I/O devices found appears. - 3. Select the device with a COM port and confirm the selection with OK.
The CX51x0-N03x is added in TwinCAT as Device (COM Port) in the tree view on the left. - 4. Click on Device (COM Port) and then on the Serial Port tab.
- 5. Under the Serial Port tab, select the option PCI/PCIe Device.
The serial interface of the CX51x0 is shown under Port:.
If the option Onboard/ISA device is already selected, the option PCI/PCIe device is grayed out and cannot be selected.
The option PCI/PCIe device can be re-enabled as follows: - 6. Click on Search.
The window Device Found At appears. - 7. Click on the COM port, then on OK.
The option PCI/PCIe device is enabled again.
- You have successfully added and configured the CX51x0 with serial interface (N031x) in TwinCAT. You can now add further devices to the device and continue with the configuration as usual.