Class NcOptOption
Represents the optimization options for NC operations.
public class NcOptOption : IMakeXmlSource, IEquatable<NcOptOption>
- Inheritance
-
NcOptOption
- Implements
- Inherited Members
- Extension Methods
Constructors
NcOptOption()
Ctor.
public NcOptOption()
NcOptOption(NcOptOption)
Copy Ctor.
public NcOptOption(NcOptOption src)
Parameters
src
NcOptOptionsrc
NcOptOption(XElement)
Initializes a new instance of the NcOptOption class from XML.
public NcOptOption(XElement src)
Parameters
src
XElementThe XML element containing the option data.
Properties
CompensationMask
Internal Use Only. Gets or sets the compensation mask for axis compensation.
public int CompensationMask { get; set; }
Property Value
EnableDepthCompensation
Gets or sets whether depth compensation is enabled.
public bool EnableDepthCompensation { get; set; }
Property Value
EnableDepthSplition
Enables or disables depth splitting optimization.
public bool EnableDepthSplition { get; set; }
Property Value
EnableForwardCompensation
Gets or sets whether forward compensation is enabled.
public bool EnableForwardCompensation { get; set; }
Property Value
EnableInterpolation
Enables or disables interpolation.
public bool EnableInterpolation { get; set; }
Property Value
EnableOpt
Enables or disables the optimization process.
public bool EnableOpt { get; set; }
Property Value
EnableOptFeedrate
Enables or disables feedrate optimization.
public bool EnableOptFeedrate { get; set; }
Property Value
EnableSideCompensation
Gets or sets whether side compensation is enabled.
public bool EnableSideCompensation { get; set; }
Property Value
ExtendedPostDistance_mm
Gets or sets the extended post-distance in millimeters.
public double ExtendedPostDistance_mm { get; set; }
Property Value
ExtendedPreDistance_mm
Gets or sets the extended pre-distance in millimeters.
public double ExtendedPreDistance_mm { get; set; }
Property Value
MaxAcceleration_mmds2
Gets or sets the maximum acceleration in millimeters per second squared. The typical CNC lathe or machining center has an acceleration of 0.2g (2 m/sec2). High speed machines have accelerations up to 2g (20 m/sec2). An arbitrary value 10mm/s2 is chosen for initial value. Note: 600mm/min=10mm/s.
public double MaxAcceleration_mmds2 { get; set; }
Property Value
MaxFeedrate_mmdmin
Gets or sets the maximum feedrate in millimeters per minute.
public double MaxFeedrate_mmdmin { get; set; }
Property Value
MaxFeedrate_mmds
Gets or sets the maximum feedrate in millimeters per second.
public double MaxFeedrate_mmds { get; set; }
Property Value
MaxJerk_mmds3
Gets or sets the maximum jerk in millimeters per second cubed.
public double MaxJerk_mmds3 { get; set; }
Property Value
MinFeedrate_mmdmin
Gets or sets the minimum feedrate in millimeters per minute.
public double MinFeedrate_mmdmin { get; set; }
Property Value
MinFeedrate_mmds
Gets or sets the minimum feedrate in millimeters per second.
public double MinFeedrate_mmds { get; set; }
Property Value
PreferedForce_N
Gets or sets the preferred force in Newtons.
public double PreferedForce_N { get; set; }
Property Value
RapidFeed_mmdmin
Gets or sets the rapid feed rate in millimeters per minute.
public double RapidFeed_mmdmin { get; set; }
Property Value
RapidFeed_mmds
Gets or sets the rapid feed rate in millimeters per second.
public double RapidFeed_mmds { get; set; }
Property Value
SpindlePowerSafetyFactor
Gets or sets the safety factor for spindle power.
public double SpindlePowerSafetyFactor { get; set; }
Property Value
SpindleTorqueSafetyFactor
Gets or sets the safety factor for spindle torque.
public double SpindleTorqueSafetyFactor { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
Duplicate()
Creates a new instance of NcOptOption by duplicating the current instance.
public NcOptOption Duplicate()
Returns
- NcOptOption
A new NcOptOption instance with the same values as the current instance.
Equals(NcOptOption)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(NcOptOption other)
Parameters
other
NcOptOptionAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MakeXmlSource(string, string)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state