FC_SwitchCam - General Information
Type: |
Function |
Available as of: |
V1.0.3.0 |
Versions: |
Current version |
Set the cam position
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
OnPos > OffPos
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 |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
Data type |
Description |
---|---|
BOOL |
Cam signal |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The state of the cam position has been determined successfully.