Estimate the run time of a G-code program
estimate_gcode_run_timeSimulates a CNC, laser or plasma G-code program (G0-G3 with arcs and helixes, drilling cycles G73/G81-G89, dwell, tool changes, inch/mm, absolute/incremental) with the machine's rapid speeds, acceleration and tool-change time. Returns the run time, time per tool, the program's size, and warnings such as rapid moves below Z0 or a program bigger than the machine. Accepts programs of up to 3,000 lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcode | Yes | ||
| dialect | No | fanuc: G4 P in milliseconds (Fanuc, Haas). grbl: seconds (Grbl, LinuxCNC, Mach) | |
| machine | No | Preset (vmc, router, hobby, laser, plasma, waterjet) or {rapid_mm_per_min:[x,y,z], accel_mm_per_s2:[x,y,z], tool_change_s, travel_mm:[x,y,z], corner_tolerance_mm} | |
| pricing | No | Optional: turn the result into a price | |
| process | No | Default: from the machine preset | |
| quantity | No | ||
| pierce_time_s | No | Laser/plasma: time added per pierce | |
| calibration_factor | No | Real time ÷ estimated time from one real job; default 1 | |
| machine_rate_per_hour | No |