Class SyntecParameterTable
- Namespace
- Hi.NcParsers.Dependencys.Syntec
- Assembly
- HiMech.dll
Syntec controller parameter table. Stores system parameters (single value) and axis parameters (per-axis value) following Syntec Pr-prefixed parameter numbering.
Syntec is largely Fanuc-compatible in parameter numbering, but some parameters differ in unit or interpretation. For example, Pr4002 (peck retraction) is stored in microns whereas Fanuc #4002 stores in mm.
public class SyntecParameterTable : ControllerParameterTableBase, IHomeMcConfig, IMachineAxisConfig, IRapidFeedrateConfig, ICannedCycleConfig, INcDependency, IMakeXmlSource
- Inheritance
-
SyntecParameterTable
- Implements
- Inherited Members
- Extension Methods
Remarks
CutterCompensationType is shared with Fanuc
because both follow the same ISO cutter compensation standard.
Consider relocating to the shared Hi.NcParsers.Dependencys
namespace if more brands need it.
Constructors
SyntecParameterTable()
public SyntecParameterTable()
SyntecParameterTable(XElement)
public SyntecParameterTable(XElement src)
Parameters
srcXElement
Fields
PrAxisType
Pr1006: Axis type per axis. See AxisType.
public const int PrAxisType = 1006
Field Value
PrControlledAxes
Pr1020: Number of controlled axes.
public const int PrControlledAxes = 1020
Field Value
PrCutterCompType
Pr5003: Cutter compensation startup type. See CutterCompensationType.
public const int PrCutterCompType = 5003
Field Value
PrMaxSpindleSpeed
Pr3741: Maximum spindle speed (RPM).
public const int PrMaxSpindleSpeed = 3741
Field Value
PrPeckRetraction
Pr4002: G83 peck drilling retraction distance (microns). Syntec stores this value in microns; convert ×0.001 for mm.
public const int PrPeckRetraction = 4002
Field Value
PrRapidRate
Pr1420: Rapid traverse rate per axis (mm/min or deg/min).
public const int PrRapidRate = 1420
Field Value
PrReferencePosition
Pr1240: G28 first reference position per axis.
public const int PrReferencePosition = 1240
Field Value
PrStrokeLimitNeg
Pr1320: Negative stroke limit per axis (mm or deg).
public const int PrStrokeLimitNeg = 1320
Field Value
PrStrokeLimitPos
Pr1300: Positive stroke limit per axis (mm or deg).
public const int PrStrokeLimitPos = 1300
Field Value
Properties
AxisPr1006
Pr1006: Axis type per axis. See AxisType. See AxisNames. See IsRotaryAxis(string).
public Dictionary<string, int> AxisPr1006 { get; set; }
Property Value
AxisPr1240
Pr1240: G28 first reference position per axis. See IHomeMcConfig. See GetHomePosition(string). See SetHomePosition(string, double).
public Dictionary<string, double> AxisPr1240 { get; set; }
Property Value
AxisPr1420
Pr1420: Rapid traverse rate per axis (mm/min or deg/min). See IRapidFeedrateConfig. See GetAxisRapidRate_mmdmin(string).
public Dictionary<string, double> AxisPr1420 { 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 Pr1020.
public int ControlledAxisCount { get; set; }
Property Value
CutterCompType
Cutter compensation startup type. Delegates to Pr5003.
public CutterCompensationType CutterCompType { get; set; }
Property Value
Default3Axis
Default 3-axis Syntec milling machine.
public static SyntecParameterTable 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 Pr3741.
public double MaxSpindleSpeed_rpm { get; set; }
Property Value
PeckRetractionDistance_mm
G83 peck drilling clearance distance above the previous stroke bottom before re-entering at feed (mm).
public double PeckRetractionDistance_mm { get; }
Property Value
Remarks
Syntec Pr4002 stores peck retraction distance in microns. Multiply by 0.001 to convert to mm.
Pr1020
Pr1020: Number of controlled axes. See ControlledAxisCount.
public int Pr1020 { get; set; }
Property Value
Pr3741
Pr3741: Maximum spindle speed (RPM). See MaxSpindleSpeed_rpm.
public double Pr3741 { get; set; }
Property Value
Pr5003
Pr5003: Cutter compensation startup type. See CutterCompType.
public CutterCompensationType Pr5003 { get; set; }
Property Value
RapidRateParamId
Parameter/MD/MP number for rapid traverse rate per axis. Null if not defined for this controller brand.
protected override int? RapidRateParamId { get; }
Property Value
- int?
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.