refframe_object.PalletPitch Property

For a pallet reference frame, sets or gets the step size (pitch) between adjacent rows, columns, or layers in a pallet.

refframe_object.PalletPitch(row_col_lay) = <pitch_size>
-or-
refframe_object.PalletPitch(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 row pitch is to be accessed, 2 if the column pitch is to be accessed, or 3 if the layer pitch is to be accessed.

Remarks

This property allows a program to set or get the step size (pitch) between sequential rows, columns or layers for a pallet reference frame. The step sizes are in units of millimeters and can be both positive and negative real numbers.

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