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
equipmentIMachiningEquipmentisoOffsetVec3d
Returns
GetIsoCoordinatePosition(IMachiningEquipment, Vec3d)
Get ISO coordinate position from the g54seriesOffset.
public static Vec3d GetIsoCoordinatePosition(this IMachiningEquipment equipment, Vec3d g54seriesOffset)
Parameters
equipmentIMachiningEquipmentg54seriesOffsetVec3d
Returns
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
equipmentIMachiningEquipmentThe 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
equipmentIMachiningEquipmentThe machining equipment.
Returns
- Vec3d
The machine coordinate vector.