Information processing system, and information processing method
The information processing system addresses inefficiencies in program-device synchronization by creating groups and using a correspondence table to align program execution with device control, enhancing coordination and reducing misalignment through a multi-scan function and detection mechanisms.
Patent Information
- Application Number
- US19/325429
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-22
- Filing Date
- 2025-09-10
- Publication Date
- 2026-11-26
AI Technical Summary
Existing information processing systems lack efficient methods for managing and coordinating the execution of multiple programs and devices in a synchronized manner, particularly in industrial control systems, leading to inefficiencies and potential misalignment in device control.
An information processing system and method that creates and manages groups of programs and devices, utilizing a correspondence table to align program execution with device control, allowing for parallel execution and synchronization through a multi-scan function, and includes a detection unit to correct mismatches and highlight potential issues.
Enhances the coordination and efficiency of program-device interactions, ensuring appropriate control and reducing the risk of unintended device processing by providing clear visibility and correction mechanisms for group allocations.
Smart Images

Figure US20260377232A1-D00000_ABST
Abstract
Description
BACKGROUND1. Technical Field
[0001] The present invention relates to an information processing system, and an information processing method.2. Related Art
[0002] Patent Document 1 describes that a program creation apparatus which creates a ladder program creates a scan group, which is a group of programs (applications) executed at a predetermined execution cycle, or specifies a control group, which is a group of physical configurations synchronized with each other.RELATED ART DOCUMENTSPatent Document
[0003] Patent Document 1: Japanese Patent No. 7318829
[0004] Note that, the summary clause does not necessarily describe all necessary features of the embodiments of the present invention. The present invention may also be a sub-combination of the features described above.BRIEF DESCRIPTION OF THE DRAWINGS
[0005] FIG. 1 schematically illustrates an example of an information processing system 10.
[0006] FIG. 2 is an explanatory diagram for explaining a relationship between a plurality of types of programs.
[0007] FIG. 3 schematically illustrates an example of a functional configuration of the information processing apparatus 100.
[0008] FIG. 4 schematically illustrates an example of a functional configuration of a control apparatus 200.
[0009] FIG. 5 is an explanatory diagram for explaining a multi-scan function of the control apparatus 200.
[0010] FIG. 6 schematically illustrates a correspondence table 800 which is an example of a correspondence table which is created by a correspondence table creation unit 170 and is controlled by a display control unit 172 to be displayed.
[0011] FIG. 7 schematically illustrates a correspondence table 900 which is an example of the correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed.
[0012] FIG. 8 schematically illustrates a correspondence table 1000 which is an example of the correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed.
[0013] FIG. 9 schematically illustrates a correspondence table 1100 which is an example of the correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed.
[0014] FIG. 10 schematically illustrates a correspondence table 1200 which is an example of the correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed.
[0015] FIG. 11 schematically illustrates an example of a hardware configuration of a computer 1300 which functions as an information processing apparatus 100 or the control apparatus 200.DESCRIPTION OF EXEMPLARY EMBODIMENTS
[0016] Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the invention according to the claims. In addition, not all combination of the features described in the embodiments are necessary for the solution of the invention.
[0017] FIG. 1 schematically illustrates an example of an information processing system 10. The information processing system 10 may be constituted by an information processing apparatus 100. That is, the information processing system 10 may be the information processing apparatus 100.
[0018] The information processing system 10 may be constituted by the information processing apparatus 100 and a control apparatus 200. That is, the information processing system 10 may include the information processing apparatus 100 and the control apparatus 200. The information processing system 10 may be constituted by the information processing apparatus 100, the control apparatus 200, and a plurality of devices 300. That is, the information processing system 10 may include the information processing apparatus 100, the control apparatus 200, and the plurality of devices 300.
[0019] The information processing apparatus 100 creates a program for the control apparatus 200 to control the plurality of devices 300. The information processing apparatus 100 may be a personal computer. The information processing apparatus 100 may be a smartphone, a tablet terminal, a server apparatus, or the like.
[0020] The control apparatus 200 controls one or more devices 300 in accordance with a program created by the information processing apparatus 100. The control apparatus 200 may be a controller. Examples of the control apparatus 200 include an inverter controller, a motion controller, a machine controller, a robot controller, a line controller, a cell controller, a programmable logic controller (PLC), and the like, and examples of the device 300 include a servo amplifier, a servo motor, a robot, an I / O device, an inverter, an actuator, a sensor, and the like, but the control apparatus 200 and the device 300 are not limited thereto.
[0021] The information processing apparatus 100 and the control apparatus 200 are connected so that they can communicate with each other. The information processing apparatus 100 and the control apparatus 200 may be connected by a network cable. The information processing apparatus 100 and the control apparatus 200 may be connected via a network such as an industrial network and a local area network (LAN), for example.
[0022] The control apparatus 200 and the plurality of devices 300 are connected so that they can communicate with each other. The control apparatus 200 and the plurality of devices 300 may be connected by a network cable. The control apparatus 200 and the plurality of devices 300 may be connected via a network such as an industrial network and a LAN, for example. A connection form between the control apparatus 200 and the plurality of devices 300 may be a star type, a bus type, a ring type, a tree type, a mesh type, a line type, or the like.
[0023] The information processing apparatus 100 includes a CPU 110. The CPU 110 may be a single-core or a multi-core. The example illustrated in FIG. 1 illustrates a case where the information processing apparatus 100 has a single-processor configuration, but the information processing apparatus 100 may have a multi-processor configuration. The information processing apparatus 100 includes a storage unit 120. The storage unit 120 includes a volatile memory. The storage unit 120 may include a nonvolatile memory. The storage unit 120 may include a storage apparatus such as a hard disk and a solid state drive (SSD). The information processing apparatus 100 includes an input unit 130. The input unit 130 may be an input device such as a mouse, a keyboard, and a touch panel. The information processing apparatus 100 includes a display unit 140. The display unit 140 may be a display such as a liquid crystal display or an organic EL display. The information processing apparatus 100 includes a communication unit 150. The communication unit 150 may include at least one of a communication interface for wired communication or a communication interface for wireless communication.
[0024] The control apparatus 200 may include a plurality of cores capable of executing processing in parallel. The control apparatus 200 may include one processing circuit having a plurality of cores, and may include a plurality of processing circuits each having one or more cores. In the example illustrated in FIG. 2, the control apparatus 200 includes a CPU 210 and a CPU 220. The CPU 210 includes one or more processor cores. The CPU 220 includes one or more processor cores. A number of at least one CPU included in the control apparatus 200 is not limited to two, and may be three or more. Note that the control apparatus 200 may include one core instead of including a plurality of cores. That is, the control apparatus 200 may include one single-core CPU 210 without including the CPU 220. The control apparatus 200 includes a storage unit 230. The storage unit 230 includes a volatile memory. The storage unit 230 may include a nonvolatile memory. The storage unit 230 may include a storage apparatus such as a hard disk and an SSD.
[0025] The storage unit 230 includes a register 232 which is a storage area available to a user. The control apparatus 200 includes a communication unit 240. The communication unit 240 may include a communication interface for wired communication. The communication unit 240 may include a communication interface for wireless communication.
[0026] The information processing apparatus 100 may create a program in accordance with an input by a user 20, who is a program creator, using the input unit 130. The information processing apparatus 100 may cause the display unit 140 to display a user interface for supporting creation of a program. For example, the information processing apparatus 100 may include a so-called engineering tool, and the user 20 creates a program by using the engineering tool.
[0027] The information processing apparatus 100 creates, for example, a ladder program 400. The ladder program 400 is a program created in a ladder language and includes one or more rungs. In the present embodiment, the ladder program 400 is a program executed by the control apparatus 200 at a fixed cycle. For example, when the control apparatus 200 is powered on, the control apparatus 200 executes the ladder program 400 at the fixed cycle. In the present embodiment, one ladder program 400 may be one ladder diagram. The ladder program 400 may be a parent diagram. The ladder program 400 may be a child diagram. The ladder program 400 may be a grandchild diagram.
[0028] The information processing apparatus 100 creates, for example, a function program 500. In the present embodiment, the function program 500 is a program created in a ladder language, and includes one or more rungs. The function program 500 may be a program executed at a timing of being called from the ladder program 400 or the like. The function program 500 may be an example of a called program. For example, the function program 500 is called and executed by the ladder program 400. For example, the function program 500 is called and executed by a motion program 600. For example, the function program 500 is called and executed by a sequence program 700. The function program 500 may be a program capable of setting an input and an output at a time of calling. In the present embodiment, one ladder program 400 may be one function diagram.
[0029] The information processing apparatus 100 may create another type of program different from the ladder program 400. Examples of the another type of program include the motion program 600 and the sequence program 700.
[0030] The motion program 600 is a program created in a language other than the ladder language. The motion program 600 is a motion control program for controlling a control target motion. The motion program 600 may include a motion main program and a motion subprogram. The motion main program is a program executed at a timing of being called from the ladder program 400 or the like. The motion program 600 may be an example of the called program. For example, the motion main program is called and executed by the ladder program 400. For example, the motion main program is called and executed by the function program 500. The motion subprogram is a program executed at a timing of being called by the motion main program. The motion subprogram may be called from another motion subprogram.
[0031] The sequence program 700 is a program created in a language other than the ladder language. The sequence program 700 may be a program for controlling a flow of a process by dividing an operation for each step. The sequence program 700 may include a sequence main program and a sequence subprogram. The sequence subprogram is called and executed by the sequence main program. The sequence subprogram may be called from another sequence subprogram.
[0032] In the present embodiment, the ladder program 400, the function program 500, the motion program 600, and the sequence program 700 may be programs before compilation or programs after compilation.
[0033] The control apparatus 200 acquires, from the information processing apparatus 100, a program created by the information processing apparatus 100. The control apparatus 200 operates in accordance with the program acquired from the information processing apparatus 100 and controls the plurality of devices 300.
[0034] In the present embodiment, an area of the register 232 of the control apparatus 200 is allocated to each of the plurality of devices 300. Specifically, each of a plurality of register variables corresponding to a plurality of areas of the register 232 are allocated to each of the plurality of devices 300. The plurality of register variables may be divided into a plurality of ranges, and each of the plurality of ranges may be allocated to each of the plurality of devices 300.
[0035] The plurality of devices 300 may be identifiable by device numbers. Each of the plurality of devices 300 may be registered with a name, and may be also identifiable by the name. The name registered for the device 300 is referred to as a logical device name. As a specific example, as illustrated in Table 1 below, a logical device name and a plurality of register variables are allocated to each of the plurality of devices 300.TABLE 1LOGICALRANGEDEVICEDEVICEOF REGISTERNUMBERNAMEVARIABLE1A18000~807F2A28080~80FF3A38280~82FF4A48300~837F5A58380~83FF6A68400~847F.........
[0036] The user 20 sets a command such as a target position and a target speed for the device 300 in a register variable corresponding to the device 300 during program creation. When access to a register variable is defined in the program, the control apparatus 200 controls the device 300 in accordance with a command set to the register variable.
[0037] FIG. 2 is an explanatory diagram for describing a relationship between a plurality of types of programs. Here, as an example, a case will be described in which one ladder program 400 is configured to call one function program 500 and one motion program 600, and the one motion program 600 is configured to call one motion subprogram 610.
[0038] The ladder program 400 includes one or more rungs 402. When the ladder program 400 is executed by the control apparatus 200, one or more rungs 402 included in the ladder program 400 are sequentially executed at a fixed cycle. When access to a register variable corresponding to the device 300 is defined in the rung 402, the control apparatus 200 controls the device 300 based on a value of the register variable.
[0039] When an instruction for calling the function program 500 is defined in the rung 402, the control apparatus 200 executes the function program 500. The function program 500 includes one or more rungs 502. When access to a register variable for the device 300 is defined in the rung 502, the control apparatus 200 controls the device 300 based on a value of the register variable.
[0040] When an instruction for calling the motion program 600 is defined in the rung 402, the control apparatus 200 executes the motion program 600. The instruction for calling the motion program 600 includes information capable of identifying the motion program 600. For example, the instruction for calling the motion program 600 includes a program number indicating the motion program 600. The instruction for calling the motion program 600 includes a register variable of a register used to pass a parameter from a calling side to the motion program 600 side or to notify the calling side of an execution result or state from the motion program 600 side (which may be referred to as a work register). When access to a register variable for the device 300 is defined in the motion program 600, the control apparatus 200 controls the device 300 based on a value of the register variable. When an instruction for calling the motion subprogram 610 is defined in the motion program 600, the control apparatus 200 executes the motion subprogram 610. When access to a register variable for the device 300 is defined in the motion subprogram 610, the control apparatus 200 controls the device 300 based on a value of the register variable.
[0041] In the information processing system 10 according to the present embodiment, a plurality of programs and a plurality of register variables can be grouped.
[0042] For example, the information processing system 10 allocates each of the plurality of programs to one of a plurality of groups in accordance with a command of the user 20. For example, the information processing system 10 allocates a plurality of ladder programs 400 to one of the plurality of groups. Table 2 below shows an example of allocation. Similarly, the information processing system 10 may allocate each of a plurality of function programs 500, a plurality of motion programs 600, and a plurality of sequence programs 700 to one of the plurality of groups.TABLE 2LADDER PROGRAMGROUPAGROUP AA01GROUP AA01.01GROUP AA02GROUP AA02.01GROUP ABGROUP BB01GROUP BB01.01GROUP B......
[0043] For example, the information processing system 10 allocates each of the plurality of devices 300 to one of the plurality of groups in accordance with a command of the user 20. Accordingly, the groups are allocated to the plurality of devices 300 and corresponding ranges of the register variable. Table 3 below shows an example of allocation.TABLE 3LOGICALRANGEDEVICEDEVICEOF REGISTERNUMBERNAMEVARIABLEGROUP1A18000~807FGROUP A2A28080~80FFGROUP A3A38280~82FFGROUP A4A48300~837FGROUP B5A58380~83FFGROUP B6A68400~847FGROUP B............
[0044] The plurality of groups may be arbitrary groups. The plurality of groups may be defined by the user 20. The user 20 may define a plurality of groups based on its own criteria, and allocate each of the plurality of programs and the plurality of registers to one of the plurality of groups.
[0045] FIG. 3 schematically illustrates an example of a functional configuration of the information processing apparatus 100. The information processing apparatus 100 includes a creation unit 162, a management unit 164, a group allocation unit 166, a search unit 168, a correspondence table creation unit 170, a display control unit 172, a detection unit 174, a correction unit 176, and a provision unit 178. Note that it is not essential for the information processing apparatus 100 to include all of these.
[0046] The creation unit 162 creates a program for the control apparatus 200 to control the plurality of devices 300. The program created by the creation unit 162 is stored in the storage unit 120. The creation unit 162 may create a program in accordance with an input by the user 20 using the input unit 130. The creation unit 162 may create the ladder program 400. The creation unit 162 may create the function program 500. The creation unit 162 may create the motion program 600. The creation unit 162 may create the sequence program 700.
[0047] The management unit 164 executes various types of management. The management unit 164 may manage various types of data in accordance with an input by the user 20 using the input unit 130. Data to be managed by the management unit 164 may be stored in the storage unit 120. The management unit 164 manages, for example, device-related data 122 which is data related to the plurality of devices 300. The device-related data 122 may include a correspondence between a plurality of register variables of the register 232 and the plurality of devices 300. The management unit 164 may manage the plurality of register variables by dividing the plurality of register variables into a plurality of ranges each corresponding to each of the plurality of devices 300.
[0048] The group allocation unit 166 executes group allocation. The group allocation unit 166 may set a plurality of groups in accordance with an input by the user 20 using the input unit 130. The group allocation unit 166 may set an attribute of each of the plurality of groups. The attribute of the group includes a group name. Group-related data 124 including data of the plurality of groups may be stored in the storage unit 120.
[0049] The group allocation unit 166 may execute group allocation in accordance with an input by the user 20 using the input unit 130. The group-related data 124 may include data of the group allocation.
[0050] For example, the group allocation unit 166 allocates each of a plurality of programs created by the creation unit 162 to one of the plurality of groups. The group allocation unit 166 may allocate each of the plurality of ladder programs 400 to one of the plurality of groups. The group allocation unit 166 may allocate each of the plurality of function programs 500 to one of the plurality of groups. The group allocation unit 166 may allocate each of the plurality of motion programs 600 to one of the plurality of groups. The group allocation unit 166 may allocate each of the plurality of sequence programs 700 to one of the plurality of groups.
[0051] For example, the group allocation unit 166 allocates each of a plurality of register variables of the register 232 to one of the plurality of groups. The group allocation unit 166 may allocate each of the plurality of devices 300 to one of the plurality of groups.
[0052] The search unit 168 executes a search for data stored in the storage unit 120.(Search for Program Defining Access to Register Variable)
[0053] For each of the plurality of register variables, the search unit 168 may search a plurality of programs stored in the storage unit 120 for a program defining access to the register variable.(· Search for ladder program defining access to register variable)
[0054] For example, for each of the plurality of register variables, the search unit 168 searches the plurality of ladder programs 400 for the ladder program 400 defining access to the register variable.(· Search for Function Program Defining Access to Register Variable)
[0055] For example, for each of the plurality of register variables, the search unit 168 searches the plurality of function programs 500 for the function program 500 defining access to the register variable.(· Search for Motion Program Defining Access to Register Variable)
[0056] For example, for each of the plurality of register variables, the search unit 168 searches the plurality of motion programs 600 for the motion program 600 defining access to the register variable. For each of the plurality of register variables, the search unit 168 may search a plurality of motion main programs for a motion main program defining access to the register variable. For each of the plurality of register variables, the search unit 168 may search a plurality of motion subprograms for a motion subprogram defining access to the register variable.(· Search for Sequence Program Defining Access to Register Variable)
[0057] For example, for each of the plurality of register variables, the search unit 168 searches the plurality of sequence programs 700 for the sequence program 700 defining access to the register variable. For each of the plurality of register variables, the search unit 168 may search a plurality of sequence main programs for a sequence main program defining access to the register variable. For each of the plurality of register variables, the search unit 168 may search a plurality of sequence subprograms for a sequence subprogram defining access to the register variable.(Search for Program Defining Call of Another Program)
[0058] The search unit 168 may search the plurality of programs stored in the storage unit 120 for a program defining call of another program.(· Search for Ladder Program Defining Call of Another Program)
[0059] For example, for each of a plurality of called programs called and executed by the plurality of ladder programs 400, the search unit 168 searches the plurality of ladder programs 400 for the ladder program 400 defined to call the called program. For each of the plurality of function programs 500, the search unit 168 may search the plurality of ladder programs 400 for the ladder program 400 defined to call the function program 500. For each of the plurality of motion programs 600, the search unit 168 may search the plurality of ladder programs 400 for the ladder program 400 defined to call the motion program 600.(· Search for function program defining call of another program)
[0060] For example, for each of a plurality of called programs called and executed by the plurality of function programs 500, the search unit 168 searches the plurality of function programs 500 for the function program 500 defined to call the called program. For each of the plurality of function programs 500, the search unit 168 may search the plurality of function programs 500 for the function program 500 defined to call another function program 500. For each of the plurality of motion programs 600, the search unit 168 may search the plurality of function programs 500 for the function program 500 defined to call the motion program 600.(· Search for motion program defining call of another program)
[0061] For example, for each of a plurality of called programs called and executed by the plurality of motion programs 600, the search unit 168 searches the plurality of motion programs 600 for the motion program 600 defined to call the called program. For each of the plurality of function programs 500, the search unit 168 may search the plurality of motion programs 600 for the motion program 600 defined to call the function program 500.(· Search for sequence program defining call of another program)
[0062] For example, for each of a plurality of called programs called and executed by the plurality of sequence programs 700, the search unit 168 searches the plurality of sequence programs 700 for the sequence program 700 defined to call the called program. For each of the plurality of function programs 500, the search unit 168 may search the plurality of sequence programs 700 for the sequence program 700 defined to call the function program 500. For each of the plurality of motion programs 600, the search unit 168 may search the plurality of sequence programs 700 for the sequence program 700 defined to call the motion program 600.(· Search for main program defining call of subprogram)
[0063] For example, for each of a plurality of sub-called programs called and executed by a plurality of called programs called and executed by the plurality of ladder programs 400, the search unit 168 searches the plurality of called programs for a called program defined to call the sub-called program. For each of a plurality of motion subprograms, the search unit 168 may search the plurality of motion main programs for a motion main program defined to call the motion subprogram. For each of a plurality of other motion subprograms, the search unit 168 may search the plurality of motion subprograms for a motion subprogram defined to call another motion subprogram. For each of a plurality of sequence subprograms, the search unit 168 may search the plurality of sequence main programs for a sequence main program defined to call the sequence subprogram. For each of a plurality of other sequence subprograms, the search unit 168 may search the plurality of sequence subprograms for a sequence subprogram defined to call the another sequence subprogram.(Creation of Correspondence Table)
[0064] The correspondence table creation unit 170 creates a correspondence table based on a search result by the search unit 168. The correspondence table creation unit 170 may create a correspondence table indicating a correspondence between each of a plurality of register variables and a program defining access to the register variable.
[0065] For example, for each of the plurality of register variables, the correspondence table creation unit 170 creates, based on a search result obtained by searching for a program defining access to the register variable, a correspondence table in which a plurality of programs are arranged side by side in headings on one side of a matrix, a plurality of register variables are arranged side by side in headings on another side of the matrix, and identification information is arranged at positions corresponding to a program defining access to a register variable and the register variable. The correspondence table creation unit 170 may create a correspondence table further indicating a group to which each of the plurality of register variables is allocated and a group to which each of the plurality of programs is allocated.
[0066] The display control unit 172 performs control to display the correspondence table created by the correspondence table creation unit 170. For example, the display control unit 172 causes the display unit 140 to display the correspondence table. For example, the display control unit 172 causes the communication unit 150 to transmit the correspondence table to another apparatus, and causes the another apparatus to display the correspondence table.(· Correspondence Table Between Register Variable and Ladder Program)
[0067] For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of a plurality of register variables and the ladder program 400 defining access to the register variable. Accordingly, it is possible to make it easy to confirm, for each of the plurality of register variables, whether or not there is the ladder program 400 defining access thereto and, if there is, which ladder program 400 among the plurality of ladder programs 400 defines the access. Thus, it is possible to support the user 20 to confirm a register variable for which access is not yet defined, to re-consider whether or not a relation between a register variable and the ladder program 400 for which access to the register variable is defined is appropriate, or the like, and as a result, it is possible to contribute to more appropriate control of the plurality of devices 300 by the ladder program 400.
[0068] When the management unit 164 manages the plurality of register variables by dividing the plurality of register variables into a plurality of ranges each corresponding to each of the plurality of devices 300, the correspondence table creation unit 170 may create a correspondence table indicating a correspondence between each of the plurality of ranges and the ladder program 400 defining access to the range. Accordingly, it is possible to make it easy to confirm, for each of the plurality of devices 300, the ladder program 400 that has the device 300 as its control target. Thus, it is possible to support the user 20 to confirm the device 300 that is not yet defined to be controlled, to confirm whether or not control content for the device 300 is appropriate, or the like, and as a result, it is possible to contribute to more appropriate control of the plurality of devices 300 by the ladder program 400. In addition, for example, when an existing application is distributed, it is possible to easily consider which ladder program 400 and which device 300 are to be distributed. As a specific example, in a case where an application is already constructed in group A, when group B is added and control performed only in group A is divided into group A and group B, a relation between the ladder program 400 and the device 300 can be easily grasped by the correspondence table, so that the ladder program 400 to be edited for distribution can be easily specified.(· Correspondence Table Between Register Variable and Another Program)
[0069] For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of register variables and the function program 500 defining access to the register variable. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of register variables and the motion program 600 defining access to the register variable. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of register variables and the sequence program 700 defining access to the register variable. As a result, also for programs other than the ladder program 400, it is possible to easily confirm, for each of the plurality of register variables, whether or not there is a program defining access thereto and, if there is, which program among the plurality of programs defines the access.(Correspondence Table Between Program on Calling Side and Program on Called Side)
[0070] The correspondence table creation unit 170 may create a correspondence table indicating a correspondence between each of a plurality of called programs called by other programs and a program defined to call the called program.(· Correspondence Table Between Ladder Program and Called Program)
[0071] For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of called programs and the ladder program 400 defined to call the called program. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of function programs 500 and the ladder program 400 defined to call the function program 500. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of motion programs 600 and the ladder program 400 defined to call the motion program 600. As a result, it is possible to easily confirm the correspondence between the plurality of ladder programs 400 and the programs respectively called by the plurality of ladder programs 400.(· Correspondence Table Between Function Program and Called Program)
[0072] For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of called programs and the function program 500 defined to call the called program. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of function programs 500 and the function program 500 defined to call the function program 500. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of motion programs 600 and the function program 500 defined to call the motion program 600. As a result, it is possible to easily confirm the correspondence between the plurality of function programs 500 and the programs respectively called by the plurality of function programs 500.(· Correspondence Table Between Motion Program and Called Program)
[0073] For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of called programs and the motion program 600 defined to call the called program. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of function programs 500 and the motion program 600 defined to call the function program 500. As a result, it is possible to easily confirm the correspondence between the plurality of motion programs 600 and the programs respectively called by the plurality of motion programs 600.(· Correspondence Table Between Sequence Program and Called Program)
[0074] For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of called programs and the sequence program 700 defined to call the called program. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of function programs 500 and the sequence program 700 defined to call the function program 500. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of motion programs 600 and the sequence program 700 defined to call the motion program 600. As a result, it is possible to easily confirm the correspondence between the plurality of sequence programs 700 and the programs respectively called by the plurality of sequence programs 700.(· Correspondence Table Between Main Program and Subprogram)
[0075] For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of a plurality of sub-called programs called and executed by a plurality of call programs and a called program defined to call the sub-called program. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of motion subprograms and the motion main program defined to call the motion subprogram. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of motion subprograms and another motion subprogram defined to call the motion subprogram. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of sequence subprograms and the sequence main program defined to call the sequence subprogram. For example, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of sequence subprograms and another sequence subprogram defined to call the sequence subprogram. As a result, it is possible to easily confirm the correspondence between the plurality of main programs and the subprograms respectively called by the plurality of main programs. The detection unit 174 performs various types of detection.
[0076] The detection unit 174 may detect a matter that needs to be confirmed by the user 20 for data stored in the storage unit 120.(Detection of Mismatch in Group Between Register Variable and Program)
[0077] For example, the detection unit 174 detects, among a plurality of combinations of a register variable and a program defining access to the register variable, a combination in which a group allocated to the register variable and a group allocated to the program differ.
[0078] For example, the detection unit 174 detects, among a plurality of combinations of a register variable and the ladder program 400 defining access to the register variable, a combination in which a group allocated to the register variable and a group allocated to the ladder program 400 differ. Accordingly, it is possible to automatically detect a register variable accessed by the ladder program 400 allocated to a different group. Thus, when access to a register variable of a different group is defined in the ladder program 400 even though grouping is performed, it is possible to automatically detect the register variable. The display control unit 172 may control display so as to highlight a correspondence between the register variable of the combination detected by the detection unit 174 and the ladder program 400, in the correspondence table indicating the correspondence between each of the plurality of register variables and the ladder program 400 defining the access to the register variable. Accordingly, for example, it is possible to allow the user 20 to easily grasp the register variable accessed by the ladder program 400 allocated to a different group. Thus, it is possible to prompt the user 20 to edit the ladder program 400 such that the group of the register variable matches that of the ladder program 400.
[0079] Similarly, the detection unit 174 may detect, among a plurality of combinations of a register variable and the function program 500 defining access to the register variable, a combination in which a group allocated to the register variable and a group allocated to the function program 500 differ. The display control unit 172 may control display so as to highlight a correspondence between the register variable of the combination detected by the detection unit 174 and the function program 500, in the correspondence table indicating the correspondence between each of the plurality of register variables and the function program 500 defining the access to the register variable.
[0080] Similarly, the detection unit 174 may detect, among a plurality of combinations of a register variable and a called program defining access to the register variable, a combination in which a group allocated to the register variable and a group allocated to the called program differ. The display control unit 172 may control display so as to highlight a correspondence between the register variable of the combination detected by the detection unit 174 and the called program, in the correspondence table indicating the correspondence between each of the plurality of register variables and the called program defining the access to the register variable.
[0081] Similarly, the detection unit 174 may detect, among a plurality of combinations of a register variable and a sub-called program defining access to the register variable, a combination in which a group allocated to the register variable and a group allocated to the sub-called program differ. The display control unit 172 may control display so as to highlight a correspondence between the register variable of the combination detected by the detection unit 174 and the sub-called program, in the correspondence table indicating the correspondence between each of the plurality of register variables and the sub-called program defining the access to the register variable.(Correction of Group Mismatch)
[0082] The correction unit 176 corrects the combination detected by the detection unit 174 such that, for the plurality of combinations of the register variable and the program defining the access to the register variable, there is no combination in which the group allocated to the register variable and the group allocated to the program differ. Accordingly, it is possible to contribute to a state where there is no ladder program 400 defining access to a register variable of a different group, and it is possible to realize more appropriate control of a control target by a plurality of programs.
[0083] For example, the correction unit 176 changes an allocation group of at least one of the register variable or the program of the combination detected by the detection unit 174, so that groups match. For example, the correction unit 176 causes the display control unit 172 to display the combination detected by the detection unit 174 on the display unit 140, and changes the allocation group of at least one of the register variable or the program of the combination in accordance with a command by the user 20 using the input unit 130. The correction unit 176 may automatically change the allocation group of the at least one, so that the groups of the register variable and the program of the combination detected by the detection unit 174 match.(Detection of Device not Determined to be Accessed Until Program is Executed)
[0084] In a case where the display control unit 172 performs control to display a correspondence table indicating a correspondence between each of a plurality of ranges of the register variable created by the correspondence table creation unit 170 and a program defining access to the range, when it is judged that a range to be accessed among the plurality of ranges is not determined until a program defining access to one range among the plurality of ranges is executed, the display control unit may control display to highlight a correspondence between the one range and the program in the correspondence table. For example, for a program which is defined to repeatedly access, starting with one range of the plurality of ranges, one or more other ranges, the display control unit 172 controls display to highlight the correspondence between the one range and the ladder program in the correspondence table. As a result, it is possible to allow the user 20 to grasp that a range (device 300) of the register variable to be processed by the program is not determined until the program is executed. Accordingly, it is possible to make the user 20 aware that there is a possibility that, when the program is executed, an unexpected range (device 300) becomes a processing target, and to have the user 20 confirm that part carefully.
[0085] In addition, when the display control unit 172 performs control to display a correspondence table indicating a correspondence between a called program created by the correspondence table creation unit 170 and a program defined to call the called program, for a combination in which a value corresponding to the called program is not determined until the program is executed, among a plurality of combinations of the called program and the program defined to call the called program, the display control unit 172 may control display to highlight a correspondence between the called program and the program of the combination in the correspondence table. For example, when the display control unit 172 performs control to display a correspondence table indicating a correspondence between a called program created by the correspondence table creation unit 170 and the ladder program 400 defined to call the called program, for a combination in which a value corresponding to the called program is not determined until the ladder program 400 is executed, among a plurality of combinations of the called program and the ladder program 400 defined to call the called program, the display control unit 172 may control display to highlight a correspondence between the called program and the ladder program 400 of the combination in the correspondence table. As a specific example, when calling the called program is defined in the ladder program 400, but the value is a variable, and a calling target is not specified unless the ladder program 400 is executed, the display control unit 172 controls display to highlight the correspondence. Accordingly, it is possible to allow the user 20 to grasp that the device 300 to be processed by the program is not determined until the program is executed. Accordingly, it is possible to make the user 20 aware that there is a possibility that, when the program is executed, an unintended device 300 becomes a processing target, and to have the user 20 confirm that part carefully.(Provision of Program)
[0086] The provision unit 178 provides an outside with the program stored in the storage unit 120. For example, the provision unit 178 provides the control apparatus 200 with the program stored in the storage unit 120.
[0087] FIG. 4 schematically illustrates an example of a functional configuration of the control apparatus 200. The control apparatus 200 includes an acquisition unit 252 and a control unit 254.
[0088] The acquisition unit 252 acquires the program provided by the provision unit 178. The acquisition unit 252 stores the acquired program in the storage unit 230.
[0089] The control unit 254 controls a plurality of devices 300 according to the program stored in the storage unit 230.
[0090] The control apparatus 200 according to the present embodiment may have a multi-scan function. In this case, groups which are allocated to a plurality of programs and the plurality of devices 300 by the group allocation unit 166 may be scan groups. The multi-scan function may be a function of executing a plurality of scans in parallel in a distributed manner in a plurality of cores.
[0091] An execution cycle may be settable for each of the plurality of scan groups. The group allocation unit 166 may set the execution cycle for each of the plurality of scan groups in accordance with an input by the user 20 using the input unit 130. For example, the group allocation unit 166 sets a tag, such as “high speed” or “low speed”, indicating the execution cycle in each of the plurality of scan groups. The group allocation unit 166 may set a value of the execution cycle such as “0.1 ms” or “10 ms” for each tag such as “high speed” or “low speed”. Note that the group allocation unit 166 may set the value of the execution cycle for each of the plurality of scan groups.
[0092] An execution CPU may be settable for each of the plurality of scan groups. The group allocation unit 166 may set the execution CPU for each of the plurality of scan groups in accordance with an input by the user 20 using the input unit 130. The group allocation unit 166 may set one of one or more CPUs included in the control apparatus 200 for each of the plurality of scan groups.
[0093] An execution core may be settable for each of the plurality of scan groups. The group allocation unit 166 may set the execution core for each of the plurality of scan groups in accordance with an input by the user 20 using the input unit 130. The group allocation unit 166 may set one of one or more cores included in the control apparatus 200 for each of the plurality of scan groups.
[0094] FIG. 5 is an explanatory diagram for explaining a multi-scan function of the control apparatus 200. Here, a case where a plurality of programs and a plurality of devices 300 are allocated to scan group A, scan group B, scan group C, and scan group D will be described as an example. A program being allocated to a scan group may be described as the program belonging to the scan group. In addition, the device 300 being allocated to a scan group may be described as the device 300 belonging to the scan group.
[0095] In the example illustrated in FIG. 5, a core 212 of the CPU 210 is set as the execution core in scan group A and scan group B, a core 214 of the CPU 210 is set as the execution core in scan group C, and a core 222 of the CPU 220 is set as the execution core in scan group D. In addition, the execution cycle of “high speed” is set in scan group A and scan group B, and the execution cycle of “low speed” is set in scan group C and scan group D. In addition, it is assumed that a program belonging to scan group A operates the device 300 belonging to scan group A, a program belonging to scan group B operates the device 300 belonging to scan group B, a program belonging to scan group C operates the device 300 belonging to scan group C, and a program belonging to scan group D operates the device 300 belonging to scan group D.
[0096] The control apparatus 200 causes the core 212 to execute the program belonging to scan group A at the execution cycle set in scan group A and to execute the program belonging to scan group B at the execution cycle set in scan group B. The control apparatus 200 causes the core 214 to execute the program belonging to scan group C at the execution cycle set in scan group C. The control apparatus 200 causes the core 222 to execute the program belonging to scan group D at the execution cycle set in scan group D.
[0097] In the example illustrated in FIG. 5, since a scan group to which the device 300 to be controlled by a program belongs matches a scan group to which the program belongs, no particular problem occurs. However, it may be difficult for the user 20 to create programs such that groups match for all programs and all the devices 300. In particular, for example, when a scale of the program is large or when the program is created by a plurality of users 20, the problem becomes remarkable.
[0098] For example, when the ladder program 400 is erroneously created from the ladder programs 400 belonging to scan group A so as to control the device 300 belonging to scan group D, the execution cycles do not match each other, and a problem may occur. Therefore, when a scan group to which the device 300 to be controlled by the ladder program 400 belongs does not match a scan group of the ladder program 400, it is important to make the user 20 aware of this and to have the user to take action as necessary.
[0099] In the information processing system 10 according to the present embodiment, as described above, for each of a plurality of register variables, the search unit 168 searches a plurality of programs stored in the storage unit 120 for a program defining access to the register variable, the correspondence table creation unit 170 creates a correspondence table indicating a correspondence between each of the plurality of register variables and the program defining the access to the register variable, and the display control unit 172 performs control to display the correspondence table. Accordingly, a relation between a program and the device 300 to be controlled by the program can be easily grasped, and the user 20 can be made aware of a mismatch between scan groups.
[0100] The information processing system 10 according to the present embodiment may be configured such that, while a plurality of combinations of a register variable and a program defining access to the register variable include a combination in which a scan group allocated to the register variable and a scan group allocated to the program differ, control of the plurality of devices 300 is not started, and control of the plurality of devices 300 is started after there is no combination in which the scan group allocated to the register variable and the scan group allocated to the program differ.
[0101] For example, when the combination in which the scan group allocated to the register variable and the group allocated to the program differ is not detected by the detection unit 174, the control unit 254 controls the plurality of devices 300 to be controlled, by executing each of the plurality of programs according to the execution cycle set in the scan group to which each of the plurality of programs is allocated. That is, on condition that the combination in which the scan group allocated to the register variable and the group allocated to the program differ is not detected by the detection unit 174, the control unit 254 may control the plurality of devices 300 to be controlled, by executing each of the plurality of programs according to the execution cycle set in the scan group to which each of the plurality of programs is allocated. In addition, for example, while the combination in which the scan group allocated to the register variable and the group allocated to the program differ is detected by the detection unit 174, execution of the program by the control unit 254 is prohibited, and on condition that the combination in which the scan group allocated to the register variable and the group allocated to the program differ is not detected, the execution of the program by the control unit 254 is permitted. As a result, for all of the plurality of programs, the control of the plurality of devices 300 by the plurality of programs can be executed in a state where the execution cycle matches that of the register variable defining the access, and highly accurate synchronization control or the like of the plurality of devices can be realized.
[0102] FIG. 6 schematically illustrates a correspondence table 800 which is an example of a correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed. In FIGS. 6 to 10, a case where the device 300 is a SERVOPACK (registered trademark) and the control apparatus 200 is a controller of the SERVOPACK will be described as an example. The device 300 is described as an axis, a device number is described as an axis number, and a logical device name is described as a logical axis name. The correspondence table 800 indicates a correspondence between each of a plurality of ranges of a plurality of register variables each corresponding to each of a plurality of devices 300, and the ladder program 400 defining access to the range.
[0103] The correspondence table 800 includes a scan group column 801, a group column 802, a line number column 811, an axis number column 812, a logical axis name column 813, a motion register column 814, a ladder program column 820, and an affiliation group column 822. The correspondence table creation unit 170 arranges a scan group name in the scan group column 801. The correspondence table creation unit 170 arranges a subgroup name of the scan group in the group column 802. Note that, here, a case where a subgroup of the scan group can be defined is exemplified, but it is not necessarily required that the subgroup be definable. The correspondence table creation unit 170 arranges information of the device 300 in the line number column 811, the axis number column 812, and the logical axis name column 813. The correspondence table creation unit 170 arranges, in the line number column 811, a line number for identifying a communication line to which the device 300 is connected, arranges the axis number of the device 300 in the axis number column 812, and arranges the logical axis name of the device 300 in the logical axis name column 813. The correspondence table creation unit 170 arranges, in the motion register column 814, a range of the register variable corresponding to the device 300. The correspondence table creation unit 170 arranges, in one ladder program column 820, names of one or more ladder programs 400 belonging to one scan group, and arranges a name of the one scan group in the affiliation group column 822. The correspondence table creation unit 170 arranges identification information at a position corresponding to the ladder program 400 defining access to a register variable and the register variable. In FIG. 6, a check mark 830 is illustrated as the identification information. The identification information is not limited to the check mark 830, and may be any information as long as the ladder program 400 defining access to the register variable and the ladder program 400 not defining the access can be identified.
[0104] As illustrated in FIG. 6, the correspondence table creation unit 170 may create the correspondence table 800 in which a plurality of ladder programs 400 are arranged side by side at headings in a row direction of a matrix, ranges of a plurality of register variables are arranged side by side at headings in a column direction of the matrix, and the identification information is arranged at a position corresponding to the ladder program 400 defining access to a register variable and the register variable. The correspondence table creation unit 170 may create the correspondence table 800 in which the plurality of ladder programs 400 are arranged side by side at the headings in the column direction of the matrix, the ranges of the plurality of register variables are arranged side by side at the headings in the row direction of the matrix, and the identification information is arranged at the position corresponding to the ladder program 400 defining the access to the register variable and the register variable. As a result, it is possible to confirm, in a clear and organized manner, whether or not each of the plurality of ladder programs 400 and each of the plurality of register variables are in a relation defining access.
[0105] As illustrated in FIG. 6, the correspondence table creation unit 170 may create the correspondence table 800 indicating a scan group to which the plurality of register variables are allocated and a scan group to which each of the plurality of ladder programs 400 is allocated. Accordingly, it is possible to easily confirm whether or not a ladder program defining access to a register variable and the register variable match or do not match in their scan groups.
[0106] As illustrated in FIG. 6, the display control unit 172 may control display to highlight a correspondence between the register variable and the ladder program 400 of the combination, detected by the detection unit 174, in which the scan group allocated to the register variable and the scan group allocated to the ladder program 400 differ, among the plurality of combinations of the register variable and the ladder program 400 defining access to the register variable.
[0107] Accordingly, it is possible to easily grasp the register variable accessed by the ladder program 400 allocated to a different scan group. In FIG. 6, the display control unit 172 arranges a highlighting object 840 on a background of the check mark 830 at a position corresponding to the register variable and the ladder program 400 of the combination detected by the detection unit 174, thereby highlighting the correspondence between the register variable and the ladder program 400. In FIG. 6, diagonal hatching is used as the highlighting object 840, but the present invention is not limited thereto. As long as the highlighting object 840 can highlight the correspondence between the one range and the ladder program 400, highlighting may be performed by other hatching, by color, by brightness, or by another method.
[0108] The display control unit 172 may change a degree of highlighting, depending on whether the combination in which the scan group allocated to the register variable and the scan group allocated to the ladder program 400 differ is a combination having different scan groups but matching execution cores, or a combination having different scan groups and different execution cores. For example, the display control unit 172 makes the degree of highlighting the combination having different scan groups and different execution cores, stronger than the degree of highlighting the combination having different scan groups but matching execution cores. As a specific example, the display control unit 172 arranges the highlighting object 840 on the background of the check mark 830 at a position corresponding to the register variable and the ladder program 400 of the combination having different scan groups and different execution cores, and arranges an object having a weaker degree of highlighting than that of the highlighting object 840, on the background of the check mark 830 at a position corresponding to the register variable and the ladder program 400 of the combination having different scan groups but matching execution cores. Even when the scan groups differ, if the execution cores are the same, there is a low possibility that a problem occurs as compared with a case where the execution cores differ. Thus, by the display control unit 172 performing such control, it is possible to provide highlight display according to a possibility of occurrence of a problem.
[0109] For the combinations in which the scan group allocated to the register variable and the scan group allocated to the ladder program 400 differ, the display control unit 172 may perform control so as not to highlight a combination having different scan groups but matching execution cores and to highlight a combination having different scan groups and different execution cores. For example, the display control unit 172 arranges the highlighting object 840 only on the background of the check mark 830 at a position corresponding to the register variable and the ladder program 400 of the combination having different scan groups and different execution cores.
[0110] As illustrated in FIG. 6, when it is judged that, until the ladder program 400 defining access to one range of a plurality of ranges of the register variable is executed, a range to be accessed among the plurality of ranges is not determined, the display control unit 172 may control display to highlight a correspondence between the one range and the ladder program 400 in the correspondence table 800. For example, for the ladder program 400 which is defined to repeatedly access, starting with one range of the plurality of ranges, one or more other ranges, the display control unit 172 controls display to highlight the correspondence between the one range and the ladder program in the correspondence table 800. As a specific example, when the ladder program 400 includes a For statement or a While statement that repeatedly accesses, starting with one range of a plurality of ranges, one or more other ranges, the display control unit 172 controls display to highlight the correspondence between the one range and the ladder program in the correspondence table 800. In FIG. 6, the display control unit 172 arranges a highlighting object 850 on the background of the check mark 830 at a position corresponding to the one range and the ladder program 400, thereby highlighting the correspondence between the one range and the ladder program 400. In FIG. 6, horizontal hatching is used as the highlighting object 850, but the present invention is not limited thereto. As long as the highlighting object 850 can highlight the correspondence between the one range and the ladder program 400, highlighting may be performed by other hatching, by color, by brightness, or by another method.
[0111] The display control unit 172 may make the highlighting of the correspondence when the groups differ, different from the highlighting of the correspondence when it is judged that a range to be accessed among a plurality of ranges is not determined until the ladder program 400 is executed. That is, the highlighting object 840 and the highlighting object 850 may be different from each other. For example, the highlighting object 840 and the highlighting object 850 may be different hatchings. For example, the highlighting object 840 and the highlighting object 850 may have different colors. For example, when the highlighting object 840 is one of hatching, color, or brightness, the highlighting object 850 may be another one of hatching, color, or brightness. As a result, it is possible to allow the user 20 to grasp that contents to be confirmed differ, and it is possible to support a confirmation work by the user 20. Note that it is not essential to make the highlighting of the correspondence when the groups differ, different from the highlighting of the correspondence when it is judged that the range to be accessed among the plurality of ranges is not determined until the ladder program 400 is executed, and the highlighting of the correspondence when the groups differ may be the same as the highlighting of the correspondence when it is judged that the range to be accessed among the plurality of ranges is not determined until the ladder program 400 is executed.
[0112] The display control unit 172 may highlight the correspondence when the groups differ, more strongly than the highlighting of the correspondence when it is judged that the range to be accessed among the plurality of ranges is not determined until the ladder program 400 is executed. That is, the highlighting object 840 may have a higher degree of highlighting than that of the highlighting object 850. For example, the highlighting object 840 may be hatching with a higher degree of highlighting than that of highlighting object 850. For example, the highlighting object 840 may be a color with a higher degree of highlighting than that of the highlighting object 850. As a specific example, the highlighting object 840 may be red, and the highlighting object 850 may be yellow. As a result, it is possible to allow the user 20 to more easily become aware of a correspondence considered to have higher importance for confirmation.
[0113] FIG. 7 schematically illustrates a correspondence table 900 which is an example of a correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed. The correspondence table 900 indicates a correspondence between each of a plurality of function programs 500 and the ladder program 400 defined to call the function program 500. The correspondence table 900 includes a scan group column 901, a function program column 902, a ladder program column 920, and an affiliation group column 922.
[0114] The correspondence table creation unit 170 arranges a scan group name in the scan group column 901. The correspondence table creation unit 170 arranges a name of the function program 500 in the function program column 902. The correspondence table creation unit 170 arranges, in one ladder program column 920, names of one or more ladder programs 400 belonging to one scan group, and arranges a name of the one scan group in the affiliation group column 922. The correspondence table creation unit 170 arranges identification information at a position corresponding to the ladder program 400 defined to call the function program 500 and the function program 500. In FIG. 7, a check mark 930 is illustrated as the identification information. The identification information is not limited to the check mark 930, and may be any information as long as the ladder program 400 defined to call the function program 500 and the ladder program 400 not defined can be identified.
[0115] As illustrated in FIG. 7, the correspondence table creation unit 170 may create the correspondence table 900 in which a plurality of ladder programs 400 are arranged side by side at headings in a row direction of a matrix, a plurality of function programs 500 are arranged side by side at headings in a column direction of the matrix, and the identification information is arranged at a position corresponding to the ladder program 400 defined to call the function program 500 and the function program 500. The correspondence table creation unit 170 may create the correspondence table 900 in which the plurality of ladder programs 400 are arranged side by side at the headings in the column direction of the matrix, the plurality of function programs 500 are arranged side by side at the headings in the row direction of the matrix, and the identification information is arranged at the position corresponding to the ladder program 400 defined to call the function program 500 and the function program 500. As illustrated in FIG. 7, the correspondence table creation unit 170 may create the correspondence table 900 indicating a scan group to which each of the plurality of function programs 500 is allocated and a scan group to which each of the plurality of ladder programs 400 is allocated.
[0116] The detection unit 174 may detect, among a plurality of combinations of the function program 500 and the ladder program 400 defined to call the function program 500, a combination in which a scan group to which the function program 500 belongs and a scan group to which the device 300 controlled by the function program 500 belongs do not match. That is, for the plurality of function programs 500 called by the ladder program 400, the detection unit 174 may detect, among a plurality of combinations of a register variable and the function program 500 defining access to the register variable, a combination in which a scan group allocated to the register variable and a scan group allocated to the function program 500 differ. As illustrated in FIG. 7, the display control unit 172 may control display to highlight a correspondence between the function program 500 and the ladder program 400 of the combination detected by the detection unit 174. In FIG. 7, the display control unit 172 arranges a highlighting object 940 on a background of the check mark 930 at a position corresponding to the function program 500 and the ladder program 400 of the combination detected by the detection unit 174, thereby highlighting the correspondence. Accordingly, it is possible to easily grasp the function program 500 having a scan group which does not match that of the device 300 to be controlled, among the function programs 500 called by the ladder program 400. Note that, instead of this, the detection unit 174 may detect, among the plurality of combinations of the function program 500 and the ladder program 400 defined to call the function program 500, a combination in which a scan group allocated to the function program 500 and a scan group allocated to the ladder program 400 differ, and the display control unit 172 may control display to highlight a correspondence between the function program 500 and the ladder program 400 of the combination detected by the detection unit 174.
[0117] FIG. 8 schematically illustrates a correspondence table 1000 which is an example of a correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed. The correspondence table 1000 indicates a correspondence between each of a plurality of motion programs 600 and the ladder program 400 defined to call the motion program 600. The correspondence table 1000 includes a program number column 1002, a work register column 1003, a ladder program column 1020, and an affiliation group column 1022.
[0118] The correspondence table creation unit 170 arranges a program number of the motion program in the program number column 1002. The correspondence table creation unit 170 arranges, in the work register column 1003, a work register corresponding to the motion program. The correspondence table creation unit 170 arranges, in one ladder program column 1020, names of one or more ladder programs 400 belonging to one scan group, and arranges a name of the one scan group in the affiliation group column 1022. The correspondence table creation unit 170 arranges identification information at a position corresponding to the ladder program 400 defined to call the motion program 600 and the motion program 600. In FIG. 8, a check mark 1030 is illustrated as the identification information. The identification information is not limited to the check mark 1030, and may be any information as long as the ladder program 400 defined to call the motion program 600 and the ladder program 400 not defined can be identified.
[0119] As illustrated in FIG. 8, the correspondence table creation unit 170 may create the correspondence table 1000 in which a plurality of ladder programs 400 are arranged side by side at headings in a row direction of a matrix, a plurality of motion programs 600 are arranged side by side at headings in a column direction of the matrix, and the identification information is arranged at a position corresponding to the ladder program 400 defined to call the motion program 600 and and the motion program 600. Note that the correspondence table creation unit 170 may create the correspondence table 1000 in which the plurality of ladder programs 400 are arranged side by side at the headings in the column direction of the matrix, the plurality of motion programs 600 are arranged side by side at the headings in the row direction of the matrix, and the identification information is arranged at the position corresponding to the ladder program 400 defined to call the motion program 600 and the motion program 600. As illustrated in FIG. 8, the correspondence table creation unit 170 may create the correspondence table 1000 indicating a scan group to which each of the plurality of ladder programs 400 is allocated.
[0120] The detection unit 174 may detect, among a plurality of combinations of the motion program 600 and the ladder program 400 defined to call the motion program 600, a combination in which a scan group to which the motion program 600 belongs and a scan group to which the device 300 controlled by the motion program 600 belongs do not match. That is, for the plurality of motion programs 600 called by the ladder program 400, the detection unit 174 may detect, among a plurality of combinations of a register variable and the motion program 600 defining access to the register variable, a combination in which a scan group allocated to the register variable and a scan group allocated to the motion program 600 differ. As illustrated in FIG. 8, the display control unit 172 may control display to highlight a correspondence between the combined motion program 600 and the ladder program 400 of the combination detected by the detection unit 174. In FIG. 8, the display control unit 172 arranges a highlighting object 1040 in a background of the check mark 1030 at a position corresponding to the motion program 600 and the ladder program 400 of the combination detected by the detection unit 174, thereby highlighting the correspondence. Accordingly, it is possible to easily grasp the motion program 600 having a scan group which does not match that of the device 300 to be controlled, among the motion programs 600 called by the ladder program 400. Note that, instead of this, the detection unit 174 may detect, among the plurality of combinations of the motion program 600 and the ladder program 400 defined to call the motion program 600, a combination in which a scan group allocated to the motion program 600 and a scan group allocated to the ladder program 400 differ, and the display control unit 172 may control display to highlight a correspondence between the motion program 600 and the ladder program 400 of the combination detected by the detection unit 174.
[0121] When performing control to display the correspondence table 1000, for a combination in which a value corresponding to the motion program 600 is not determined until the ladder program 400 is executed, among a plurality of combinations of the motion program 600 and the ladder program 400 defined to call the motion program 600, the display control unit 172 may control display to highlight a correspondence between the motion program 600 and the ladder program 400 of the combination in the correspondence table 1000. In FIG. 8, the display control unit 172 arranges a highlighting object 1050 on a background of the check mark 1030 at a position corresponding to the motion program 600 and the ladder program 400 of the combination in which the value corresponding to the motion program 600 is not determined until the ladder program 400 is executed, thereby highlighting the correspondence. As a specific example, when calling the motion program 600 is defined in the ladder program 400, but the value is a variable and a calling target is not specified unless the ladder program 400 is executed, the display control unit 172 controls display to highlight the correspondence.
[0122] FIG. 9 schematically illustrates a correspondence table 1100 which is an example of a correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed. The correspondence table 1100 indicates a correspondence between each of a plurality of ranges of a plurality of register variables each corresponding to each of a plurality of devices 300, and the motion program 600 defining access to the range.
[0123] The correspondence table 1100 includes a scan group column 1101, a group column 1102, a line number column 1111, an axis number column 1112, a logical axis name column 1113, a motion register column 1114, a motion program column 1120, and an affiliation group column 1122. Here, differences from the correspondence table 800 of FIG. 6 will be mainly described.
[0124] The correspondence table creation unit 170 arranges, in one motion program column 1120, names of one or more motion programs 600 belonging to one scan group, and arranges a name of the one scan group in the affiliation group column 822. In the example illustrated in FIG. 9, names of a plurality of motion main programs and a plurality of motion subprograms belonging to subgroup a included in scan group A are displayed. The correspondence table creation unit 170 arranges identification information at a position corresponding to the motion program 600 defining access to a register variable and the register variable. The correspondence table creation unit 170 may arrange the identification information at a position corresponding to the motion program 600 defining an instruction for the device 300 and a register variable corresponding to the device 300. In FIG. 9, a check mark 1130 is illustrated as the identification information.
[0125] As illustrated in FIG. 9, the display control unit 172 may control display to highlight a correspondence between the register variable and the motion program 600 of the combination, detected by the detection unit 174, in which the scan group allocated to the register variable and the scan group allocated to the motion program 600 differ, among the plurality of combinations of the register variable and the motion program 600 defining access to the register variable or the instruction for the device 300. In FIG. 9, the display control unit 172 arranges a highlighting object 1140 on a background of the check mark 1130 at a position corresponding to the register variable and the motion program 600 of the combination detected by the detection unit 174, thereby highlighting the correspondence between the register variable and the motion program 600.
[0126] For a correspondence table indicating a correspondence between each of a plurality of ranges of a plurality of register variables each corresponding to each of a plurality of devices 300 and the function program 500 defining access to the range, the correspondence table creation unit 170 may create a correspondence table similar to the correspondence table 1100 illustrated in FIG. 9. For a correspondence table indicating a correspondence between each of the plurality of ranges of the plurality of register variables each corresponding to each of the plurality of devices 300 and the sequence program 700 defining access to the range, the correspondence table creation unit 170 may create a correspondence table similar to the correspondence table 1100 illustrated in FIG. 9.
[0127] FIG. 10 schematically illustrates a correspondence table 1200 which is an example of a correspondence table which is created by the correspondence table creation unit 170 and is controlled by the display control unit 172 to be displayed. The correspondence table 1200 indicates a correspondence between each of a plurality of motion subprograms and the motion program 600 defined to call the motion subprogram. Here, differences from the correspondence table 900 of FIG. 7 will be mainly described. The correspondence table 1200 includes a scan group column 1201, a motion program column 1202, a motion program column 1220, and an affiliation group column 1222.
[0128] The correspondence table creation unit 170 arranges, in one motion program column 1220, names of one or more motion programs 600 belonging to one scan group, and arranges a name of the one scan group in the affiliation group column 1222. In the example illustrated in FIG. 10, names of a plurality of motion main programs and a plurality of motion subprograms belonging to subgroup a included in scan group A are displayed. The correspondence table creation unit 170 arranges identification information at a position corresponding to the motion program 600 defined to call the motion subprogram and the motion subprogram. In FIG. 10, a check mark 1230 is illustrated as the identification information.
[0129] The detection unit 174 may detect, among a plurality of combinations of the motion subprogram and the motion program 600 defined to call the motion subprogram, a combination in which a scan group to which the motion subprogram belongs and a scan group to which the device 300 controlled by the motion subprogram belongs do not match. That is, for the plurality of motion subprograms called by the motion program 600, the detection unit 174 may detect, among a plurality of combinations of a register variable and the motion subprogram defining access to the register variable, a combination in which a scan group allocated to the register variable and a scan group allocated to the motion subprogram differ. Note that, instead of this, the detection unit 174 may detect, among the plurality of combinations of the motion subprogram and the motion program 600 defined to call the motion subprogram, a combination in which a scan group allocated to the motion subprogram and a scan group allocated to the motion program 600 differ, and the display control unit 172 may control display to highlight a correspondence between the motion subprogram and the motion program 600 of the combination detected by the detection unit 174.
[0130] FIG. 11 schematically illustrates an example of a hardware configuration of a computer 1300 which functions as an information processing apparatus 100 or the control apparatus 200. A program installed in the computer 1300 may cause the computer 1300 to function as the information processing apparatus 100 or the control apparatus 200. Such a program may be executed by one or more processors to cause the computer 1300 to execute specific operations associated with some or all blocks in the flowcharts or block diagrams described in the present specification. A functional configuration of the information processing apparatus 100 or the control apparatus 200 may be implemented by one or more processors. The one or more processors may be supplied with computer-readable instructions stored on one or more non-transitory computer-readable storage media. When the computer-readable instructions are executed by the one or more processors, the information processing system 10 functions as a plurality of units. The computer-readable instructions may be created from one or more programs.
[0131] The computer 1300 includes a CPU 1312, a RAM 1314, and a graphics controller 1316, which are mutually connected by a host controller 1310. In addition to the CPU 1312, the computer 1300 may include at least one of a GPU, FPGA, or ASIC. The one or more processors may include the CPU 1312. The one or more processors may include the GPU. The one or more processors may include the FPGA. The one or more processors may include the ASIC. The computer 1300 may also include an FPGA instead of the CPU 1312. The computer 1300 also includes input / output units such as a communication interface 1322, a storage apparatus 1324, a DVD drive and an IC card drive, which are connected to the host controller 1310 via an input / output controller 1320. The storage apparatus 1324 may be a hard disk drive, a solid-state drive, or the like. The computer 1300 also includes a ROM 1330 and legacy input / output units such as input devices 1332 like a keyboard, a mouse, or a touch panel, which are connected to the input / output controller 1320 via an input / output chip 1340. The CPU 1312 operates according to programs stored in the ROM 1330 and the RAM 1314, thereby controlling each unit. The graphics controller 1316 acquires image data generated by the CPU 1312 and enables the image data to be displayed on a display device 1318. The communication interface 1322 communicates with another electronic device via a network. The storage apparatus 1324 stores programs and data used by the CPU 1312. Information processing described in the programs is read by the computer 1300, and provides cooperation between the programs and the various types of hardware resources described above.
[0132] The blocks in the flowcharts and the block diagrams in the present embodiments may represent stages of processes in which operations are executed or “units” of apparatuses responsible for executing the operations. A specific stage and “unit” may be implemented by a dedicated circuit, a programmable circuit supplied along with a computer readable instruction stored on a computer readable storage medium, and / or a processor supplied along with the computer readable instruction stored on the computer readable storage medium. The dedicated circuit may include a digital and / or analog hardware circuit, or may include an integrated circuit (IC) and / or a discrete circuit. The programmable circuit may include, for example, a reconfigurable hardware circuit including logical AND, logical OR, logical XOR, logical NAND, logical NOR, and another logical operation, and a flip-flop, a register, and a memory element, such as a field programmable gate array (FPGA), a programmable logic array (PLA), or the like.
[0133] The computer readable storage medium may include any tangible device capable of storing an instruction executed by an appropriate device, so that the computer readable storage medium having the instruction stored thereon constitutes a product including an instruction that may be executed in order to provide means for executing an operation designated by a flowchart or a block diagram. An example of the computer readable storage medium may include an electronic storage medium, a magnetic storage medium, an optical storage medium, an electromagnetic storage medium, a semiconductor storage medium, or the like. The computer readable instruction may be provided to a processor or a programmable circuit of a general-purpose computer, a special-purpose computer, or another programmable data processing apparatus locally or via a local area network (LAN) or a wide area network (WAN) such as the Internet or the like, so that the processor or the programmable circuit of the programmable data processing apparatus such as a computer executes the computer readable instruction in order to create means for executing the operations specified in the flowcharts or block diagrams. Examples of the processor include a computer processor, a central processing unit, a processing unit, a microprocessor, a digital signal processor, a controller, a microcontroller, a GPU, a FPGA, an ASIC or the like. The computer may include one processor or a plurality of processors. In a multi-processor system including a plurality of processors, the plurality of processors collectively execute a program by each of the processors executing a portion of the program, and passing data during the execution of the program among the processors as needed. For example, in execution of multiple tasks, each of the plurality of processors may execute a portion of each task pieces by pieces by performing task-switching for each time slice. In this case, which portion of one program each processor is responsible for executing dynamically changes. Moreover, which portion of the program each of the plurality of processor is responsible for executing may be determined statically by multiprocessor-aware programming.
[0134] While the present invention has been described by way of the embodiments, the technical scope of the present invention is not limited to the above-described embodiments. It is apparent to persons skilled in the art that various alterations or improvements can be added to the above-described embodiments. It is also apparent from the scope of the claims that the embodiments added with such alterations or improvements can be included in the technical scope of the invention.
[0135] The operations, procedures, steps, and stages of each process performed by an apparatus, system, program, and method shown in the claims, embodiments, or diagrams can be performed in any order as long as the order is not indicated by “prior to,”“before,” or the like and as long as the output from a previous process is not used in a later process. Even if the process flow is described using phrases such as “first” or “next” in the claims, embodiments, or diagrams, it does not necessarily mean that the process must be performed in this order.Explanation of References
[0136] 10: information processing system; 20: user; 100: information processing apparatus; 110: CPU; 120: storage unit; 122: device-related data; 124: group-related data; 130: input unit; 140: display unit; 150: communication unit; 162: creation unit; 164: management unit; 166: group allocation unit; 168: search unit; 170: correspondence table creation unit; 172: display control unit; 174: detection unit; 176: correction unit; 178: provision unit; 200: control apparatus; 210: CPU; 212: core; 214: core; 220: CPU; 222: core; 230: storage unit; 232: register; 240: communication unit; 252: acquisition unit; 254: control unit; 300: device; 400: ladder program; 402: rung; 500: function program; 502: rung; 600: motion program; 610: motion subprogram; 700: sequence program; 800: correspondence table; 801: scan group column; 802: group column; 811: line number column; 812: axis number column; 813: logical axis name column; 814: motion register column; 820: ladder program column; 822: affiliation group column; 830: check mark; 840: highlighting object; 850: highlighting object; 900: correspondence table; 901: scan group column; 902: function program column; 920: ladder program column; 922: affiliation group column; 930: check mark; 940: highlighting object; 1000: correspondence table; 1002: program number column; 1003: work register column; 1020: ladder program column; 1022: affiliation group column; 1030: check mark; 1040: highlighting object; 1050: highlighting object; 1100: correspondence table; 1101: scan group column; 1102: group column; 1111: line number column; 1112: axis number column; 1113: logical axis name column; 1114: motion register column; 1120: motion program column; 1122: affiliation group column; 1130: check mark; 1140: highlighting object; 1200: correspondence table; 1201: scan group column; 1202: motion program column; 1220: motion program column; 1222: affiliation group column; 1230: check mark; 1240: highlighting object; 1300: computer; 1310: host controller; 1312: CPU; 1314: RAM; 1316: graphics controller; 1318: display device; 1320: input / output controller; 1322: communication interface; 1324: storage apparatus; 1330: ROM; 1332: input device; and 1340: input / output chip.
Claims
1. An information processing system comprising:one or more processors; whereinthe one or more processors search, for each register variable of a plurality of register variables, a plurality of ladder programs for a ladder program, equivalent to the ladder programs, defining access to the register variable;the one or more processors create a correspondence table indicating a correspondence between each of the plurality of register variables and the ladder program defining access to the register variable, based on a result of the search; andthe one or more processors perform control to display the correspondence table.
2. The information processing system according to claim 1, wherein:the one or more processors allocate each of the plurality of ladder programs and the plurality of register variables to one group of a plurality of groups; andthe one or more processors detect, among a plurality of combinations of the register variable and the ladder program defining access to the register variable, a combination in which the group allocated to the register variable and the group allocated to the ladder program differ.
3. The information processing system according to claim 2, wherein the the one or more processors allocate each of the plurality of ladder programs and the plurality of register variables to one of the plurality of groups, for each of which an execution cycle is settable.
4. The information processing system according to claim 3, wherein:the one or more processors correct the detected combination such that, in the plurality of combinations, there is no combination in which between the group allocated to the register variable and the group allocated to the ladder program differ.
5. The information processing system according to claim 3, wherein:the one or more processors control, when the combination in which the group allocated to the register variable and the group allocated to the ladder program differ is not detected, a plurality of devices to be controlled, by executing each of the plurality of ladder programs according to the execution cycle set in the group to which each of the plurality of ladder programs is allocated.
6. The information processing system according to claim 2, wherein the one or more processors control display to highlight a correspondence between the register variable and the ladder program of the detected combination in the correspondence table.
7. The information processing system according to claim 1, wherein:the one or more processors manage the plurality of register variables by dividing the plurality of register variables into a plurality of ranges each corresponding to each of a plurality of devices to be controlled by the plurality of ladder programs,the one or more processors create the correspondence table indicating a correspondence between each range of the plurality of ranges and the ladder program defining access to the range.
8. The information processing system according to claim 7, wherein when it is judged that a range to be accessed among the plurality of ranges is not determined until the ladder program defining access to one range among the plurality of ranges is executed, the one or more processors control display to highlight a correspondence between the one range and the ladder program in the correspondence table.
9. The information processing system according to claim 8, wherein for the ladder program which is defined to repeatedly access, starting with one range of the plurality of ranges, one or more other ranges, the one or more processors control display to highlight a correspondence between the one range and the ladder program in the correspondence table.
10. The information processing system according to claim 1, whereinfor each called program of a plurality of called programs called and executed by the plurality of ladder programs, the one or more processors search the plurality of ladder programs for the ladder program defined to call the called program, andthe one or more processors create a correspondence table indicating a correspondence between each of the plurality of called programs and the ladder program defined to call the called program, based on a result of the search.
11. The information processing system according to claim 10, wherein:the one or more processors allocate each of the plurality of called programs and the plurality of register variables to one group of a plurality of groups; andthe one or more processors detect, among a plurality of combinations of the register variable and the called program defining access to the register variable, a combination in which the group allocated to the register variable and the group allocated to the called program differ.
12. The information processing system according to claim 10, wherein, for a combination in which a value corresponding to the called program is not determined until the ladder program is executed, among a plurality of combinations of the called program and the ladder program defined to call the called program, the one or more processors control display to highlight a correspondence between the called program and the ladder program of the combination in the correspondence table.
13. The information processing system according to claim 1, whereinfor each of the plurality of register variables, the one or more processors search a plurality of other types of programs which are called and executed by the plurality of ladder programs and are different from a ladder program, for another type of program, equivalent to the other types of programs, defining access to the register variable, andthe one or more processors create a correspondence table indicating a correspondence between each of the plurality of register variables and the another type of program defining access to the register variable, based on a result of the search.
14. The information processing system according to claim 1, whereinfor each sub-called program of a plurality of sub-called programs called and executed by a plurality of called programs called and executed by the plurality of ladder programs, the one or more processors search the plurality of called programs for a called program, equivalent to the called programs, defined to call the sub-called program, andthe one or more processors create a correspondence table indicating a correspondence between each of the plurality of sub-called programs and the called program defined to call the sub-called program, based on a result of the search.
15. The information processing system according to claim 14, wherein:the one or more processors allocate each of the plurality of sub-called programs and the plurality of register variables to one group of a plurality of groups; andthe one or more processors detect, among a plurality of combinations of the register variable and the sub-called program defining access to the register variable, a combination in which the group allocated to the register variable and the group allocated to the sub-called program differ.
16. The information processing system according to claim 1, wherein the one or more processors create the correspondence table in which the plurality of ladder programs are arranged side by side at headings on one side of a matrix, the plurality of register variables are arranged side by side at headings on another side of the matrix, and identification information is arranged at a position corresponding to the ladder program defining access to the register variable and the register variable.
17. The information processing system according to claim 1, wherein:the one or more processors allocate each of the plurality of ladder programs and the plurality of register variables to one group of a plurality of groups, for each of which an execution cycle is settable, whereinthe one or more processors create the correspondence table further indicating a group to which each of the plurality of register variables is allocated and a group to which each of the plurality of ladder programs is allocated.
18. The information processing system according to claim 3, whereinthe one or more processors allocate each of the plurality of ladder programs and the plurality of register variables to one of the plurality of groups, for each of which an execution core and the execution cycle are settable.
19. An information processing system comprising:one or more processors; whereinthe one or more processors search, for each register variable of a plurality of register variables, a plurality of motion control programs, each of which is a program for controlling a control target motion, for a motion control program, equivalent to the motion control programs, defining access to the register variable;the one or more processors create a correspondence table indicating a correspondence between each of the plurality of register variables and the motion control program defining access to the register variable, based on a result of the search; andthe one or more processors perform control to display the correspondence table.
20. An information processing method executed by a computer, comprising:searching, for each register variable of a plurality of register variables, a plurality of ladder programs for a ladder program, equivalent to the ladder programs, defining access to the register variable;creating a correspondence table indicating a correspondence between each of the plurality of register variables and the ladder program defining access to the register variable, based on a search result in the searching; andcontrolling display by performing control to display the correspondence table.
