# US 2015/0112459 A1 · Numerical controller provided with program pre-reading function

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0112459 A1
- Document ID: US20150112459A1
- Status: Published application
- Kind: A1
- Application number: 14/509,092
- Filed: 2014-10-08
- Published: 2015-04-23
- Earliest claimed: 2013-10-18
- Assignees: Fanuc Corporation
- Applicants: FANUC Corporation
- Inventors: Takahiro HARAGUCHI
- Web page: https://patentgrep.com/patent/US20150112459A1

## CPC

- G05B 19/408: characterised by data handling or data format, e.g. reading, buffering or conversion of data
- G05B 2219/35386: Look ahead processing of plural block data from buffer
- G05B 2219/36078: Insert, read in new command instruction to modify fixed program
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

A numerical controller successively pre-reads blocks of a plurality of NC programs from a memory or from a storage device connected via a network, while executing the NC programs in parallel. The execution times of the pre-read blocks are integrated in respect of all of the NC programs that are the object of pre-reading, and when an NC program having the shortest integrated execution time of the pre-read blocks can be pre-read, the next block in that NC program is pre-read. On the other hand, when that NC program cannot be pre-read, the NC program is excluded from the pre-reading objects.

## Claims

### Claim 1

A numerical controller which successively pre-reads blocks of a plurality of NC programs from a memory or from a storage device connected via a network, while executing the NC programs in parallel, the numerical controller comprising:
an execution time storage unit which stores execution times of the respective blocks in the NC programs;
an execution time integration unit which reads out the execution times of the pre-read blocks, from the execution time storage unit, and integrates the read out execution times;
a determination unit which compares the integrated execution times of the pre-read blocks in the respective NC programs, and determines an NC program having the shortest integrated value of the execution times of the pre-read blocks; and
a pre-reading execution unit which subsequently performs pre-reading of the NC program having the shortest integrated value of the execution times of the pre-read blocks, as determined by the determination unit.

### Claim 2

A numerical controller having a program pre-reading function for successively pre-reading blocks of a plurality of NC programs from a memory or from a storage device connected via a network, while executing the NC programs in parallel, the numerical controller comprising:
an execution time calculation unit which calculates execution times from contents of commands of the respective blocks in the NC programs;
an execution time integration unit which integrates the execution times of the pre-read blocks calculated by the execution time calculation unit;
a determination unit which compares the integrated execution times of the pre-read blocks in the respective NC programs, and determines an NC program having the shortest integrated value of the execution times of the pre-read blocks; and
a pre-reading execution unit which subsequently performs pre-reading of the NC program having the shortest integrated value of the execution times of the pre-read blocks, as determined by the determination unit.

### Claim 3 (depends on 1)

The numerical controller according to claim 1, wherein a result of measuring the execution times of the blocks in each of the NC programs by previously carrying out processing in accordance with the NC program is stored in the execution time storage unit, and the execution times stored in the execution time storage unit are read out in next and subsequent processes.

### Claim 4 (depends on 2)

The numerical controller according to claim 2, wherein the execution time calculation unit includes:
a division unit which divides a tool path into segments which are small sections;
a speed calculation unit which determines a speed in a tangential direction of the segment;
a segment movement time calculation unit which calculates a time required for a tool to move along each segment, on the basis of the speed in the tangential direction as determined by the speed calculation unit; and
a tool movement time calculation unit which determines, as a tool movement time, a sum of the times taken to move along each segment calculated by the segment movement time calculation unit,
and wherein the numerical controller is configured so as to calculate a time required for the tool to move along a designated path in accordance with NC commands.

### Claim 5 (depends on 1)

The numerical controller according to claim 1, further comprising:
an integrated execution time monitoring unit which, in parallel with an operation based on the NC program, continuously monitors an integrated value of the execution times of the pre-read blocks of an NC program which is being executed;
a deceleration/temporary halt unit which decelerates or temporarily halts the operation based on the NC program, when the integrated execution time monitoring unit has determined that the integrated value of the execution times of the pre-read blocks has become equal to a time required to safely decelerate and halt the operation based on the NC program;
a pre-reading unit which pre-reads the NC program from the memory or from the storage device connected via the network, during deceleration or temporarily halting of the operation based on the NC program; and
an operation restarting unit which restarts the operation based on the NC program, when the integrated value of the execution times of the pre-read blocks sufficiently guarantees the time required to safely decelerate and halt the operation based on the NC program, during deceleration or temporary halting of the operation based on the NC program,
wherein the blocks of the plurality of NC programs are pre-read successively from the memory or from the storage device connected via the network.

### Claim 6 (depends on 1)

The numerical controller according to claim 1, wherein the execution time storage unit has a program pre-reading function in which, when the machining is carried out previously and the execution time for the machining is measured and stored, and if a decrease in a feed rate occurs due to the integrated value of the execution times of the pre-read blocks having become equal to a time required for deceleration and halting, then the execution time in a case where no decrease in the feed rate has occurred is stored rather than storing the measured execution time directly.

### Claim 7

A numerical controller which sets a time, a position of an axis, or a position of a spindle, as a reference, and stores table format data in which the reference time, the reference axis position or the reference spindle position is associated with a position of an axis or a spindle, other than the reference axis or the reference spindle, in a memory or a storage device connected via a network, successively pre-reads the reference time, the reference axis position or the reference spindle position, and the position of the axis or the spindle other than the reference axis or the reference spindle, and controls the position of the other axis or spindle in synchronization with the reference time, the reference axis position or the reference spindle position, the numerical controller comprising:
an execution time integration unit which integrates execution times of the pre-read blocks;
a determination unit which compares the integrated execution times of the pre-read blocks in respective table format data items, and determines table format data having the shortest integrated value of the execution times of the pre-read blocks; and
a pre-reading execution unit which subsequently performs pre-reading of the table format data having the shortest integrated value of the execution times of the pre-read blocks, as determined by the determination unit.

### Claim 8 (depends on 7)

The numerical controller according to claim 7, wherein the execution time integration unit includes an integrated execution time prediction unit which predicts an integrated value of the execution times of the pre-read blocks from a difference between a current reference time and a reference time of the pre-read blocks.

### Claim 9 (depends on 7)

The numerical controller according to claim 7, further comprising:
an integrated execution time monitoring unit which, in parallel with an operation based on the table format data, continuously monitors an integrated value of the execution times of the pre-read blocks of table format data which is being executed;
a deceleration/temporary halt unit which decelerates or temporarily halts the operation based on the table format data, when the integrated execution time monitoring unit has determined that the integrated value of the execution times of the pre-read blocks has become equal to a time required to safely decelerate and halt the operation based on the table format data;
a pre-reading unit which pre-reads the table format data from the memory or from the storage device connected via the network, during deceleration or temporarily halting of the operation based on the table format data; and
an operation restarting unit which restarts the operation based on the table format data, when the integrated value of the execution times of the pre-read blocks sufficiently guarantees the time required to safely decelerate and halt the operation based on the table format data, during deceleration or temporary halting of the operation based on the table format data,
wherein the blocks of the table format data are pre-read successively from the memory or from the storage device connected via the network.

### Claim 10 (depends on 2)

The numerical controller according to claim 2, further comprising:
an integrated execution time monitoring unit which, in parallel with an operation based on the NC program, continuously monitors an integrated value of the execution times of the pre-read blocks of an NC program which is being executed;
a deceleration/temporary halt unit which decelerates or temporarily halts the operation based on the NC program, when the integrated execution time monitoring unit has determined that the integrated value of the execution times of the pre-read blocks has become equal to a time required to safely decelerate and halt the operation based on the NC program;
a pre-reading unit which pre-reads the NC program from the memory or from the storage device connected via the network, during deceleration or temporarily halting of the operation based on the NC program; and
an operation restarting unit which restarts the operation based on the NC program, when the integrated value of the execution times of the pre-read blocks sufficiently guarantees the time required to safely decelerate and halt the operation based on the NC program, during deceleration or temporary halting of the operation based on the NC program,
wherein the blocks of the plurality of NC programs are pre-read successively from the memory or from the storage device connected via the network.

### Claim 11 (depends on 3)

The numerical controller according to claim 3, further comprising:
an integrated execution time monitoring unit which, in parallel with an operation based on the NC program, continuously monitors an integrated value of the execution times of the pre-read blocks of an NC program which is being executed;
a deceleration/temporary halt unit which decelerates or temporarily halts the operation based on the NC program, when the integrated execution time monitoring unit has determined that the integrated value of the execution times of the pre-read blocks has become equal to a time required to safely decelerate and halt the operation based on the NC program;
a pre-reading unit which pre-reads the NC program from the memory or from the storage device connected via the network, during deceleration or temporarily halting of the operation based on the NC program; and
an operation restarting unit which restarts the operation based on the NC program, when the integrated value of the execution times of the pre-read blocks sufficiently guarantees the time required to safely decelerate and halt the operation based on the NC program, during deceleration or temporary halting of the operation based on the NC program,
wherein the blocks of the plurality of NC programs are pre-read successively from the memory or from the storage device connected via the network.

### Claim 12 (depends on 4)

The numerical controller according to claim 4, further comprising:
an integrated execution time monitoring unit which, in parallel with an operation based on the NC program, continuously monitors an integrated value of the execution times of the pre-read blocks of an NC program which is being executed;
a deceleration/temporary halt unit which decelerates or temporarily halts the operation based on the NC program, when the integrated execution time monitoring unit has determined that the integrated value of the execution times of the pre-read blocks has become equal to a time required to safely decelerate and halt the operation based on the NC program;
a pre-reading unit which pre-reads the NC program from the memory or from the storage device connected via the network, during deceleration or temporarily halting of the operation based on the NC program; and
an operation restarting unit which restarts the operation based on the NC program, when the integrated value of the execution times of the pre-read blocks sufficiently guarantees the time required to safely decelerate and halt the operation based on the NC program, during deceleration or temporary halting of the operation based on the NC program,
wherein the blocks of the plurality of NC programs are pre-read successively from the memory or from the storage device connected via the network.

### Claim 13 (depends on 2)

The numerical controller according to claim 2, wherein the execution time storage unit has a program pre-reading function in which, when the machining is carried out previously and the execution time for the machining is measured and stored, and if a decrease in a feed rate occurs due to the integrated value of the execution times of the pre-read blocks having become equal to a time required for deceleration and halting, then the execution time in a case where no decrease in the feed rate has occurred is stored rather than storing the measured execution time directly.

### Claim 14 (depends on 3)

The numerical controller according to claim 3, wherein the execution time storage unit has a program pre-reading function in which, when the machining is carried out previously and the execution time for the machining is measured and stored, and if a decrease in a feed rate occurs due to the integrated value of the execution times of the pre-read blocks having become equal to a time required for deceleration and halting, then the execution time in a case where no decrease in the feed rate has occurred is stored rather than storing the measured execution time directly.

### Claim 15 (depends on 8)

The numerical controller according to claim 8, further comprising:
an integrated execution time monitoring unit which, in parallel with an operation based on the table format data, continuously monitors an integrated value of the execution times of the pre-read blocks of table format data which is being executed;
a deceleration/temporary halt unit which decelerates or temporarily halts the operation based on the table format data, when the integrated execution time monitoring unit has determined that the integrated value of the execution times of the pre-read blocks has become equal to a time required to safely decelerate and halt the operation based on the table format data;
a pre-reading unit which pre-reads the table format data from the memory or from the storage device connected via the network, during deceleration or temporarily halting of the operation based on the table format data; and
an operation restarting unit which restarts the operation based on the table format data, when the integrated value of the execution times of the pre-read blocks sufficiently guarantees the time required to safely decelerate and halt the operation based on the table format data, during deceleration or temporary halting of the operation based on the table format data,
wherein the blocks of the table format data are pre-read successively from the memory or from the storage device connected via the network.
