SR_<Camera Name> - SetDistanceTrigger (Method)

Overview

Type:

Method

Available as of:

V2.3.5.0

This chapter provides information on:

Functional Description

With the method SetDistanceTrigger, the data for the distance trigger can be set.

Interface

Input

Data Type

Description

i_lrDistancePeriod

LREAL

Distance of the position source between two trigger signals.

i_lrTriggerOnDistance

LREAL

Distance that the property xTrigger is TRUE.

i_uiCompensationTimeActivation

UINT

Time compensation to activate the trigger signal.

i_uiCompensationTimeDeactivation

UINT

Time compensation to deactivate the trigger signal.

i_lrSourceRolloverValue

LREAL

Internal phase shift of the position source.

i_lrPositionPhaseOffset

LREAL

Trigger position shift.

Output

Data Type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> Status message

q_etDiag <> GD.ET_Diag.Ok -> Diagnostic message

q_sMsg

STRING[80]

Event-triggered message that gives more detailed information on the diagnostic state.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value of q_etDiagExt

Plain text

Ok

Ok

0

Ok

InputParameterInvalid

DistancePeriodRange

66

The distance period is out of range.

InputParameterInvalid

PositionPhaseOffsetRange

69

The position phase offset is out of range.

InputParameterInvalid

RolloverValueRange

68

The rollover value is out of range.

InputParameterInvalid

TriggerOnDistanceRange

67

The trigger on distance period is out of range.

DistancePeriodRange

Enumeration name: DistancePeriodRange
Enumeration value:

66

Description:

The distance period is out of range.

Issue

Cause

Solution

The configuration of the trigger distance was not successful.

The value transferred at input i_lrDistancePeriod is out of range.

Ensure that the value transferred at i_lrDistancePeriod is greater than 0.

Ensure that the value transferred at i_lrDistancePeriod is greater than the value transferred at i_lrTriggerOnDistance.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Status message: Reading the data of the distance trigger was successful.

PositionPhaseOffsetRange

Enumeration name: PositionPhaseOffsetRange
Enumeration value:

69

Description:

Position phase offset value is out of range.

Issue

Cause

Solution

The configuration of the trigger distance was not successful.

The value transferred at input i_lrPositionPhaseOffset is out of range.

Ensure that the value transferred at i_lrPositionPhaseOffset is less than i_lrDistancePeriod.

RolloverValueRange

Enumeration name: RolloverValueRange
Enumeration value:

68

Description:

Rollover value is out of range.

Issue

Cause

Solution

The configuration of the trigger distance was not successful.

The value transferred at input i_lrSourceRolloverValue is out of range.

Ensure that the value transferred at i_lrSourceRolloverValue is greater than 0.

TriggerOnDistanceRange

Enumeration name: TriggerOnDistanceRange
Enumeration value:

67

Description:

Trigger on distance is out of range.

Issue

Cause

Solution

The configuration of the trigger distance was not successful.

The value transferred at input i_lrTriggerOnDistance is out of range.

Ensure that the value transferred at i_lrTriggerOnDistance is greater than 0.