step-examples/12-8-mixed/M076.stp
Sources
- deduced from ISO 10303-41 dimensional_exponents
Sender
deduced — STEP-NC publisher confusing velocity and acceleration units
Description
A `MACHINING_TOOL_FEEDSPEED`'s feedrate is given as a `MEASURE_WITH_UNIT` whose unit's `DIMENSIONAL_EXPONENTS` are `(1, 0, -2, ..)` (length/time^2 — acceleration) instead of `(1, 0, -1, ..)` (length/time — velocity). A consumer mapping the value to the machine's feed register either silently scales by an unintended factor or rejects. Bug-reporter language: "STEP-NC feedrate has wrong units", "AP238 measure is acceleration not velocity", "feedspeed import scales weirdly".
Reproducer recipe
`DERIVED_UNIT` composed of `LENGTH^1` and `SECOND^-2`, used as the unit on a `MEASURE_WITH_UNIT(LENGTH_MEASURE(500.0), ..)` for feed.
Expected kernel behavior
validate dimensional_exponents against the expected dimension class for the property; reject as malformed or warn and refuse to scale.
Notes
Synonyms: "feedrate dimensional exponent wrong", "wrong physical unit on toolpath", "AP238 feedrate is acceleration unit", "feedrate units mismatch length/time". Synonyms: "feedrate dimensional exponent wrong", "wrong physical unit on toolpath".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'CUTTING_TOOL')contains(b'MACHINING_TOOL_FEEDSPEED')
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/* M076: AP238 cutting-tool feedrate stated in wrong dimensional unit */ 3/* DEFECT: DERIVED_UNIT has DIMENSIONAL_EXPONENTS (1,0,-2,...) = acceleration */ 4/* Feedrate must be velocity: DIMENSIONAL_EXPONENTS (1,0,-1,...) */ 5/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 6/* Byte assertion: contains(b'CUTTING_TOOL') */ 7/* Byte assertion: contains(b'MACHINING_TOOL_FEEDSPEED') */ 8HEADER; 9FILE_DESCRIPTION(('M076: AP238 feedrate stated in wrong dimensional unit'),'2;1'); 10FILE_NAME('M076.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 11/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 12FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 3 1 1 1 }')); 13ENDSEC; 14DATA; 15#1=APPLICATION_CONTEXT('numerical_control_machining'); 16#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 17 'numerical_control_machining',2007,#1); 18/* Standard unit context */ 19#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 20#11=(NAMED_UNIT(*)TIME_UNIT()SI_UNIT($,.SECOND.)); 21#12=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 22#13=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 23#15=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 24 'distance_accuracy_value','maximum model space distance between geometric entities'); 25#16=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 26 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#15)) 27 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12,#13)) 28 REPRESENTATION_CONTEXT('ctx','3D')); 29/* DEFECT: DIMENSIONAL_EXPONENTS for acceleration (1,0,-2,...) */ 30/* Correct velocity exponents would be (1,0,-1,...) */ 31#20=DIMENSIONAL_EXPONENTS(1.0,0.0,-2.0,0.0,0.0,0.0,0.0); 32/* DERIVED_UNIT_ELEMENTs: LENGTH^1 and TIME^-2 â acceleration, not velocity */ 33#21=DERIVED_UNIT_ELEMENT(#10,1.0); 34#22=DERIVED_UNIT_ELEMENT(#11,-2.0); 35/* DERIVED_UNIT composed of length/time^2 â the wrong unit class */ 36#23=DERIVED_UNIT((#21,#22)); 37/* Feedrate value 500.0 in acceleration unit (mm/s^2) instead of mm/s */ 38#30=MEASURE_WITH_UNIT(LENGTH_MEASURE(500.0),#23); 39/* Byte assertion: contains(b'CUTTING_TOOL') */ 40#50=CUTTING_TOOL('endmill_6mm',$,$,$); 41/* Byte assertion: contains(b'MACHINING_TOOL_FEEDSPEED') */ 42/* MACHINING_TOOL_FEEDSPEED referencing the wrong-unit measure */ 43#51=MACHINING_TOOL_FEEDSPEED('feed500_per_s2',#30,$); 44/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 45#60=GEOMETRIC_CURVE_SET('ap238-feedrate-wrong-dimensional-unit-acceleration', 46 (#50,#51,#30)); 47/* Product chain */ 48#100=APPLICATION_CONTEXT('mechanical design'); 49#101=PRODUCT_CONTEXT('',#100,'mechanical'); 50#102=PRODUCT('M076','M076','M076',(#101)); 51#103=PRODUCT_DEFINITION_FORMATION('','',#102); 52#104=PRODUCT_DEFINITION_CONTEXT(#100,'design'); 53#105=PRODUCT_DEFINITION('','',#103,#104); 54#106=PRODUCT_DEFINITION_SHAPE('','',#105); 55#107=SHAPE_REPRESENTATION('',(#60),#16); 56#108=SHAPE_DEFINITION_REPRESENTATION(#106,#107); 57ENDSEC; 58END-ISO-10303-21;