General HiNC Workflow
The following diagram illustrates the overall HiNC workflow:
graph TD
A["Create MachiningProject"] --> B["Setting Environment"]
B --> C["Setting Project Tasks"]
C --> D["Run Tasks"]
D --> E["View Analysis Results"]
For a complete implementation example, see: DemoBuildMachiningProject
1. Create MachiningProject
Creating a machining project is the first step in the HiNC workflow, accomplished by initializing a MachiningProject object.
2. Setting Environment In MachiningProject
- Set MachiningEquipment:
- Usually one-time settings:
- MachiningChain - Configure the complete machine tool including geometry, kinematic chain, and coordinate transformations
- SpindleCapability - Configure SpindleCapability
- CoolantHeatCondition - Configure coolant heat conditions
- BackgroundTemperature - Configure environment background temperature
- Variable settings:
- Usually one-time settings:
- Set MachiningToolHouse - Configure tool house
- Set NcEnv (Controller) - Configure NC system environment parameters
3. Setting Project Tasks
Set sequential tasks using PlayerCommand:
- Set NC Files - Set the file path and customize simulation and optimization settings for each NC file
- Configure NC optimization - Configure NC code optimization parameters
- Set GeomDiffCommand - Configure geometry comparison functionality to compare target workpiece shape with simulated shape
- Set MillingTraining - Configure milling parameter training to calibrate simulation parameters based on actual machining data
- Other task configurations…
The PlayerCommand is typically a ListCommand that contains a sequence of command entries to be executed during the simulation.
4. Run the Tasks (Simulation and Optimization)
Run PlayerCommand through PacePlayer.
At this stage, the simulation process is similar to video playback, which can be:
- Started
- Stopped
- Paused
- Run one line
- Run one step
- Reset
The PacePlayer controls the execution pace of the simulation, allowing you to observe the machining process in detail or run it at full speed.
View the Analysis During Process or Result
SessionMessageHost contains a sequence of simulation messages and step data, which can be used to monitor and analyze the simulation process and results.
UI Pattern
The user interface navigation bar matches the workflow. Top-level navigation items include:
- MachiningProject
- New
- Save
- Load
- Environment
- ...
- Task
- ...
- Sim (Simulation)
This UI structure makes it intuitive to follow the HiNC workflow from project creation to simulation execution.