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.
Take the following steps to complete the training:
- Configure the settings
- Start the KINGSTAR Subsystem
- Stop the KINGSTAR Subsystem
- Get the EtherCAT states