FC_SwitchCam

 

FC_SwitchCam - General Information

Overview

Type:

Function

Available as of:

V1.0.3.0

Versions:

Current version

Task

Set the cam position

Description

Issues the function value TRUE as long as the position i_lrEncoderPos is between the activation point i_lrOnPos and the deactivation point i_lrOffPos. A dead time can be entered. That is, the function value is set to TRUE by i_uiTCompOn earlier and then set to FALSE again by i_uiTCompOff earlier.

OnPos < OffPos

G-SE-0068890.1.gif-high.gif

 

 

OnPos > OffPos

G-SE-0068891.1.gif-high.gif

 

 

Interface

Input

Data type

Description

i_lrEncoderPos

LREAL

Position of the master encoder

i_lrEncoderVel

LREAL

Velocity of the master encoder

i_lrPeriod

LREAL

Master encoder period

i_lrOnPos

LREAL

Activation position

i_uiTCompOn

UINT

Compensation time during activation in ms

i_lrOffPos

LREAL

Deactivation position

i_uiTCompOff

UINT

Compensation time during deactivation in ms

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

Return Value

Data type

Description

BOOL

Cam signal

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The state of the cam position has been determined successfully.