For a pallet reference frame, advances the pallet position to the next logical position.
refframe_object.PalletNextPos
Prerequisites
The refframe_object must be a pallet reference frame.
Parameters
None
Remarks
Given the current pallet position and the PalletOrder, this method advances the pallet to the next logical position. For example, if the current pallet position is at the last element in a row, 3rd column position, and 2nd layer, and the PalletOrder indicates that the pallet should be incremented by row, column and layer, PalletNextPos will advance to the 1st row element, 4th column element and 2nd layer.
If the initial pallet position is at the last row, column, and layer position, PalletNextPos changes the pallet position indices to 1,1,1.
If you want to randomly select the next pallet position, a program can utilize PalletIndex or PalletRowColLay instead of the PalletNexPos method.
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.PalletIndex|refframe_object.PalletOrder|refframe_object.PalletRowColLay