refframe_object.PalletRowColLay Method

For a pallet reference frame, sets the row, column, and layer indices for the next grid position to be accessed.

refframe_object.PalletRowColLay(row, column, layer)

Prerequisites

The refframe_object must be a pallet reference frame.

Parameters

row

A required numerical expression that specifies the index for the next row to be accessed, where the row number is interpreted as an integer value that ranges from 1 to the maximum permitted row index for this pallet, i.e. refframe_object.PalletMaxIndex(1).

column

A required numerical expression that specifies the index for the next column to be accessed, where the column number is interpreted as an integer value that ranges from 1 to the maximum permitted column index for this pallet, i.e. refframe_object.PalletMaxIndex(2).

layer

A required numerical expression that specifies the index for the next layer to be accessed, where the layer number is interpreted as an integer value that ranges from 1 to the maximum permitted layer index for this pallet, i.e. refframe_object.PalletMaxIndex(3).

Remarks

This is a convenience method that allows a program to explicitly set the row, column, and layer indices for the next pallet element to be accessed. This method permits a program to randomly set or reset the next element. For example, if values of 1,1,1 are specified as the arguments to this method, the first pallet position will be accessed next.

By default, when a new pallet reference frame is created, the pallet indices are set to 1, 1, 1.

The operation performed by this method can also be accomplished by utilizing the PalletIndex property once for each of the three pallet indices or the PalletNextPos method can be invoked to advance to the next logical pallet position.

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

loc1.RefFrame = ref1 ' loc1.PosWrtRef all 0’s
ref1.PalletRowColLay(2,3,1) ' Set grid position
Console.Writeline(loc1.Pos.X) ' Displays 110
Console.Writeline(loc1.Pos.Y) ' Displays 90

See Also

RefFrame Class |refframe_object.PalletIndex|refframe_object.PalletMaxIndex|refframe_object.PalletNextPos