Configuration device, configuration program, and configuration method
The setting device and method address the challenge of configuring communication and execution code across multiple layers by using layer-specific programming languages, enabling efficient interlayer communication and processing across FA, edge, and cloud environments.
Patent Information
- Application Number
- PCT/JP2023/015572
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-24
AI Technical Summary
Existing methods for configuring communication settings and creating execution code across multiple layers in FA equipment, edge computing, and cloud areas face challenges in supporting multiple languages and resource constraints, leading to difficulties in processing groups spanning multiple layers.
A setting device and method that uses different programming languages for each layer, creating compatible execution code and communication settings, allowing for interlayer communication and processing across FA, edge, and cloud layers.
Enables the creation of execution code and communication settings compatible with each layer, facilitating seamless communication and processing across FA, edge, and cloud layers, while addressing resource constraints and language differences.
Smart Images

Figure JP2023015572_24102024_PF_FP_ABST
Abstract
Description
Setting device, setting program and setting method
[0001] The present disclosure relates to a setting device that sets information in a device in a facility area, a device in an edge computing area, and a device in a cloud area.
[0002] In recent years, the manufacturing industry has been actively working to utilize data acquired at manufacturing sites to improve productivity and product quality. This trend has led to increased use of edge computing, which connects manufacturing sites with IT (Information Technology) systems. Furthermore, when performing heavy processing on data acquired at manufacturing sites, such that factory automation (FA) equipment and edges lack the resources required, the acquired data may be sent from edges to the cloud and processed there. Building such a system consisting of factory automation (FA) equipment, edges, and clouds requires communication settings and execution code creation for each dedicated application for the FA equipment, edges, and cloud. Regarding execution code creation, a method for generating a control model represented by a block diagram based on a model-based approach has been proposed (see, for example, Patent Document 1). Another proposed method involves assigning a computer with available processing capacity to execute a user-desired process when the process does not fit within a user-specified constraint, such as a processing time (see, for example, Patent Document 2).
[0003] (Execution Code) According to the method of Patent Document 1, it is possible to output a flow-based execution code. However, an overall process consisting of multiple processes may span multiple areas, such as an FA equipment area, an edge area, and a cloud area. That is, the overall process may span multiple layers, such as an FA equipment layer, an edge layer, and a cloud layer. In such cases, the FA equipment layer, the edge layer, and the cloud layer each use a different control language. The method of Patent Document 1 has a problem in that it is difficult to support multiple languages.
[0004] (Communication Settings) When an overall process is executed across multiple layers, such as an FA device layer, an edge layer, and a cloud layer, it is necessary to automatically determine the communication settings between the layers. The method of Patent Document 2 makes it possible to execute the corresponding process on a computer with ample processing power. However, for example, if there are insufficient resources in the FA device layer, it becomes necessary to execute the process in the edge layer or the cloud layer. In this case, because the edge and cloud use different languages compared to the FA device, the execution code created in the FA device cannot be applied to devices in other layers. Therefore, the method of Patent Document 2 has the problem of being unable to handle process groups across multiple layers.
[0005] JP 2017-068825 A JP 2008-015958 A
[0006] The present disclosure aims to provide a device that can create execution code for each layer in a format compatible with that layer for overall processing consisting of multiple processes spanning three layers: an FA (Factory Automation) device layer, an edge layer, and a cloud layer, and can create communication settings between layers in a format compatible with the inter-layer communication method.
[0007] The setting device according to the present disclosure comprises a setting unit that accepts one or more processes for a first layer that uses a first programming language and a second layer that uses a second programming language and requires a first communication setting for communication with the first layer, configures an overall process spanning each layer from the processes accepted for each layer, accepts information to be used for the first communication setting, and configures the information to be used for the first communication setting; and a program creation unit that creates, for each process group belonging to each layer of the overall process, a program that executes the process group, the program being compatible with the programming language used in the layer to which the process group belongs, and creates the first communication setting from the information to be used for the first communication setting.
[0008] The setting device according to the present disclosure includes a setting unit and a program creation unit, and can create execution code for each layer in a format compatible with that layer for an overall process consisting of multiple processes spanning three layers, namely, an FA layer, an edge layer, and a cloud layer, and can create communication settings between layers in a format compatible with an inter-layer communication method.
[0009] FIG. 1 is a diagram of the first embodiment showing an operating environment of the setting device 100. FIG. 2 is a diagram of the first embodiment showing a block diagram showing the functional configuration of the setting device 100. FIG. 3 is a diagram of the first embodiment showing a flowchart explaining the operation of the setting device 100. FIG. 4 is a diagram of the first embodiment showing a setting screen for a flow set by the setting unit 21. FIG. 5 is a diagram of the first embodiment showing an input screen for inputting parameters related to communication settings. FIG. 6 is a diagram of the first embodiment showing a template for noise processing. FIG. 7 is a diagram of the first embodiment showing an example of output of execution code when the processing is noise removal processing. FIG. 8 is a diagram of the first embodiment showing a setting screen for a flow whose processing content has been changed from FIG. 4. FIG. 9 is a diagram of the first embodiment showing the output result of the execution code output to the result storage unit 32 and a communication setting file. FIG. 10 is a diagram of the first embodiment showing an example of output of the communication setting file. FIG. 11 is a flowchart explaining step S107. FIG. 12 is a flowchart explaining step S107. FIG. 13 is a diagram showing an overview of step S107. FIG. 1 is a diagram showing the hardware configuration of a setting device 100 according to a first embodiment.
[0010] In the description of the embodiments and drawings, the same and corresponding elements are denoted by the same reference numerals. The description of elements denoted by the same reference numerals will be omitted or simplified as appropriate. In the following embodiments, the word "unit" may be read as "circuit," "step," "procedure," "process," or "circuitry" as appropriate.
[0011] First Embodiment A setting device 100 according to a first embodiment will be described with reference to Figs. 1 to 14. Fig. 1 shows the operating environment of the setting device 100. The setting device 100 is applied to a manufacturing site. The operating environment of the setting device 100 is divided into an FA layer, which is the manufacturing site, an edge layer, and a cloud layer. Facilities 401, 402, and 403 exist in the FA layer. An edge device 300 exists in the edge layer. A cloud device 200 exists in the cloud layer.
[0012] 1 shows three pieces of equipment, but there is no limit to the number of pieces of equipment. Cloud device 200 is a server on which a cloud application runs. Edge device 300 is a server on which an edge application runs. Equipment 401, 402, and 403 are programmable logic controllers (PLCs) on which control programs run, and devices controlled by the PLCs.
[0013] The setting device 100 is connected to the cloud device 200 via a network 503, to the edge device 300 via a network 504, and to the facilities 401, 402, and 403 via a network 505. The cloud device 200 and the edge device 300 are connected via a network 501. The edge device 300 is connected to each of the facilities 401, 402, and 403 via a network 502.
[0014] The setting device 100 creates a process group flow, which is a collection of multiple processes, execution code for each process included in the process group, and a communication setting file related to communication between layers. The created process group flow, execution code for each process, and communication setting files for communication between layers are stored in a result storage unit 32 provided in an external storage device connected to the setting device 100. The execution code and communication setting files stored in the result storage unit 32 are acquired and used by the cloud device 200, edge device 300, and facilities 401, 402, and 403 via networks 503, 504, and 505.
[0015] ***Description of Configuration*** Figure 2 is a block diagram showing the functional configuration of the setting device 100. Note that solid lines in Figure 2 represent main calling relationships, and dashed arrows represent main data flows between databases.
[0016] The setting device 100 includes, as functional elements, a setting unit 21, a program creation unit 22, and a constraint checking unit 23. The program creation unit 22 includes a PLC execution code creation unit 24, an edge execution code creation unit 25, a cloud execution code creation unit 26, and a communication setting creation unit 27. The setting unit 21, the program creation unit 22, the constraint checking unit 23, the PLC execution code creation unit 24, the edge execution code creation unit 25, the cloud execution code creation unit 26, and the communication setting creation unit 27 are realized by a program. This program will be described later as a setting program 931. The setting program 931 outputs execution code appropriate for each layer and a communication setting file appropriate for each layer from each process of the process group set in the flow.
[0017] (1) The setting item storage unit 31 stores processes selected by the user using the terminal device 106 and constraints, which will be described later. (2) The result storage unit 32 stores, as created results, the execution codes created by the PLC execution code creation unit 24, the edge execution code creation unit 25, and the cloud execution code creation unit 26, and the communication setting file created by the communication setting creation unit 27. (3) The PLC execution code storage unit 33 stores templates of PLC execution codes. (4) The edge execution code storage unit 34 stores templates of edge execution codes. (5) The cloud execution code storage unit 35 stores templates of cloud execution codes. (6) The communication setting storage unit 36 stores templates of communication setting files.
[0018] (1) The setting unit 21 sets, in the flow, a process and constraints selected by the user using the terminal device 106 from among multiple processes stored in the setting item storage unit 31. The setting unit 21 accepts one or more processes for each of the first, second, and third layers, and sets an overall process spanning the layers from the accepted process for each layer. The first layer uses a first programming language. The second layer uses a second programming language and requires a first communication setting for communication with the first layer. The third layer uses a third programming language and requires a second communication setting for communication with the second layer. In the first embodiment, the first layer is assumed to be the FA layer, the second layer is assumed to be the edge layer, and the third layer is assumed to be the cloud layer. The overall process spanning the layers is a series of processes from buffering in the FA layer to learning in the cloud layer, as shown in FIG. 4, which will be described later. The overall process includes data storage processes such as buffering in FIG. 4. The setting unit 21 also receives information to be used for the first communication setting and information to be used for the second communication setting, and sets the information to be used for the first communication setting and the information to be used for the second communication setting. The information to be used for the first communication setting and the information to be used for the second communication setting are, for example, communication parameters shown in FIG. 5 (described later). The setting unit 21 also receives constraints for each layer and sets the constraints for each layer. These constraints correspond to the processing time and memory capacity shown in FIG. 4 (described later). (2) The program creation unit 22 uses the PLC execution code creation unit 24, edge execution code creation unit 25, and cloud execution code creation unit 26 to create source code appropriate for the layer from the process set by the setting unit 21, compiles the source code, and checks the compilation result. For each process group belonging to each layer of the overall process, the program creation unit 22 creates a program that is compatible with the programming language used in the layer to which the process group belongs, and executes the process group. The program creation unit 22 also creates the first communication setting and the second communication setting from the information to be used for the first communication setting and the information to be used for the second communication setting. A treatment group is one or more treatments that belong to a stratum.In FIG. 4 (described later), the FA layer includes a processing group for buffering and noise removal, the edge layer includes a processing group for buffering and FFT (Fast Fourier Transform), and the cloud layer includes a processing group for data accumulation and learning. The program creation unit 22 outputs the first communication setting in a format readable by application programs used in the first and second layers, and outputs the second communication setting in a format readable by application programs used in the second and third layers. The program creation unit 22 generates, as a program, executable code in a format executable by the application programs of each layer. (3) The constraint checking unit 23 checks whether constraint conditions are satisfied when the processing group belonging to a layer is executed. When there is a layer for which constraint conditions are not satisfied, the constraint checking unit 23 determines whether the processing group for the layer for which the constraint conditions are not satisfied is changed. The constraint checking unit 23 checks whether the constraint conditions set by the setting unit 21 are satisfied and returns the confirmation result to the program creation unit 22. The constraint checking unit 23 operates the program creating unit 22 to repeatedly create and compile source code until the processing set by the setting unit 21 satisfies the constraint conditions. If the "processing" set by the setting unit 21 satisfies the constraint conditions, the constraint checking unit 23 stores the execution codes created by the PLC execution code creating unit 24, the edge execution code creating unit 25, and the cloud execution code creating unit 26, and the communication setting file created by the communication setting creating unit 27, in the result storage unit 32.
[0019] ***Explanation of Operation*** Fig. 3 is a flowchart explaining the operation of the setting device 100. The operation of the setting device 100 corresponds to the setting method. The operation of the setting device 100 corresponds to the processing of the setting program 931. Fig. 4 shows a setting screen for a flow set by the setting unit 21. With reference to Figs. 3 and 4, the process from flow setting by the setting device 100 to storing the execution code and setting file in the result storage unit 32 as created results will be described.
[0020] <Step S101> In step S101, the setting unit 21 sets processes and constraints on the flow.
[0021] The process is set as follows. The user operates the terminal device 106 to place "processes" by layer on the flow displayed on the flow setting screen using drag and drop. The placed processes are saved in the setting item storage unit 31. The setting unit 21 sets the processes placed on the flow setting screen as processes in the flow displayed on the setting screen. Referring to FIG. 4, the user operates the terminal device 106 to place "processes" such as "learning" and "chattering removal" shown on the left side of the screen in FIG. 4 into the space divided into layers in the center of the screen using drag and drop. The user then connects the processes. The setting unit 21 sets the processes in the flow by accepting this user operation. Regarding communication settings, in order to set parameters related to communication settings, the communication setting creation unit 27 displays a parameter setting screen such as that shown in FIG. 5 on the display device 105 and accepts parameter input from the user. FIG. 5 shows an input screen for inputting parameters related to communication settings. In FIG. 5, the master station is entered as the station type, and the network number is entered. This indicates that 1 is entered in the field and 0 is entered in the station number field.
[0022] Constraints are set as follows: The user inputs constraints for each layer via the terminal device 106. Specifically, in FIG. 4, the processing time and memory capacity on the right side of the screen are constraints. The user operates the terminal device 106 to input values for processing time and memory capacity in the input fields for processing time and memory capacity. These values are the upper limits for processing time and memory capacity. The setting unit 21 sets the constraints for each layer input by the user via the terminal device 106 in the flow.
[0023] <Step S102> The program creation unit 22 generates execution code for each layer for each process set in step S101. See FIG. 4. The program creation unit 22 generates execution code in a format suitable for each layer using one of the execution code creation units corresponding to each layer according to the layer to which the process belongs. The PLC execution code creation unit 24, edge execution code creation unit 25, and cloud execution code creation unit 26 refer to their respective execution code storage units based on the junctions before and after the set process and generate execution code in a format suitable for each layer. The PLC execution code storage unit 33, edge execution code storage unit 34, and cloud execution code storage unit 35 store information and basic process templates for each process, as shown in FIG. 6. FIG. 6 shows a template for noise processing. Each execution code creation unit generates execution code using a template like that shown in FIG. 6. For the noise removal process of FIG. 4, execution code like that shown in FIG. 7 is generated. FIG. 7 shows an example of execution code output when the "process" is noise removal processing, with the functions of each process output as a text file.
[0024] (Output of execution code) In Figure 4, the buffering process for the FA layer and the edge layer is the same in terms of the flow display, but it is set in the edge layer and the FA layer respectively. Therefore, the execution code for the buffering process for the edge and the execution code for the buffering process for the PLC are output in a format suitable for each layer.
[0025] The program creation unit 22 creates an execution code for communication settings between layers using the communication setting creation unit 27. The execution code for communication settings is created as a communication setting file.
[0026] <Step S103> In step S103, the constraint checking unit 23 calculates estimates of the processing time and memory capacity that are input by the user and set as upper limit values by the setting unit 21. The estimation method uses a calculation method for time complexity and space complexity based on the execution code of each layer generated in step S102.
[0027] <Step S104> In step S104, the constraint checking unit 23 checks whether the estimate of the constraints calculated in step S103 for each layer satisfies the constraints. When the user presses the "Constraint Check" button at the bottom right of Figure 4, the constraint checking unit 23 starts checking whether the constraints are satisfied. The order of checking whether the constraints are satisfied is the FA layer, edge layer, and cloud layer. Even if a layer that does not satisfy the constraints is confirmed, the constraint checking unit 23 checks the estimates of the other layers. A layer that does not satisfy the constraints becomes a candidate for a change in processing content, and layers that are candidates for a change in processing content are checked one layer at a time. If the constraints are satisfied, the operation proceeds to step S110. If the constraints are not satisfied, the operation proceeds to step S105. A layer that does not satisfy the constraints becomes a candidate for a change in the "processing content and constraints in the layer."
[0028] <Step S105> In step S105, the constraint checking unit 23 determines whether the layer determined not to satisfy the constraint conditions in the immediately preceding step S104 has become a candidate for the second time. If the answer is YES in step S105, the operation proceeds to step S109. If the answer is NO in step S105, the operation proceeds to step S106.
[0029] <Step S106> In step S106, the program creation unit 22 considers changing the processing content in the layer. The change in the processing content of the layer is as follows. The change in the processing content is caused by non-satisfaction of constraints. For example, suppose that the processing group consisting of buffering and noise removal, which is the processing content of the FA layer shown in FIG. 4, does not satisfy the constraints. In this case, the program creation unit 22 moves at least one of the processes of buffering and noise removal that make up the processing group in the FA layer to another layer (edge layer). Considering a change in the processing content of a layer means considering a change in the processing content.
[0030] <Step S107> In step S107, the program creation unit 22 proposes to the display device 105 a change to the processing content of the layer. As shown in FIG. 4 , in the overall processing, multiple processes are connected in series. When multiple processes exist in a layer where the constraint conditions are not satisfied, the constraint checking unit 23 checks whether the constraint conditions are satisfied for adjacent layers in the series of connections. If the constraint conditions are not satisfied in the FA layer in FIG. 4 , the constraint checking unit 23 checks whether the satisfaction conditions are satisfied for the edge layer of the adjacent layer. The program creation unit 22 moves at least one of the first and last processes of the multiple processes connected in series in the layer (FA layer) where the constraint conditions are not satisfied to the adjacent layer in the series of connections based on the results of the constraint condition check. In the transition from FIG. 4 to FIG. 8 , the noise removal of the FA layer is moved to the edge layer. FIG. 8 shows an example in which the processing content of the layer is changed to satisfy the constraint range from the input in FIG. 4 . In FIG. 8 , the constraint conditions of the FA layer in FIG. 4 are not satisfied. FIG. 8 shows an example in which "noise removal" is selected as a change candidate and moved to the edge layer so as not to change the overall processing flow. In step S107, the program creation unit 22 proposes a change to the state shown in FIG. 8. Specifically, the program creation unit 22 displays the flow shown in FIG. 8 on the display device 105. FIG. 4 shows an example in which a user inputs processing into the flow using the terminal device 106. Assume that the processing set in the FA layer does not satisfy the input constraints (processing time or memory capacity). Data collected from the equipment is set as shown in FIG. 8, and processing to be performed on each layer and between layers is set. If the user adopts the proposed change in FIG. 8, the program creation unit 22 moves "noise removal" to the edge layer. Details of step S107 will be described later.
[0031] <Step S108> In step S108, if the processing content of the layer has been changed, the operation returns to step S101, and if not, the operation proceeds to step S110. If the processing content of the layer has been changed, steps S101 to S104 are repeated so as to satisfy the constraints.
[0032] <Step S109> In step S109, if a process that has been a candidate once becomes a candidate for the second time, the constraint checking unit 23 notifies that the proposal is not possible.
[0033] <Step S110> In step S110, if the constraint conditions are met (YES in step S104) or if a notification that the proposal is not possible has been received (step S109), the constraint checking unit 23 stores the execution code and communication setting file in the result storage unit 32. The execution code and communication setting file are stored in the result storage unit 32 in a folder structure such as that shown in FIG. 9 (described later). The devices and equipment on each layer obtain and use the execution code and communication setting file stored in the result storage unit 32 via networks 503, 504, and 505.
[0034] FIG. 9 shows the execution code output result and the communication setting file output result output by the constraint checking unit 23 to the result storage unit 32. By pressing the "Execution Code / Communication Setting Output" button in FIG. 4, the output result in FIG. 9 is stored in the result storage unit 32. As shown in FIG. 9, the execution code is output for each layer in a format suitable for the respective layer. The constraint checking unit 23 stores the execution code shown in FIG. 9 in the result storage unit 32 of the setting device 100. As shown in FIG. 9, the communication setting file is output for each communication between layers in a format suitable for each inter-layer communication. The constraint checking unit 23 stores the communication setting file in the result storage unit 32 of the setting device 100. An example of the execution code output has already been shown in FIG. 7. FIG. 10 shows an example of the communication setting file output. FIG. 10 corresponds to the station type, network number, and station number being set in FIG. 5. By entering parameters required for each process on the input screen shown in FIG. 5, the communication setting creation unit 27 outputs a text file such as that shown in FIG. 10.
[0035] 11 and 12 are flowcharts illustrating the details of step S107. Step S107 will be described with reference to FIGS. 11 and 12. FIG. 13 shows an overview of step S107. As shown in FIG. 13, in step S107, if the constraints are not satisfied in the FA layer or edge layer, it is examined whether the last process C in the FA layer and the first process D in the edge layer in range X can be moved from the source layer to the destination layer. Also, if the constraints are not satisfied in the edge layer or cloud layer, it is examined whether the last process F in the edge layer and the first process G in the cloud layer in range Y can be moved from the source layer to the destination layer. The examination of whether the processes can be moved is performed by determining whether the source layer to which the processes will be moved satisfies the constraints. This is explained below.
[0036] <Step S201> In step S201, the program creation unit 22 recognizes which layer. In step S201, a branch occurs depending on the type of layer of the change candidate. If the type of layer of the change candidate is the FA layer, the operation proceeds to step S206. If the type of layer of the change candidate is the edge layer, the operation proceeds to step S202. If the type of layer of the change candidate is the cloud layer, the operation proceeds to step S204.
[0037] <Step S202: Change Candidate is Edge Layer> In step S202, the program creation unit 22 checks whether the processing content of the FA layer has been changed.
[0038] <Step S203> In step S203, if the layer from which the change candidate is made is the edge layer, the program creation unit 22 determines an appropriate process for the change candidate. The priority (processing content) of the change candidate is as follows: To determine the spare capacity of the destination layer (cloud layer or FA layer), the layer where the constraints are satisfied after the move is selected as the destination even if the process to be changed is moved based on the estimated content of each layer confirmed in step S104. (1) If the last process of the layer from which the change candidate is made is a pre-processing and there is spare capacity in the cloud layer, the last process is selected as the candidate for movement (proceed to step S206). (2) If the first process of the layer from which the change candidate is made is a pre-processing and there is spare capacity in the FA layer, the first process is selected as the candidate for movement (proceed to step S204).
[0039] <Step S204> In step S204, if the change candidate source layer is the cloud layer, or if the first process in the edge layer is a migration candidate, the program creation unit 22 sets the first process in that layer as a migration candidate.
[0040] <Step S205> In step S205, the program creation unit 22 proposes inserting (a) a process that should be moved from the edge layer to the FA layer, or (b) a process that should be moved from the cloud layer to the edge layer, at the end of the destination layer. (a) is the "first process" in step S203, and the "destination layer" for (a) is the FA layer. (b) is the "cloud layer" in step S201, and the "destination layer" for (b) is the edge layer.
[0041] <Step S206> In step S206, the program creation unit 22 sets the last process in the FA layer and the edge layer as a candidate for movement.
[0042] <Step S207> In step S207, the program creation unit 22 checks whether a data storage process exists in the destination layer. Here, the source layer is the edge layer or the FA layer. If the source layer is the edge layer, the destination layer is the cloud layer. If the source layer is the FA layer, the destination layer is the edge layer. If a data storage process exists in the destination layer, the operation proceeds to step S208. If a data storage process does not exist in the destination layer, the operation proceeds to step S210.
[0043] <Step S208> In step S208, the program creation unit 22 checks whether the data accumulation process is the first process of the layer to which the change is made. If the data accumulation process is the first process, the operation proceeds to step S209. If the data accumulation process is not the first process, the operation proceeds to step S210.
[0044] <Step S209> In step S209, if the first process is a data accumulation process, the program creation unit 22 proposes inserting the process to be moved into the destination layer as the second process.
[0045] <Step S210> In step S210, if there is no data accumulation process in the layer to be changed to or if the first process in the layer to be changed to is not a data accumulation process, the program creation unit 22 proposes inserting the process to be moved as the first process in the layer to be changed to.
[0046] <Step S211> In step S211, the program creation unit 22 creates and compiles a program for the source layer whose processing has been moved to the destination. The constraint checking unit 23 calculates estimates of the "processing time and memory capacity" of the source layer from the compilation results for the source layer. Specifically, the constraint checking unit 23 calculates the estimates using sample data stored in the PLC execution code creation unit 24, edge execution code creation unit 25, and cloud execution code creation unit 26.
[0047] <Step S212> In step S212, the constraint checking unit 23 checks whether the layer before change satisfies the constraint conditions by referring to the result of the estimation calculation in step S211. If the constraint conditions are satisfied, the operation proceeds to step S214. If the constraint conditions are not satisfied, the operation proceeds to step S213, and steps S202 to S212 are repeated.
[0048] <Step S213> In step S213, the constraint checking unit 23 determines whether all candidate layers to be changed to have been checked in the change-source layer.
[0049] <Step S214> In step S214, the program creation section 22 proposes changes for all layers where changes are required.
[0050] <Step S215> In step S215, after checking all layers of the change candidate, if the constraint conditions cannot be satisfied for the proposed content, the program creation unit 22 notifies that the proposal is not possible for the layer of the change candidate.
[0051] ***Effects of First Embodiment*** The setting device 100 of the first embodiment has the advantage that a user can operate the processing and communication settings of three layers, the FA layer, the edge layer, and the cloud layer, within a single flow. Furthermore, because the setting device 100 generates execution code for each layer, a user can create an overall processing flow without being aware of the differences in the programming languages used by the three layers. Furthermore, because the setting device 100 creates a communication setting file for each layer, communication settings can be created without being aware of the differences in communication setting methods between layers. Furthermore, because the setting device 100 proposes changes to the processing content, even if a group of programs in a certain layer does not satisfy the constraints, the proposal makes it easy to adopt an overall processing that satisfies the constraints.
[0052] (Hardware supplement)
[0053] 14 shows the hardware configuration of the setting device 100. The setting device 100 is a computer. The setting device 100 includes a processor 910. In addition to the processor 910, the setting device 100 includes multiple pieces of hardware. The multiple pieces of hardware are a main memory device 920, an auxiliary memory device 930, and a communication interface 240. The processor 910 is connected to other hardware via a signal line 250 and controls the other hardware.
[0054] The setting device 100 includes, as functional elements, a setting unit 21, a program creation unit 22, and a constraint checking unit 23. The program creation unit 22 includes a PLC execution code creation unit 24, an edge execution code creation unit 25, a cloud execution code creation unit 26, and a communication setting creation unit 27. The functions of the setting unit 21, the program creation unit 22, and the constraint checking unit 23 are realized by a setting program 931.
[0055] The processor 910 is a device that executes the setting program 931. When the processor 910 executes the setting program 931, the functions of the setting unit 21, the program creation unit 22, and the constraint checking unit 23 are realized. The processor 910 is an integrated circuit (IC) that performs arithmetic processing. Specific examples of the processor 910 are a central processing unit (CPU) and a digital signal processor (DSP).
[0056] Specific examples of the main memory device 920 include an SRAM (Static Random Access Memory) and a DRAM (Dynamic Random Access Memory). The main memory device 920 stores the results of calculations performed by the processor 910.
[0057] The auxiliary storage device 930 is a storage device that stores data in a non-volatile manner. A specific example of the auxiliary storage device 930 is a hard disk drive (HDD). The auxiliary storage device 930 may also be a portable recording medium. The auxiliary storage device 930 stores a setting program 931. The auxiliary storage device 930 also realizes a setting item storage unit 31, a PLC execution code storage unit 33, an edge execution code storage unit 34, a cloud execution code storage unit 35, and a communication setting storage unit 36.
[0058] The communication interface 240 is a communication port for the processor 910 to communicate with other devices. The communication interface 240 is connected to the display device 105 and the terminal device 106.
[0059] The processor 910 loads the setting program 931 from the auxiliary storage device 930 into the main storage device 920. The processor 910 reads the loaded setting program 931 from the main storage device 920 and executes it. In addition to the setting program 931, an OS (Operating System) is also stored in the main storage device 920. The processor 910 executes the setting program 931 while running the OS. The setting device 100 may include multiple processors that replace the processor 910. These multiple processors share the execution of the setting program 931. Each processor is a device that executes the setting program 931, just like the processor 910. Data, information, signal values, and variable values used, processed, or output by the setting program 931 are stored in the main storage device 920, the auxiliary storage device 930, or a register or cache memory within the processor 910.
[0060] The setting program 931 is a program that causes a computer to execute each process, procedure, or step of the setting unit 21, program creation unit 22, and constraint checking unit 23, where the "part" is replaced with "process," "procedure," or "step."
[0061] The setting method is a method performed by the setting device 100, which is a computer, executing the setting program 931. The setting program 931 may be provided by being stored in a computer-readable recording medium, or may be provided as a program product.
[0062] 100 setting device, 21 setting unit, 22 program creation unit, 23 constraint checking unit, 24 PLC execution code creation unit, 25 edge execution code creation unit, 26 cloud execution code creation unit, 27 communication setting creation unit, 31 setting item storage unit, 32 result storage unit, 33 PLC execution code storage unit, 34 edge execution code storage unit, 35 cloud execution code storage unit, 36 communication setting storage unit, 105 display device, 106 terminal device, 200 cloud device, 300 edge device, 401 equipment, 501, 502, 503, 504, 505 network, 910 processor, 920 main memory device, 930 auxiliary memory device, 931 setting program, 940 communication interface, 950 signal line.
Claims
1. A setting device comprising: a setting unit that accepts one or more processes for a first layer using a first programming language and a second layer using a second programming language and requiring a first communication setting for communication with the first layer, configures an overall process spanning each layer from the processes of each layer accepted, accepts information to be used for the first communication setting, and configures the information to be used for the first communication setting; and a program creation unit that creates, for each process group belonging to each layer among the overall processes, a program that executes the process group and is compatible with the programming language used in the layer to which the process group belongs, and creates the first communication setting from the information to be used for the first communication setting.
2. The setting device according to claim 1, wherein the setting unit accepts constraint conditions for each layer and sets the constraint conditions for each layer, and the setting device further comprises a constraint confirmation unit that confirms whether the constraint conditions are satisfied when the processing group belonging to the layer is executed.
3. The setting device according to claim 2, wherein the constraint checking unit, when there is a layer in which the constraint condition is not satisfied, decides to change the processing group in the layer in which the constraint condition is not satisfied.
4. A setting device as described in claim 2 or claim 3, wherein in the overall processing, a plurality of the processes are connected in a series, and when there are a plurality of processes in the layer where the constraint condition is not satisfied, the constraint checking unit checks whether the constraint condition is satisfied for adjacent layers in the series of connections, and the program creation unit moves at least one of the first process and the last process among the plurality of processes connected in the series of processes in the layer where the constraint condition is not satisfied, to the adjacent layer in the series of connections based on the result of checking the constraint condition.
5. A setting device as described in any one of claims 1 to 4, wherein the program creation unit outputs the first communication setting in a format readable by application programs used in the first layer and the second layer.
6. A setting device according to any one of claims 1 to 5, wherein the program creation unit generates, as the program, an executable code in a format executable by an application program of each layer.
7. A setting device according to any one of claims 1 to 6, wherein the overall processing includes a process for storing data.
8. A configuration program that causes a computer to execute the following: a configuration process that accepts one or more processes for a first layer using a first programming language and a second layer using a second programming language and requiring a first communication setting for communication with the first layer, configures an overall process spanning each layer from the processes accepted for each layer, accepts information to be used for the first communication setting, and configures the information to be used for the first communication setting; and a program creation process that creates, for each process group belonging to each layer among the overall processes, a program that executes the process group and is compatible with the programming language used in the layer to which the process group belongs, and creates the first communication setting from the information to be used for the first communication setting.
9. A setting method in which a computer receives one or more processes for a first layer in which a first programming language is used and a second layer in which a second programming language is used and which requires a first communication setting for communication with the first layer, sets an overall process spanning each layer from the processes of each layer received, receives information to be used for the first communication setting, and sets the information to be used for the first communication setting, creates, for each process group belonging to each layer among the overall process, a program that executes the process group and that is compatible with the programming language used in the layer to which the process group belongs, and creates the first communication setting from the information to be used for the first communication setting.
Citation Information
Patent Citations
Method and system for designing a distributed heterogeneous computing and control system
JP2021526688A
Design assistance device, design assistance method and program
WO2019130396A1
Control system
WO2021250900A1
