Motion Function Blocks
This page serves as a reference for the PLCopen Motion Control function blocks supported by the SoftPLC. Please see the motion control page for an introduction to axes, binding axes to motors, axis states and buffer modes, and the coordinated motion page for an introduction to axes groups, kinematic models and coordinate systems.
All quantities use the LREAL type, in the PLC units of the axis. Velocities are in units per second, accelerations and decelerations in units per second squared, and jerk in units per second cubed. The ErrorID output of every block holds one of the error identifiers.
Contents
- Administrative
- Motion
- Homing
- Synchronized Motion
- Touch Probes and Cam Switches
- Axes Groups
- Coordinated Motion
- Coordinate Systems and Kinematics
- Paths and Group Synchronization
- Types
- Parameters
- Error Identifiers
Administrative
MC_Power
Switches the power stage of the axis on and off. Every motion program uses MC_Power to power an axis before moving it, since most motion commands are rejected while the axis is Disabled. When Enable becomes TRUE, the power stage switches on, and the axis moves from the Disabled state to Standstill, where it accepts motion commands. When Enable becomes FALSE, the motion commands on the axis are aborted and the axis returns to Disabled. Touch probes and passive homing remain active. The simulated power stage switches immediately, so Status changes in the same call as Enable. Only one MC_Power instance can control each axis, and a second instance reports the PowerOwned error.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Switches the power stage on while TRUE. |
EnablePositive (input) | BOOL | Permits motion in the positive direction. When it is FALSE, a command that would move the axis in the positive direction is rejected or stopped with the DirectionNotPermitted error. The default is TRUE. |
EnableNegative (input) | BOOL | Permits motion in the negative direction. When it is FALSE, a command that would move the axis in the negative direction is rejected or stopped with the DirectionNotPermitted error. The default is TRUE. |
Status (output) | BOOL | TRUE while the power stage is on. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_Reset
Clears an axis fault, such as a following error or a limit switch, so that the axis can move again. An axis with a fault is in ErrorStop, and rejects motion commands until it is reset. MC_Reset moves the axis from ErrorStop to Standstill, or to Disabled if it is not powered. The command completes once the axis is at rest. Calling it when the axis has no fault reports the NoErrorToReset error.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when the fault has been cleared. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_ReadStatus
Reports the state of the axis, with one output for each state. Programs use it to wait for a state, such as Standstill before starting the next step of a sequence, or to detect that the axis has entered ErrorStop after a fault.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
ErrorStop (output) | BOOL | TRUE while the axis is in the ErrorStop state. |
Disabled (output) | BOOL | TRUE while the axis is in the Disabled state. |
Stopping (output) | BOOL | TRUE while the axis is in the Stopping state. |
Homing (output) | BOOL | TRUE while the axis is in the Homing state. |
Standstill (output) | BOOL | TRUE while the axis is in the Standstill state. |
DiscreteMotion (output) | BOOL | TRUE while the axis is in the DiscreteMotion state. |
ContinuousMotion (output) | BOOL | TRUE while the axis is in the ContinuousMotion state. |
SynchronizedMotion (output) | BOOL | TRUE while the axis is in the SynchronizedMotion state. |
MC_ReadAxisError
Reports the axis fault that moved the axis to ErrorStop, such as a following error or a limit switch. Use it to find out why an axis stopped, for example to show the fault on an operator panel, before clearing it with MC_Reset. Errors that a function block reports, such as an invalid input, are reported by the ErrorID output of that block instead.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
AxisErrorID (output) | WORD | The axis fault, or zero when the axis has none. |
MC_ReadAxisInfo
Reports the switch signals and the status of the drive, such as whether the power stage is on and whether the axis has been homed. Programs use it for interlocks, for example to check IsHomed before running a sequence that relies on absolute positions, or to show the state of the home and limit switches.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
HomeAbsSwitch (output) | BOOL | The state of the home switch. |
LimitSwitchPos (output) | BOOL | The state of the positive limit switch. |
LimitSwitchNeg (output) | BOOL | The state of the negative limit switch. |
Simulation (output) | BOOL | Always TRUE, since the axis drives a simulated motor. |
CommunicationReady (output) | BOOL | Always TRUE, since the simulated drive is always connected. |
ReadyForPowerOn (output) | BOOL | TRUE while the axis has no fault. |
PowerOn (output) | BOOL | TRUE while the power stage is on. |
IsHomed (output) | BOOL | TRUE once a homing procedure has completed. It becomes FALSE when a homing search starts. |
AxisWarning (output) | BOOL | Always FALSE. |
MC_ReadActualPosition
Reports the actual position of the axis, in PLC units. Use it to display the position, or to compare it with a target, for example to wait until the motor has settled after a move. On a modulo axis, the position lies within one period. When the ActualPosition tag is not bound, the actual position equals the setpoint.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Position (output) | LREAL | The actual position. |
MC_ReadActualVelocity
Reports the actual velocity of the axis, in PLC units per second. Use it to display the speed, or to check that the axis moves at the expected velocity. When the ActualVelocity tag is not bound, the velocity is calculated from the change in position.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Velocity (output) | LREAL | The actual velocity. |
MC_ReadActualTorque
Reports the actual force or torque of the motor. Use it to detect contact, an overload or a jam, for example to stop a gripper once it applies enough force. Requires the ActualTorque drive signal to be bound.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Torque (output) | LREAL | The actual force or torque. |
MC_ReadMotionState
Reports whether the axis is accelerating, decelerating or moving at a constant velocity, and in which direction. Use it to coordinate other actions with the motion, for example to start an operation only once the axis moves at a constant velocity. The Source input selects whether the setpoint or the actual values are evaluated.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
Source (input) | MC_SOURCE | The values to evaluate: the setpoint (mcSetValue or mcCommandedValue) or the actual values (mcActualValue). |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
ConstantVelocity (output) | BOOL | TRUE while the velocity is constant and not zero. |
Accelerating (output) | BOOL | TRUE while the speed increases. |
Decelerating (output) | BOOL | TRUE while the speed decreases. |
DirectionPositive (output) | BOOL | TRUE while the axis moves in the positive direction. |
DirectionNegative (output) | BOOL | TRUE while the axis moves in the negative direction. |
MC_ReadParameter and MC_ReadBoolParameter
Reads a numeric or boolean axis parameter, such as a software limit or the maximum velocity, and updates the value in every call while Enable is TRUE. Use it to check the limits that apply to the axis, including values written by MC_WriteParameter. MC_ReadParameter returns boolean parameters as 1.0 or 0.0.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
ParameterNumber (input) | INT | The parameter number, such as 9 for the maximum velocity. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Value (output) | LREAL or BOOL | The value of the parameter. The type is LREAL for MC_ReadParameter and BOOL for MC_ReadBoolParameter. |
MC_WriteParameter and MC_WriteBoolParameter
Writes a numeric or boolean axis parameter, such as a software limit or the maximum velocity. Use it to change the limits of an axis while the program runs, for example to reduce the maximum velocity in a setup mode, or to enable following error monitoring. Written values last until the simulation is reset. An immediate write that conflicts with the active command, for example a maximum velocity below the velocity of the running move, is rejected with the ParameterConflict error.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ParameterNumber (input) | INT | The parameter number. |
Value (input) | LREAL or BOOL | The value to write. The type is LREAL for MC_WriteParameter and BOOL for MC_WriteBoolParameter. |
ExecutionMode (input) | MC_EXECUTION_MODE | mcImmediately writes during the call. mcQueued writes when the active command is done, like a buffered command. |
Done (output) | BOOL | TRUE when the value has been written. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_SetPosition
Shifts the coordinates of the axis without moving it. Use it to define the current position, for example to set the position to zero where a product starts, or to shift the coordinates by a known distance with Relative. The actual position and the setpoint change by the same amount. A move in progress still stops at the same physical position, since its target shifts with the coordinates. Unlike homing, MC_SetPosition does not mark the axis as homed.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Position (input) | LREAL | The new position, or the shift when Relative is TRUE. |
Relative (input) | BOOL | Shifts the position by Position instead of replacing it. |
ExecutionMode (input) | MC_EXECUTION_MODE | mcImmediately shifts during the call. mcQueued shifts when the active command is done. |
Done (output) | BOOL | TRUE when the position has been set. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_SetOverride
Scales the velocity, acceleration and jerk of all motion on the axis while Enable is TRUE. Use it for a speed override on an operator panel, which slows all motion on the axis by a percentage without changing the commands. Changes to the factors apply to motion in progress immediately, and the last factors remain in effect when Enable becomes FALSE. The factors do not affect MC_Stop, or the deceleration after an axis fault.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Enable (input) | BOOL | Applies the factors while TRUE. |
VelFactor (input) | LREAL | The velocity factor, from 0.0 to 1.0. The default is 1.0. A factor of zero stops the motion without ending the command, which continues when the factor increases again. |
AccFactor (input) | LREAL | The acceleration and deceleration factor, above 0.0 and up to 1.0. The default is 1.0. |
JerkFactor (input) | LREAL | The jerk factor, above 0.0 and up to 1.0. The default is 1.0. |
Enabled (output) | BOOL | TRUE while the factors are applied. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Motion
MC_MoveAbsolute
Moves the axis to an absolute position, and stops there. This is the main block for point-to-point positioning, such as moving a carriage to a pick or place position. On a modulo axis, the position must lie within one period, and Direction chooses which way the axis turns to reach it. A linear axis ignores Direction.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, until ContinuousUpdate becomes FALSE. |
Position (input) | LREAL | The target position. |
Velocity (input) | LREAL | The velocity of the move. A short move may not reach it before it has to decelerate. |
Acceleration (input) | LREAL | The acceleration, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
Direction (input) | MC_DIRECTION | On a modulo axis, the way the axis turns to reach the position: mcPositiveDirection, mcNegativeDirection, mcShortestWay or mcCurrentDirection. A linear axis ignores it. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the setpoint has reached the target position. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveRelative
Moves the axis by a distance from its setpoint when the command starts, and stops there. Use it for moves of a fixed length, such as advancing a conveyor by one product pitch. A buffered relative move starts from the target of the previous move.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, until ContinuousUpdate becomes FALSE. An updated distance remains relative to the original starting position. |
Distance (input) | LREAL | The distance to move, which is negative to move in the negative direction. |
Velocity (input) | LREAL | The velocity of the move. A short move may not reach it before it has to decelerate. |
Acceleration (input) | LREAL | The acceleration, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the setpoint has reached the target position. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveAdditive
Moves the axis to the target of the most recent position move plus Distance, even if that move was aborted. Use it to extend or shorten a move that is in progress, for example to correct its target after a measurement. If a move to 100 is running, an MC_MoveAdditive with a Distance of 20 takes over and moves the axis to 120. When the axis is not moving to a position, such as at rest or after MC_Halt, it moves by Distance from the setpoint, like MC_MoveRelative.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, until ContinuousUpdate becomes FALSE. |
Distance (input) | LREAL | The distance to add to the target. |
Velocity (input) | LREAL | The velocity of the move. A short move may not reach it before it has to decelerate. |
Acceleration (input) | LREAL | The acceleration, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the setpoint has reached the target position. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveVelocity
Moves the axis continuously at a velocity, until another command takes over, such as MC_Halt. Use it for axes that run rather than position, such as conveyors, spindles and pumps. InVelocity becomes TRUE once the velocity is reached, and the axis is in ContinuousMotion. A Velocity of zero decelerates the axis and holds it at rest.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, until ContinuousUpdate becomes FALSE. |
Velocity (input) | LREAL | The target velocity, which must not be negative. |
Acceleration (input) | LREAL | The acceleration, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
Direction (input) | MC_DIRECTION | mcPositiveDirection, mcNegativeDirection, or mcCurrentDirection to continue in the current direction. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
InVelocity (output) | BOOL | TRUE while the setpoint velocity equals the target velocity. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveContinuousAbsolute
Moves the axis to an absolute position, passes the position at EndVelocity, and then continues at that velocity until another command takes over, such as MC_Halt. Use it when an axis must arrive at a position already moving at a particular velocity, such as a conveyor that brings a product to the infeed of the next machine and then runs at the speed of that machine. The axis is in DiscreteMotion until it passes the position, and in ContinuousMotion after it. A buffered command starts when InEndVelocity becomes TRUE, and continues from EndVelocity, rather than from rest.
EndVelocity is negative to continue in the negative direction. It may be higher than Velocity, which only limits the velocity on the way to the position, but not higher than the maximum velocity of the axis. An EndVelocity of zero stops the axis at the position, but the command stays active.
The axis always passes the position at EndVelocity. When it cannot reach EndVelocity on the way to the position, it changes direction, to approach the position from a point far enough away to reach EndVelocity. It therefore moves beyond or behind the position in the following cases:
EndVelocitypoints back towards the start: The axis passes the position, stops beyond it, and returns through the position.- The position is too close: The axis first backs away from the position, to gain enough distance to reach
EndVelocity. - The axis is too fast: The axis cannot slow down to
EndVelocityin time, so it passes the position, stops, backs away behind the position, and then passes it again.
If the axis must not change direction, use MC_MoveAbsolute followed by MC_MoveVelocity instead, with a blending buffer mode, so that the axis passes the position without stopping.
The position must lie within the software limits. After the position, the axis moves like MC_MoveVelocity, so it stops with an axis fault if it reaches a software limit.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, until ContinuousUpdate becomes FALSE. Once the axis has passed the position, only changes to EndVelocity are applied. |
Position (input) | LREAL | The position to pass. |
EndVelocity (input) | LREAL | The velocity at which the axis passes the position and then continues. It may be higher than Velocity, but not higher than the maximum velocity of the axis. |
Velocity (input) | LREAL | The maximum velocity on the way to the position. A short move may not reach it. |
Acceleration (input) | LREAL | The acceleration, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
Direction (input) | MC_DIRECTION | On a modulo axis, the way the axis turns to reach the position: mcPositiveDirection, mcNegativeDirection, mcShortestWay or mcCurrentDirection. A linear axis ignores it. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
InEndVelocity (output) | BOOL | TRUE once the axis has passed the position and its setpoint velocity equals EndVelocity. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveContinuousRelative
Moves the axis by a distance from its setpoint when the command starts, passes the end of the distance at EndVelocity, and then continues at that velocity until another command takes over. It behaves like MC_MoveContinuousAbsolute, except that the position to pass is given as a distance. A buffered relative move starts from the target of the previous move.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, until ContinuousUpdate becomes FALSE. An updated distance remains relative to the original starting position. Once the axis has passed the end of the distance, only changes to EndVelocity are applied. |
Distance (input) | LREAL | The distance to move, which is negative to move in the negative direction. |
EndVelocity (input) | LREAL | The velocity at which the axis passes the end of the distance and then continues. It may be higher than Velocity, but not higher than the maximum velocity of the axis. |
Velocity (input) | LREAL | The maximum velocity on the way to the end of the distance. A short move may not reach it. |
Acceleration (input) | LREAL | The acceleration, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
InEndVelocity (output) | BOOL | TRUE once the axis has passed the end of the distance and its setpoint velocity equals EndVelocity. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveSuperimposed
Adds a relative move on top of the motion in progress, without interrupting it. For example, it can shift a conveyor that runs at a constant velocity by a small distance, to align it with a product. When the axis is at rest, it acts like MC_MoveRelative. Starting another MC_MoveSuperimposed replaces the superimposed move that is running.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, until ContinuousUpdate becomes FALSE. |
Distance (input) | LREAL | The distance to add to the running motion. |
VelocityDiff (input) | LREAL | The highest velocity of the superimposed move, which is added to the velocity of the underlying motion. |
Acceleration (input) | LREAL | The acceleration of the superimposed move, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration of the superimposed move, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk of the superimposed move, or zero for the maximum jerk of the axis. |
Done (output) | BOOL | TRUE when the superimposed move has completed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the superimposed move is running. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
CoveredDistance (output) | LREAL | The distance that the superimposed move has covered. |
MC_HaltSuperimposed
Stops a superimposed move, leaving the underlying motion running. Use it to cancel a correction made with MC_MoveSuperimposed before it completes. It is done immediately when no superimposed move is running.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
Done (output) | BOOL | TRUE when the superimposed move has stopped. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_Halt
Stops the axis with a controlled deceleration. Use it for normal stops, such as stopping a conveyor that runs with MC_MoveVelocity, or interrupting a move before it reaches its target. The axis is in DiscreteMotion until it stops, and then returns to Standstill. Unlike MC_Stop, another motion command can abort the halt.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the axis has stopped. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_Stop
Stops the axis, and keeps it in the Stopping state while Execute is TRUE, rejecting all other motion commands. Use MC_Stop for emergency stops, and MC_Halt for normal stops. The axis returns to Standstill once it has stopped and Execute is FALSE.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge, and holds the axis in Stopping while TRUE. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
Done (output) | BOOL | TRUE when the axis has stopped. |
Busy (output) | BOOL | TRUE while the command has not finished. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_TorqueControl
Applies a force or torque to the axis, with Velocity as a speed limit. If nothing resists the motion, the axis accelerates until it reaches the speed limit. This is useful for pressing, clamping or tensioning applications. The axis is in ContinuousMotion, and following error monitoring is suspended. Any other motion command ends torque control without a jump in the setpoint. Requires the TorqueLimit drive signal to be bound.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, until ContinuousUpdate becomes FALSE. |
Torque (input) | LREAL | The force or torque to apply, which must not exceed the motor force/torque limit of the axis, when one is set. |
TorqueRamp (input) | LREAL | The rate of change of the force or torque per second, or zero to change it immediately. |
Velocity (input) | LREAL | The velocity limit, or zero for the maximum velocity of the axis. Zero is rejected with the InvalidVelocity error when the axis has no maximum velocity, since torque control needs a velocity limit. |
Acceleration (input) | LREAL | The acceleration. It is checked against the maximum of the axis, but has no effect, since the drive only limits the velocity in torque mode. |
Deceleration (input) | LREAL | The deceleration. It is checked against the maximum of the axis, but has no effect. |
Jerk (input) | LREAL | The jerk. It is checked against the maximum of the axis, but has no effect. |
Direction (input) | MC_DIRECTION | mcPositiveDirection or mcNegativeDirection. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
InTorque (output) | BOOL | TRUE while the force or torque equals Torque. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_Jog
Jogs the axis while a button is held, which is used to move an axis by hand during setup or maintenance. While JogForward or JogBackward is TRUE, the axis moves at Velocity in that direction, and it stops when the input becomes FALSE.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
JogForward (input) | BOOL | Moves in the positive direction while TRUE. |
JogBackward (input) | BOOL | Moves in the negative direction while TRUE. |
Velocity (input) | LREAL | The jog velocity. |
Acceleration (input) | LREAL | The acceleration, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
Done (output) | BOOL | TRUE when the axis has stopped after jogging. |
Busy (output) | BOOL | TRUE while the command has not finished. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Homing
The homing step blocks (MC_StepAbsoluteSwitch, MC_StepLimitSwitch and MC_StepBlock) search for a reference and leave the axis in the Homing state when they are done. A final step (MC_HomeDirect, MC_HomeAbsolute or MC_FinishHoming) completes the procedure and returns the axis to Standstill. MC_Home performs a complete search, configured in the axis settings. Passive homing with MC_StepReferenceFlyingSwitch instead references the axis while other commands move it.
The position is assigned at the moment the reference is detected. The axis then decelerates to a stop beyond the reference, so the position where it comes to rest differs from the assigned position.
MC_Home
Runs the homing search configured in the axis settings. It is the simplest way to home an axis that has a home switch, since a single block performs the whole procedure. For other procedures, such as homing against a limit switch or a mechanical stop, use the homing steps below. The axis searches for the home switch with the configured direction, switch mode and velocity, assigns Position at the reference, and finishes in Standstill. Requires the HomeSwitch drive signal to be bound.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Position (input) | LREAL | The position assigned at the reference. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the axis has been homed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_StepAbsoluteSwitch
Searches for a reference switch, and assigns SetPosition where the switch condition occurs. It is a step of a homing procedure that the program builds itself, and unlike MC_Home, it takes the direction, switch mode and velocity from its inputs. The axis remains in Homing after the step, until a final step completes the procedure. When the axis reaches a limit switch during the search, it reverses until it has passed the reference switch and searches again, so the reference is always approached from the same side.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Direction (input) | MC_HOME_DIRECTION | The search direction: mcPositiveDirection, mcNegativeDirection, mcSwitchPositive or mcSwitchNegative. With the switch directions, an axis that starts on the switch first moves off it. |
SwitchMode (input) | MC_SWITCH_MODE | The switch condition that marks the reference, as listed under MC_SWITCH_MODE. |
ReferenceSignal (input) | MC_REF_SIGNAL_REF | The reference switch. When it is not assigned, the HomeSwitch drive signal is used. |
Velocity (input) | LREAL | The search velocity, which must be greater than zero. |
SetPosition (input) | LREAL | The position assigned at the reference. When it is not assigned in the call, the coordinates of the axis do not change. |
TorqueLimit (input) | LREAL | The force or torque limit during the step, or zero for no limit. A limit requires the TorqueLimit drive signal to be bound. |
TimeLimit (input) | TIME | The longest time that the step may take, or zero for no limit. Exceeding it reports the HomingTimeLimit error. |
DistanceLimit (input) | LREAL | The longest distance that the axis may travel during the step, or zero for no limit. Exceeding it reports the HomingDistanceLimit error. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the reference has been found and the axis is at rest. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_StepLimitSwitch
Searches for a limit switch, and assigns SetPosition where the switch condition occurs. It is used to home a machine without a home switch, or as the first step of a procedure that then searches for the home switch from a known side. The axis remains in Homing after the step. Requires the LimitPositive or LimitNegative drive signal to be bound.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Direction (input) | MC_HOME_DIRECTION | The limit switch to search for: mcPositiveDirection or mcNegativeDirection. |
LimitSwitchMode (input) | MC_SWITCH_MODE | mcOn, mcOff, mcRisingEdge or mcFallingEdge. With mcFallingEdge, the axis moves onto the switch and back off it, and the reference is where the switch turns off. |
Velocity (input) | LREAL | The search velocity, which must be greater than zero. |
SetPosition (input) | LREAL | The position assigned at the reference. When it is not assigned in the call, the coordinates of the axis do not change. |
TorqueLimit (input) | LREAL | The force or torque limit during the step, or zero for no limit. A limit requires the TorqueLimit drive signal to be bound. |
TimeLimit (input) | TIME | The longest time that the step may take, or zero for no limit. Exceeding it reports the HomingTimeLimit error. |
DistanceLimit (input) | LREAL | The longest distance that the axis may travel during the step, or zero for no limit. Exceeding it reports the HomingDistanceLimit error. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the reference has been found and the axis is at rest. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_StepBlock
Drives against a mechanical stop, and assigns SetPosition there. It is used to home a machine without switches, such as a gripper or an actuator with a hard end stop. The axis remains in Homing after the step. The stop is detected when the measured force or torque reaches the torque limit (within the force/torque tolerance of the axis) and the velocity has remained below DetectionVelocityLimit for DetectionVelocityTime. The torque limit is TorqueLimit, or the motor force/torque limit of the axis when TorqueLimit is zero. Requires the ActualTorque drive signal to be bound.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Direction (input) | MC_HOME_DIRECTION | The direction towards the stop: mcPositiveDirection or mcNegativeDirection. |
Velocity (input) | LREAL | The search velocity, which must be greater than zero. |
SetPosition (input) | LREAL | The position assigned at the stop. When it is not assigned in the call, the coordinates of the axis do not change. |
DetectionVelocityLimit (input) | LREAL | The velocity below which the axis counts as blocked. |
DetectionVelocityTime (input) | TIME | How long the velocity must remain below DetectionVelocityLimit. |
TorqueLimit (input) | LREAL | The force or torque limit during the step, or zero to use the motor force/torque limit. A limit requires the TorqueLimit drive signal to be bound. |
TimeLimit (input) | TIME | The longest time that the step may take, or zero for no limit. Exceeding it reports the HomingTimeLimit error. |
DistanceLimit (input) | LREAL | The longest distance that the axis may travel during the step, or zero for no limit. Exceeding it reports the HomingDistanceLimit error. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the stop has been detected. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_HomeDirect
Assigns SetPosition to the current position without moving, and completes the homing procedure. It can be used on its own to home an axis at its current position.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
SetPosition (input) | LREAL | The position to assign to the current position of the axis. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the axis has been homed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_HomeAbsolute
Marks an axis with an absolute encoder as homed, and completes the homing procedure without moving. The position is calculated from the motor position and the position offset in the axis settings. It is used at startup, since an absolute encoder knows its position without a search. The Encoder axis setting must be Absolute, or the command is rejected with the SignalNotConfigured error.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the axis has been homed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_FinishHoming
Completes a homing procedure that was built from homing steps, and returns the axis to Standstill. It can also move the axis by Distance relative to where it stopped, for example to move it away from a switch.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Distance (input) | LREAL | The distance to move after homing, or zero to stay. |
Velocity (input) | LREAL | The velocity of the move. A short move may not reach it before it has to decelerate. |
Acceleration (input) | LREAL | The acceleration, or zero for the maximum acceleration of the axis. |
Deceleration (input) | LREAL | The deceleration, or zero for the maximum deceleration of the axis. |
Jerk (input) | LREAL | The jerk, or zero for the maximum jerk of the axis. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
Done (output) | BOOL | TRUE when the homing procedure has completed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Please see Homing Steps for an example of a homing procedure that ends with MC_FinishHoming.
MC_StepReferenceFlyingSwitch
References the axis on the fly while other commands move it, which is known as passive homing. The block starts no motion and does not change the state of the axis. When the switch condition is met, it assigns SetPosition to the axis, and the absolute targets of the motion do not change. A running position move therefore continues to its target in the new coordinate, which corrects the slip of a belt or wheel drive without stopping the machine. The block works in every axis state, so it can also reference an axis that is moved by hand while it is not powered.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts watching the switch on a rising edge. A switch that is already on at the rising edge does not count as an edge. |
SwitchMode (input) | MC_SWITCH_MODE | The switch condition that marks the reference: mcOn, mcOff, mcRisingEdge, mcFallingEdge, mcEdgeSwitchPositive or mcEdgeSwitchNegative. The edge switch modes use the direction of the actual motion. |
ReferenceSignal (input) | MC_REF_SIGNAL_REF | The reference switch. When it is not assigned, the HomeSwitch drive signal is used. |
SetPosition (input) | LREAL | The position assigned at the reference. When it is not assigned in the call, the block only reports the reference, and the coordinates of the axis do not change. |
TimeLimit (input) | TIME | The longest time to wait for the reference, or zero for no limit. |
DistanceLimit (input) | LREAL | The longest travel to wait for the reference, or zero for no limit. |
Done (output) | BOOL | TRUE when the reference has been found. |
Busy (output) | BOOL | TRUE while the block waits for the reference. |
CommandAborted (output) | BOOL | TRUE when MC_AbortPassiveHoming, or another MC_StepReferenceFlyingSwitch on the same axis, aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
An axis has at most one passive homing command, so starting a second one aborts the first. If the reference is not found within TimeLimit or DistanceLimit, the block reports the HomingTimeLimit or HomingDistanceLimit error, and the motion continues unchanged. A large correction can cause a running position move to reverse, if its target then lies behind the axis.
To reference the axis each time it passes the switch, set Execute to FALSE for one call after Done becomes TRUE, which starts the block again. Please see Passive Homing for an example.
MC_AbortPassiveHoming
Ends passive homing, aborting an MC_StepReferenceFlyingSwitch that has not found its reference. The aborted block reports CommandAborted. It completes immediately, even when no passive homing command is active.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when passive homing has ended. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Synchronized Motion
The gearing blocks couple a slave axis to a master axis. They have Master and Slave in-out pins instead of Axis. The slave is in SynchronizedMotion while a gearing command controls it. The gear ratio is RatioNumerator / RatioDenominator.
MC_GearIn
Couples the slave to the master with the gear ratio, like a mechanical gearbox between the two axes. Use it to make one axis follow another, for example to keep a second conveyor running at a fixed speed ratio to the first. The slave accelerates until its velocity equals the master velocity multiplied by the gear ratio, and then follows the position of the master.
| Pin | Type | Description |
|---|---|---|
Master (in-out) | AXIS_REF | The master axis. |
Slave (in-out) | AXIS_REF | The slave axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ContinuousUpdate (input) | BOOL | When TRUE at the rising edge of Execute, the running command applies later changes to its other inputs, such as a new gear ratio, until ContinuousUpdate becomes FALSE. |
RatioNumerator (input) | INT | The numerator of the gear ratio. A negative value makes the slave move in the opposite direction to the master. |
RatioDenominator (input) | UINT | The denominator of the gear ratio, which must not be zero. |
MasterValueSource (input) | MC_SOURCE | Whether the slave follows the setpoint of the master (mcSetValue, the default) or its actual position (mcActualValue). |
Acceleration (input) | LREAL | The acceleration of the slave while it couples, or zero for the maximum acceleration of the slave. |
Deceleration (input) | LREAL | The deceleration of the slave while it couples, or zero for the maximum deceleration of the slave. |
Jerk (input) | LREAL | The jerk of the slave while it couples, or zero for the maximum jerk of the slave. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command of the slave, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
InGear (output) | BOOL | TRUE while the slave follows the master with the gear ratio. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the slave. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GearOut
Decouples the slave from the master, for example when a product has been transferred and the slave no longer needs to follow. The slave continues at its current velocity in ContinuousMotion until another command takes over, such as MC_Halt.
| Pin | Type | Description |
|---|---|---|
Slave (in-out) | AXIS_REF | The slave axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when the slave has been decoupled. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GearInPos
Couples the slave to the master so that the slave reaches SlaveSyncPosition when the master reaches MasterSyncPosition, after which the slave follows the master with the gear ratio. This is used, for example, to synchronize a flying saw with a moving product. A synchronization that cannot be reached within the limits of the slave, or a master that has already passed the sync position, reports the SyncNotPossible error.
| Pin | Type | Description |
|---|---|---|
Master (in-out) | AXIS_REF | The master axis. |
Slave (in-out) | AXIS_REF | The slave axis. |
Execute (input) | BOOL | Starts the command on a rising edge. |
RatioNumerator (input) | INT | The numerator of the gear ratio. A negative value makes the slave move in the opposite direction to the master. |
RatioDenominator (input) | UINT | The denominator of the gear ratio, which must not be zero. |
MasterValueSource (input) | MC_SOURCE | Whether the slave follows the setpoint of the master (mcSetValue, the default) or its actual position (mcActualValue). |
MasterSyncPosition (input) | LREAL | The master position at which the axes are synchronized. |
SlaveSyncPosition (input) | LREAL | The slave position at which the axes are synchronized. |
SyncMode (input) | MC_SYNC_MODE | On a modulo slave, how the slave reaches the sync point: mcShortest, mcCatchUp or mcSlowDown. |
MasterStartDistance (input) | LREAL | How far before MasterSyncPosition the master is when the synchronization starts, or zero to start immediately. |
Velocity (input) | LREAL | The maximum velocity of the slave while it synchronizes, or zero for the maximum velocity of the slave. |
Acceleration (input) | LREAL | The maximum acceleration of the slave while it synchronizes, or zero for the maximum acceleration of the slave. |
Deceleration (input) | LREAL | The maximum deceleration of the slave while it synchronizes, or zero for the maximum deceleration of the slave. |
Jerk (input) | LREAL | The maximum jerk of the slave while it synchronizes, or zero for the maximum jerk of the slave. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command of the slave, as described in Buffer Modes. The default is mcAborting, which takes over immediately. |
StartSync (output) | BOOL | TRUE while the slave moves to the sync point. |
InSync (output) | BOOL | TRUE once the slave follows the master with the gear ratio. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the slave. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Touch Probes and Cam Switches
MC_TouchProbe
Records the position of the axis at the first trigger event after the rising edge of Execute, such as a sensor detecting a print mark. Later events are ignored until the next rising edge. The trigger is either the TouchProbe drive signal, which is read in every simulation step, or a signal of the program assigned through TriggerInput, which is read in each call of the block. For the drive signal, the recorded position is the position latched by the drive when the TouchProbePosition tag is bound, and otherwise the actual position in the step where the edge occurred.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
TriggerInput (in-out) | MC_TRIGGER_REF | The trigger signal. When it is not assigned, the TouchProbe drive signal is used. |
Execute (input) | BOOL | Arms the probe on a rising edge. |
WindowOnly (input) | BOOL | Accepts only events between FirstPosition and LastPosition. |
FirstPosition (input) | LREAL | The start of the window. |
LastPosition (input) | LREAL | The end of the window. |
Done (output) | BOOL | TRUE when a position has been recorded. |
Busy (output) | BOOL | TRUE while the probe is waiting for a trigger event. |
CommandAborted (output) | BOOL | TRUE when MC_AbortTrigger cancelled the recording. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
RecordedPosition (output) | LREAL | The position of the axis at the trigger event. |
MC_AbortTrigger
Cancels the pending recordings of MC_TouchProbe blocks that use the same trigger input. Use it when a recording is no longer needed, for example when the product that the probe waits for is missing. The cancelled blocks report CommandAborted.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
TriggerInput (in-out) | MC_TRIGGER_REF | The trigger signal. When it is not assigned, the recordings on the TouchProbe drive signal are cancelled. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when the recordings have been cancelled. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_DigitalCamSwitch
Switches up to 32 track outputs on and off based on the position of the axis, like mechanical cam switches on a shaft. For example, it can open a glue valve over a range of each product on a conveyor. Each cam switches one track on between two positions, or for a duration.
| Pin | Type | Description |
|---|---|---|
Axis (in-out) | AXIS_REF | The axis. |
Switches (in-out) | ARRAY[*] OF MC_CAMSWITCH_TR | The cams, each assigned to a track. |
Outputs (in-out) | ARRAY[*] OF BOOL | The track outputs, such as an MC_OUTPUT_REF. A track is TRUE while any of its cams is on. Track 1 is the element at the lowest index of the array. Tracks beyond the end of the array have no output, and elements beyond track 32 are not changed. |
TrackOptions (in-out) | MC_TRACK_REF | The compensation and hysteresis of each track. |
Enable (input) | BOOL | Switches the outputs while TRUE. |
EnableMask (input) | DWORD | The tracks to switch, one bit for each track starting with bit 0 for track 1. The default enables every track. |
ValueSource (input) | MC_SOURCE | Switches with the setpoint (mcSetValue, the default) or the actual position (mcActualValue). |
InOperation (output) | BOOL | TRUE while the cam switches operate. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
VAR
Cams : MC_DigitalCamSwitch;
Switches : ARRAY[1..2] OF MC_CAMSWITCH_TR := [(TrackNumber := 1, FirstOnPosition := 10.0, LastOnPosition := 50.0), (TrackNumber := 2, FirstOnPosition := 270.0, LastOnPosition := 30.0)];
Outputs : MC_OUTPUT_REF;
TrackOptions : MC_TRACK_REF;
END_VAR
Cams(Axis := Turntable, Switches := Switches, Outputs := Outputs, TrackOptions := TrackOptions, Enable := TRUE);
GlueValve := Outputs[1];The cam switch evaluates the position of the axis in each call, so the switching resolution is one scan. Use the OnCompensation and OffCompensation track options to compensate for the switching delay of a valve.
Axes Groups
The coordinated motion function blocks control an axes group, which is passed through their AxesGroup in-out pin. Positions, distances, velocities and accelerations of a group are values of type MC_POSITION, whose entries depend on the coordinate system selected by the CoordSystem input. In a call, an MC_POSITION input also accepts any one-dimensional REAL or LREAL array, whose entries are taken in order from its lowest index, with the missing entries set to zero. An MC_POSITION output can likewise be connected to any one-dimensional REAL or LREAL variable, which receives as many entries as it holds. The CoordSystem input is ACS when it is not assigned. These blocks are only available when the project contains at least one axes group file.
MC_GroupEnable
Moves the group from GroupDisabled to GroupStandby, so that it accepts motion commands. Every program that moves a group uses MC_GroupEnable once the axes of the group are powered. The block does not power the axes, so each axis still needs its own MC_Power instance. A group without axes reports the GroupEmpty error. The command completes immediately when the group is already in GroupStandby, and is rejected in the other states.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when the group has been enabled. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupDisable
Moves the group to GroupDisabled from any state, and ends its commands. Axes that are moving stop on their own. The axes remain powered, and can then be moved individually.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when the group has been disabled. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupReset
Clears a group error, and moves the group from GroupErrorStop to GroupStandby once it has stopped. It also resets every axis of the group that has an axis fault, like MC_Reset, in any group state. The command completes once the group and its axes are at rest. Unlike MC_Reset, it does not report an error when there is nothing to reset.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when the errors have been cleared. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_AddAxisToGroup
Adds an axis to the group while the program runs. The axes of a group are normally configured in its axes group file, so this block is rarely needed. The group must be in GroupDisabled or GroupStandby. The axes configured in the file are restored when the simulation is reset. An axis that already belongs to a group reports the AxisAlreadyGrouped error.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Axis (in-out) | AXIS_REF | The axis to add. |
Execute (input) | BOOL | Starts the command on a rising edge. |
IdentInGroup (input) | IDENT_IN_GROUP_REF | The position of the axis in the group, counted from zero, so that 0 is axis 1 of the group. When it is not assigned, the axis takes the first free position. |
Done (output) | BOOL | TRUE when the axis has been added. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_RemoveAxisFromGroup
Removes an axis from the group while the program runs. The group must be in GroupDisabled, GroupStandby or GroupErrorStop. A group whose last axis is removed returns to GroupDisabled.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
IdentInGroup (input) | IDENT_IN_GROUP_REF | The position of the axis in the group, counted from zero. |
Done (output) | BOOL | TRUE when the axis has been removed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_UngroupAllAxes
Removes every axis from the group in any state, and returns the group to GroupDisabled. Axes that are moving stop on their own.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when the axes have been removed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupReadStatus
Reports the state of the group, with one output for each state, and whether the group accelerates, decelerates or moves at a constant velocity along its path. Programs use it to wait for a state, such as GroupStandby before starting the next step of a sequence.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
GroupMoving (output) | BOOL | TRUE while the group is in the GroupMoving state. |
GroupHoming (output) | BOOL | TRUE while the group is in the GroupHoming state. |
GroupErrorStop (output) | BOOL | TRUE while the group is in the GroupErrorStop state. |
GroupStandby (output) | BOOL | TRUE while the group is in the GroupStandby state. |
GroupStopping (output) | BOOL | TRUE while the group is in the GroupStopping state. |
GroupDisabled (output) | BOOL | TRUE while the group is in the GroupDisabled state. |
ConstantVelocity (output) | BOOL | TRUE while the group moves along its path at a constant velocity. |
Accelerating (output) | BOOL | TRUE while the path velocity increases. |
Decelerating (output) | BOOL | TRUE while the path velocity decreases. |
InPosition (output) | BOOL | TRUE while the group is at rest in GroupStandby, or at rest on a moving product that it follows. |
MC_GroupReadError
Reports the group error that moved the group to GroupErrorStop, such as an axis fault. Use it to find out why a group stopped, before clearing the error with MC_GroupReset. Errors that a function block reports, such as an invalid input, are reported by the ErrorID output of that block instead.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
GroupErrorID (output) | WORD | The group error, or zero when the group has none. |
MC_GroupReadConfiguration
Makes a declared AXIS_REF variable refer to an axis of the group while Enable is TRUE, so that the single-axis function blocks can be used with it. This is useful in a function block that works with any group, and therefore does not know the names of its axes.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Axis (in-out) | AXIS_REF | A declared AXIS_REF variable, which is made to refer to the axis. |
Enable (input) | BOOL | Runs the block while TRUE. |
IdentInGroup (input) | IDENT_IN_GROUP_REF | The position of the axis in the group, counted from zero. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system, which must be ACS. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupReadActualPosition
Reports the actual position of the group in a coordinate system. In ACS, each entry is the actual position of an axis. In MCS and PCS, the entries are the position and orientation of the tool center point, calculated from the actual positions of the axes.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Enable (input) | BOOL | Runs the block while TRUE. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the position. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Position (output) | MC_POSITION | The actual position. |
MC_GroupReadActualVelocity and MC_GroupReadActualAcceleration
Report the actual velocity or acceleration of the group in a coordinate system. In MCS and PCS, entries 1 to 3 are the velocity or acceleration of the tool center point along X, Y and Z, and entries 4 to 6 are its angular velocity or acceleration about X, Y and Z, in degrees per second or degrees per second squared. In a moving product coordinate system, the values are relative to the product, so a group that rests on the product reads zero.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Enable (input) | BOOL | Runs the block while TRUE. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the values. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Velocity or Acceleration (output) | MC_POSITION | The actual velocity or acceleration. The name is Velocity for MC_GroupReadActualVelocity and Acceleration for MC_GroupReadActualAcceleration. |
PathVelocity or PathAcceleration (output) | LREAL | The path velocity or acceleration. In MCS and PCS, it is the length of the X, Y and Z part of the vector. In ACS, it is the length of the whole vector. |
MC_GroupSetOverride
Scales the velocity, acceleration and jerk of all motion of the group while Enable is TRUE. Use it for a speed override on an operator panel. Changes to the factors apply to motion in progress immediately, and the last factors remain in effect when Enable becomes FALSE. The factors do not affect MC_GroupStop.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Enable (input) | BOOL | Applies the factors while TRUE. |
VelFactor (input) | LREAL | The velocity factor, from 0.0 to 1.0. The default is 1.0. A factor of zero holds the group on its path without ending its commands, which continue when the factor increases again. |
AccFactor (input) | LREAL | The acceleration and deceleration factor, above 0.0 and up to 1.0. The default is 1.0. |
JerkFactor (input) | LREAL | The jerk factor, above 0.0 and up to 1.0. The default is 1.0. |
Enabled (output) | BOOL | TRUE while the factors are applied. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupSetPosition
Sets the coordinates of every axis of the group without moving, like MC_SetPosition for each axis. In ACS, Position gives the new coordinate of each axis. In MCS or PCS, Position is first converted to the coordinates of the axes, so that the tool then reads as Position, and no coordinate system changes. A position that the kinematic model cannot reach is rejected with the TargetUnreachable error, and the block cannot be used while the group follows a moving product coordinate system.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Position (input) | MC_POSITION | The new position, or the values to add when Relative is TRUE. |
Relative (input) | BOOL | Adds Position, converted to the coordinates of the axes, to the coordinates of the axes instead of replacing them. This only adds the given distance in ACS, or in MCS with a Cartesian or gantry model. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the position. |
BufferMode (input) | MC_BUFFER_MODE | mcAborting sets the coordinates immediately, and requires the group to be in GroupStandby. The other modes set them once the active and buffered commands are done and the group is at rest. |
Done (output) | BOOL | TRUE when the position has been set. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupHome
Homes every axis of the group at the same time, with the homing search configured in the axis settings of each axis, as MC_Home does. Each axis is assigned its entry of Position at its reference. The group is in GroupHoming during the search, and returns to GroupStandby once every axis is homed. If the homing of an axis fails, the group enters GroupErrorStop with the GroupHomingFailed error.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Position (input) | MC_POSITION | The position assigned to each axis at its reference. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the position, which must be ACS. |
BufferMode (input) | MC_BUFFER_MODE | mcAborting starts homing immediately, and requires the group to be in GroupStandby. The other modes start homing once the active and buffered commands are done and the group is at rest. |
Done (output) | BOOL | TRUE when every axis has been homed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Coordinated Motion
The move blocks move the group along a path, as described in Moves. The Velocity, Acceleration, Deceleration and Jerk inputs are measured along the path, in PLC units per second, per second squared and per second cubed. The Velocity input must be greater than zero. A zero Acceleration, Deceleration or Jerk uses the limits of the axes. The group never exceeds the maximum velocity, acceleration or deceleration of an axis, and moves more slowly along the path when needed, rather than rejecting the command. These inputs only limit the motion of the tool center point, so a linear move in MCS or PCS that only turns the tool, or only moves the additional axes, ignores them and moves with the maximums of the axes instead, like a direct move. The BufferMode, TransitionMode and TransitionParameter inputs are described in Blending.
MC_MoveLinearAbsolute
Moves the tool center point along a straight line to an absolute position. This is the main block for moving a tool along a path, such as moving a nozzle along the edge of a part.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Position (input) | MC_POSITION | The target position. |
Velocity (input) | LREAL | The path velocity. A short move may not reach it before it has to decelerate. |
Acceleration (input) | LREAL | The path acceleration, or zero for the limits of the axes. |
Deceleration (input) | LREAL | The path deceleration, or zero for the limits of the axes. |
Jerk (input) | LREAL | The path jerk, or zero for the limits of the axes. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the position. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command. The default is mcAborting, which takes over immediately. |
TransitionMode (input) | MC_TRANSITION_MODE | How a blending command joins the previous command. The default is TMNone. |
TransitionParameter (input) | MC_POSITION | The parameter of the transition mode. Accepts a number, or any one-dimensional REAL or LREAL array whose first entry is used. |
Done (output) | BOOL | TRUE when the setpoints have reached the target position. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveLinearRelative
Moves the tool center point along a straight line by a distance. The distance is measured from the end of the previous command when the command is buffered or blended, and otherwise from the current position. Use it for moves of a fixed length, such as lowering a tool by a fixed amount.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Distance (input) | MC_POSITION | The distance to move. |
Velocity (input) | LREAL | The path velocity. A short move may not reach it before it has to decelerate. |
Acceleration (input) | LREAL | The path acceleration, or zero for the limits of the axes. |
Deceleration (input) | LREAL | The path deceleration, or zero for the limits of the axes. |
Jerk (input) | LREAL | The path jerk, or zero for the limits of the axes. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the distance. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command. The default is mcAborting, which takes over immediately. |
TransitionMode (input) | MC_TRANSITION_MODE | How a blending command joins the previous command. The default is TMNone. |
TransitionParameter (input) | MC_POSITION | The parameter of the transition mode. Accepts a number, or any one-dimensional REAL or LREAL array whose first entry is used. |
Done (output) | BOOL | TRUE when the setpoints have reached the target position. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveCircularAbsolute
Moves the tool center point along an arc to an absolute end point. The arc lies in the plane of the X, Y and Z coordinates, and the other coordinates change evenly along the arc. The meaning of AuxPoint is chosen by CircMode, as described in Circular Moves. Points that define no arc, such as a half circle in CENTER mode, are rejected with the InvalidCircle error.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
CircMode (input) | MC_CIRC_MODE | The meaning of AuxPoint: BORDER, CENTER or RADIUS. |
AuxPoint (input) | MC_POSITION | A point on the arc, the centre of the circle, or a vector perpendicular to the plane of the circle whose length is the radius. |
EndPoint (input) | MC_POSITION | The end point. |
PathChoice (input) | MC_CIRC_PATHCHOICE | In CENTER and RADIUS mode, COUNTERCLOCKWISE for the shorter arc and CLOCKWISE for the longer arc. It is ignored in BORDER mode. |
Velocity (input) | LREAL | The path velocity. A short move may not reach it before it has to decelerate. |
Acceleration (input) | LREAL | The path acceleration, or zero for the limits of the axes. |
Deceleration (input) | LREAL | The path deceleration, or zero for the limits of the axes. |
Jerk (input) | LREAL | The path jerk, or zero for the limits of the axes. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the points. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command. The default is mcAborting, which takes over immediately. |
TransitionMode (input) | MC_TRANSITION_MODE | How a blending command joins the previous command. The default is TMNone. |
TransitionParameter (input) | MC_POSITION | The parameter of the transition mode. Accepts a number, or any one-dimensional REAL or LREAL array whose first entry is used. |
Done (output) | BOOL | TRUE when the setpoints have reached the end point. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveCircularRelative
Moves the tool center point along an arc, like MC_MoveCircularAbsolute, where EndPoint is relative to the start point. In BORDER and CENTER mode, AuxPoint is also relative to the start point. In RADIUS mode, AuxPoint is a vector, so it is the same as for MC_MoveCircularAbsolute. The pins are the same as for MC_MoveCircularAbsolute.
MC_MoveDirectAbsolute
Moves every axis of the group directly to its target position, so that all of the axes start and arrive together. The tool does not follow a straight line, unless the model is a Cartesian or gantry model. The block has no velocity, acceleration or deceleration inputs, since the axes move with their own maximum velocity, acceleration and deceleration, which must therefore be set for every axis. To move more slowly, use MC_GroupSetOverride, or lower the maximums of the axes with MC_WriteParameter. A direct move is rejected with the InvalidVelocity error when none of the axes that it moves has a maximum velocity. A target in MCS or PCS is converted to the positions of the axes before the move. Please see Direct Moves for when to use direct moves.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Position (input) | MC_POSITION | The target position. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the position. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command. The default is mcAborting, which takes over immediately. |
TransitionMode (input) | MC_TRANSITION_MODE | How a blending command joins the previous command. The default is TMNone. |
TransitionParameter (input) | MC_POSITION | The parameter of the transition mode. Accepts a number, or any one-dimensional REAL or LREAL array whose first entry is used. |
Done (output) | BOOL | TRUE when the setpoints have reached the target position. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MoveDirectRelative
Moves every axis of the group by a distance, like MC_MoveDirectAbsolute. The pins are the same as for MC_MoveDirectAbsolute, except that Position is replaced by Distance, of type MC_POSITION.
MC_GroupHalt
Stops the group along its path with a controlled deceleration. Use it for normal stops. The group is in GroupMoving until it stops, and then returns to GroupStandby. Unlike MC_GroupStop, another motion command can abort the halt. A direct move always stops with the maximum deceleration of the axes, so Deceleration and Jerk have no effect on it.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Deceleration (input) | LREAL | The path deceleration, or zero for the limits of the axes. |
Jerk (input) | LREAL | The path jerk, or zero for the limits of the axes. |
BufferMode (input) | MC_BUFFER_MODE | mcAborting stops immediately, and mcBuffered stops once the active command is done. |
Done (output) | BOOL | TRUE when the group has stopped. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupStop
Stops the group along its path, discards any buffered commands, and keeps the group in GroupStopping while Execute is TRUE, rejecting all other motion commands. Use MC_GroupStop for emergency stops, and MC_GroupHalt for normal stops. The group returns to GroupStandby once it has stopped and Execute is FALSE. Only MC_GroupDisable, or an axis of the group losing power, aborts the stop.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge, and holds the group in GroupStopping while TRUE. |
Deceleration (input) | LREAL | The path deceleration, or zero for the limits of the axes. |
Jerk (input) | LREAL | The path jerk, or zero for the limits of the axes. |
BufferMode (input) | MC_BUFFER_MODE | Has no effect, since a stop always takes over immediately. |
Done (output) | BOOL | TRUE when the group has stopped. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group, including while Execute holds the group in GroupStopping. |
CommandAborted (output) | BOOL | TRUE when the stop was aborted. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupInterrupt
Pauses the group by stopping it along its path, without ending the active command. The interrupted command remains Busy, but is no longer Active, until MC_GroupContinue resumes it. Use it to pause a machine, for example while a safety door is open. The command completes immediately when the group is in GroupStandby.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Deceleration (input) | LREAL | The path deceleration, or zero for the limits of the axes. |
Jerk (input) | LREAL | The path jerk, or zero for the limits of the axes. |
Done (output) | BOOL | TRUE when the group has stopped. |
Busy (output) | BOOL | TRUE while the command has not finished. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_GroupContinue
Resumes the command that MC_GroupInterrupt paused, from where the group stopped. Calling it when no interrupted command is waiting at rest reports the NotInterrupted error.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Done (output) | BOOL | TRUE when the interrupted command has resumed. |
Busy (output) | BOOL | TRUE while the command has not finished. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Coordinate Systems and Kinematics
The blocks that set a kinematic model or a product coordinate system have an ExecutionMode input, which chooses when the change takes effect, as described under MC_EXECUTION_MODE. A change that waits is Busy until it takes effect. A change is rejected with the GroupStateNotAllowed error while the group moves along a path in the coordinate system that it changes, since the axes would have to jump.
MC_SetKinTransform
Selects the kinematic model of the group while the program runs. The model is normally selected in the axes group file, so this block is only needed to change it. A model that drives more axes than the group has is rejected with the InvalidKinematics error.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
KinTransform (input) | MC_KIN_REF | The kinematic model: the name of a kinematics file, an instance of a function block that implements MC_KIN_REF, such as Kin_Scara2_Z, or an MC_KIN_REF variable. A variable that refers to no model selects the Cartesian model. |
Execute (input) | BOOL | Starts the command on a rising edge. |
ExecutionMode (input) | MC_EXECUTION_MODE | When the model takes effect: mcImmediately, mcDelayed or mcQueued. |
Done (output) | BOOL | TRUE when the model has taken effect. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_ReadKinTransform
Makes a declared MC_KIN_REF variable refer to the kinematic model of the group while Enable is TRUE. The variable can later be passed to MC_SetKinTransform, for example to restore a model after changing it. With the Cartesian model, the variable refers to no model.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
KinTransform (in-out) | MC_KIN_REF | A declared MC_KIN_REF variable, which is made to refer to the model. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_SetCartesianTransform
Places the product coordinate system of the group in the machine coordinate system, for example at the corner of a pallet. Setting every value to zero makes the product coordinate system the same as the machine coordinate system again.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
TransX (input) | LREAL | The position of the origin along X. |
TransY (input) | LREAL | The position of the origin along Y. |
TransZ (input) | LREAL | The position of the origin along Z. |
RotAngle1 (input) | LREAL | The rotation about X, in degrees. |
RotAngle2 (input) | LREAL | The rotation about Y, in degrees, applied after the rotation about X. |
RotAngle3 (input) | LREAL | The rotation about Z, in degrees, applied after the rotation about Y. |
ExecutionMode (input) | MC_EXECUTION_MODE | When the coordinate system takes effect: mcImmediately, mcDelayed or mcQueued. |
Done (output) | BOOL | TRUE when the coordinate system has taken effect. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_SetCoordinateTransform
Places the product coordinate system of the group, like MC_SetCartesianTransform, from an MC_COORD_REF structure. This is convenient when the position of the product is stored or calculated as a single value.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Execute (input) | BOOL | Starts the command on a rising edge. |
CoordTransform (input) | MC_COORD_REF | The position and rotation of the product coordinate system in the machine coordinate system. |
ExecutionMode (input) | MC_EXECUTION_MODE | When the coordinate system takes effect: mcImmediately, mcDelayed or mcQueued. |
Done (output) | BOOL | TRUE when the coordinate system has taken effect. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_ReadCartesianTransform and MC_ReadCoordinateTransform
Report the position and rotation of the product coordinate system in the machine coordinate system while Enable is TRUE. A moving product coordinate system reports its current position. MC_ReadCartesianTransform reports the values as six outputs, and MC_ReadCoordinateTransform as an MC_COORD_REF structure.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
Enable (input) | BOOL | Runs the block while TRUE. |
Valid (output) | BOOL | TRUE while the outputs hold valid values. |
Busy (output) | BOOL | TRUE while the block is enabled. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
TransX, TransY, TransZ (outputs) | LREAL | MC_ReadCartesianTransform only. The position of the origin. |
RotAngle1, RotAngle2, RotAngle3 (outputs) | LREAL | MC_ReadCartesianTransform only. The rotations about X, Y and Z, in degrees. |
CoordTransform (output) | MC_COORD_REF | MC_ReadCoordinateTransform only. The position and rotation. |
MC_TrackConveyorBelt
Makes the product coordinate system of the group move with an object on a conveyor belt, which is driven by an axis. Moves in PCS then follow the object, as described in Tracking Moving Products. The block uses the setpoint of the belt axis while it is powered, and otherwise its actual position. The block never reports Done, and remains Active until another block replaces the product coordinate system.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
ConveyorBelt (in-out) | AXIS_REF | The axis that drives the belt. |
Execute (input) | BOOL | Starts tracking on a rising edge, from the current position of the belt. |
ConveyorBeltOrigin (input) | MC_POSITION | The position and orientation of the belt in the machine coordinate system, as X, Y, Z, RX, RY and RZ. The X axis of the belt points in its direction of travel. |
InitialObjectPosition (input) | MC_POSITION | The position and orientation of the object relative to the origin of the belt, when tracking starts. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system that moves, which must be PCS. |
BufferMode (input) | MC_BUFFER_MODE | mcAborting starts tracking immediately, without aborting any motion. The other modes start tracking once the buffered commands are done. |
Done (output) | BOOL | Always FALSE. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the product coordinate system moves with the object. |
CommandAborted (output) | BOOL | TRUE when another block replaced the product coordinate system. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_TrackRotaryTable
Makes the product coordinate system of the group turn with an object on a rotary table, which is turned by an axis in degrees. It works like MC_TrackConveyorBelt, and has the same pins, except for the following.
| Pin | Type | Description |
|---|---|---|
RotaryTable (in-out) | AXIS_REF | The axis that turns the table, in degrees. It replaces ConveyorBelt. |
RotaryTableOrigin (input) | MC_POSITION | The position and orientation of the table in the machine coordinate system, as X, Y, Z, RX, RY and RZ. The table turns about its Z axis. It replaces ConveyorBeltOrigin. |
InitialObjectPosition (input) | MC_POSITION | The position and orientation of the object relative to the origin of the table, when tracking starts. |
MC_SetDynCoordTransform
Makes the product coordinate system of the group follow the tool of another group, the master group. For example, one robot can work on a part that another robot holds and moves. The product coordinate system is placed by CoordTransform relative to the tool of the master group. The block never reports Done, and remains Active until another block replaces the product coordinate system.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group whose product coordinate system follows the master group. |
MasterAxesGroup (in-out) | AXES_GROUP_REF | The master group, whose tool is followed. |
CoordTransform (in-out) | MC_COORD_REF | The position and rotation of the product coordinate system relative to the tool of the master group. |
Execute (input) | BOOL | Starts following on a rising edge. |
Mode (input) | MC_PATH_MODE | Has no effect. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system that moves, which must be PCS. |
BufferMode (input) | MC_BUFFER_MODE | mcAborting starts following immediately, without aborting any motion. The other modes start following once the buffered commands are done. |
Done (output) | BOOL | Always FALSE. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the product coordinate system follows the master group. |
CommandAborted (output) | BOOL | TRUE when another block replaced the product coordinate system. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Kinematics Function Blocks
Each built-in kinematic model is also available as a function block that implements MC_KIN_REF. The inputs of each block are the parameters of the model, which are described on the coordinated motion page. A program sets the inputs of an instance, and then passes the instance to MC_SetKinTransform. The configuration inputs, such as xElbowRight, are BOOL values, and the other inputs are LREAL values.
| Function Block | Axes | Inputs |
|---|---|---|
Kin_Empty | None | None. |
Kin_Gantry2 | X, Y | None. |
Kin_Gantry3 | X, Y, Z | None. |
Kin_Scara2_Z | A1, A2, Z | dArmLength1, dArmLength2, dOffsetA1, dOffsetA2, dOffsetZ, xElbowRight |
Kin_Scara3_Z | A1, A2, A3, Z | dArmLength1, dArmLength2, dArmLength3, dOffsetA1, dOffsetA2, dOffsetA3, dOffsetZ, xElbowRight |
Kin_Polar | C, R | None. |
Kin_Polar_Z | Z, C, R | None. |
Kin_ArticulatedRobot_6DOF | Axes 1 to 6 | d1, a1, a2, d3, a3, d4, d6, dOffsetA0 to dOffsetA5, xArmForward, xElbowUp, xHandDown |
Kin_CAxis | C | dOffsetC |
Kin_Wrist2 | A, B | dToolLength, dRollAxisOffsetX, dRollAxisOffsetY, dRollAxisOffsetZ, xPositive |
Kin_Wrist3 | A, B, C | dToolOffsetX, dToolOffsetY, dToolOffsetZ, dOffsetA, dOffsetB, dOffsetC, xHandDown |
Kin_Coupled | The axes of itfPosKin, followed by the axes of itfOriKin | itfPosKin, an instance of a position kinematics, and itfOriKin, an instance of an orientation kinematics |
The position kinematics, which implement MC_KIN_POSITION, are Kin_Gantry2, Kin_Gantry3, Kin_Scara2_Z, Kin_Polar and Kin_Polar_Z. The orientation kinematics, which implement MC_KIN_ORIENTATION, are Kin_CAxis, Kin_Wrist2 and Kin_Wrist3. The following program selects a gantry with a gripper that turns about Z:
VAR
Gantry3 : Kin_Gantry3;
Gripper : Kin_CAxis;
Model : Kin_Coupled;
SetModel : MC_SetKinTransform;
END_VAR
Model.itfPosKin := Gantry3;
Model.itfOriKin := Gripper;
SetModel(AxesGroup := Gantry, KinTransform := Model, Execute := TRUE);Paths and Group Synchronization
MC_PathSelect
Prepares a path for MC_MovePath and MC_SyncGroupToAxis, from an array of MC_PATH_POINT values. The points are copied when the command starts, so later changes to the array do not affect the prepared path. A path can have any number of points.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group that the path is prepared for. |
PathData (in-out) | MC_PATH_DATA_REF | Receives the prepared path. |
PathDescription (in-out) | ARRAY[*] OF MC_PATH_POINT | The points of the path, in order. |
Execute (input) | BOOL | Starts the command on a rising edge. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the points. |
Done (output) | BOOL | TRUE when the path has been prepared. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_MovePath
Moves the group along a prepared path, from its current position through each point in turn. The first point joins the previous command with the BufferMode, TransitionMode and TransitionParameter inputs of the block. Each following point joins the previous point with its own transition. The command is done when the group reaches the last point. A path cannot be run twice at the same time, so a buffered MC_MovePath of a path that is running reports the InvalidPath error.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
PathData (in-out) | MC_PATH_DATA_REF | The path prepared by MC_PathSelect. |
Execute (input) | BOOL | Starts the command on a rising edge. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the path, which must be the same as for MC_PathSelect. |
BufferMode (input) | MC_BUFFER_MODE | How the first point takes over from the active command. The default is mcAborting, which takes over immediately. |
TransitionMode (input) | MC_TRANSITION_MODE | How the first point joins the previous command. The default is TMNone. |
TransitionParameter (input) | MC_POSITION | The parameter of the transition mode. Accepts a number, or any one-dimensional REAL or LREAL array whose first entry is used. |
Done (output) | BOOL | TRUE when the group has reached the last point. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_SyncAxisToGroup
Couples a single axis to the distance that the group travels along its paths, like MC_GearIn with the group as the master. For example, a glue pump can deliver glue in proportion to the distance that the nozzle travels. The axis accelerates until its velocity equals the path velocity multiplied by the ratio, and then follows the travelled distance exactly. The axis must not be an axis of the group. Any single-axis motion command on the axis ends the coupling.
| Pin | Type | Description |
|---|---|---|
AxesGroup (in-out) | AXES_GROUP_REF | The group, whose travelled distance is the master. |
SlaveAxis (in-out) | AXIS_REF | The axis that follows. |
Execute (input) | BOOL | Starts the command on a rising edge. |
RatioNumerator (input) | INT | The numerator of the ratio between the distance of the axis and the travelled distance. |
RatioDenominator (input) | UINT | The denominator of the ratio, which must not be zero. |
Acceleration (input) | LREAL | The acceleration of the axis while it couples, or zero for its maximum acceleration. |
Deceleration (input) | LREAL | The deceleration of the axis while it couples, or zero for its maximum deceleration. |
Jerk (input) | LREAL | The jerk of the axis while it couples, or zero for its maximum jerk. |
CoordSystem (input) | MC_COORD_SYSTEM | Has no effect, since the distance is measured in the coordinate system of each path. |
BufferMode (input) | MC_BUFFER_MODE | How the command takes over from the active command of the axis. The default is mcAborting, which takes over immediately. |
InSync (output) | BOOL | TRUE once the axis follows the travelled distance with the ratio. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the axis. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
MC_SyncGroupToAxis
Moves the group along a prepared path, with its position along the path coupled to the setpoint of a master axis, like a cam. The distance along the path is the distance that the master moves multiplied by TuCNumerator[1] / TuCDenominator[1]. When the command starts, the group accelerates until it moves at the rate of the master, and then follows the master exactly. The group moves back along the path when the master reverses. The corners between the points of the path are not blended. The command remains Active until another motion command, MC_GroupStop or an error ends it. MC_GroupInterrupt pauses it, and MC_GroupContinue couples it to the master again.
| Pin | Type | Description |
|---|---|---|
Master (in-out) | AXIS_REF | The master axis. |
AxesGroup (in-out) | AXES_GROUP_REF | The group. |
PathData (in-out) | MC_PATH_DATA_REF | The path prepared by MC_PathSelect. |
Execute (input) | BOOL | Starts the command on a rising edge. |
Mode (input) | MC_PATH_MODE | mcPeriodic repeats the path as the master moves on, and mcNonPeriodic holds the group at the ends of the path. |
TuCNumerator (input) | ARRAY[1..8] OF INT | The numerator of the ratio between the distance along the path and the distance of the master, in its first entry. The other entries are ignored. |
TuCDenominator (input) | ARRAY[1..8] OF INT | The denominator of the ratio, in its first entry, which must not be zero. |
Acceleration (input) | LREAL | The path acceleration while the group couples, or zero for the limits of the axes. |
Deceleration (input) | LREAL | The path deceleration while the group couples, or zero for the limits of the axes. |
Jerk (input) | LREAL | The path jerk while the group couples, or zero for the limits of the axes. |
CoordSystem (input) | MC_COORD_SYSTEM | The coordinate system of the path, which must be the same as for MC_PathSelect. |
BufferMode (input) | MC_BUFFER_MODE | mcAborting takes over immediately, and mcBuffered takes over once the active command is done. |
InSync (output) | BOOL | TRUE once the group follows the master with the ratio. |
Busy (output) | BOOL | TRUE while the command has not finished. |
Active (output) | BOOL | TRUE while the command controls the group. |
CommandAborted (output) | BOOL | TRUE when another command aborted the command. |
Error (output) | BOOL | TRUE when the block has reported an error. |
ErrorID (output) | WORD | The error identifier while Error is TRUE. |
Types
Enumerations
MC_BUFFER_MODE
How a command takes over from the command that is currently active, as described in Buffer Modes.
| Value | Meaning |
|---|---|
mcAborting | Starts immediately, aborting the active command. This is the default. |
mcBuffered | Starts when the active command is done. |
mcBlendingLow | Starts when the active command reaches its target, at the lower of the two velocities. |
mcBlendingPrevious | Starts when the active command reaches its target, at the velocity of the active command. |
mcBlendingNext | Starts when the active command reaches its target, at the velocity of the new command. |
mcBlendingHigh | Starts when the active command reaches its target, at the higher of the two velocities. |
MC_GROUP_BUFFER_MODE is another name for the same type, which some PLCs use for the coordinated motion function blocks.
MC_DIRECTION
The direction of a motion command. Each block accepts only the values that apply to it.
| Value | Meaning |
|---|---|
mcPositiveDirection | Moves in the positive direction. |
mcNegativeDirection | Moves in the negative direction. |
mcShortestWay | On a modulo axis, takes the shorter way to the target position. |
mcCurrentDirection | Continues in the direction in which the axis is moving, or the positive direction when it is at rest. |
The type also contains mcSwitchPositive and mcSwitchNegative, which are only used by the homing steps, as described under MC_HOME_DIRECTION.
MC_HOME_DIRECTION
The search direction of a homing step, as described in Search Direction and Switch Mode.
| Value | Meaning |
|---|---|
mcPositiveDirection | Searches in the positive direction. |
mcNegativeDirection | Searches in the negative direction. |
mcSwitchPositive | Searches in the positive direction, first moving off the switch if the axis starts on it. |
mcSwitchNegative | Searches in the negative direction, first moving off the switch if the axis starts on it. |
MC_SWITCH_MODE
The switch condition that marks the reference of a homing step or a passive homing command.
| Value | Meaning |
|---|---|
mcOn | The reference is the first position where the switch is on. |
mcOff | The reference is the first position where the switch is off. |
mcRisingEdge | The reference is where the switch turns on, in the search direction. |
mcFallingEdge | The reference is where the switch turns off, in the search direction. |
mcEdgeSwitchPositive | The reference is the edge on the negative side of the switch, whichever direction the axis moves in. |
mcEdgeSwitchNegative | The reference is the edge on the positive side of the switch, whichever direction the axis moves in. |
mcRisingEdgeReverse | The axis passes the switch, turns back, and the reference is where the switch turns on while the axis moves against the search direction. |
mcFallingEdgeReverse | The axis enters the switch, turns back, and the reference is where the switch turns off while the axis moves against the search direction. |
The reverse modes are specific to the SoftPLC, so other PLCs may not support them. Beckhoff TwinCAT provides equivalent modes.
MC_EXECUTION_MODE
When MC_WriteParameter, MC_WriteBoolParameter, MC_SetPosition, or a block that sets a kinematic model or a product coordinate system of a group, applies its change.
| Value | Meaning |
|---|---|
mcImmediately | Applies the change during the call. This is the default. |
mcQueued | Applies the change when the active command is done, like a buffered command. For a group, the change is applied once the buffered commands are done as well. |
mcDelayed | Only for the blocks of a group. Applies the change when the active command is done, before the buffered commands. The parameter writes and MC_SetPosition reject it with the InvalidExecutionMode error. |
MC_SOURCE
Which values of an axis a block uses.
| Value | Meaning |
|---|---|
mcCommandedValue | The setpoint, the same as mcSetValue. |
mcSetValue | The setpoint of the axis. |
mcActualValue | The actual values measured by the motor. |
MC_SYNC_MODE
How MC_GearInPos reaches the sync point on a modulo slave, which reaches the same position once in every period.
| Value | Meaning |
|---|---|
mcShortest | Uses the sync point nearest to where the slave would otherwise be. |
mcCatchUp | Uses the sync point ahead of the slave, which speeds up to reach it. |
mcSlowDown | Uses the sync point behind the slave, which slows down to reach it. |
MC_COORD_SYSTEM
The coordinate system of a position of a group.
| Value | Meaning |
|---|---|
ACS | The axis coordinate system, where each entry is the position of an axis. This is the default. |
MCS | The machine coordinate system, where the entries are the position and orientation of the tool center point. |
PCS | The product coordinate system, which is the machine coordinate system moved and turned to a product. |
MC_TRANSITION_MODE
How a blending move joins the previous move, as described in Blending. The parameter of each mode is the first entry of the TransitionParameter input.
| Value | Meaning |
|---|---|
TMNone | No transition curve, so the group stops at the corner. This is the default. |
TMStartVelocity | The curve starts once the velocity of the previous move has fallen to the percentage given by the parameter. |
TMConstantVelocity | The curve is travelled at the percentage of the blending velocity given by the parameter. |
TMCornerDistance | The curve starts and ends at the distance from the corner given by the parameter. |
TMMaxCornerDeviation | The curve passes no further from the corner than the distance given by the parameter. |
MC_CIRC_MODE
The meaning of the auxiliary point of a circular move, as described in Circular Moves.
| Value | Meaning |
|---|---|
BORDER | The auxiliary point is a point on the arc. This is the default. |
CENTER | The auxiliary point is the centre of the circle. |
RADIUS | The auxiliary point is a vector perpendicular to the plane of the circle, whose length is the radius. |
MC_CIRC_PATHCHOICE
Which of the two possible arcs a circular move takes in CENTER and RADIUS mode.
| Value | Meaning |
|---|---|
CLOCKWISE | Takes the longer arc. This is the default. |
COUNTERCLOCKWISE | Takes the shorter arc. |
MC_PATH_MODE
Whether MC_SyncGroupToAxis repeats its path. MC_PathMode is another name for the same type.
| Value | Meaning |
|---|---|
mcNonPeriodic | The group holds at the ends of the path. This is the default. |
mcPeriodic | The path repeats as the master moves on. |
MC_PATH_SEGMENT
Whether the tool moves to a point of a path along a straight line or an arc.
| Value | Meaning |
|---|---|
mcPathLinear | A straight line, like MC_MoveLinearAbsolute. This is the default. |
mcPathCircular | An arc, like MC_MoveCircularAbsolute. |
Structures
MC_REF_SIGNAL_REF
A reference switch of the program, which a homing step or a passive homing command can use instead of the HomeSwitch drive signal.
| Field | Type | Description |
|---|---|---|
Signal | BOOL | The state of the reference switch. |
MC_TRIGGER_REF
The trigger of MC_TouchProbe and MC_AbortTrigger.
| Field | Type | Description |
|---|---|---|
Signal | BOOL | The trigger signal. |
ProbeInput | BOOL | TRUE to use the TouchProbe drive signal instead of Signal. |
FallingEdge | BOOL | TRUE to trigger when the signal turns off, instead of when it turns on. |
MC_CAMSWITCH_TR
One cam of MC_DigitalCamSwitch, which switches a track on over a range of positions or for a time.
| Field | Type | Description |
|---|---|---|
TrackNumber | INT | The track that the cam switches, from 1 to 32. |
FirstOnPosition | LREAL | The position where the cam starts. |
LastOnPosition | LREAL | The position where the cam ends. On a modulo axis, a first position after the last one wraps around the end of the period. |
AxisDirection | INT | The direction in which the cam switches: 0 for both directions, 1 for the positive direction only, and 2 for the negative direction only. |
CamSwitchMode | INT | 0 to switch the track on between the two positions, or 1 to switch it on for Duration when the axis passes FirstOnPosition. |
Duration | TIME | How long the track stays on when CamSwitchMode is 1. |
MC_TRACK_TR
The options of one track of MC_DigitalCamSwitch.
| Field | Type | Description |
|---|---|---|
OnCompensation | TIME | Delays switching the track on, or switches it on early when negative, for example to compensate for the opening time of a valve. |
OffCompensation | TIME | Delays switching the track off, or switches it off early when negative. |
Hysteresis | LREAL | The distance that the axis must move before the track switches again, which prevents it from switching repeatedly when the axis stops at a cam edge. |
MC_COORD_REF
The position and rotation of a coordinate system relative to another, such as the product coordinate system in the machine coordinate system. The rotation is applied about X first, then about Y, and then about Z.
| Field | Type | Description |
|---|---|---|
TX | LREAL | The position of the origin along X. |
TY | LREAL | The position of the origin along Y. |
TZ | LREAL | The position of the origin along Z. |
RX | LREAL | The rotation about X, in degrees. |
RY | LREAL | The rotation about Y, in degrees. |
RZ | LREAL | The rotation about Z, in degrees. |
MC_PATH_POINT
One point of a path, which MC_PathSelect prepares from an array of these points. The fields correspond to the inputs of the move blocks.
| Field | Type | Description |
|---|---|---|
Segment | MC_PATH_SEGMENT | Whether the tool moves to the point along a straight line (mcPathLinear) or an arc (mcPathCircular). |
Position | MC_POSITION | The position that the tool moves to. |
AuxPoint | MC_POSITION | The auxiliary point of an arc. |
CircMode | MC_CIRC_MODE | The meaning of AuxPoint. |
PathChoice | MC_CIRC_PATHCHOICE | Which of the two possible arcs the tool takes in CENTER and RADIUS mode. |
Velocity | LREAL | The path velocity of the move, which must be greater than zero. |
Acceleration | LREAL | The path acceleration, or zero for the limits of the axes. |
Deceleration | LREAL | The path deceleration, or zero for the limits of the axes. |
Jerk | LREAL | The path jerk, or zero for the limits of the axes. |
TransitionMode | MC_TRANSITION_MODE | How the move joins the previous move. The first point uses the transition of MC_MovePath instead. |
TransitionParameter | MC_POSITION | The parameter of the transition mode, in its first entry. |
MC_PATH_DATA_REF
A path prepared by MC_PathSelect, which is passed to MC_MovePath or MC_SyncGroupToAxis. A program declares a variable of this type, and does not need to use its field.
| Field | Type | Description |
|---|---|---|
Handle | INT | Identifies the prepared path, or zero before a path is prepared. |
Arrays
| Type | Definition | Description |
|---|---|---|
MC_OUTPUT_REF | ARRAY[1..32] OF BOOL | The track outputs of MC_DigitalCamSwitch, which also accepts any other one-dimensional BOOL array. |
MC_TRACK_REF | ARRAY[1..32] OF MC_TRACK_TR | The options of each track of MC_DigitalCamSwitch. |
MC_POSITION | ARRAY[1..16] OF LREAL | A position, distance, velocity or acceleration of a group. The meaning of each entry depends on the coordinate system. |
IDENT_IN_GROUP_REF is a UDINT, which gives the position of an axis in its group, counted from zero. The axis with ident 0 is axis 1 of the group, whose position is entry 1 of an MC_POSITION.
AXIS_REF
AXIS_REF is an opaque function block type, which refers to an axis. Each axis file declares a global AXIS_REF named after the axis. A function block can accept an axis as a VAR_IN_OUT of type AXIS_REF, and pass it on to the motion function blocks:
FUNCTION_BLOCK Pusher
VAR_IN_OUT
Axis : AXIS_REF;
END_VAR
VAR_INPUT
Push : BOOL;
END_VAR
VAR
Power : MC_Power;
Move : MC_MoveAbsolute;
END_VAR
Power(Axis := Axis, Enable := TRUE);
Move(Axis := Axis, Execute := Push, Position := 200.0, Velocity := 100.0);
END_FUNCTION_BLOCKAXES_GROUP_REF
AXES_GROUP_REF is an opaque function block type, which refers to an axes group. Each axes group file declares a global AXES_GROUP_REF named after the group. Like an axis, a group can be passed to a function block as a VAR_IN_OUT of type AXES_GROUP_REF.
MC_KIN_REF
MC_KIN_REF is an interface, which a kinematic model implements. Each kinematics file declares a global MC_KIN_REF named after the model, and the kinematics function blocks implement it as well. A function block of the program can implement it to describe a machine that none of the built-in models describes, as shown in Custom Kinematics. A declared MC_KIN_REF variable refers to no model until it is assigned or filled by MC_ReadKinTransform.
| Member | Description |
|---|---|
NumAxes : UDINT | A read-only property, which returns the number of axes that the model drives. |
AxesToCartesian(AxesPosition, CartesianPosition) : BOOL | Calculates the position and orientation of the tool in the machine coordinate system, CartesianPosition, from the positions of the axes, AxesPosition. Returns FALSE when the calculation fails. |
CartesianToAxes(CartesianPosition, AxesPosition) : BOOL | Calculates the positions of the axes that place the tool at CartesianPosition. AxesPosition is an in-out argument, which holds the current positions of the axes on entry, and the solution on exit. Returns FALSE when the position cannot be reached. |
The interfaces MC_KIN_POSITION and MC_KIN_ORIENTATION extend MC_KIN_REF, without adding any members. They mark the position and orientation kinematics that Kin_Coupled combines.
Parameters
Axis parameters are read and written with MC_ReadParameter, MC_ReadBoolParameter, MC_WriteParameter and MC_WriteBoolParameter. The initial values come from the axis settings.
| Number | Name | Type | Access | Description |
|---|---|---|---|---|
| 1 | CommandedPosition | LREAL | Read | The position setpoint. |
| 2 | SWLimitPos | LREAL | Read/Write | The positive software limit. |
| 3 | SWLimitNeg | LREAL | Read/Write | The negative software limit. |
| 4 | EnableLimitPos | BOOL | Read/Write | Enables the positive software limit. |
| 5 | EnableLimitNeg | BOOL | Read/Write | Enables the negative software limit. |
| 6 | EnablePosLagMonitoring | BOOL | Read/Write | Enables following error monitoring. Requires a positive maximum position lag. |
| 7 | MaxPositionLag | LREAL | Read/Write | The maximum position lag, which must be positive. |
| 8 | MaxVelocitySystem | LREAL | Read | The maximum velocity of the axis file, where 0 means no limit. |
| 9 | MaxVelocityAppl | LREAL | Read/Write | The maximum velocity, up to parameter 8. |
| 10 | ActualVelocity | LREAL | Read | The actual velocity. |
| 11 | CommandedVelocity | LREAL | Read | The setpoint velocity. |
| 12 | MaxAccelerationSystem | LREAL | Read | The maximum acceleration of the axis file, where 0 means no limit. |
| 13 | MaxAccelerationAppl | LREAL | Read/Write | The maximum acceleration, up to parameter 12. |
| 14 | MaxDecelerationSystem | LREAL | Read | The maximum deceleration of the axis file, where 0 means no limit. |
| 15 | MaxDecelerationAppl | LREAL | Read/Write | The maximum deceleration, up to parameter 14. |
| 16 | MaxJerkSystem | LREAL | Read | The maximum jerk of the axis file, where 0 means no limit. |
| 17 | MaxJerkAppl | LREAL | Read/Write | The maximum jerk, up to parameter 16. |
| 1000 | Modulo | LREAL | Read | The modulo period, or 0 for a linear axis. |
Error Identifiers
Values below 16#0100 are function block errors, which are reported by the ErrorID output of the block that rejected the command. Values from 16#0100 to 16#010F are axis faults, which are reported by MC_ReadAxisError, and values from 16#0110 are group errors, which are reported by MC_GroupReadError.
| Value | Name | Meaning |
|---|---|---|
16#0001 | InvalidAxis | The AXIS_REF does not refer to an axis. |
16#0002 | StateNotAllowed | The axis state does not allow the command. |
16#0003 | AxisFault | The command ended because the axis entered ErrorStop. |
16#0004 | PowerOwned | Another MC_Power instance controls the axis. |
16#0005 | QueueCleared | A queued parameter write or MC_SetPosition was discarded, because an aborting command cleared the queue. |
16#0006 | NoErrorToReset | MC_Reset was called while the axis is not in ErrorStop. |
16#0010 | InvalidVelocity | The velocity is negative, zero where motion is required, or above the maximum. For a group, a direct move, or a linear move that only turns the tool, also reports it when none of the axes that it moves has a maximum velocity. |
16#0011 | InvalidAcceleration | The acceleration is negative or above the maximum. |
16#0012 | InvalidDeceleration | The deceleration is negative or above the maximum. |
16#0013 | InvalidJerk | The jerk is negative or above the maximum. |
16#0014 | InvalidDirection | The direction does not apply to the block. |
16#0015 | InvalidBufferMode | The buffer mode is undefined. |
16#0016 | InvalidExecutionMode | The execution mode is undefined. |
16#0017 | PositionOutsideLimits | The target lies outside an enabled software limit, or outside the period of a modulo axis. |
16#0018 | DirectionNotPermitted | MC_Power does not permit motion in that direction. |
16#0019 | InvalidValue | An input is out of range, such as a negative limit, a torque above the motor limit, or an invalid cam. |
16#0020 | InvalidParameterNumber | The parameter number is not supported. |
16#0021 | ParameterReadOnly | The parameter is read-only. |
16#0022 | InvalidParameterValue | The value is outside the range of the parameter. |
16#0023 | ParameterTypeMismatch | A boolean parameter was accessed as a number, or a number as a boolean. |
16#0024 | ParameterConflict | An immediate write conflicts with the active command. |
16#0030 | InvalidOverride | An override factor is out of range. |
16#0040 | HomingTimeLimit | The time limit of a homing step or passive homing command was exceeded. |
16#0041 | HomingDistanceLimit | The distance limit of a homing step or passive homing command was exceeded. |
16#0042 | ReferenceNotFound | A limit switch was reached after reversing, or the wrong limit switch was reached. |
16#0043 | SignalNotConfigured | A drive signal that the command needs is not bound. |
16#0044 | TorqueLimitUnavailable | The TorqueLimit drive signal is not bound, or neither the block nor the axis sets a torque limit. |
16#0045 | InvalidSwitchMode | The switch mode does not apply to the block. |
16#0050 | InvalidRatio | The gear ratio has a zero denominator. |
16#0051 | SyncNotPossible | MC_GearInPos cannot reach the sync point within its limits. |
16#0060 | InvalidGroup | The AXES_GROUP_REF does not refer to a group, or the slave of MC_SyncAxisToGroup is an axis of the group. |
16#0061 | GroupStateNotAllowed | The group state does not allow the command, or a transformation would change a coordinate system that the group moves in. |
16#0062 | AxisNotReady | An axis of the group is not powered, or is moving or busy with a command of its own. |
16#0063 | AxisAlreadyGrouped | The axis already belongs to a group. |
16#0064 | InvalidIdent | The IdentInGroup is outside the range from 0 to 15. |
16#0065 | IdentInUse | Another axis of the group already has the IdentInGroup. |
16#0066 | AxisNotInGroup | No axis of the group has the IdentInGroup. |
16#0067 | GroupEmpty | MC_GroupEnable was called for a group without axes. |
16#0068 | InvalidCoordinateSystem | The coordinate system is undefined, or the block does not support it. |
16#0069 | InvalidTransitionMode | The transition mode is undefined, or cannot be used with the buffer mode. |
16#006A | GroupFault | The command ended because the group entered GroupErrorStop. |
16#006B | InvalidCircle | The points of a circular move define no arc, including a half circle in CENTER mode. |
16#006C | InvalidCircleMode | The circle mode or path choice is undefined. |
16#006D | NotInterrupted | MC_GroupContinue was called while no interrupted command is waiting at rest. |
16#006E | InvalidKinematics | The kinematic model cannot be used, for example because it drives more axes than the group has. |
16#006F | TargetUnreachable | The kinematic model cannot reach a point of the path, or the target positions of the axes of a linear or circular move are in a different configuration from the start. |
16#0070 | InvalidPath | The MC_PATH_DATA_REF refers to no path prepared for the group, the coordinate system differs from MC_PathSelect, or the path is already running. |
16#0071 | InvalidPathPoint | A point of the path has an undefined value or an invalid velocity or limit, or the path has no points. |
16#0074 | KinematicsNotSet | The group has no kinematic model. Select one in the axes group file, or with MC_SetKinTransform. |
16#0075 | ConfigurationMismatch | A linear or circular move would start in a different configuration of the kinematic model from the one that the axes are in, such as a SCARA robot whose elbow is on the other side. Place the robot in the configuration with a direct move first. |
16#0101 | FollowingError | Axis fault. The following error exceeded the maximum position lag. |
16#0102 | SoftwareLimitPositive | Axis fault. A velocity command reached the positive software limit. |
16#0103 | SoftwareLimitNegative | Axis fault. A velocity command reached the negative software limit. |
16#0104 | HardwareLimitPositive | Axis fault. The axis moved into the active positive limit switch. |
16#0105 | HardwareLimitNegative | Axis fault. The axis moved into the active negative limit switch. |
16#0110 | GroupInterruptedBySingleAxis | Group error. A single-axis command took an axis away from the moving group. |
16#0111 | GroupAxisFault | Group error. An axis of the group has an axis fault. |
16#0112 | GroupHomingFailed | Group error. The homing of an axis of the group failed. |
16#0113 | GroupTransformationFailed | Group error. The kinematic model could not calculate the positions of the axes while the group moved. |