Chapter 5: Single-Axis Motion
The core of motion control is axis motion. In general, there are two types of motion: single-axis and multi-axis. In this chapter, you'll learn how to move and stop a single axis.
Add a header and .cpp file
You need to add a header and a .cpp file to learn the code of this chapter. The steps of adding them are written in Chapter 2 > Add a header and .cpp file.
- Add a header file:
- Add a .cpp file:
In Solution Explorer, in Header Files, add a header file and name it "SingleAxisMotion.h
."
In Solution Explorer, in Source Files, add a C++ file and name it "SingleAxisMotion.cpp
."
Tutorials
Take the following steps to complete the training:
- Reset and power
- Single-axis movement
- Stop a movement
- Test a movement
- Get and set values
- Motion states
- Motion queue
- Blending for single-axis moves