Table of Contents

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

src XElement

Fields

ParamAxisType

#1006: Axis type per axis. See AxisType.

public const int ParamAxisType = 1006

Field Value

int

ParamControlledAxes

#1020: Number of controlled axes.

public const int ParamControlledAxes = 1020

Field Value

int

ParamCutterCompType

#5003: Cutter compensation startup type. See CutterCompensationType.

public const int ParamCutterCompType = 5003

Field Value

int

ParamMaxSpindleSpeed

#3741: Maximum spindle speed (RPM).

public const int ParamMaxSpindleSpeed = 3741

Field Value

int

ParamRapidRate

#1420: Rapid traverse rate per axis (mm/min or deg/min).

public const int ParamRapidRate = 1420

Field Value

int

ParamReferencePosition

#1240: G28 first reference position per axis.

public const int ParamReferencePosition = 1240

Field Value

int

ParamStrokeLimitNeg

#1320: Negative stroke limit per axis (mm or deg).

public const int ParamStrokeLimitNeg = 1320

Field Value

int

ParamStrokeLimitPos

#1300: Positive stroke limit per axis (mm or deg).

public const int ParamStrokeLimitPos = 1300

Field Value

int

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

Dictionary<string, int>

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

Dictionary<string, double>

AxisTypeParamId

Parameter/MD/MP number for axis type (linear/rotary/spindle).

protected override int AxisTypeParamId { get; }

Property Value

int

ControlledAxisCount

Number of controlled axes. Delegates to Param1020.

public int ControlledAxisCount { get; set; }

Property Value

int

CutterCompType

Cutter compensation startup type. Delegates to Param5003.

public CutterCompensationType CutterCompType { get; set; }

Property Value

CutterCompensationType

Default3Axis

Default 3-axis Fanuc milling machine.

public static FanucParameterTable Default3Axis { get; }

Property Value

FanucParameterTable

IdAttributeName

XML attribute name for the parameter ID (“ParamId”, “MdId”, “MpId”).

protected override string IdAttributeName { get; }

Property Value

string

MaxSpindleSpeed_rpm

Maximum spindle speed in RPM. Delegates to Param3741.

public double MaxSpindleSpeed_rpm { get; set; }

Property Value

double

Param1020

#1020: Number of controlled axes. See ControlledAxisCount.

public int Param1020 { get; set; }

Property Value

int

Param3741

#3741: Maximum spindle speed (RPM). See MaxSpindleSpeed_rpm.

public double Param3741 { get; set; }

Property Value

double

Param5003

#5003: Cutter compensation startup type. See CutterCompType.

public CutterCompensationType Param5003 { get; set; }

Property Value

CutterCompensationType

ReferencePositionParamId

Parameter/MD/MP number for reference position (G28 home).

protected override int ReferencePositionParamId { get; }

Property Value

int

XName

public static string XName { get; }

Property Value

string

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

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

exhibitionOnly bool

if 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.