摘要 |
A numerical controller in the present invention includes a bus trace circuit configured to fetch a bus cycle satisfying preset conditions, an alarm history, an alarm data acquisition table in which whether to acquire trace data is recorded for each alarm, and a trace circuit setting table in which fetching conditions of the bus cycle of the bus trace circuit are recorded for each alarm, and identifies an alarm for which the trace data is to be fetched from the alarm history and the alarm data acquisition table, reads the fetching conditions of the bus cycle corresponding to the alarm from the trace circuit setting table, sets the fetching conditions to the bus trace circuit, and acquires the trace data of the bus cycle based on the fetching conditions that are set through the bus trace circuit. |