step-examples/12-8-mixed/M177.stp
Sources
- 16-iso-spec ISO 10303-238 §5.8 coolant_operation tool-capability cross-check
- bug-reporter language: "AP238 through-tool coolant on solid shank", "STEP-NC coolant floods spindle", "tool has no internal channel".
Description
A `COOLANT_OPERATION` specifies through-spindle / through-tool coolant delivery, but the referenced milling tool has no internal-cooling channel attribute. Activating through-tool flood on a solid-shank tool either floods the spindle bearings or stalls the coolant pump. Bug-reporter language: "AP238 through-tool on solid endmill", "STEP-NC coolant capability mismatch", "coolant through tool with no channel".
Reproducer recipe
a `MILLING_CUTTING_TOOL` declared without an `internal_cooling` attribute; a `COOLANT_OPERATION` with mode `.THROUGH_TOOL.` targeting that tool.
Expected kernel behavior
validate coolant-mode capability against tool attributes; reject incompatible combinations.
Notes
Synonyms: "AP238 through-tool coolant on non-coolant tool", "STEP-NC coolant capability mismatch", "internal cooling not declared", "coolant through-tool stalls pump".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'COOLANT_OPERATION')contains(b'.THROUGH_TOOL.')
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/* M177: AP238 coolant_operation requests through-tool flow on tool with no internal cooling */ 3/* DEFECT: COOLANT_OPERATION mode .THROUGH_TOOL. on MILLING_CUTTING_TOOL with no channel */ 4/* MILLING_CUTTING_TOOL 'solid_endmill' is solid-shank â no internal cooling channels */ 5/* Through-tool coolant on solid shank floods spindle bearings or stalls coolant pump */ 6/* Per ISO 10303-238 §5.8 coolant capability must be cross-checked against tool attributes */ 7/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 8/* Byte assertion: contains(b'COOLANT_OPERATION') */ 9/* Byte assertion: contains(b'.THROUGH_TOOL.') */ 10HEADER; 11FILE_DESCRIPTION(('M177: AP238 coolant_operation THROUGH_TOOL on solid-shank tool'),'2;1'); 12FILE_NAME('M177.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 13/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 14FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 3 1 1 1 }')); 15ENDSEC; 16DATA; 17/* Standard unit context (mm) */ 18#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 22 'distance_accuracy_value','maximum model space distance between geometric entities'); 23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 24 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 25 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 26 REPRESENTATION_CONTEXT('ctx','3D')); 27/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 28#20=GEOMETRIC_CURVE_SET('ap238-coolant-operation-through-tool-on-solid-shank', 29 (#52,#54,#60)); 30/* DEFECT: MILLING_CUTTING_TOOL 'solid_endmill' â no internal_cooling channels declared */ 31/* All cooling-channel fields are null â this is a solid-shank endmill */ 32#54=MILLING_CUTTING_TOOL('solid_endmill',$,$,$,$,$,$,$,$); 33/* Byte assertion: contains(b'COOLANT_OPERATION') */ 34/* Byte assertion: contains(b'.THROUGH_TOOL.') */ 35/* DEFECT: COOLANT_OPERATION with coolant_type .THROUGH_TOOL. on solid-shank tool */ 36#53=COOLANT_OPERATION('thru_tool_coolant',.THROUGH_TOOL.,$); 37/* MILLING_OPERATION 'mill_with_thru_coolant' references both tool and coolant op */ 38#52=MILLING_OPERATION('mill_with_thru_coolant',$,$,$,$,$,#53,#54,$,$,$,$,$); 39/* WORKPIECE 'coolant_workpiece' */ 40#60=WORKPIECE('coolant_workpiece','Workpiece for through-tool coolant test',$,$,$,$,$); 41/* MACHINING_WORKINGSTEP links milling op to workpiece */ 42#51=MACHINING_WORKINGSTEP('coolant_step','Through-tool coolant milling step',#52,#60,$); 43/* WORKPLAN: single milling step with through-tool coolant on solid-shank tool */ 44#50=WORKPLAN('thru_tool_coolant_program','Through-tool coolant workplan',(),$,(#51)); 45/* Product chain */ 46#100=APPLICATION_CONTEXT('mechanical design'); 47#101=PRODUCT_CONTEXT('',#100,'mechanical'); 48#102=PRODUCT('M177','M177','M177',(#101)); 49#103=PRODUCT_DEFINITION_FORMATION('','',#102); 50#104=PRODUCT_DEFINITION_CONTEXT(#100,'design'); 51#105=PRODUCT_DEFINITION('','',#103,#104); 52#106=PRODUCT_DEFINITION_SHAPE('','',#105); 53#107=SHAPE_REPRESENTATION('',(#20),#14); 54#108=SHAPE_DEFINITION_REPRESENTATION(#106,#107); 55ENDSEC; 56END-ISO-10303-21;