L_MC1P_AxisBasicControl
The following basic functions are available for the setup or the continuous motion of an axis:
In addition, the FB can be used to display the status and error messages, and to reset an error.
|
|
|
|
L_MC1P_AxisBasicControl |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF |
- |
|
Axis |
xInternalControlActive |
|
- |
BOOL |
|
BOOL |
- |
|
xEnableInternalControl |
xError |
|
- |
BOOL |
|
BOOL |
- |
|
xRegulatorOn |
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 |
- |
|
xStop |
xHwLimitSwitchPos |
|
- |
BOOL |
|
LREAL |
- |
|
lrStopDec |
xSwLimitEnabled |
|
- |
BOOL |
|
LREAL |
- |
|
lrStopJerk |
xSwLimitSwitchNeg |
|
- |
BOOL |
|
BOOL |
- |
|
xHalt |
xSwLimitSwitchPos |
|
- |
BOOL |
|
BOOL |
- |
|
xJoggingPos |
eAxisType |
|
- |
L_MC1P_DriveType |
|
BOOL |
- |
|
xJoggingNeg |
eAxisState |
|
- |
L_MC1P_AXIS_STATE |
|
LREAL |
- |
|
lrJoggingSetVel |
xAxisAvailable |
|
- |
BOOL |
|
LREAL |
- |
|
lrJoggingSetAcc |
xAxisReady |
|
- |
BOOL |
|
LREAL |
- |
|
lrJoggingSetDec |
xAxisEnabled |
|
- |
BOOL |
|
LREAL |
- |
|
lrJoggingSetJerk |
xAxisWarning |
|
- |
BOOL |
|
BOOL |
- |
|
xContinuousUpdate |
xAxisError |
|
- |
BOOL |
|
BOOL |
- |
|
xMoveVelExecute |
eAxisErrorID |
|
- |
L_IE1P_Error |
|
BOOL |
- |
|
xMoveAbsExecute |
xDriveWarning |
|
- |
BOOL |
|
BOOL |
- |
|
xMoveRelExecute |
xDriveError |
|
- |
BOOL |
|
LREAL |
- |
|
lrSetPos_Dist |
dwDriveErrorID |
|
- |
DWORD |
|
LREAL |
- |
|
lrSetVel |
lrActPos |
|
- |
LREAL |
|
LREAL |
- |
|
lrSetAcc |
lrActVel |
|
- |
LREAL |
|
LREAL |
- |
|
lrSetDec |
lrSetPosOut |
|
- |
LREAL |
|
LREAL |
- |
|
lrSetJerk |
lrSetVelOut |
|
- |
LREAL |
|
MC_DIRECTION |
- |
|
eSetDirection |
lrActFollowingError |
|
- |
LREAL |
|
BOOL |
- |
|
xHomeExecute |
xConstantVelocity |
|
- |
BOOL |
|
LREAL |
- |
|
lrHomePosition |
xAccelerating |
|
- |
BOOL |
|
BOOL |
- |
|
xUseHomeExtParameter |
xDecelerating |
|
- |
BOOL |
|
L_MC1P_HomeParameter |
- |
|
scHomeExtParameter |
xDirectionPositive |
|
- |
BOOL |
|
MC_TRIGGER_REF |
- |
|
scHomeExtTP |
xDirectionNegative |
|
- |
BOOL |
|
BOOL |
- |
|
xHomeAbsSwitch |
xInPosition |
|
- |
BOOL |
|
|
|
|
|
xStandstillSetVelocity |
|
- |
BOOL |
|
|
|
|
|
xStandstillActVelocity |
|
- |
BOOL |
|
|
|
|
|
xAxisReadyToSwitchOn |
|
- |
BOOL |
|
|
|
|
|
xAxisReadyForMotion |
|
- |
BOOL |
|
|
|
|
|
|
|
|
|
Inputs
|
Name Data type |
Information/possible settings |
|
|---|---|---|
|
Axis |
Transfer of the axis data structure |
|
|
xEnableInternalControl BOOL |
TRUE |
The internal control of the axis can be selected via the "Internal Control" button (button is visible in the visualisation). |
|
xRegulatorOn BOOL |
TRUE |
Controller enable of the axis (via FB MC_Power).
|
|
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
|
|
|
lrOverrideJerk LREAL |
Factor for global override of the jerk
|
|
|
lrOverrideAcc LREAL |
Factor for global override of acceleration
|
|
|
xStop BOOL |
FALSE ä TRUE |
Abort active motion and lead axis to standstill.
|
|
lrStopDec LREAL |
TRUE |
Deceleration for a motion aborted by the xStop input |
|
lrStopJerk LREAL |
TRUE |
Jerk for a motion aborted by the xStop input |
|
xHalt BOOL |
FALSE ä TRUE |
Abort active motion and lead axis to standstill.
|
|
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
|
If xError = TRUE: Error number for the error that has occurred within the FB.
Note: A distinction is made between
|
|
|
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 |
Current state of the FB: |
|
|
0 |
Standby
|
|
|
1 |
Stop,
|
|
|
2 |
||
|
3 |
||
|
4 |
||
|
5 |
||
|
6 |
||
|
7 |
External
|
|
|
eControlMode |
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. |
|
xSwLimitSwitchNeg BOOL |
TRUE |
Negative software limit position exceeded. |
|
xSwLimitSwitchPos BOOL |
TRUE |
Positive software limit position exceeded. |
|
eAxisType |
Connected type of axis: |
|
|
0 |
Virtual (virtual axis) |
|
|
1 |
HL9400 (Servo Drives 9400 HighLine) |
|
|
2 |
i700 (Servo Inverter i700) |
|
|
3 |
Encoder |
|
|
eAxisState |
Current PLCopen state of the axis: |
|
|
0 |
Init |
|
|
1 |
ErrorStop |
|
|
2 |
Disabled |
|
|
3 |
StandStill |
|
|
4 |
Stop |
|
|
5 |
DiscMotion |
|
|
6 |
SyncMotion |
|
|
7 |
ContMotion |
|
|
8 |
Homing |
|
|
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. |
|
xAxisReady BOOL |
TRUE |
Axis is ready for operation. |
|
xAxisEnabled BOOL |
TRUE |
Axis is enabled. |
|
xAxisError BOOL |
TRUE |
The output is TRUE in case of
|
|
xAxisWarning BOOL |
TRUE |
There is a warning in the axis data or in a connected function block. |
|
eAxisErrorID
|
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
|
|
|
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
|
|
|
xStandstillSetVelocity BOOL |
TRUE |
Setpoint speed = 0 |
|
xStandstillActVelocity BOOL |
TRUE |
Actual speed within the window parameterised in subindex 132 |
|
xAxisReadyToSwitchOn BOOL |
TRUE |
Axis can be enabled (no inverter error, no STO active, DC bus available) |
|
xAxisReadyForMotion BOOL |
TRUE |
A motion task can be started, i.e. the axis is enabled and fault-free. |
|
The outputs of the different operating modes are described in the corresponding subsection. |
||
Motion axes (AXIS_REF)