Overview
CODESYS SoftMotion distinguishes between movements which only act on a single axis and movements in which two axes are synchronized (for example, via electronic cams or virtual gears). The latter is described on the Synchronous Movements of Two Axes help page.
Basically, the motion blocks which act only on a single axis can be subdivided into the following categories:
Function Block | Description |
---|---|
| Executes a movement to the specified position |
| Executes a movement by the specified distance relative to the current position |
| Executes a movement by the specified distance relative to the last commanded target position of another movement (for example, from |
| Executes a movement by the specified relative distance in addition to another active movement (for example, from |
| Executes a continuously running movement at the specified velocity |
| Executes a movement to the specified position. In this case, the target position is reached at a defined velocity which is maintained afterwards. |
| Executes a movement by the specified distance relative to the current position. In this case, the target position is reached at a defined velocity which is maintained afterwards. |
| Executes a continuously running movement at the specified velocity as long as the axis should move forwards or backwards |
| Executes a movement by the specified distance relative to the current position as long as the axis should move forwards or backwards |
Function Block | Description |
---|---|
| Executes a controlled stop, interrupts any active movement, and brings the axis to a standstill. |
| Executes a controlled stop, interrupts any active movement, and brings the axis to a standstill. |
| Executes a controlled stop of |
Function Block | Description |
---|---|
| Starts a homing of the axis controlled by the drive. The operation and its parameters depend on the drive and the manufacturer. |
| Starts a homing of the axis controlled by the controller |
| Does not move the axis, but only shifts the zero point. In this way, the block can be used for referencing, for example. Moreover, the block can also be called during an active movement. |
Function Block | Description |
---|---|
| Writes the set position of the axis. This can be used to pass your own calculated trajectories to the axis. |
| Writes the set velocity of the axis. This can be used to pass your own calculated trajectories to the axis. |
| Writes the set position and velocity of the axis. This can be used to pass your own calculated trajectories to the axis. |
| Selectively writes the set position, velocity, acceleration, jerk, and/or the set target torque of the axis. This can be used to pass your own calculated trajectories to the axis. |
| Writes the set torque of the axis. Depending on the operating mode of the axis, the value is used either for torque feed forward control or as the torque which the axis is supposed to apply. |