Table of Contents

Class MachiningEquipmentUtil

Namespace
Hi.Machining.MachiningEquipmentUtils
Assembly
HiMech.dll

Utility methods for working with machining equipment.

public static class MachiningEquipmentUtil
Inheritance
MachiningEquipmentUtil
Inherited Members

Methods

AlignWorkpieceProgramZeroToIso(IMachiningEquipment, Vec3d)

Places Fixture under the kinematic chain so that ProgramZeroAnchor coincides with the world position the spindle reaches when the machine coordinate equals isoOffset (a G54/G55/… entry).

Other anchors (FixtureBuckle, ProgramZeroAnchor, WorkpieceBuckle) must already be at their intended geometric positions (typically via the buckle “general rule”: bottom/top centers of geom). Only GeomToTableTransformer is mutated.

Returns the assigned translation, or null when workpiece / fixture / Xyzabc machine tool is missing.

public static Vec3d AlignWorkpieceProgramZeroToIso(this IMachiningEquipment equipment, Vec3d isoOffset)

Parameters

equipment IMachiningEquipment
isoOffset Vec3d

Returns

Vec3d

GetIsoCoordinatePosition(IMachiningEquipment, Vec3d)

Get ISO coordinate position from the g54seriesOffset.

public static Vec3d GetIsoCoordinatePosition(this IMachiningEquipment equipment, Vec3d g54seriesOffset)

Parameters

equipment IMachiningEquipment
g54seriesOffset Vec3d

Returns

Vec3d

GetMachinePositionAtProgramZero(IMachiningEquipment)

Gets the machine coordinate when the attacher is at program zero. The machine coordinate are all assumed to be zero.

public static Vec3d GetMachinePositionAtProgramZero(this IMachiningEquipment equipment)

Parameters

equipment IMachiningEquipment

The machining equipment.

Returns

Vec3d

The machine coordinate vector.

GetMachinePositionAtTableBuckleZero(IMachiningEquipment)

Gets the machine coordinate when the attacher is at table buckle zero.

public static Vec3d GetMachinePositionAtTableBuckleZero(this IMachiningEquipment equipment)

Parameters

equipment IMachiningEquipment

The machining equipment.

Returns

Vec3d

The machine coordinate vector.