File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1100,6 +1100,8 @@ bool cnc_check_interlocking(void)
11001100 cnc_alarm (EXEC_ALARM_HOMING_FAIL_DOOR );
11011101 return false;
11021102 }
1103+
1104+ itp_stop_tools ();
11031105 }
11041106#endif
11051107
Original file line number Diff line number Diff line change @@ -232,6 +232,13 @@ void tool_set_speed(int16_t value)
232232 tool_current_speed = value ;
233233 if (tool_current .set_speed )
234234 {
235+ #if ASSERT_PIN (SAFETY_DOOR )
236+ // the safety door condition is active
237+ if (cnc_get_exec_state (EXEC_DOOR ))
238+ {
239+ value = 0 ;
240+ }
241+ #endif
235242 tool_current .set_speed (value );
236243 }
237244#endif
@@ -276,6 +283,13 @@ void tool_set_coolant(uint8_t value)
276283#if TOOL_COUNT > 0
277284 if (tool_current .set_coolant )
278285 {
286+ #if ASSERT_PIN (SAFETY_DOOR )
287+ // the safety door condition is active
288+ if (cnc_get_exec_state (EXEC_DOOR ))
289+ {
290+ value = 0 ;
291+ }
292+ #endif
279293 tool_current .set_coolant (value );
280294 }
281295#endif
You can’t perform that action at this time.
0 commit comments