Chapter 2: System Initialization

In this chapter, you'll learn how to initialize an EtherCAT link, configure the settings, start and stop the KINGSTAR Subsystem, and get the EtherCAT states. To write clean code, we create individual files to save the KINGSTAR settings, and integrate them in the main function.

Before starting the tutorial

From Chapter 2, you need to add a header and a .cpp file to learn how to write and run the code.

Add a header and .cpp file

Tutorials

Take the following steps to complete the training:

Complete code

Additional information

Subsystem Initialization functions