Contour error in CNC machine tools results from both trajectory generation and servo execution, yet the final error magnitude alone cannot explain how changes in control parameters alter the underlying formation process. This study proposes a geometry-aware planning–execution analysis framework that maps the nominal G-code trajectory, CNC target trajectory, and actual trajectory to a common geometric reference. The framework separately quantifies deviations introduced during trajectory planning and servo execution and attributes parameter-induced error increments to planning, servo execution, and their directional interaction. The framework was evaluated on a three-axis translational CNC platform using LinuxCNC/EtherCAT under eight control configurations, with four independent repetitions per configuration. The results reveal substantial variation in the global error-formation structure across control backgrounds, with the dominant contribution shifting between trajectory planning and servo execution. The propagation pathways associated with different parameter perturbations also exhibit different sensitivities to the control background. Local trajectory geometry further redistributes the induced error increments. Under feed-rate perturbations, servo execution remains the dominant source along steady-line segments, whereas the contributions of planning and directional interaction increase near corners. These findings provide an interpretable account of contour-error formation in terms of its planning and execution components rather than the final error magnitude alone.
19 August 2026 in Measurement Science and Technology
Steel surface defect detection remains challenging because tiny defects are easily degraded during downsampling, complex textured backgrounds increase interference, and natural-image pre-training is not well matched to industrial texture-dominant data. To address these issues, this paper proposes DCE-YOLO, a real-time steel surface defect detection framework that combines domain-adaptive contrastive pre-training (DAC-Pretrain) with context-enhanced feature modeling. A DAC-Pretrain strategy, termed DAC-Pretrain, is introduced to learn texture-consistent representations from unlabeled industrial images and improve feature initialization. Space-to-depth convolution is used in the early backbone to preserve fine-grained defect details during downsampling. A dynamic-static large-kernel attention module and a multi-scale dilated shuffle attention module are further incorporated to enhance defect-background discrimination and strengthen multi-scale contextual fusion. Experimental results show that DCE-YOLO achieves an mAP@0.5 of 81.1% on the NEU-DET dataset while maintaining a real-time inference speed of 133.9 FPS. On GC10-DET, it obtains 72.6% mAP@0.5, 40.7% mAP@0.5:0.95, and 133.2 FPS. These results indicate that DCE-YOLO achieves a favorable balance between detection accuracy, efficiency, and robustness for steel surface defect detection.