Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
embedded_systems:cx2020:start [2020-01-17 13:31] – angelegt mlammerich | embedded_systems:cx2020:start [2022-05-24 16:25] (aktuell) – Moritz Lammerich | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
The [[ https:// | The [[ https:// | ||
- | It's I/O modules are controlled using EtherCAT called " | + | It's I/O modules are controlled using [[ embedded_systems: |
By default it runs Windows Embedded 7 but is also capable of running Linux. | By default it runs Windows Embedded 7 but is also capable of running Linux. | ||
- | NTB provides a [[software: | ||
- | The NTB [[software: | ||
- | See [[software:linux:yocto: | + | **Create a backup of the preinstalled Windows image before overwriting it with the linux image!** |
+ | Windows is required to run Beckhoff' | ||
+ | |||
+ | ===== Scanning the EtherCAT bus / Generating the ENI file ===== | ||
+ | |||
+ | ==== Download TwinCAT 3 ==== | ||
+ | |||
+ | To scan the [[ embedded_systems: | ||
+ | The TwinCAT Extended Automation Engineering environment and the TwinCAT extended Automation Runtime. | ||
+ | The download for the runtime should include both and can be obtained here: [[https:// | ||
+ | |||
+ | **Note that the runtime needs to be installed on the CX2020 while the engineering environment should be installed on your normal work (Windows) PC**, from hereon out referred to as the '' | ||
+ | |||
+ | ==== Connecting the host to the CX2020 ==== | ||
+ | |||
+ | Once both pieces of software are installed, both the host and cx2020 should have TwinCAT running in the background. | ||
+ | There should now be a TwinCAT tray icon in the taskbar: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **On the host**: right click the tray icon and select '' | ||
+ | This will bring up a new window showing the configured routes. | ||
+ | On the bottom left, click '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Now a '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The CX2020 should now show up in the list with an '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ==== Create a new TwinCAT XAR project and scan the bus ==== | ||
+ | |||
+ | Unfortunately, | ||
+ | It is only possible from within a project. | ||
+ | |||
+ | To create a new project, open the TwinCAT XAE environment on the host. It may also be called '' | ||
+ | |||
+ | At the top, there should be a toolbar looking like this: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | If it says '' | ||
+ | |||
+ | Change ''< | ||
+ | The end result should look similar to this: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | In the solution explorer (on the left), right click on '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | You will get a warning that not all devices can be automatically detected, simply click '' | ||
+ | |||
+ | Once it is finished, a dialog box will show the network devices found. | ||
+ | Click ok once more. | ||
+ | When asked to scan boxes, click '' | ||
+ | The conncted devices should now be listed under '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ==== Generate the ENI file ==== | ||
+ | |||
+ | Double click on '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | To generate the [[ embedded_systems: | ||