Administrative Function Blocks
Administrative function blocks are used to query information or change specific settings. However, they never trigger a movement.
A physical drive (referred to as a drive from here on) is represented in CODESYS SoftMotion by the software object AXIS_REF_SM3
(referred to as an axis from here on). Depending on the administrative function block being used, execution takes place either on the drive, on the axis, or on both.
Function Blocks | |
---|---|
Controls the power stage of the drive | |
Resets axis errors and drive errors | |
Shifts the coordinate system of the axis to any value; for example, this can be helpful for referencing. | |
Controls the mechanical brake when the drive supports this function | |
Reads the current status of the mechanical brake | |
Sets the dynamic limits (velocity, acceleration, deceleration, jerk, and torque) of an axis For more information, see the following: Dynamic limits in Tab: General | |
Changes the scaling of a linear axis | |
Changes the scaling of a rotary axis | |
Sets the Forecast of an axis | |
Returns the set forecast of the axis | |
Returns the time when the axis reaches a specific position. This is especially helpful when combined with Forecast. | |
Sets additional factors for the conversion. For example, the factor for torques can be used to take a gearbox into consideration. | |
Sets a different operating mode for the axis when the drive supports this function | |
Sets the movement type of a virtual axis to limited or modulo For more information, see the following: Tab: General. | |
Sets the velocity ramp type of an axis For more information, see the following: Velocity ramp type in the Tab: General chapter | |
Sets position limits for limited axes and the corresponding reaction in case of error For more information, see the following: Software limit switches and Software error reaction in the Tab: General chapter | |
Returns the drive position when a defined trigger event is raised | |
Aborts functions which use trigger events (example: | |
Returns the oldest entry from the function block error memory of the axis. This information can be used for display in a visualization, for example. | |
Deletes the oldest entry from the function block error memory of the axis. | |
Returns the set position of the axis | |
Returns the set position, set velocity, set acceleration, and set jerk. When Forecast is enabled, data can also be queried in the future. For more information, see the following: SMC_SetForecast | |
Returns the actual position of the drive | |
Returns the actual velocity of the drive | |
Returns the actual torque or the actual force of the drive | |
Reads the error from the drive | |
Reads the current status of the axis | |
Returns the communication state of the axis | |
Checks whether the current set values exceed the set dynamic limits of the axis For more information, see the following: SMC_ChangeDynamicLimits and Dynamic limits in Tab: General | |
Returns the lag of the axis (difference between the set position of the axis and the actual position of the drive) | |
Returns whether the lag is within a configurable range | |
Returns the distance traveled by the axis since the block was started. This is especially helpful for modulo axes. | |
Reads a Boolean value from the axis or drive | |
Reads a value from the axis or drive | |
Writes a Boolean value to the axis or drive | |
Writes a value to the axis or drive |
Diagnostic Function Blocks | |
---|---|
Writes the set values and actual values (position, velocity, and acceleration) of the axis and drive cyclically to a file. This can be helpful for the diagnosis of errors and movement sequences in other tools. | |
Records the maximum value of the set velocity of the axis. This function block can be helpful for diagnostic purposes. | |
Records the maximum value of the set acceleration of the axis. This function block can be helpful for diagnostic purposes. |
Persist | |
---|---|
Persists the position of an axis with absolute encoder For more information about "Persist", see the following: Persisting an Axis Position | |
Persists the position of a logical axis For more information about logical axes, see the following: Logical Drive |