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

AXIS_REF

Transfer of the axis data structure

Motion-Axis (AXIS_REF)

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

Outputs

Name

Data type

Value/meaning

xInternalControlActive

BOOL

TRUE

The output signalises that the xEnableInternalControl input and the "Internal Control" button have been activated on the visualisation. The control has been activated via the visualisation.

xBusy

BOOL

TRUE

Processing is running.

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.

Note:

A distinction is made between

  • FB errors ( eErrorID )
  • Drive errors ( dwDriveErrorID )

xCommunicationOK

BOOL

Status of bus communication

TRUE

Bus communication active

xAxisReady

BOOL

TRUE

"Inverter is ready for operation" status signal (initialisation completed and no error is active)

xAxisEnabled

BOOL

TRUE

Inverter is enabled

xDriveWarning

BOOL

TRUE

There is a warning in the inverter.

xDriveError

BOOL

TRUE

There is an error in the inverter.

Note:

A distinction is made between

  • FB errors ( eErrorID )
  • Drive errors ( dwDriveErrorID )

dwDriveErrorID

DWORD

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

xDriveQspActive

BOOL

TRUE

Quick stop is active in the drive

lrActVel

LREAL

Current velocity in [units/s]

xDirectionPositive

BOOL

Display of the direction of motor rotation

TRUE

Clockwise rotation is active

xDirectionNegative

BOOL

Display of the direction of motor rotation

TRUE

Counter-clockwise rotation is active

wDigitalInputs

WORD

Status of the digital drive inputs:

Bit 0: TRUE -> DigIn1 = TRUE

This output is only supported if the 0x60FD/0 object is included in the mapping.