<< Prev        Next >>

TrackSetSensor

Function

Store workpiece-related data detected by a sensor into conveyor tracking buffer.

Syntax

TrackSetSensor Conveyor number, Number of workpieces [, UserData [, Attribute data]]

Guaranteed Entry

Conveyor number

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

Number of workpieces

Specify the number of workpieces to be stored in the tracking buffer area at a time by integer type data.
If negative value is set, the internal trigger mode, which does not require trigger input from I/O, will be set.

Value Description
Positive values Specify the number of workpieces detected by the sensor by positive value.
The conveyor encoder value must be stored beforehand by receiving I/O input from the sensor.
0 Error
Negative values Specify the number of workpieces you want to set based on the internal trigger by negative value.
This does not require I/O input from the sensor, and the conveyor encoder value when this command is executed is stored.
UserData

Specify by variant type, single array. This is an optional value. This should be "-1" if this is omitted.
If minus value is set, it is treated same as when it is omitted. To specify each values, use integer type data.

If the number of array elements specified is less than the number of workpieces, "-1" will be set to the remaining array elements.
If you set Userdata for workpieces, the workpieces with specified Userdata value can be exclusively taken out from the tracking buffer at the TrackTargetPos execution.

Attribute data

Attribute value that can be assigned by user to respective workpieces detected.
Specify by variant type, single array. This is an optional value. This should be "-1" if this is omitted.
If minus value is set, it is treated same as when it is omitted. To specify each values, use integer type data.
If the number of array elements specified is less than the number of detected workpieces, "-1" will be set to the remaining array elements.

Description

Store workpiece-related data detected by a sensor into conveyor tracking buffer.
The following data is stored when a workpiece is registered.

  Stored values Direct input
(1) Index value in the tracking buffer (integer type data) Not available
(2) Conveyor encoder value at workpiece detection (integer type data) Not available
(3) Sensor detection position (position type data) Not available
(4) User data (integer type data) Available
(5) Attribute data (integer type data, or integer type data array) Available

To pick up multiple workpieces on one pallet with a robot, specify the number of workpiece to pick in Number of workpieces.

Attention

  • This command is available only for the sensor tracking.

Example

TrackSetSensor 1, 3, Array(1, 2, 3), Array(1, 1, 1)

Store three of work data in the conveyor tracking buffer with specifying user data and attributes.

<< Prev        Next >>