Verification program, verification device, verification system, and verification method
The verification program and device provide a definition environment for users to create custom verification processes, addressing the challenge of defining new processes in existing technologies, and enhancing the efficiency of PLC sequence program validation by incorporating editing processes for condition adjustments.
Patent Information
- Application Number
- PCT/JP2023/009701
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-09-19
AI Technical Summary
Existing verification devices for programmable logic controllers (PLCs) do not provide users with a suitable environment to easily define new verification processes, requiring significant effort when custom verification processes are needed.
A verification program and device that offer a verification process definition environment, allowing users to select and combine unit processes to create custom verification procedures, including execution conditions and editing processes, facilitating the verification of sequence programs.
Enables users to easily define and execute custom verification processes, reducing the effort required for verifying PLC sequence programs and allowing for efficient validation of control operations by incorporating editing processes for temporary condition adjustments.
Smart Images

Figure JP2023009701_19092024_PF_FP_ABST
Abstract
Description
Verification program, verification device, verification system, and verification method
[0001] The present disclosure relates to a verification program, a verification device, a verification system, and a verification method.
[0002] A programmable logic controller (hereinafter referred to as PLC) is known as a controller for controlling devices that are responsible for manufacturing on a production line. The programmable logic controller (hereinafter referred to as PLC) controls devices by executing sequence programs.
[0003] As disclosed in Patent Document 1, when a sequence program is created or its contents are modified, a verification device is used to verify the validity of the sequence program. The verification device disclosed in Patent Document 1 has a function of presenting a plurality of predetermined verification contents to a user as options. For each verification content, a verification process representing the procedure for executing the verification content is predefined.
[0004] The user selects the desired verification content from among the multiple verification content presented by the verification device. The verification device then executes the verification process corresponding to the selected verification content. In this way, the verification of the content desired by the user is carried out.
[0005] If the verification confirms the validity of the sequence program, it can be said that the PLC that executes the sequence program will also operate normally. Therefore, the sequence program is officially installed in the PLC. On the other hand, if the validity of the sequence program is denied, debugging is performed to correct the program code that caused the denial.
[0006] Japanese Patent Application Laid-Open No. 2002-297205
[0007] The verification device disclosed in Patent Document 1 has a function of presenting a plurality of predetermined verification processes to the user, but does not provide the user with an environment suitable for defining the verification process itself. If the user tries to define a new verification process that is not included in the presented options, it requires a considerable amount of effort.
[0008] An object of the present disclosure is to provide a verification program, a verification device, a verification system, and a verification method that can easily define a verification process that represents the procedure for verifying a sequence program.
[0009] A verification program according to the present disclosure causes a computer that verifies the validity of the contents of a sequence program installed in a programmable logic controller to function as a verification process definition support unit that provides a user with a verification process definition environment that defines a verification process that realizes the verification of validity, the verification process including an execution condition assignment process that assigns execution conditions for verification to an execution device that executes the sequence program, and a verification process execution unit that executes the verification process defined using the verification process definition environment, thereby (I) having the execution device execute the sequence program in a manner that reflects the execution conditions, and (II) obtaining execution results of the sequence program from the execution device and performing verification using the obtained execution results. The verification process definition support unit includes: a unit process object group presentation unit that presents unit process object groups made up of a plurality of unit process objects that each represent a predefined unit process to be executed by the verification process execution unit, the unit process object group including a unit process object that represents an execution condition assignment process as a unit process; and a verification process definition environment provision unit that, when the user selects a plurality of unit process objects from the presented unit process object group, provides the user with a verification process definition environment that defines a verification process using a combination of unit processes represented by each of the selected plurality of unit process objects.
[0010] According to the above configuration, a verification process definition environment is provided to the user, so that the user can easily define a verification process that represents the procedure for verifying a sequence program.
[0011] 1. A conceptual diagram showing the configuration of a verification system according to an embodiment. 2. A conceptual diagram showing the configuration of a verification device according to an embodiment. 3. A conceptual diagram showing the functions of a verification device according to an embodiment. 4. A conceptual diagram illustrating one aspect of a basic screen according to an embodiment. 5. A conceptual diagram illustrating one aspect of a verification process definition screen according to an embodiment. 6. A conceptual diagram illustrating another aspect of the basic screen according to an embodiment. 7. A conceptual diagram illustrating yet another aspect of the basic screen according to an embodiment.
[0012] Hereinafter, embodiments will be described with reference to the drawings, in which the same or corresponding parts are designated by the same reference numerals.
[0013] As shown in FIG. 1, the verification system 600 according to this embodiment includes a verification device 200 that verifies the validity of the contents of a sequence program installed in a PLC (hereinafter simply referred to as verification), and an execution device 400 that executes the sequence program for verification.
[0014] The execution device 400 can be configured by a PLC, a simulator, or the like. A simulator executes a sequence program to virtually reproduce the control operations specified by the sequence program. When the execution device 400 is a simulator, the verification system 600 can also be configured by a single computer. The computer may be an engineering tool that provides a user with an environment for creating a sequence program.
[0015] The configuration of the verification device 200 will be described with reference to Fig. 2. The verification device 200 includes a communication device 200a that communicates various data required for verification with the execution device 400 shown in Fig. 1 .
[0016] The verification device 200 also includes a display device 200b that displays information related to verification support, such as what kind of verification will be performed, and an input device 200c that allows input, selection, specification, etc. of various data required for verification. The input device 200c and the display device 200b may form a touch screen.
[0017] The verification device 200 also includes a storage device 200d that stores a sequence program 200e to be verified. The storage device 200d stores a verification program 200f that provides an environment for supporting the verification of the sequence program 200e.
[0018] The verification device 200 also includes a processor 200i that executes a verification program 200f. Functions realized by the processor 200i executing the verification program 200f will be described below with reference to FIG.
[0019] As shown in FIG. 3, the verification device 200 includes a verification process definition support unit 210 that supports the definition of a series of processes (hereinafter referred to as verification processes) that realize verification, and a verification process execution unit 220 that executes the defined verification processes.
[0020] The verification device 200 also holds defined unit processing group data 200g used as a library for defining verification processes. The defined unit processing group data 200g is stored in the storage device 200d shown in FIG. 2.
[0021] The defined unit process group data 200g represents a collection of predefined processes (hereinafter referred to as unit processes) that can be executed by the verification process execution unit 220. Each unit process is versatile enough to be used as a component of various verification processes. In other words, each unit process has the significance of being a general-purpose component.
[0022] The verification process definition support unit 210 has a unit process object group presentation unit 211 that uses the defined unit process group data 200g to present a unit process object group made up of a plurality of unit process objects, each representing a unit process. Here, "presenting" specifically means displaying the unit process object group on the display device 200b shown in FIG. 2.
[0023] The verification process definition support unit 210 also includes a verification process definition environment providing unit 212 that provides the user with a verification process definition environment for defining a verification process.
[0024] In the verification process definition environment, the user can select the desired multiple unit process objects, that is, multiple unit process objects representing the multiple unit processes to be used as components of the verification process to be defined, from the unit process object group presented by the unit process object group presentation unit 211.
[0025] In addition, in the verification process definition environment, the user can also specify the execution order among a plurality of unit processes represented by a plurality of unit process objects selected from the unit process object group.
[0026] The verification process definition environment providing unit 212 defines a verification process by combining unit processes represented by a plurality of unit process objects selected by the user in an execution order designated by the user.
[0027] The verification process includes, as a unit process, an execution condition assignment process that assigns an execution condition for verification to the execution device 400 shown in Fig. 1. In other words, the unit process object group presented by the unit process object group presentation unit 211 includes a unit process object that represents an execution condition assignment process as a unit process.
[0028] Furthermore, one of the features of this embodiment is that the unit process object group presented by the unit process object group presenting section 211 includes a unit process object that represents an editing process as a unit process.
[0029] The editing process is a unit process of editing the sequence program 200e prior to execution of the sequence program 200e by the execution device 400 shown in Fig. 1. However, the verification process does not necessarily have to include the editing process.
[0030] The verification process execution unit 220 (I) causes the execution device 400 to execute the sequence program 200e in a manner that reflects the execution conditions, in accordance with the definition of the verification process defined using the verification process definition environment. The verification process execution unit 220 also (II) acquires the execution results of the sequence program 200e from the execution device 400 and performs verification using the acquired execution results. These operations (1) and (II) are realized by the verification process execution unit 220 executing the verification process.
[0031] The operations of the verification process definition support unit 210 and the verification process execution unit 220 will be described below with reference to FIGS. 4 to 7, using specific examples.
[0032] 4 shows a basic screen 110 that the verification process definition support unit 210 displays on the display device 200b. To define a verification process, the user first presses a button 111 that instructs the user to start defining the verification process. Here, "pressing a button" specifically refers to a click operation using a mouse, a touch operation on a touch screen, or the like. When the user presses the button 111, the verification process definition support unit 210 transitions the basic screen 110 to a verification process definition screen 120 shown in FIG. 5.
[0033] 5, the verification process definition screen 120 displays a name input field 121 for inputting the name of the verification process to be defined. In Fig. 5, the name "Test 2" has been input by the user into the name input field 121. The input device 200c is used for input.
[0034] The verification process definition screen 120 also displays the unit process object group 122. Figure 5 shows three unit process objects 122a, 122b, and 122c that make up the unit process object group 122. The user can also use the scroll button 123 to check the other unit process objects that make up the unit process object group 122.
[0035] Furthermore, the verification process definition screen 120 is provided with a button 124 for each unit process object that makes up the unit process object group 122. By pressing the button 124 corresponding to the desired unit process object, the user can check the details of the unit process represented by that unit process object.
[0036] The verification process definition screen 120 provides the above-described verification process definition environment. That is, the user can select a desired number of unit process objects from the unit process object group 122. The user can also specify the execution order of the unit processes represented by the selected unit process objects.
[0037] The verification process is defined by selecting a plurality of unit process objects and specifying the execution order thereof using the input device 200c.
[0038] In Fig. 5, the unit process objects 122b and 122c have been selected by the user from the unit process object group 122. The input device 200c is used for the selection. Fig. 5 also illustrates a situation in which an execution order is specified in the execution order specification field 128 such that the unit process represented by the unit process object 122c is executed after the unit process represented by the unit process object 122b. The input device 200c is used to specify the execution order in the execution order specification field 128.
[0039] In this example, the unit process object 122b represents the execution condition setting process as a unit process, which has already been described. The unit process represented by the unit process object 122b also corresponds to the editing process as has already been described.
[0040] The verification process definition environment providing unit 212 defines a verification process by combining the unit processes represented by the unit process objects 122b and 122c selected by the user in the execution order specified in the execution order specification field 128. When the definition of the verification process is completed in this manner, the user presses button 125. This causes the verification process definition support unit 210 to return the verification process definition screen 120 to the basic screen 110 shown in FIG.
[0041] 6, after the definition of the verification process is completed, a verification process object 114a representing the defined verification process is displayed on the basic screen 110. In this state, when the user presses the button 113 instructing the execution of verification, the verification process execution unit 220 executes the verification process represented by the verification process object 114a.
[0042] The verification process execution unit 220 then displays the verification result 115a. Fig. 6 illustrates an example in which the verification result 115a corresponding to the verification process object 114a affirms the validity of the sequence program 200e.
[0043] 6 shows only one verification process object 114a representing one verification process, the user can also define multiple verification processes with different execution conditions for the same sequence program 200e in the same manner as described with reference to Fig. 5. In other words, the sequence program 200e can be verified from multiple different perspectives.
[0044] 7, when multiple verification processes are defined by the verification process definition support unit 210, verification process objects 114a, 114b, and 114c representing the multiple verification processes are displayed on the basic screen 110. When the user presses the button 113 to instruct execution, the verification process execution unit 220 collectively executes the multiple verification processes represented by the multiple verification process objects 114a, 114b, and 114c.
[0045] The verification process execution unit 220 then displays a list of the verification results 115 for each of the multiple verification processes. The verification results 115 are displayed by verification process, i.e., by verification process object 114. Fig. 7 illustrates an example in which the verification result 115a corresponding to the verification process object 114a and the verification result 115b corresponding to the verification process object 114b affirm the validity of the sequence program 200e, and the verification result 115c corresponding to the verification process object 114c denies the validity of the sequence program 200e.
[0046] Returning to Fig. 3, the description will continue. The verification device 200 also has a unit process definition support section 260 that supports the definition of a new unit process.
[0047] The unit process definition support unit 260 provides the user with a unit process definition environment for defining a unit process. When a new unit process is defined using the unit process definition environment, the unit process definition support unit 260 adds the unit process to the defined unit process group data 200g, which is a library of materials that make up verification processes. As a result, a unit process object representing the unit process is included in the unit process object group 122 described above.
[0048] The unit process definition support section 260 has a type presentation section 230 that presents multiple types of unit processes that can be defined, and a type selection section 240 that accepts from the user a selection of which of the multiple types presented by the type presentation section 230 the type of unit process that the user is trying to define corresponds to.
[0049] The unit process definition support section 260 also has a necessary item input section 250 that presents input items according to the type selected using the type selection section 240. The necessary item input section 250 accepts input from the user into the presented input items of the necessary items required to define the unit process of the type selected by the user.
[0050] As described above, in this embodiment, the unit process object group 122 includes a unit process object that represents an edit process as a unit process. That is, the user can define an edit process as a unit process. Therefore, the multiple types presented by the type presenting unit 230 include a type (hereinafter referred to as an edit type) that edits the sequence program 200e before the execution device 400 executes the sequence program 200e.
[0051] The necessary item input unit 250 has an edit type selection unit 251 that accepts, when the type selection unit 240 accepts the selection of the edit type as the type, the selection of the type of edit to be applied to the sequence program 200e from the user.
[0052] Specifically, the editing type selection unit 251 accepts a selection from the user as to the type of editing: adding program code to the sequence program 200e, deleting program code from the sequence program 200e, or changing part of the content of the sequence program 200e.
[0053] Furthermore, the required item input unit 250 has an edit position designation unit 252 that accepts input from the user of the position in the sequence program 200 e where the edit will be performed (hereinafter referred to as the edit position) following the selection of the type of edit. The edit position is an example of the required items described above.
[0054] Furthermore, the necessary item input unit 250 has an edited content input unit 253 that receives input of the edited content (hereinafter referred to as edited content) from the user following input of the edited position. The edited content is another example of the necessary items described above.
[0055] The operation of the unit process definition support section 260 will be described below with reference to FIGS. 8 to 10, using a specific example.
[0056] 8 shows a type selection screen 130 that is displayed on the display device 200b by the type presenting unit 230. Note that this type selection screen 130 is displayed when the button 126 for instructing the start of unit process definition is pressed on the verification process definition screen 120 shown in FIG.
[0057] The type selection screen 130 presents the following types of unit processing that can be defined: (a1) editing the sequence program 200e; (a2) writing the sequence program 200e to the execution device 400; (a3) changing the current value of a device or label as a variable included in the sequence program 200e; and (a4) checking whether the value of a device or label as a variable included in the sequence program 200e is the expected value.
[0058] The user selects which type of unit process he or she wishes to define from the presented types (a1) to (a4). The input device 200c is used for the selection. Figure 8 illustrates an example of a situation in which type (a1), i.e., the above-mentioned editing type, is selected. The following describes the operation of the unit process definition support section 260 when type (a1) is selected.
[0059] After selecting the editing type (a1), the user presses the button 131 to instruct completion of the selection. If the type selected by the user is the editing type, the necessary information input unit 250 transitions the type selection screen 130 to the editing position specification screen 140 shown in FIG.
[0060] 9, the editing position specification screen 140 has an editing type presentation field 141 in which multiple editing types are presented. Specifically, the editing type presentation field 141 presents three types of editing: (b1) adding program code to the sequence program 200e, (b2) deleting program code from the sequence program 200e, and (b3) changing part of the content of the sequence program 200e.
[0061] The user uses the type selection button 142 to select a desired type from among the multiple types (b1) to (b3) presented in the edit type presentation field 141. Figure 9 illustrates a situation in which type (b1) has been selected.
[0062] The editing position specification screen 140 also has an editing position input field 145 for inputting an editing position of the sequence program 200e. The user inputs the editing position into the editing position input field 145. The input device 200c is used for input.
[0063] The editing position input field 145 is an example of an input field according to the type selected using the type selection unit 240. The editing position input into the editing position input field 145 is an example of a required item to be input into an input field.
[0064] Specifically, the edit position input field 145 is made up of a row input field 143 for inputting a row in the sequence program 200e, and a column input field 144 for inputting a column. The user inputs the number of the row to be edited in the row input field 143, and the number of the column to be edited in the column input field 144.
[0065] After inputting the type of editing and the editing position, the user presses button 146 to instruct completion of the input. When button 146 is pressed, the editing content input unit 253 transitions from the editing position designation screen 140 to an editing content input screen 150 shown in FIG.
[0066] 10, the editing content input screen 150 has an editing content input field 151 for inputting editing content. The user inputs editing content into the editing content input field 151. The input device 200c is used for input.
[0067] Specifically, the user inputs the editing content corresponding to the type (b1) selected by the user, that is, the specific program code to be added to the sequence program 200e, into the editing content input field 151.
[0068] The editing content input field 151 is an example of an input field corresponding to the type selected using the type selection unit 240 and the type selected using the editing type selection unit 251. The editing content input into the editing content input field 151 is another example of the necessary information to be input into the input field.
[0069] The edit content input screen 150 also has a unit process name input field 152 in which the user inputs the name of the unit process defined by the operations up to that point. In Fig. 10, the name "Program Edit 2" has been input by the user into the unit process name input field 152. The input device 200c is used for input.
[0070] When the user has defined the desired unit process using the unit process definition environment in this way, he or she presses the button 153 indicating completion of the definition. When the button 153 is pressed, the unit process definition support section 260 returns the edit content input screen 150 to the verification process definition screen 120 shown in FIG.
[0071] 5, the unit process object group 122 includes a unit process object 122b representing the unit process named "Program Edit 2" previously input by the user. This is because the unit process definition support section 260, triggered by pressing the button 153 shown in FIG. 10, added the newly defined unit process to the defined unit process group data 200g as a library.
[0072] Returning to Fig. 8, the explanation will continue. When the user selects the above-mentioned type (a3), i.e., "Change current value of device / label," on the type selection screen 130, the required information input unit 250 accepts the selection of whether the target for which the current value is to be changed is a device or a label, and presents an input field for inputting the name of the target for which the current value is to be changed, and also presents an input field for inputting the changed value. Here, the target name and the changed value are each examples of the above-mentioned required information.
[0073] Furthermore, if the user selects the aforementioned type (a4), i.e., "Device / Label Check," the required information input unit 250 accepts the selection of whether the object for which the current value is to be checked is a device or a label, and presents an input field for inputting the name of the object for which the current value is to be checked, and also presents an input field for inputting the expected value, which is the correct value expected as the current value. Here, the object name and expected value are each examples of the aforementioned required information.
[0074] Furthermore, when the definition of the unit process of the above-mentioned type (a4) is completed and the unit process object representing that unit process is selected by the user as a component of the verification process on the verification process definition screen 120 of Figure 5, the above expected value is used for verification.
[0075] That is, the verification process execution unit 220 determines whether the device or label values obtained as the execution results from the execution device 400 that executed the sequence program 200e match the expected values. If the execution results match the expected values, the verification process execution unit 220 affirms the validity of the sequence program 200e, and if the execution results do not match the expected values, the verification process execution unit 220 denies the validity of the sequence program 200e.
[0076] Returning to Fig. 3, the description continues. The verification device 200 also includes a defined unit process editing unit 270 for editing the contents of unit processes that have already been defined using the unit process definition environment described above (hereinafter referred to as "defined unit processes").
[0077] The defined unit process editing unit 270 presents a list of previously defined unit processes and accepts from the user a selection of a defined unit process to be used as a template from the presented list of defined unit processes. The defined unit process editing unit 270 then edits the content of the selected defined unit process, thereby providing the user with a defined unit process editing environment in which the content is used as a template to define a unit process different from the previously defined unit process.
[0078] The defined unit process editing unit 270 obtains the content of the defined unit process to be edited from the defined unit process group data 200g. The defined unit process editing unit 270 also adds the unit process newly defined by editing to the defined unit process group data 200g.
[0079] The predefined unit process editing environment provided by the predefined unit process editing section 270 will be specifically described with reference to FIG.
[0080] As shown in FIG. 5, the verification process definition screen 120 is provided with a button 124 for each unit process object that constitutes the unit process object group 122 .
[0081] The user can edit the contents of the defined unit process represented by the unit process object by pressing the button 124 corresponding to the unit process object that represents the defined unit process that the user wants to edit. This makes it possible to easily define a unit process that is different from the defined unit process by using the contents of the defined unit process as a template.
[0082] The verification process definition screen 120 also has a button 127 for instructing copying of a defined unit process. The button 127 is pressed when a desired unit process object is selected from the unit process object group 122.
[0083] This allows you to edit a copy of the defined unit process represented by the selected unit process object. In other words, you can define a unit process that is different from the defined unit process while leaving the defined unit process and the unit process object that represents it as is.
[0084] Returning to Fig. 3, the description will be continued. The verification device 200 holds the contents of each verification process that has already been defined using the verification process definition environment (hereinafter referred to as a "defined verification process") as defined verification process group data 200h. The defined verification process group data 200h is stored in the storage device 200d shown in Fig. 2.
[0085] The verification device 200 also includes a defined verification process editing unit 280 for editing the contents of the defined verification processes.
[0086] The predefined verification process editing unit 280 presents a list of previously defined verification processes and accepts from the user a selection of a process to be used as a template from the presented list of predefined verification processes. The predefined verification process editing unit 280 then edits the content of the selected predefined verification process, thereby providing the user with a predefined verification process editing environment in which the content is used as a template to define a verification process different from the predefined verification process.
[0087] The predefined verification process editing unit 280 acquires the content of the predefined verification process to be edited from the predefined verification process group data 200h. The predefined verification process editing unit 280 also adds the verification process newly defined by editing to the predefined verification process group data 200h.
[0088] The predefined verification process editing environment provided by the predefined verification process editing unit 280 will be specifically described with reference to FIG.
[0089] 7, a plurality of verification process objects 114 representing defined verification processes can be displayed on the basic screen 110. Each verification process object 114 is provided with a button 116.
[0090] The user can edit the content of the defined verification process represented by the verification process object by pressing the button 116 corresponding to the verification process object that represents the defined verification process that the user wants to edit. This allows the user to easily define a verification process that is different from the defined verification process by using the content of the defined verification process as a template.
[0091] The basic screen 110 also has a button 112 for instructing copying of a defined verification process. The button 112 is pressed when a desired verification process object 114 is selected. This allows editing of a copy of the defined verification process represented by the selected verification process object. In other words, a verification process other than the defined verification process to be edited can be defined while leaving the defined verification process and the verification process object representing it intact.
[0092] The following summarizes the above-described operation of the verification device 200. First, the verification process definition support process performed by the verification process definition support unit 210 and the verification process execution unit 220 will be described with reference to FIG.
[0093] 11 includes steps S11-S14 as an example of a verification process definition support step in which a computer provides a user with a verification process definition environment, and steps S15-S16 as an example of a verification process execution step in which a computer performs verification.
[0094] First, the unit process object group presenting unit 211 presents the unit process object group 122 as a library (step S11). The presented unit process object group 122 includes a unit process object representing an execution condition setting process as a unit process, and a unit process object representing an editing process as a unit process.
[0095] Note that step S11 is an example of a unit process object group presenting step in which the computer presents the unit process object group 122.
[0096] Next, the verification process definition support unit 210 receives from the user a selection of a plurality of unit process objects desired by the user from the presented unit process object group 122 and a specification of the execution order among the plurality of unit processes represented by the plurality of selected unit process objects (step S12). The selected unit process objects include a unit process object representing an execution condition setting process.
[0097] Next, the verification process definition support unit 210 defines a verification process by combining the unit processes represented by the plurality of unit process objects selected by the user in the execution order specified by the user (step S13).
[0098] The verification process definition support unit 210 saves the content of the verification process defined in step S13 in the storage device 200d by adding it to the defined verification process group data 200h (step S14). Therefore, from the next time onwards, the content of the verification process defined in step S13 can be used as a template for defining another verification process.
[0099] Steps S12 to S14 are an example of a verification process definition environment providing step in which the computer provides the verification process definition environment to the user.
[0100] Next, the verification process execution unit 220 executes the verification process defined in step S13, causing the execution device 400 to execute the sequence program 200e in a manner that reflects the execution conditions (step S15).The verification process execution unit 220 then causes the execution device 400 to present the verification results (step S16).This completes the verification process definition support process.
[0101] Next, the unit process definition support process performed by the unit process definition support section 260 will be described with reference to FIG.
[0102] 12, first, the type presenting unit 230 presents a plurality of definable unit process types (step S21), and then the type selecting unit 240 receives from the user a selection of which of the plurality of types presented by the type presenting unit 230 corresponds to the type of unit process that the user is attempting to define (step S22).
[0103] Next, when the type selection unit 240 accepts the selection of an edit type as the type of unit process, the edit type selection unit 251 accepts the selection of the edit type from the user (step S23).
[0104] Next, following the selection of the type of editing, the editing position designation unit 252 accepts input of the editing position in the sequence program 200e from the user (step S24). Next, following the input of the editing position, the editing content input unit 253 accepts input of the editing content from the user (step S25).
[0105] The unit process definition support section 260 defines an editing process as a unit process based on the input items received in steps S23-25 (step S26).
[0106] The unit process definition support unit 260 then adds the content of the edit process as the defined unit process to the defined unit process group data 200g, thereby saving it in the storage device 200d (step S27). Therefore, from the next time onwards, the content of the edit process defined in step S26 can be used as a template for defining another edit process.
[0107] According to the verification device 200 according to the present embodiment described above, the following effects can be obtained.
[0108] Conventional devices have the function of presenting the user with multiple verification processes that have been prepared as options in advance, but they do not provide the user with an environment suitable for defining a new verification process that is not included in the presented options.
[0109] In contrast, in verification device 200 according to this embodiment, not only is a function of presenting the user with a plurality of predefined verification processes prepared as options in advance realized by predefined verification process editing unit 280, but a verification process definition environment is also provided to the user by verification process definition support unit 210. This allows the user to easily define a new verification process that is not included in the presented options.
[0110] Specifically, the user simply selects a plurality of unit process objects as general-purpose components for constructing a desired verification process from the unit process object group 122, which is a list of general-purpose components for constructing any verification process. The verification process definition environment providing unit 212 defines a verification process by combining unit processes represented by each of the plurality of unit process objects selected by the user.
[0111] Furthermore, conventional devices have the function of presenting to the user a plurality of verification processes prepared in advance as options, but do not present to the user verification processes that include editing processes. On the other hand, in this embodiment, the unit process object group 122 presented to the user includes a unit process object that represents editing processes. Therefore, when the user selects a unit process object that represents editing processes, a verification process that includes editing processes is defined.
[0112] In the past, when verifying a control operation when a certain transition condition is satisfied, if the transition condition is difficult to satisfy, verifying the control operation required a lot of time and effort. Specifically, in order to satisfy the transition condition, it was necessary to adjust the values of many different devices or labels, and this adjustment required a lot of time and effort. In other words, it required a lot of time and effort to specify the conditions for executing the verification.
[0113] In contrast, according to this embodiment, the transition conditions can be temporarily disabled by editing, thereby eliminating the need to adjust the values of devices or labels. As an example, if the sequence program 200e has a structure that transitions to a specific program module (hereinafter referred to as an interrupt program) when an interrupt condition is satisfied, disabling the interrupt condition by editing allows the contents of the interrupt program to be verified immediately, regardless of whether the interrupt condition is satisfied.
[0114] The edits made by the editing process are reflected temporarily for the convenience of verification. After verification, the content of the sequence program 200e is automatically restored to the content before editing by the verification process execution unit 220.
[0115] Furthermore, according to this embodiment, a unit process definition environment for defining the unit process itself, including the above-mentioned editing process, is also provided to the user. Therefore, the user can easily define a new unit process that differs from the already-created defined unit processes, while being prompted to enter the necessary information according to the type of unit process. In particular, the user can easily define an editing process by selecting the type of editing, entering the editing position, and entering the editing content.
[0116] The embodiment has been described above, but the following modifications are also possible.
[0117] 2 can be installed on an existing computer to cause the computer to function as the verification device 200 according to the embodiment. The concept of a computer includes an engineering tool and a PLC. The engineering tool or the PLC may include a simulator as the execution device 400. The verification program 200f may be distributed via a communication network or may be stored in a computer-readable non-transitory recording medium and distributed.
[0118] The present disclosure allows various embodiments and modifications without departing from the broad spirit and scope of the present disclosure. The above-described embodiments are intended to explain the present disclosure and do not limit the scope of the present disclosure. The scope of the present disclosure is defined by the claims, not the embodiments. Various modifications made within the scope of the claims and the meaning of the disclosure equivalent thereto are considered to be within the scope of the present disclosure.
[0119] 110 Basic screen, 114, 114a, 114b, 114c Verification process object, 115, 115a, 115b, 115c Verification result, 120 Verification process definition screen, 121 Name input field, 122 Unit process object group, 122a, 122b, 122c Unit process object, 123 Scroll button, 128 Execution order designation field, 130 Type selection screen, 140 Editing position designation screen, 141 Editing type presentation field, 142 Type selection button, 143 Row input field, 144 Column input field, 145 Editing position input field (input field), 150 Editing content input screen, 151 Editing content input field (input field), 152 Unit process name input field, 111, 112, 113, 116, 124, 125, 126, 127, 131, 146, 153 button, 200 verification device, 200a communication device, 200b display device, 200c input device, 200d storage device, 200e sequence program, 200f verification program, 200g defined unit process group data, 200h defined verification process group data, 200i processor, 210 verification process definition support unit, 211 unit process object group presentation unit, 212 verification process definition environment provision unit, 220 verification process execution unit, 230 type presentation unit, 240 type selection unit, 250 required item input unit, 251 editing type selection unit, 252 editing position specification unit, 253 editing content input unit, 260 unit process definition support unit, 270 Defined unit process editing section, 280 Defined verification process editing section, 400 Execution device, 600 Verification system.
Claims
1. A computer for verifying the validity of the contents of a sequence program installed in a programmable logic controller is caused to function as: a verification process definition support unit that provides a user with a verification process definition environment that defines a verification process for realizing the verification of the validity, the verification process including an execution condition assignment process for assigning execution conditions for the verification to an execution device that executes the sequence program; and a verification process execution unit that, by executing the verification process defined using the verification process definition environment, (I) causes the execution device to execute the sequence program in a manner that reflects the execution conditions, and (II) obtains an execution result of the sequence program from the execution device and performs the verification using the obtained execution result; wherein the verification process definition support unit functions as: a unit process object group presentation unit that presents the unit process object group, which is made up of a plurality of unit process objects each representing a predefined unit process to be executed by the verification process execution unit, and which includes the unit process object representing the execution condition assignment process as the unit process; a verification process definition environment providing unit that, when a user selects a plurality of the unit process objects from the presented group of unit process objects, provides the user with the verification process definition environment that defines the verification process by a combination of the unit processes represented by each of the selected plurality of unit process objects.
2. The verification program according to claim 1, wherein the group of unit processing objects includes a unit processing object representing an editing process, which is a unit processing that applies editing to the sequence program prior to execution of the sequence program by the execution device.
3. The verification program according to claim 1 or 2, further causing the computer to function as a unit process definition support section that provides a user with a unit process definition environment for defining the unit process, and that, when a new unit process is defined using the unit process definition environment, includes the unit process object representing the unit process in the unit process object group, the unit process definition support section having: a type presentation section that presents a plurality of types of the unit process that can be defined; a type selection section that accepts from the user a selection of which of the plurality of types presented by the type presentation section the type of the unit process that the user is trying to define corresponds to; and a required item input section that presents input items corresponding to the type selected using the type selection section, and accepts from the user input of required items necessary to define the unit process of that type into the presented input items.
4. The verification program of claim 3, wherein the multiple types presented by the type presentation unit include an edit type of making an edit to the sequence program prior to execution of the sequence program by the execution device, and the required item input unit has: an edit type selection unit that, when the type selection unit accepts a selection of the edit type, accepts from the user a selection of whether the edit to be made to the sequence program is to add program code to the sequence program, delete program code from the sequence program, or change a portion of the content of the sequence program; an edit position designation unit that accepts, from the user, input of an edit position in the sequence program where the edit will be made, as the required item; and an edit content input unit that accepts, from the user, input of the content of the edit, as the required item separate from the edit position.
5. The verification program according to claim 1 or 2, wherein the verification process definition environment providing unit also accepts from the user a specification of an execution order between a plurality of unit processes represented by a plurality of unit process objects selected from the group of unit process objects in the verification process definition environment.
6. The verification program according to claim 1 or 2, wherein the verification process definition support unit is capable of defining a plurality of verification processes having different execution conditions for the same sequence program, and the verification process execution unit executes the plurality of verification processes in a batch.
7. The verification program according to claim 6, wherein the verification process execution unit displays a list of the verification results for each of the plurality of verification processes.
8. The verification program according to claim 3, further causing the computer to function as a defined unit process editing unit that provides the user with a defined unit process editing environment that uses the content as a template to define a unit process different from the predefined unit process by editing the content of the predefined unit process, which is the unit process that has already been defined using the unit process definition environment.
9. A verification program as described in claim 1 or 2, further causing the computer to function as a defined verification process editing unit that provides the user with a defined verification process editing environment that uses the content as a template to define a verification process different from the predefined verification process by editing the content of the defined verification process, which is the verification process that has already been defined using the verification process definition environment.
10. A verification device for verifying the validity of the contents of a sequence program installed in a programmable logic controller, comprising: a verification process definition support unit that provides a user with a verification process definition environment that defines a verification process for verifying the validity, the verification process including an execution condition assignment process for assigning an execution condition for the verification to an execution device that executes the sequence program; and a verification process execution unit that executes the verification process defined using the verification process definition environment, thereby (I) having the execution device execute the sequence program in a manner that reflects the execution condition, and (II) obtaining an execution result of the sequence program from the execution device and performing the verification using the obtained execution result. The verification process definition support unit comprises: a unit process object group presentation unit that presents the unit process object group, which is made up of a plurality of unit process objects each representing a predefined unit process to be executed by the verification process execution unit, and which includes the unit process object representing the execution condition assignment process as the unit process; a verification process definition environment providing unit that, when a user selects a plurality of the unit process objects from the presented group of unit process objects, provides the user with the verification process definition environment that defines the verification process by a combination of the unit processes represented by each of the selected plurality of unit process objects.
11. A verification system comprising: the verification device according to claim 10; and the execution device.
12. A method for verifying the validity of the contents of a sequence program installed in a programmable logic controller, comprising: a verification process definition support step in which a computer provides a user with a verification process definition environment that defines a verification process that realizes the verification of the validity, the verification process including an execution condition assignment process for assigning an execution condition for the verification to an execution device that executes the sequence program; and a verification process execution step in which the computer executes the verification process defined using the verification process definition environment, thereby (I) causing the execution device to execute the sequence program in a manner that reflects the execution condition, and (II) obtaining an execution result of the sequence program from the execution device and performing the verification using the obtained execution result, wherein the verification process definition support step comprises: a unit process object group presentation step in which the computer presents a unit process object group made up of a plurality of unit process objects each representing a unit process defined in advance, the unit process object group including the unit process object that represents the execution condition assignment process as the unit process; a verification process definition environment providing step in which the computer provides the user with the verification process definition environment that defines the verification process by a combination of the unit processes represented by each of the selected unit process objects, when the user selects a plurality of the unit process objects from the presented group of unit process objects.
Citation Information
Patent Citations
Test execution flow preparing device
JP1997062530A
Easy-to-program automated test equipment
JP2003532168A
Test management device
JP2011123780A
Test module generation device, test procedure generation device, generation method, program, and test device
JP2013113663A
