step-examples/12-8-mixed/M106.stp
Sources
- deduced from ISO 10303-238 §5.6 cycle-time / shift-length practicality
Sender
deduced — STEP-NC publisher with feed-rate mis-applied (slow rate on long pass)
Description
The summed `EXECUTION_TIME` of the operations in a `WORKPLAN` exceeds 28800 seconds (8-hour shift); e.g., a single workplan declaring 50 hours of continuous machining. While not formally a STEP error, it indicates a unit-confusion or feedrate-stuck-at-zero condition upstream worth flagging. Bug-reporter language: "AP238 cycle time absurdly long", "STEP-NC workplan won't finish in a shift", "feedrate units wrong (cycle time 50h)".
Reproducer recipe
A `MACHINING_OPERATION` with `EXECUTION_TIME` of 180000.0 seconds (50 hours) attached.
Expected kernel behavior
Warn and accept: emit a warning diagnostic when any individual operation exceeds shift length, treating this as a signal of upstream feedrate or unit error, and continue.
Notes
Synonyms: "STEP-NC cycle time too long", "AP238 unrealistic execution time", "workplan exceeds shift length", "machining time impossibly long". Synonyms: "STEP-NC cycle time too long", "AP238 unrealistic execution time".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'TIME_MEASURE')contains(b'180000.0')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M106: AP238 workplan total execution time exceeds shift length */ 3/* DEFECT: single MACHINING_OPERATION declares 180000.0 s (50 h) execution time */ 4/* 180000 s >> 28800 s (8-hour shift) â indicates feedrate or unit confusion */ 5/* Violates ISO 10303-238 §5.6 cycle-time / shift-length practicality */ 6/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 7/* Byte assertion: contains(b'TIME_MEASURE') */ 8/* Byte assertion: contains(b'180000.0') */ 9HEADER; 10FILE_DESCRIPTION(('M106: AP238 workplan execution time exceeds shift length'),'2;1'); 11FILE_NAME('M106.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 12/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 13FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 1 0 0 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('step_nc_mim'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 18 'ap238_step_nc_mim',2007,#1); 19/* Standard unit context â mm */ 20#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 21#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 22#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 23#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 24 'distance_accuracy_value','maximum model space distance between geometric entities'); 25#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 26 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 27 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 28 REPRESENTATION_CONTEXT('nc','3D')); 29/* Time unit â seconds â for execution time measurement */ 30#20=(NAMED_UNIT(*)SI_UNIT($,.SECOND.)TIME_UNIT()); 31/* Byte assertion: contains(b'TIME_MEASURE') */ 32/* Byte assertion: contains(b'180000.0') */ 33/* DEFECT: 180000.0 seconds = 50 hours; shift length is 28800 s (8 h) */ 34/* Feedrate stuck at near-zero or units mm/rev instead of mm/min cause this */ 35#21=MEASURE_WITH_UNIT(TIME_MEASURE(180000.0),#20); 36/* Machined feature â a pocket requiring the absurdly long cut */ 37#50=MACHINED_FEATURE('pocket_a',$,$,$,$,$); 38/* 12mm end mill used for the long pocket milling pass */ 39#60=MACHINING_TOOL('endmill_12mm',$,$,$); 40/* DEFECT: MACHINING_OPERATION declares execution_time of 180000.0 s (50 h) */ 41/* Correct shift length would cap at 28800 s; 180000 s signals feedrate error */ 42#70=MACHINING_OPERATION('op_long_cut',#60,$,#21,$,$,$,$,#50,$,$); 43#80=MACHINING_WORKINGSTEP('step_a',#50,#70,$); 44/* WORKPLAN: single step; total scheduled time = 180000.0 s */ 45#90=WORKPLAN('main',(#80),$,$,$); 46/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 47#300=GEOMETRIC_CURVE_SET('ap238-workplan-execution-time-exceeds-shift-length', 48 (#21,#50,#60,#70,#80,#90)); 49/* Product chain */ 50#400=APPLICATION_CONTEXT('mechanical design'); 51#401=PRODUCT_CONTEXT('',#400,'mechanical'); 52#402=PRODUCT('M106','M106','M106',(#401)); 53#403=PRODUCT_DEFINITION_FORMATION('','',#402); 54#404=PRODUCT_DEFINITION_CONTEXT(#400,'design'); 55#405=PRODUCT_DEFINITION('','',#403,#404); 56#406=PRODUCT_DEFINITION_SHAPE('','',#405); 57#407=SHAPE_REPRESENTATION('',(#300),#14); 58#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407); 59ENDSEC; 60END-ISO-10303-21;