<< Prev        Next >>

TrackInRange

Function

Check whether the current position of the tracking-target work is within the tracking range.

Syntax

TrackInRange (Conveyor number[, Offset value])

Guaranteed Entry

Conveyor number

Specify the conveyor number (1 or 2) to be used by integer type data.

Offset value

Specify the offset distance by double-precision real number. Unit is "mm".
Specifying positive values will offset in the conveyor vector direction, and specifying negative values will offset in the opposite of the conveyor vector direction.
Offset value is the distance from the datum point on the workpiece that have been determined at the conveyor calibration.
This value determines a point on the workpiece that is used to determine whether the workpiece exists within the tracking range.
If the offset value is "0", the workpiece is judged as "within the tracking range" when the said datum point is located in the tracking range.
This is omittable. This should be "0" if it is omitted.

Return Value

An integer type data is returned.
If the position specified by the offset value is within the tracking range, a value other than "0" (True) is returned. If the position is out of the tracking range, "0" (false) is returned.

Description

Check if the tracking target work specified by TrackTargetPos is within the tracking range.
Combining this command with "Wait" command will suspend a task until a tracking-target work piece enters the tracking range.


Attention

  • This is the conveyor tracking operation-dedicated command.

Example

Wait until the current position of the tracking target work enters the tracking range.

Wait TrackInRange(1)

Wait until the position of 500 mm upstream from the current position of tracking-target work enters the tracking range.

Wait TrackInRange(1, -500)

<< Prev        Next >>