State machine

The following state diagram defines the behaviour of the FB.

  • Only one state is active at any particular time.
  • A changeover from one state to another state takes place if the condition for the transition between them has been fulfilled.
  • The numbers correspond to the values of the ENUMS L_MC1P_ABC_State .

[6-15] State diagram

Status

Description

Standby

The axis is in the "Standstill" or "Disabled" PLCopen state.

Stop,

If the xStop input is set to TRUE, the active motion is aborted and the axis is lead to standstill in the "stopping" PLCopen state.

  • Only after the xStop input is reset to FALSE, a change takes place to the "Standby" function state.

Operating modes

A direct change between the single operating modes is possible.

  • The operating mode is selected by setting the associated Execute input to TRUE.

Please observe the following:

  • Homing can only be started if the axis is in the "Standstill" PLCopen state.
  • Homing can only be aborted via the PLCopen state "Stopping" ( xStop input).
  • The direct change to the "Homing" mode or from the "Homing" mode is only possible after the previous request has been completed ( xFunDone = TRUE)

Prioritisation (if different modes are selected at the same time):

  1. Homing (referencing) highest priority

External

A function outside the FB L_MC1P_AxisBasicControl generates setpoints for the connected axis (e.g. MC_CamIn).

Error

The axis is in the "Errorstop" axis state.

  • Resetting the error results in an automatic changeover to "Standby".

The individual operating modes are described in the following subsections.