L_MC4P_GroupPower

This FB serves to switch on/off the single axes belonging to an axes group by means of the software (enable/ inhibit).

  • The aeAxisEnable array serves to individually define which axes of the axes group are to be switched on/off with the FB and which direction of movement is enabled for the prevailing axis after switch-on.
  • In the default setting, all axes are switched on/off and after switch-on, both directions of movement are enabled.
Note!

Each single axis can only be activated by an FB ( MC_Power or L_MC4P_GroupPower). If an already active axis is to be activated once again, the axis is switched off and an error message occurs!

 

 

 

L_MC4P_GroupPower

 

 

 

AXES_GROUP_KIN

-

AxesGroup

xStatus

-

BOOL

BOOL

-

xEnable

xValid

-

BOOL

ARRAY [1..12] OF L_MC4P_AxisEnableMode

-

aeAxisEnable

xError

-

BOOL

eErrorID

-

L_IE1P_Error

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

AxesGroup

AXES_GROUP_KIN

axes group reference

xEnable

BOOL

FALSE

Selected axes of the axes group off.

TRUE

Selected axes of the axes group on.

aeAxisEnable

ARRAY [1..12] OF
L_MC4P_AxisEnableMode

Selection of the axes to be switched on/off

Axis assignment:

  • Index 1 ... 6: Drive axes A1 ... A6
  • Index 7 ... 12: Auxiliary axes Aux1 ... Aux6

Possible settings for each array element/each axis:

  • Disable: Axis is not switched on/off by this FB.
  • EnablePosNeg: Axis is switched on/off. After switch-on, the motion is enabled in both directions.
  • EnablePos: Axis is switched on/off. After switch-on, only the motion in positive direction is enabled.
  • EnableNeg: Axis is switched on/off. After switch-on, only the motion in negative direction is enabled.
Outputs

Name

Data type

Value/meaning

xStatus

BOOL

FALSE

Selected axes of the axes group are not ready for operation.

TRUE

Selected axes of the axes group are ready for operation.

xValid

BOOL

TRUE

Valid values are applied to the FB outputs.

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

L_IE1P_Error

If xError = TRUE: Error number for the error that has occurred.