# US 2021/0080918 A1 · Generation method of control program for machine including input/output apparatus, program generation apparatus, and electric device used for generation method of control program

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

- Number: US 2021/0080918 A1
- Document ID: US20210080918A1
- Status: Published application
- Kind: A1
- Application number: 16/931,321
- Filed: 2020-07-16
- Published: 2021-03-18
- Earliest claimed: 2019-09-17
- Assignees: Fanuc Corporation
- Applicants: Fanuc Corporation
- Inventors: Kenichiro KURIHARA; Shinichi KUWAHATA
- Web page: https://patentgrep.com/patent/US20210080918A1

## CPC

- G05B 19/054: {Input/output}
- G06F 8/34: Graphical or visual programming
- G05B 19/056: {Programming the PLC}
- G05B 19/058: {Safety, monitoring}
- G06F 8/33: Intelligent editors
- 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

The program generation apparatus includes a terminal detection unit for detecting position information including a position of a first terminal of an input/output apparatus to which an electrical wiring is connected. A display control unit displays, on a display part, a control program and position information of the first terminal detected by the terminal detection unit. The operation detection unit detects a symbol indicating the device specified. by the operator. The setting unit allocates the position of the first terminal which is included in the position. information of the first terminal to the symbol which is indicative of the device which has been detected by the operation detection unit.

## Claims

### Claim 1

A generation method of a control program by which a controller performs control of a machine via an input/output apparatus, the method comprising:
connecting, by an operator, a second terminal of an electrical wiring to at least one first terminals of the input/output apparatus;
detecting, by an arithmetic processing device, position information including a position. of one of the first terminals to which. the second terminal is connected;
displaying, on. a display part, by the arithmetic processing device, position information of the first terminal, and at least one of the control program and a table of symbols indicative of devices included in the control program;
selecting, by the operator, a symbol indicative of the device corresponding to the position information of the first terminal, among the symbols indicative of the devices included in the control program; and
allocating, by the arithmetic processing device, the position of the first terminal included in the position information of the first terminal to the symbol indicating the device selected by the operator.

### Claim 2

A program generation apparatus configured to generate a control program for performing control by using an input/output apparatus configured to perform at least one of an input of a signal and an output of a signal, comprising an arithmetic processing device including a display part and an input part configured to accept an operation performed by an operator on a screen of the display part, the arithmetic processing device configured to communicate with the input/output apparatus, wherein
the input/output apparatus includes a plurality of first terminals to each of which a second terminal of an electrical wiring is connected,
the arithmetic processing device includes:
an operation detection unit configured to detect an. operation performed by the operator on the input part;
a display control unit configured to control the display part;
a terminal detection unit configured to detect position information including a position of one of the first terminals of the input/output apparatus to which the electrical wiring is connected; and
a setting unit configured to set a position of the first terminal to which a device indicated in the control program is connected,
the display control unit displays, on the display part, at least one of the control program and a table of symbols indicating the devices included in the control program, and the position information of the first terminal detected by the terminal detection unit,
the operation detection unit detects a symbol corresponding to the position information of the first terminal and indicating the device specified by the operator, and
the setting unit allocates the position of the first terminal included in the position information of the first terminal to the symbol indicating the device detected by the operation detection unit.

### Claim 3 (depends on 2)

The program generation apparatus according to claim 2, wherein the position information of the first terminal includes an address as the position of the first terminal of the input/output apparatus.

### Claim 4 (depends on 2)

The program generation apparatus according to claim 2, wherein the position information of the first terminal includes, as the position of the first terminal of the input/output apparatus, an individual number of an electric device included in the input/output apparatus and information of a position of a terminal in the electric device.

### Claim 5 (depends on 2)

The program generation apparatus according to claim 2, wherein the position information of the first terminal includes information relating to a device connected to the input/output apparatus.

### Claim 6 (depends on 2)

The program generation apparatus according to claim 2, wherein
the input/output apparatus includes a plurality of buttons arranged in a manner corresponding to each of the first terminals, and is configured to transmit, to the program generation apparatus, a signal generated by pressing one of the buttons, and
the terminal detection unit detects, by receiving the signal generated by pressing one of the buttons, a position of a terminal to which a second terminal is connected.

### Claim 7 (depends on 2)

The program generation apparatus according to claim 2, comprising a vision. sensor configured to capture an image of the input/output apparatus, wherein
the terminal detection unit includes an image processing unit configured to process an image of the vision sensor,
the vision sensor captures an image at a timepoint before connecting the second terminal to one first terminal and an image at a timepoint after having connected the second terminal, and
the image processing unit detects the position of the first terminal to which the second terminal is connected, based on the image at a timepoint before connecting the second terminal and an image at a timepoint after having connected the second terminal.

### Claim 8 (depends on 2)

The program generation apparatus according to claim 2, wherein the device connected to the first terminal is configured so that the device can transmit information relating to the device,
the terminal detection unit compares information relating to the device acquired before connecting the second terminal with information relating to the device acquired after connecting the second terminal, and detects a position of the first terminal at which information relating to the device is newly acquired as the position of the first terminal to which the second terminal has been connected.

### Claim 9

An electric device configured to be communicable with a program generation apparatus for generating a control program, comprising:
a control unit having at least one of a function of converting a signal from an input device into a signal to be transmitted to a controller and a function of converting a signal from the controller into a signal to be transmitted to an output device,
a plurality of first terminals to which a second terminal of an electrical wiring is connected, and
a plurality of buttons arranged in a manner corresponding to each of the first terminals, wherein
the control unit is configured to transmit, to the program generation apparatus by pressing a button by an operator, position information including the position of the first terminal corresponding to the button.
