L_MC1P_AxisBasicControlV2

The following basic functions are available for the setup or the continuous motion of an axis:

Furthermore, the FB can be used to display the status and error messages, and to stop or reset an error.

 

 

 

L_MC1P_AxisBasicControlV2

 

 

 

AXIS_REF

-

Axis

xInternalControlActive

-

BOOL

BOOL

-

xEnableInternalControl

xError

-

BOOL

BOOL

-

xEnableOperation

eErrorID

-

L_IE1P_Error

BOOL

-

xResetError

xFuncBusy

-

BOOL

BOOL

-

xEnablePositive

xFunDone

-

BOOL

BOOL

-

xEnableNegative

xFunCommandAborted

-

BOOL

BOOL

-

xDisableSWLimit

eFunStateAct

-

L_MC1P_ABC_State

LREAL

-

lrOverride

eControlMode

-

L_MC1P_ControlMode

LREAL

-

lrOverrideJerk

xIsHomed

-

BOOL

LREAL

-

lrOverrideAcc

xHwLimitSwitchNeg

-

BOOL

BOOL

-

xQspApplication

xHwLimitSwitchPos

-

BOOL

LREAL

-

xHalt

eAxisType

-

L_MC1P_DriveType

LREAL

-

xAbort

eAxisState

-

L_MC1P_AXIS_STATE

BOOL

-

xJogPos

xSTOActive

-

BOOL

BOOL

-

xJogNeg

xReadyForOperation

-

BOOL

BOOL

-

xContinuousUpdate

xOperationEnabled

-

BOOL

BOOL

-

xFinishPositioning

xReadyForMotion

-

BOOL

BOOL

-

xMoveVelExecute

xAxisWarning

-

BOOL

BOOL

-

xMoveAbsExecute

xAxisError

-

BOOL

BOOL

-

xMoveRelExecute

eAxisErrorID

-

L_IE1P_Error

LREAL

-

lrPos_Dist

xDriveWarning

-

BOOL

LREAL

-

lrVel

xDriveError

-

BOOL

LREAL

-

lrAcc

dwDriveErrorID

-

DWORD

LREAL

-

lrDec

lrActPos

-

LREAL

LREAL

-

lrJerk

lrActVel

-

LREAL

MC_DIRECTION

-

eDirection

lrSetPosOut

-

LREAL

BOOL

-

xHomeExecute

lrSetVelOut

-

LREAL

MC_TRIGGER_REF

-

scHomeExtTP

lrActFollowingError

-

LREAL

BOOL

-

xHomeAbsSwitch

xInPosition

-

BOOL

BOOL

-

xResetHomePosition

xStandstillSetVelocity

-

BOOL

xStandstillActVelocity

-

BOOL

xConstantVelocity

-

BOOL

xAccelerating

-

BOOL

xDecelerating

-

BOOL

xDirectionPositive

-

BOOL

xDirectionNegative

-

BOOL

xAxisAvailable

-

BOOL

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Axis

AXIS_REF

Transfer of the axis data structure

Motion axes (AXIS_REF)

xEnableInternalControl

BOOL

TRUE

The internal control of the axis can be selected via the "Internal Control" button (button is visible in the visualisation).

xEnableOperation

BOOL

TRUE

Controller enable of the axis (via FB MC_Power).

  • This input sets all enablings.

xResetError

BOOL

FALSE รค TRUE

Reset axis error or software error.

xEnablePositive

BOOL

TRUE

Enable traversing to positive direction.

xEnableNegative

BOOL

TRUE

Enable traversing to negative direction.

xDisableSWLimit

BOOL

TRUE

Deactivate software limit positions.

This input overrides the setting configured in the axis (subindex 50 ) and deactivates the software limit position monitoring.

FALSE

The setting of the axis is effective.

lrOverride

LREAL

Factor for global override of velocity

  • Value range: 0 ... 1.0
    • Values lower than the value range are mapped to the smallest value.
    • Values higher than the value range are mapped to 1.0.
  • Initial value: 1.0 ยบ 100 %
lrOverrideAcc

LREAL

Factor for global override of acceleration

  • Value range: 0.01 ... 1.0
    • Values lower than the value range are mapped to the smallest value.
    • Values higher than the value range are mapped to 1.0.
    • Changing the override during an active movement can cause a reversal.
  • Initial value: 1.0 ยบ 100 %

lrOverrideJerk

LREAL

Factor for global override of the jerk

  • Value range: 0.01 ... 1.0
    • Values lower than the value range are mapped to the smallest value.
    • Values higher than the value range are mapped to 1.0.
    • Changing the override during an active movement can cause a reversal.
  • Initial value: 1.0 ยบ 100 %

xQspApplication

BOOL

FALSE รค TRUE

Abort active motion and lead axis to standstill.

  • A changeover to the "stopping" axis state takes place.
  • Ramp-down is carried out with the values set in subindexes 48 and 49 .

Quick stop application/error stop

xHalt

BOOL

FALSE รค TRUE

Abort active motion and lead axis to standstill.

  • Ramp-down is carried out with the values set in subindexes 186 and 187 .

Halt

xAbort

BOOL

FALSE รค TRUE

Abort active motion and lead axis to standstill.

  • For ramping down the axis, the profile parameters lrSetDec and lrSetJerk are used

The inputs of the different operating modes are described in the corresponding subsection.

Outputs

Name

Data type

Value/meaning

xInternalControlActive

BOOL

TRUE

The control is activated via the visualisation.

(The input xEnableInternalControl is TRUE.)

xError

BOOL

TRUE

During the processing of the FB, an error has occurred. For details see eErrorID .

For output or display of all errors occurred in the axis see xAxisError or eAxisErrorID .

eErrorID

L_IE1P_Error

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

Note:

A distinction is made between

  • FB errors ( eErrorID )
  • AxisRef errors ( eAxisErrorID )
  • Drive errors ( eDriveErrorID )

xFuncBusy

BOOL

TRUE

Processing of the activated function running.

xFunDone

BOOL

TRUE

Execution of the activated function completed successfully.

Special case: When using function MC_MoveVelocity , signal xFunDone is permanently set to TRUE if the assigned target speed has been reached. The state does not change back to FALSE until function MoveVelocity is cancelled or a new target speed is specified.

xFunCommandAborted

BOOL

TRUE

The activated function has been aborted by another FB.

eFunStateAct

L_MC1P_ABC_State

Current state of the FB:

0

Standby

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

1

Stop,

  • The axis is in the "Errorstop" axis state.
  • Resetting the error results in an automatic changeover to "Standby".

2

Homing (referencing)

3

Manual jog (jogging)

4

MoveVelocity (endless traversing at a defined velocity)

5

MoveAbsolute (absolute positioning)

6

MoveRelative (relative positioning)

7

External

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

8

Error

eControlMode

L_MC1P_ControlModeSet

Current control mode of the axis:

0

PosCtrlDrive

1

PosCtrlPLC

10

SpeedCtrl

20

TorqueCtrl

xIsHomed

BOOL

TRUE

The axis has been referenced ("Reference known").

xIsHomed must only be evaluated if the xAxisAvailable status is reported.

xHwLimitSwitchNeg

BOOL

TRUE

Negative travel range limit switch is active.

xHwLimitSwitchPos

BOOL

TRUE

Positive travel range limit switch is active.

xSwLimitEnabled

BOOL

TRUE

Monitoring of the software limit positions is activated.

  • Limit position monitoring in subindex 50
  • Limit positions are not deactivated via the application ( xDisableSWLimit = FALSE)
  • Axis is homed ( xIsHomed = TRUE)
  • No modulo measuring system active

xSwLimitSwitchNeg

BOOL

TRUE

Negative software limit position exceeded.

xSwLimitSwitchPos

BOOL

TRUE

Positive software limit position exceeded.

eAxisType

L_MC1P_DriveType

Connected type of axis:

0

Virtual (virtual axis)

1

HL9400 (Servo Drives 9400 HighLine)

2

i700 (Servo Inverter i700)

3

Encoder

4

GenericDrive (user-specific axis)

5

i500 (i510/i550 inverter)

6

i900 (i950 servo inverter)

7

i900Drive (i950 servo inverter, in the i950)

eAxisState

L_MC1P_AXIS_STATE

Current PLCopen state of the axis:

0

Init

1

ErrorStop

2

Disabled

3

StandStill

4

Stop

5

DiscMotion

6

SyncMotion

7

ContMotion

8

Homing

Axis states (state diagram)

xAxisAvailable

BOOL

TRUE

The axis can be used in the application, i.e. the initialisation has been completed correctly: Valid actual values and the communication with the lower-level drive are available.

xReadyForOperation

BOOL

TRUE

Axis can be enabled (no inverter error,

no STO active, DC bus available)

xOperationEnabled

BOOL

TRUE

The axis is enabled.

xReadyForMotion

BOOL

TRUE

A motion task can be started, i.e. the axis is enabled and fault-free.

xAxisWarning

BOOL

TRUE

There is a warning in the axis data or in a connected function block.

xAxisError

BOOL

TRUE

The output is TRUE in case of

  • error in the axis data or
  • error of a connected FB or
  • error messages of the FB at the eErrorID output.

eAxisErrorID

L_IE1P_Error

If xAxisError = TRUE or xAxisWarning = TRUE: Error number for the occurring error in the axis data or other connected FBs.

Note:

A distinction is made between

  • FB errors ( eErrorID )
  • AxisRef errors ( eAxisErrorID )
  • Drive errors ( eDriveErrorID )

xDriveWarning

BOOL

TRUE

There is a warning in the inverter.

xDriveError

BOOL

TRUE

There is an error in the inverter.

dwDriveErrorID

DWORD

If xDriveError = TRUE or xDriveWarning = TRUE: Error number for the occurring error in the inverter.

Note:

A distinction is made between

  • FB errors ( eErrorID )
  • AxisRef errors ( eAxisErrorID )
  • Drive errors ( eDriveErrorID )

xStandstillSetVelocity

BOOL

TRUE

Setpoint speed = 0

xStandstillActVelocity

BOOL

TRUE

Actual speed within the window parameterised in subindex 132

xSTOActive

BOOL

TRUE

The inverter connected reports "safe Torque OFF".

The outputs of the different operating modes are described in the corresponding subsection.