L_MC1P_FastOutput

This FB calculates the time (latch of the internal µs ticker) for setting the outputs of the I/O compound module EPM-S310 from a position defined by the lrSwitchPosition input. Since the position is transferred in units (user units on the output side of the motion axis), the FB also requires a reference to the corresponding axis data structure.

Note!
  • Encoders connected to a counter I/O compound module (EMP-S600 to EPM-S604) are compensated automatically. The counter modules are also provided with the time stamp functionality. The time stamps are transferred to the control together with the position values.
  • To ensure that the output is set very precisely depending on the position, we recommend to implement the position measurement via an encoder connected to a counter I/O compound module.
  • The storage capacity in the I/O modules amounts to 8 requests to be processed at the same time.
  • The L_MC1P_FastOutput can only be reactivated after a feedback at the xDone output.
    If required, use several instances of the block.

 

 

 

L_MC1P_FastOutput

 

 

 

AXIS_REF

-

Axis

xDone

-

BOOL

L_FastIO_OutRef

-

FastIO_Out

xBusy

-

BOOL

BOOL

-

xExecute

xError

-

BOOL

BOOL

-

xAbort

eErrorID

-

L_IE1P_Error

BYTE

-

byDigitalOutputSel

MC_SOURCE

-

eValueSource

BOOL

-

xOutputState

LREAL

-

lrSwitchPosition

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Axis

AXIS_REF

Transfer of the axis data structure

Motion axes (AXIS_REF)

FastIO_Out

L_FastIO_OutRef

Reference to the EPM-S310 I/O compound module

xExecute

BOOL

FALSE ä TRUE

Start execution of the function block.

xAbort

BOOL

FALSE ä TRUE

Abort processing of the FB.

byDigitalOutputSel

BYTE

Selection of the output

eValueSource

MC_SOURCE

Selection

  • Position setpoint ( mcSetValue ) or
  • current position ( mcActualValue ) as source for calculating the switching position

Default setting:

eValueSource := MC_SOURCE.mcActualValue

xOutputState

BOOL

State to which the selected output is to be set.

FALSE

Set output to LOW level.

TRUE

Set output to HIGH level.

lrSwitchPosition

LREAL

Position value at which the output is set.

  • Specification in units (user units on the output side of the motion axis).

wExternalDelay
Compensation

WORD

Input for manual compensation of propagation times for the DO output

  • Background: The propagation times of the axis positions on the respective fieldbus are not compensated automatically.
  • The delay time is specified in [µs].

lrDynVelPosOffset

LREAL

Input for a velocity-dependent compensation of the switching time.

  • A positive value causes an early switching of the output. This shift is proportional to the current velocity.

xReset

BOOL

TRUE

Set output to LOW level

xDisableAccCalc

BOOL

TRUE

Proportion of acceleration not considered, i.e. linear extrapolation of the position for calculating the switching time

Outputs

Name

Data type

Value/meaning

xDone

BOOL

TRUE

The command has been executed successfully.

xBusy

BOOL

TRUE

Processing is running.

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

xAborted

BOOL

TRUE

Processing of the FB has been aborted.

eErrorID

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

Execute several switching operations successively

If several switching operations are to be carried out in succession, the respective commands must have the same order as the switching operations.

Example : FreeEncoder axis rotates in positive direction, i.e. position values increase.

1. switching operation is to take place at 60 degrees

2. switching operation is to take place at 90 degrees

3. switching operation is to take place at 120 degrees

The order of the commands to be executed must be: "1st switching operation", "2nd switching operation", and "3rd switching operation".