Display device, and display method
The objective of the present invention is to display a correspondence relationship between a specific location in a machining program and specific position in a machining trajectory in such a way as to be immediately understandable, in a display device capable of simultaneously displaying the machining program and the machining trajectory. Acquired position data of a tool, and a character string from a machining program are saved in association with one another, a part of interest of a displayed tool machining trajectory is selected, and a program block comprising a character string from the machining program associated with the selected part of the machining trajectory is selected and is displayed on the displayed machining program, thereby making the relationship between the operation of the tool and the machining program more readily understandable.
1 . A display device comprising a processor, the processor being configured to:
acquire tool position data;
acquire a machining program;
save the acquired tool position data and an index of the machining program in association with each other;
calculate a tool machining trajectory from the acquired tool position data and displays the tool machining trajectory;
select a portion on the machining trajectory from the displayed tool machining trajectory
select a program block of the machining program corresponding to the index of the machining program saved in association with the portion, which has been selected, on the machining trajectory; and
display, on the displayed machining program, the selected program block differently from other character strings,
wherein the processor acquires an index of the machining program every time the processor acquires the tool position data, and separately acquires the machining program independently of acquisition of the tool position data, and
the processor saves, at each point of time of acquisition, the acquired position data and the acquired machining program index in association with each other.
2 . The display device comprising a processor according to claim 1 , the processor being further configured to:
select a program block of the machining program,
select a portion on the machining trajectory, which is saved in association with the selected program block, and
display the selected portion, on the machining trajectory differently from other displayed portions on the machining trajectory.
3 . A display method by a processor provided in a display device, the method being configured to:
acquire tool position data;
acquire a machining program;
save the acquired tool position data and an index of the machining program in association with each other;
calculate a tool machining trajectory from the acquired tool position data and display the tool machining trajectory;
select a portion on the displayed tool machining trajectory;
select a program block of the machining program corresponding to the index of the machining program associated with the selected portion on the machining trajectory; and
display, on the displayed machining program, the selected program block,
wherein an index of the machining program is acquired every time the tool position data is acquired, and the machining program is separately acquired independently of acquisition of the tool position data, and
the acquired tool position data and the acquired machining program index are, at each point of time of acquisition, saved in association with each other.
4 . The display method by a processor provided in a display device according to claim 3 , the method being further configured to:
select a program block of the machining program;
select a portion on the machining trajectory, which is associated with the selected program block; and
display the selected portion on the displayed tool machining trajectory.