# US 2025/0165236 A1 · System program optimization device, system program optimization system, and computer-readable storage medium

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

- Number: US 2025/0165236 A1
- Document ID: US20250165236A1
- Status: Published application
- Kind: A1
- Application number: 18/841,389
- Filed: 2022-03-25
- Published: 2025-05-22
- Earliest claimed: 2022-03-25
- Assignees: Fanuc Corporation
- Applicants: Fanuc Corporation
- Inventors: Ryousuke TAIRA
- Web page: https://patentgrep.com/patent/US20250165236A1

## CPC

- G05B 19/18: Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of program data in numerical form (G05B19/418 takes precedence)
- G06F 8/443: {Optimisation}
- G05B 19/4155: characterised by program execution, i.e. part program or machine function execution, e.g. selection of a program
- G05B 2219/35215: Generate optimal nc program variant as function of cost, time, surface, energy
- 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)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This system program optimization system is provided with an information processing device and a system program optimization device. The information processing device receives a setting of a constant value with respect to an external input signal inputted from an external device connected to a numerical control device, and outputs the constant value to a system program optimization device. The system program optimization device acquires the constant value set to the external input signal inputted from the external device connected to the numerical control device, compiles a source code of a system program into an object program which can be executed by the numerical control device, and optimizes the system program by the constant value of the external input signal in the compilation.

## Claims

### Claim 1

A system program optimization device for managing a system program for a numerical controller, comprising:
a constant value acquisition unit that acquires a constant value set for an external input signal input from an external device which is connected to the numerical controller; and
a compiler that translates source code of the system program into an object program that can be executed by the numerical controller,
wherein the compiler comprises an optimization unit that optimizes the system program by using the constant value of the external input signal.

### Claim 2 (depends on 1)

The system program optimization device according to claim 1, wherein the constant value acquisition unit acquires an index that is associated with an address of the external input signal in a memory of the numerical controller, and determines variables in the system program based on the index.

### Claim 3 (depends on 1)

The system program optimization device according to claim 1, comprising a system program management unit that manages system programs of a plurality of numerical controllers, and a system program output unit that outputs the system program optimized by using the constant value to an information processing device of a user.

### Claim 4 (depends on 1)

The system program optimization device according to claim 1, wherein an original system program is a general-purpose program that can be adapted to the plurality of numerical controllers, and
the optimization unit optimizes the original system program for a numerical controller of the user.

### Claim 5

A system program optimization system, comprising:
an information processing device, comprising
a constant value setting unit that accepts setting of a constant value for an external input signal input from an external device which is connected to a numerical controller, and
a constant value output unit that outputs the constant value to a system program optimization device; and
a system program optimization device for managing a system program of a numerical controller, comprising
a constant value acquisition unit that acquires a constant value set for an external input signal input from the external device connected to the numerical controller, and
a compiler that translates source code of the system program into an object program that can be executed by the numerical controller,
wherein the compiler comprising an optimization unit that optimizes the system program by using the constant value of the external input signal.

### Claim 6

A storage medium which stores instructions readable by one or more processors,
the one or more processors executing the instructions to:
acquire a constant value set for an external input signal input from an external device which is connected to a numerical controller;
compile source code of a system program of the numerical controller into an object program that can be executed by the numerical controller; and
optimize the system program by using the constant value of the external input signal in the compiling process.
