The document presents a development of a black box system for machine tools based on open CNC architecture, aimed at enhancing flexibility in programming and integration in the CNC environment. This system allows for real-time monitoring of critical machine parameters and logging of data to assist in diagnosing issues during machine failures or crashes. The black box can collect data from multiple sensors and is designed to improve machine tool performance and operational insights while being tested successfully with Siemens open architecture CNC technology.