refframe_object.PalletOrder Property

For a pallet reference frame, sets or gets the parameter that specifies the order in which the row, column, and layer indices are incremented.

refframe_object.PalletOrder = <indexing_order>
-or-
refframe_object.PalletOrder

Prerequisites

The refframe_object must be a pallet reference frame.

Parameters

None

Remarks

Normally, the rows and columns of a pallet are defined such that a layer of rows and columns lie in the world coordinate system X-Y plane. If the rows and columns are defined in such a manner, you may wish to increment from one pallet position to the next in a different order than the standard row first, then column, then layer pattern. For example, you may want to stack from the bottom layer to the top layer before incrementing to the next row or column. The PalletOrder parameter allows a program to define the order in which the row, column, and layer indices are incremented.

The interpretation of this parameter is presented in Table 19-74.

Table 19-74: PalletOrder Parameter

PalletOrder Value Incrementing Order

0

Row, column, layer

1

Row, layer, column

2

Column, row, layer

3

Column, layer, row

4

Layer, row, column

5

Layer, column, row

By default, when a new pallet reference frame is created, the PalletOrder is set to 0 (row,column,layer).

Examples

Dim ref1 As New RefFrame           ' Also allocates Loc
Dim loc1 As New Location

ref1.Type = 1 ' Change to pallet frame
ref1.Loc.XYZ(100,50,-80,0,0,0) ' Define pallet base
ref1.PalletPitch(1) = 10 ' Spacing along row
ref1.PalletPitch(2) = 20 ' Spacing along column
ref1.PalletMaxIndex(1) = 3 ' Define grid size
ref1.PalletMaxIndex(2) = 3 ' Define grid size
ref1.PalletOrder = 2 ' Col, row, layer order

loc1.RefFrame = ref1 ' loc1.PosWrtRef all 0’s
ref1.PalletRowColLay(3,1,1) ' Set grid position
ref1.PalletNextPos ' Advance to 3,2,1
Console.Writeline(loc1.Pos.X) ' Displays 120
Console.Writeline(loc1.Pos.Y) ' Displays 70

See Also

RefFrame Class |refframe_object.PalletNextPos