Skip to content

Commit

Permalink
Update SysML Import
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickRitchie committed Oct 26, 2023
1 parent 22b02a3 commit 8aae465
Show file tree
Hide file tree
Showing 53 changed files with 1,105 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,27 @@ public static class CutterStatusTypeDescriptions
/// Tool is in process and has remaining tool life.
/// </summary>
public const string USED = "Tool is in process and has remaining tool life.";


public static string Get(CutterStatusType value)
{
switch (value)
{
case CutterStatusType.ALLOCATED: return "Tool is has been committed to a piece of equipment for use and is not available for use in any other piece of equipment.";
case CutterStatusType.AVAILABLE: return "Tool is available for use. If this is not present, the tool is currently not ready to be used.";
case CutterStatusType.BROKEN: return "Premature tool failure.";
case CutterStatusType.EXPIRED: return "Tool has reached the end of its useful life.";
case CutterStatusType.MEASURED: return "Tool has been measured.";
case CutterStatusType.NEW: return "New tool that has not been used or first use. Marks the start of the tool history.";
case CutterStatusType.NOT_REGISTERED: return "Tool cannot be used until it is entered into the system.";
case CutterStatusType.RECONDITIONED: return "Tool has been reconditioned.";
case CutterStatusType.UNALLOCATED: return "Tool has not been committed to a process and can be allocated.";
case CutterStatusType.UNAVAILABLE: return "Tool is unavailable for use in metal removal.";
case CutterStatusType.UNKNOWN: return "Tool is an indeterminate state. This is the default value.";
case CutterStatusType.USED: return "Tool is in process and has remaining tool life.";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,19 @@ public static class FormatTypeDescriptions
/// Default value for the definition. The content will be an XML document.
/// </summary>
public const string XML = "Default value for the definition. The content will be an XML document.";


public static string Get(FormatType value)
{
switch (value)
{
case FormatType.EXPRESS: return "Document will confirm to the ISO 10303 Part 21 standard.";
case FormatType.TEXT: return "Document will be a text representation of the tool data.";
case FormatType.UNDEFINED: return "Document will be provided in an undefined format.";
case FormatType.XML: return "Default value for the definition. The content will be an XML document.";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,25 @@ public static class LocationTypeDescriptions
/// Location for a tool awaiting transfer from a tool magazine to spindle or a turret.
/// </summary>
public const string TRANSFER_POT = "Location for a tool awaiting transfer from a tool magazine to spindle or a turret.";


public static string Get(LocationType value)
{
switch (value)
{
case LocationType.CRIB: return "Location with regard to a tool crib.";
case LocationType.END_EFFECTOR: return "Location associated with an end effector.";
case LocationType.EXPIRED_POT: return "Location for a tool that is no longer usable and is awaiting removal from a tool magazine or turret.";
case LocationType.POT: return "Number of the pot in the tool handling system.";
case LocationType.REMOVAL_POT: return "Location for a tool removed from a tool magazine or turret awaiting transfer to a location outside of the piece of equipment.";
case LocationType.RETURN_POT: return "Location for a tool removed from a spindle or turret and awaiting return to a tool magazine.";
case LocationType.SPINDLE: return "Location associated with a spindle.";
case LocationType.STAGING_POT: return "Location for a tool awaiting transfer to a tool magazine or turret from outside of the piece of equipment.";
case LocationType.STATION: return "Tool location in a horizontal turning machine.";
case LocationType.TRANSFER_POT: return "Location for a tool awaiting transfer from a tool magazine to spindle or a turret.";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,47 @@ public static class MeasurementCodeDescriptions
/// Total weight of the cutting tool in grams. The force exerted by the mass of the cutting tool.
/// </summary>
public const string Wt = "Total weight of the cutting tool in grams. The force exerted by the mass of the cutting tool.";


public static string Get(MeasurementCode value)
{
switch (value)
{
case MeasurementCode.Apmx: return "Maximum engagement of the cutting edge or edges with the workpiece measured perpendicular to the feed motion.";
case MeasurementCode.Bch: return "Flat length of a chamfer.";
case MeasurementCode.Bdx: return "Largest diameter of the body of a tool item.";
case MeasurementCode.Bs: return "Measure of the length of a wiper edge of a cutting item.";
case MeasurementCode.Chw: return "Width of the chamfer.";
case MeasurementCode.Crp: return "Theoretical sharp point of the cutting tool from which the major functional dimensions are taken.";
case MeasurementCode.Dc: return "Maximum diameter of a circle on which the defined point Pk of each of the master inserts is located on a tool item. The normal of the machined peripheral surface points towards the axis of the cutting tool.";
case MeasurementCode.DCx: return "Diameter of a circle on which the defined point Pk located on this cutting tool.The normal of the machined peripheral surface points towards the axis of the cutting tool.";
case MeasurementCode.Df: return "Dimension between two parallel tangents on the outside edge of a flange.";
case MeasurementCode.Dmm: return "Dimension of the diameter of a cylindrical portion of a tool item or an adaptive item that can participate in a connection.";
case MeasurementCode.Drva: return "Angle between the driving mechanism locator on a tool item and the main cutting edge.";
case MeasurementCode.H: return "Dimension of the height of the shank.";
case MeasurementCode.Hf: return "Distance from the basal plane of the tool item to the cutting point.";
case MeasurementCode.Ic: return "Diameter of a circle to which all edges of a equilateral and round regular insert are tangential.";
case MeasurementCode.Kapr: return "Angle between the tool cutting edge plane and the tool feed plane measured in a plane parallel the xy-plane.";
case MeasurementCode.L: return "Theoretical length of the cutting edge of a cutting item over sharp corners.";
case MeasurementCode.Lbx: return "Distance measured along the X axis from that point of the item closest to the workpiece, including the cutting item for a tool item but excluding a protruding locking mechanism for an adaptive item, to either the front of the flange on a flanged body or the beginning of the connection interface feature on the machine side for cylindrical or prismatic shanks.";
case MeasurementCode.Lf: return "Distance from the gauge plane or from the end of the shank to the furthest point on the tool, if a gauge plane does not exist, to the cutting reference point determined by the main function of the tool. The CuttingTool functional length will be the length of the entire tool, not a single cutting item. Each CuttingItem can have an independent FunctionalLength represented in its measurements.";
case MeasurementCode.LFx: return "Distance from the gauge plane or from the end of the shank of the cutting tool, if a gauge plane does not exist, to the cutting reference point determined by the main function of the tool. This measurement will be with reference to the cutting tool and **MUST NOT** exist without a cutting tool.";
case MeasurementCode.Lpr: return "Dimension from the yz-plane to the furthest point of the tool item or adaptive item measured in the -X direction.";
case MeasurementCode.Ls: return "Dimension of the length of the shank.";
case MeasurementCode.Lux: return "Maximum length of a cutting tool that can be used in a particular cutting operation including the non-cutting portions of the tool.";
case MeasurementCode.N_a: return "Angle of the tool with respect to the workpiece for a given process. The value is application specific.";
case MeasurementCode.Oal: return "Largest length dimension of the cutting tool including the master insert where applicable.";
case MeasurementCode.Psir: return "Angle between the tool cutting edge plane and a plane perpendicular to the tool feed plane measured in a plane parallel the xy-plane.";
case MeasurementCode.Re: return "Nominal radius of a rounded corner measured in the X Y-plane.";
case MeasurementCode.SDLx: return "Length of a portion of a stepped tool that is related to a corresponding cutting diameter measured from the cutting reference point of that cutting diameter to the point on the next cutting edge at which the diameter starts to change.";
case MeasurementCode.Sig: return "Angle between the major cutting edge and the same cutting edge rotated by 180 degrees about the tool axis.";
case MeasurementCode.STAx: return "Angle between a major edge on a step of a stepped tool and the same cutting edge rotated 180 degrees about its tool axis.";
case MeasurementCode.Wone: return "Insert width when an inscribed circle diameter is not practical.";
case MeasurementCode.Wf: return "Distance between the cutting reference point and the rear backing surface of a turning tool or the axis of a boring bar.";
case MeasurementCode.Wt: return "Total weight of the cutting tool in grams. The force exerted by the mass of the cutting tool.";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,18 @@ public static class ToolLifeDescriptions
/// Tool life measured in tool wear. Wear **MUST** be provided in millimeters as an offset to nominal. All units for minimum, maximum, and nominal **MUST** be given as millimeter offsets aswell. The standard will only consider dimensional wear at this time.
/// </summary>
public const string WEAR = "Tool life measured in tool wear. Wear **MUST** be provided in millimeters as an offset to nominal. All units for minimum, maximum, and nominal **MUST** be given as millimeter offsets aswell. The standard will only consider dimensional wear at this time.";


public static string Get(ToolLife value)
{
switch (value)
{
case ToolLife.MINUTES: return "Tool life measured in minutes. All units for minimum, maximum, and nominal **MUST** be provided in minutes.";
case ToolLife.PART_COUNT: return "Tool life measured in parts. All units for minimum, maximum, and nominal **MUST** be provided as the number of parts.";
case ToolLife.WEAR: return "Tool life measured in tool wear. Wear **MUST** be provided in millimeters as an offset to nominal. All units for minimum, maximum, and nominal **MUST** be given as millimeter offsets aswell. The standard will only consider dimensional wear at this time.";
}

return null;
}
}
}
13 changes: 13 additions & 0 deletions src/MTConnect.NET-Common/Assets/Files/FileStateDescriptions.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,18 @@ public static class FileStateDescriptions
/// Content is modified from `PRODUCTION` or `EXPERIMENTAL`.
/// </summary>
public const string REVISION = "Content is modified from `PRODUCTION` or `EXPERIMENTAL`.";


public static string Get(FileState value)
{
switch (value)
{
case FileState.EXPERIMENTAL: return "Used for processes other than production or otherwise defined.";
case FileState.PRODUCTION: return "Used for production processes.";
case FileState.REVISION: return "Content is modified from `PRODUCTION` or `EXPERIMENTAL`.";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,21 @@ public static class QIFDocumentTypeDescriptions
///
/// </summary>
public const string STATISTICS = "";


public static string Get(QIFDocumentType value)
{
switch (value)
{
case QIFDocumentType.MEASUREMENT_RESOURCE: return "";
case QIFDocumentType.PLAN: return "";
case QIFDocumentType.PRODUCT: return "";
case QIFDocumentType.RESULTS: return "";
case QIFDocumentType.RULES: return "";
case QIFDocumentType.STATISTICS: return "";
}

return null;
}
}
}
19 changes: 19 additions & 0 deletions src/MTConnect.NET-Common/Assets/RawMaterials/FormDescriptions.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,24 @@ public static class FormDescriptions
///
/// </summary>
public const string SHEET = "";


public static string Get(Form value)
{
switch (value)
{
case Form.BAR: return "";
case Form.BLOCK: return "";
case Form.CASTING: return "";
case Form.FILAMENT: return "";
case Form.GAS: return "";
case Form.GEL: return "";
case Form.LIQUID: return "";
case Form.POWDER: return "";
case Form.SHEET: return "";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,24 @@ public static class CoordinateSystemTypeDescriptions
/// Stationary coordinate system referenced to earth, which is independent of the robot motion. ISO 9787:2013For non-robotic devices, stationary coordinate system referenced to earth, which is independent of the motion of a piece of equipment.
/// </summary>
public const string WORLD = "Stationary coordinate system referenced to earth, which is independent of the robot motion. ISO 9787:2013For non-robotic devices, stationary coordinate system referenced to earth, which is independent of the motion of a piece of equipment.";


public static string Get(CoordinateSystemType value)
{
switch (value)
{
case CoordinateSystemType.BASE: return "Coordinate system referenced to the base mounting surface. ISO 9787:2013A base mounting surface is a connection surface between the arm and its supporting structure.ISO 9787:2013For non-robotic devices, it is the connection surface between the device and its supporting structure.";
case CoordinateSystemType.CAMERA: return "Coordinate system referenced to the sensor which monitors the site of the task. ISO 9787:2013";
case CoordinateSystemType.MACHINE: return "Coordinate system referenced to the home position and orientation of the primary axes of a piece of equipment.";
case CoordinateSystemType.MECHANICAL_INTERFACE: return "Coordinate system referenced to the mechanical interface. ISO 9787:2013";
case CoordinateSystemType.MOBILE_PLATFORM: return "Coordinate system referenced to one of the components of a mobile platform. ISO 8373:2012";
case CoordinateSystemType.OBJECT: return "Coordinate system referenced to the object. ISO 9787:2013";
case CoordinateSystemType.TASK: return "Coordinate system referenced to the site of the task. ISO 9787:2013";
case CoordinateSystemType.TOOL: return "Coordinate system referenced to the tool or to the end effector attached to the mechanical interface. ISO 9787:2013";
case CoordinateSystemType.WORLD: return "Stationary coordinate system referenced to earth, which is independent of the robot motion. ISO 9787:2013For non-robotic devices, stationary coordinate system referenced to earth, which is independent of the motion of a piece of equipment.";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,17 @@ public static class CriticalityTypeDescriptions
/// Services or functions provided by the associated element is not required for the operation of this element.
/// </summary>
public const string NONCRITICAL = "Services or functions provided by the associated element is not required for the operation of this element.";


public static string Get(CriticalityType value)
{
switch (value)
{
case CriticalityType.CRITICAL: return "Services or functions provided by the associated element is required for the operation of this element.";
case CriticalityType.NONCRITICAL: return "Services or functions provided by the associated element is not required for the operation of this element.";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,24 @@ public static class MediaTypeDescriptions
/// Parasolid XT Siemens data interchange format.
/// </summary>
public const string X_T = "Parasolid XT Siemens data interchange format.";


public static string Get(MediaType value)
{
switch (value)
{
case MediaType.THREE_D_S: return "Autodesk file format.";
case MediaType.ACIS: return "Dassault file format.";
case MediaType.COLLADA: return "Iso 17506.";
case MediaType.GDML: return "Geometry Description Markup Language.";
case MediaType.IGES: return "Initial Graphics Exchange Specification.";
case MediaType.OBJ: return "Wavefront OBJ file format.";
case MediaType.STEP: return "Iso 10303 STEP AP203 or AP242 format.";
case MediaType.STL: return "Stereolithography file format.";
case MediaType.X_T: return "Parasolid XT Siemens data interchange format.";
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,18 @@ public static class MotionActuationTypeDescriptions
/// Motion is computed and is used for expressing an imaginary movement.
/// </summary>
public const string VIRTUAL = "Motion is computed and is used for expressing an imaginary movement.";


public static string Get(MotionActuationType value)
{
switch (value)
{
case MotionActuationType.DIRECT: return "Movement is initiated by the component.";
case MotionActuationType.NONE: return "No actuation of this axis.> Note: Actuation of `NONE` can be either a derived `REVOLUTE` or `PRISMATIC` motion or static `FIXED` relationship.";
case MotionActuationType.VIRTUAL: return "Motion is computed and is used for expressing an imaginary movement.";
}

return null;
}
}
}
Loading

0 comments on commit 8aae465

Please sign in to comment.