For a pallet reference frame, sets or gets the number of rows, columns, or layers in the pallet.
refframe_object.PalletMaxIndex( row_col_lay)= <maximum_index>
-or-
…refframe_object.PalletMaxIndex(row_col_lay)
Prerequisites
The refframe_object must be a pallet reference frame.
Parameters
row_col_lay
A required numerical expression that is equal to 1 if the number of rows is to be accessed, 2 if the number of columns is to be accessed, or 3 if the number of layers is to be accessed.
Remarks
This property allows a program to set or get the number of rows, columns or layers for a given pallet reference frame. The number of rows, columns or layers is specified by an integer number greater than or equal to 1.
To specify a specific pallet position, the PalletIndex properties must be set to at least 1 and cannot be greater then the applicable maximum values defined by the PalletMaxIndex property.
By default, when a new pallet reference frame is created, the maximum pallet indices are each set to 1.
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.PalletRowColLay