L_MC1P_IntegrateAxis

This FB integrates a speed to a position.

  • Via the xLoadStartPos input, the starting position pending at the lrStartPos input is loaded to the integrator.
  • In addition to the position, the resulting speed is shown at the lrSetVelOut output.
  • The FB can be used for all measuring systems (modulo/limited).
  • The actual speed of an axis is not average-free when the regulator is switched off. If this value is connected to the lrCycVel input, position drift occurs at the lrsetposout output. To avoid drift, the modulo-differentiated actual position of the axis should be used at the lrCycVel input.

 

 

 

 

L_MC1P_IntegrateAxis

 

 

 

LREAL

-

lrCycVel

lrSetPosOut

-

LREAL

BOOL

-

xLoadStartPos

lrSetVelOut

-

LREAL

LREAL

-

lrStartPos

xError

-

BOOL

LREAL

-

lrCycleLength

eErrorID

-

L_IE1P_Error

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

lrCycVel

LREAL

Clocked speed

  • Unit: units/s

xLoadStartPos

BOOL

TRUE

Load integrator with the value pending at the lrStartPos input and reset error output.

lrStartPos

LREAL

Starting position with which the integrator is loaded by setting xLoadStartPos to TRUE.

  • Unit: units

lrCycleLength

LREAL

Cycle length

Outputs

Name

Data type

Value/meaning

lrSetPosOut

LREAL

Output signal of the position

  • Unit: units

lrSetVelOut

LREAL

Resulting speed

  • Unit: units/s

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

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