<< Prev        Next >>

TrackCount

Function

Return the number of data within the conveyor tracking buffer.

Syntax

TrackCount (Conveyor number [, userdata[, Count object]])

Guaranteed Entry

Conveyor number

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

Userdata

Specify userdata by integer type. This is an optional value. This does not judge the userdata if the value is omitted.

Count object

Specify the count object by integer type. (See the table below.)
This is an optional value. This should be "1" if it is omitted.

Setting value Data count condition
1 All data
2 Data whose workpiece's current position is upper than the upstream limit of the tracking range.
3 Data whose workpiece's current position is lower than the upstream limit of the tracking range.
4 Data whose workpiece's current position is upper than the downstream limit of the tracking range.
5 Data whose workpiece's current position is lower than the downstream limit of the tracking range.
-1 Data whose workpiece's current position is within the tracking range.

Return Value

The number of workpiece data that meets the specified conditions is returned by integer type data.

Description

This command returns the number of workpiece data within the tracking buffer. The counting condition is determined by the user data and the count object.
If the number of data in the tracking buffer is zero, "0" is returned.
If the number of data in the tracking buffer is one or more, return values will be as follows.

User data Count object Reurn value
Y N Return the number of data in the tracking buffer that belongs to the specified user data.
Y Y Return the number of count object specified that belongs to the specified user data.
N N Return the number of data within the tracking buffer.
N Y Return the number of the specified count object regardless of the user data.

Y : Enter a desired user data number/count object number
N : Not enter any number or enter "-1".

Attention

Example

-

<< Prev        Next >>