| Article ID: | T2985 |
| Date: | 8/14/07 |
| Product: | EPSON RC+ v4.x |
| Subject: | Conveyor tracking error 4406: The specified queue data is outside the set area |
Symptoms
Sometimes error 4406 when you use the first
part in the conveyor queue.
Causes
This
can occur when you have added multiple parts to the queue, but after
Cnv_QueLen reports that there are parts in the pickup area, the first part
in the queue is not in the pickup area.
Remedy
Use the following function to find the first part to
pickup (the part farthest from upstream).
Function FindFirstQue(ConvNum As Integer) As Integer
Integer i
Double x, x_max
x_max = -999
FindFirstQue = 0
For i = 0 To Cnv_QueLen(ConvNum) - 1
x = CX(Cnv_QueGet(ConvNum, i))
If x > x_max Then
x_max = x
FindFirstQue = i
EndIf
Next
Fend
' Call FindFirstQue to get the index of the next part to pick up
Integer index
index = FindFirstQue(1)
Jump Cnv_QueGet(1, index)
