XFC_EL2212_MultiEdge

XFC_EL2212_MultiEdge 1:

The function block XFC_EL2212_MultiEdge handles the output of a multi-edge cam controller MC_DigitalCamSwitch_MultiEdge via the EL2212 XFC timestamp terminal.

XFC_EL2212_MultiEdge 2: Inputs

VAR_INPUT
    ForceWhenLate : BOOL; 
    Reset         : BOOL;
END_VAR

Name

Type

Description

ForceWhenLate

BOOL

If ForceWhenLate is TRUE, the output is activated even if the time stamp is already exceeded.
It is recommended to set ForceWhenLate to prevent the loss of a switching edge in case of fluctuations of the time signal.

Reset

BOOL

Reset initiates a reset of the terminal

XFC_EL2212_MultiEdge 3:/XFC_EL2212_MultiEdge 4: Inputs/outputs

VAR_IN_OUT
    Output       : OUTPUT_REF_MULTIEDGE;
    TrackOptions : TRACK_REF;
    EL2212       : EL2212_IoInterface;
END_VAR

Name

Type

Description

Output

OUTPUT_REF_MULTIEDGE

Output state for a channel of the Terminal. The data structure Output contains the next calculated states of the digital output and the associated timestamp for output on a digital XFC output terminal.

TrackOptions

TRACK_REF

The data structure TrackOptions contains the parameterization for the cam track.

EL2212

EL2212_IoInterface

Process image of the terminal

XFC_EL2212_MultiEdge 5: Outputs

VAR_OUTPUT
    Error             : BOOL;
    ErrorID           : UDINT;
    ErrorOutputMissed : BOOL;
    PrecisionReduced  : BOOL;
    Diagnostics       : ST_EL2258_Diagnostics;
END_VAR

Name

Type

Description

Error

BOOL

Becomes TRUE if an error occurs.

ErrorID

UDINT

Returns a error number when the error output is set.

ErrorOutputMissed

BOOL

One of the switching points passed in the Output structure could not be met and the output state remains unchanged.
If ForceWhenLate is TRUE, the output state is always output and ErrorOutputMissed does not become TRUE.

PrecisionReduced

BOOL

One of the switching points passed in the Output structure could not be kept, but the output state was delayed.
PrecisionReduced is to be understood as a warning and can only become TRUE if ForceWhenLate is TRUE.

Diagnostics

ST_EL2258_Diagnostics

Data structure containing diagnostic data that can be used for error analysis.

Process image

The terminal is inserted in the process image with up to 10 timestamps for operation with this function block in the multi-timestamp mode and the DC mode must be activated.