L_MC1P_BasicActuatingSpeed
This FB serves to control an axis in speed-controlled operation. The ramp is generated using the CiA402 velocity mode in the lower-level drive.
The acceleration is selected via the inputs lrSetAcc or lrSetDec (alternatively parameterisable via the objects 0x6048 and 0x6049)
The FB does not have to be called in the MotionTask
|
Note!
In order to use this FB, the associated axis has to be operated in "simple mode" (axis mode subindex 27 = 0), otherwise the FB outputs an error. Furthermore, the objects of the velocity mode (0x6042 - vl TargetVelocity and 0x6044 - vl velocity actual Value) have to be included in the mapping |
|
|
|
|
L_MC1P_BasicActuatingSpeed |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF |
- |
|
Axis |
xInternalControlActive |
|
- |
BOOL |
|
BOOL |
- |
|
xEnableInternalControl |
xBusy |
|
- |
BOOL |
|
BOOL |
- |
|
xRegulatorOn |
xError |
|
- |
BOOL |
|
BOOL |
- |
|
xResetError |
eErrorID |
|
- |
L_IE1P_Error |
|
BOOL |
- |
|
xSetDriveQSP |
xCommunicationOK |
|
- |
BOOL |
|
BOOL |
- |
|
xEnableSetVel |
xAxisReady |
|
- |
BOOL |
|
LREAL |
- |
|
lrSetVel |
xAxisEnabled |
|
- |
BOOL |
|
BOOL |
- |
|
xInvertDirection |
xDriveWarning |
|
- |
BOOL |
|
LREAL |
- |
|
lrSetAcc |
xDriveError |
|
- |
BOOL |
|
LREAL |
- |
|
lrSetDec |
dwDriveErrorID |
|
- |
DWORD |
|
|
|
|
|
xDriveQspActive |
|
- |
BOOL |
|
|
|
|
|
lrActVel |
|
- |
LREAL |
|
|
|
|
|
xDirectionPositive |
|
- |
BOOL |
|
|
|
|
|
xDirectionNegative |
|
- |
BOOL |
|
|
|
|
|
wDigitalInputs |
|
- |
WORD |
|
|
|
|
|
|
|
|
|
Inputs
|
Name Data type |
Information/possible settings |
|
|---|---|---|
|
Axis |
Transfer of the axis data structure |
|
|
xEnableInternalControl BOOL |
TRUE |
The internal control of the inverter can be activated via the "Internal Control" button in the visualisation. |
|
xRegulatorOn BOOL |
TRUE |
Controller enable of the axis |
|
xResetError BOOL |
TRUE |
Reset axis error or software error |
|
xSetDriveQSP BOOL |
TRUE |
Activate quick stop in the drive The behaviour after the QSP ramp is completed depends on the set QSP mode. This can be changed via the FB L_MC1P_SetQuickStopOption By means of the default behavior, the drive is inhibited automatically after the QSP is completed. |
|
xEnableSetVel BOOL |
TRUE |
Setpoint interface (llrSetVel input) for defining speed values is activated |
|
TRUEäFALSE |
Stop drive, velocity setpoint = 0 |
|
|
lrSetVel LREAL |
Setpoint selection for velocity [unit/s] Active when xEnableSetVel = TRUE |
|
|
xInvertDirection BOOL |
TRUE |
Inversion of the speed setpoint (lrSetVel input) for imple-menting clockwise rotation/counter-clockwise rotation |
|
lrSetAcc LREAL |
Selecting the acceleration (lrSetAcc) or deceleration (lrSetDec) [units/s²] The ramp is generated in the lower-level drive with the acceleration or deceleration parameterised in the objects 0x6048 and 0x6049. If the inputs lrSetAcc and lrSetDec have a non-zero value or if this values changes, they will be converted into a drive-internal unit and transmitted to the inverter by SDO accesses. The value 0 means that the parameters of the drive are not overwritten. |
|
|
lrSetDec LREAL |
||