Class FanucParameterTable
- Namespace
- Hi.NcParsers.Dependencys.Fanuc
- Assembly
- HiMech.dll
Fanuc controller parameter table. Stores system parameters (single value) and axis parameters (per-axis value) following real Fanuc parameter numbering.
public class FanucParameterTable : ControllerParameterTableBase, IHomeMcConfig, IMachineAxisConfig, INcDependency, IMakeXmlSource
- Inheritance
-
FanucParameterTable
- Implements
- Inherited Members
- Extension Methods
Constructors
FanucParameterTable()
public FanucParameterTable()
FanucParameterTable(XElement)
public FanucParameterTable(XElement src)
Parameters
srcXElement
Fields
ParamAxisType
#1006: Axis type per axis. See AxisType.
public const int ParamAxisType = 1006
Field Value
ParamControlledAxes
#1020: Number of controlled axes.
public const int ParamControlledAxes = 1020
Field Value
ParamCutterCompType
#5003: Cutter compensation startup type. See CutterCompensationType.
public const int ParamCutterCompType = 5003
Field Value
ParamMaxSpindleSpeed
#3741: Maximum spindle speed (RPM).
public const int ParamMaxSpindleSpeed = 3741
Field Value
ParamRapidRate
#1420: Rapid traverse rate per axis (mm/min or deg/min).
public const int ParamRapidRate = 1420
Field Value
ParamReferencePosition
#1240: G28 first reference position per axis.
public const int ParamReferencePosition = 1240
Field Value
ParamStrokeLimitNeg
#1320: Negative stroke limit per axis (mm or deg).
public const int ParamStrokeLimitNeg = 1320
Field Value
ParamStrokeLimitPos
#1300: Positive stroke limit per axis (mm or deg).
public const int ParamStrokeLimitPos = 1300
Field Value
Properties
AxisParam1006
#1006: Axis type per axis. See AxisType. See AxisNames. See IsRotaryAxis(string). See SetAxis(string, AxisType).
public Dictionary<string, int> AxisParam1006 { get; set; }
Property Value
AxisParam1240
#1240: G28 first reference position per axis. See IHomeMcConfig. See GetHomePosition(string). See SetHomePosition(string, double).
public Dictionary<string, double> AxisParam1240 { get; set; }
Property Value
AxisTypeParamId
Parameter/MD/MP number for axis type (linear/rotary/spindle).
protected override int AxisTypeParamId { get; }
Property Value
ControlledAxisCount
Number of controlled axes. Delegates to Param1020.
public int ControlledAxisCount { get; set; }
Property Value
CutterCompType
Cutter compensation startup type. Delegates to Param5003.
public CutterCompensationType CutterCompType { get; set; }
Property Value
Default3Axis
Default 3-axis Fanuc milling machine.
public static FanucParameterTable Default3Axis { get; }
Property Value
IdAttributeName
XML attribute name for the parameter ID (“ParamId”, “MdId”, “MpId”).
protected override string IdAttributeName { get; }
Property Value
MaxSpindleSpeed_rpm
Maximum spindle speed in RPM. Delegates to Param3741.
public double MaxSpindleSpeed_rpm { get; set; }
Property Value
Param1020
#1020: Number of controlled axes. See ControlledAxisCount.
public int Param1020 { get; set; }
Property Value
Param3741
#3741: Maximum spindle speed (RPM). See MaxSpindleSpeed_rpm.
public double Param3741 { get; set; }
Property Value
Param5003
#5003: Cutter compensation startup type. See CutterCompType.
public CutterCompensationType Param5003 { get; set; }
Property Value
ReferencePositionParamId
Parameter/MD/MP number for reference position (G28 home).
protected override int ReferencePositionParamId { get; }
Property Value
XName
public static string XName { get; }
Property Value
Methods
MakeXmlSource(string, string, bool)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public override XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif true, the extended file creation is suppressed.
Returns
- XElement
An XML element representing the object's state
Remarks
For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The baseDirectory is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.