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-16] 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 L_MC1P_AxisBasicControlV2 FB generates setpoints for the axis connected (e.g. MC_CamIn).

Error

The axis is in the "Errorstop" axis state.

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