Information processing device, information processing method, and article manufacturing method
The generation and display of flowcharts with difference information addresses the inefficiencies in evaluating ladder program changes, allowing for easier identification of affected areas and enhancing the modification process.
Patent Information
- Application Number
- JP2024139281
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-03-19
AI Technical Summary
Existing methods for identifying differences in ladder programs require significant manual effort to evaluate the impact of changes on the entire program, lacking an efficient way to assess the influence range of modifications.
A configuration that generates and outputs a flowchart with difference information before and after changes, utilizing a user interface to facilitate easy evaluation of program changes.
Enables easy identification of affected areas in ladder programs by visually presenting changes through flowcharts, improving the efficiency and effectiveness of program modification and editing processes.
Smart Images

Figure 2024159860000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and an article manufacturing method. [Background technology]
[0002] For example, automatic assembly equipment performs sequence control to sequentially advance the operation of the equipment according to a set procedure. Control devices called sequencers or programmable logic controllers (PLCs) are mainly used as a means of sequence control for automatic assembly equipment, and ladder programs are widely used as their programming language. When designing ladder programs, even after the implementation of the automatic assembly equipment is complete, the ladder program may be changed, for example, during on-site work to fix defects or add functions. In such cases, new defects may occur due to the change in the ladder program. In such cases, for example, the ladder program before and after the change may be compared to identify the differences, and the ladder program may be revised again.
[0003] As a technology for identifying differences in ladder programs, a technology has been proposed that automatically extracts differences from multiple ladder programs and automatically generates a document that lists the differences, making it easy to understand the differences (Patent Document 1 listed below). [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2012-094087 A Summary of the Invention [Problem to be solved by the invention]
[0005] The technology of the above-mentioned Patent Document 1 is intended to improve the efficiency of identifying the difference parts and to facilitate the creation and editing of documents of the difference parts. However, when correcting a ladder program, it is necessary to investigate the range of influence before and after the difference parts, and it is not easy to evaluate the influence of the difference parts on the entire ladder program by simply identifying the difference parts of the ladder program. Therefore, identifying the range of influence of the difference parts may require a huge amount of manual work time.
[0006] By the way, flowcharts are known as a form of expression to visualize the algorithms of programs used in various control devices, including ladder programs. Outputting a flowchart (printing or displaying) can sometimes reveal essential problems in the algorithm, and can be useful in various situations, such as comparing, examining, and debugging algorithms.
[0007] An object of the present invention is to make it possible to easily evaluate changes to a program such as a ladder program by utilizing the output format of a flowchart. [Means for solving the problem]
[0008] In order to solve the above problems, the present invention employs a configuration including a control device that generates a flowchart including difference information before and after a change, and outputs the flowchart via a user interface. Effect of the Invention
[0009] According to the above configuration, the output format of the flowchart can be used to easily evaluate changes to a program such as a ladder program. [Brief description of the drawings]
[0010] [Figure 1] 1 is a block diagram showing a configuration of a ladder program comparison device according to an embodiment of the present invention. [Diagram 2]FIG. 11 is a flowchart showing the overall flow of the ladder program comparison process in the embodiment. [Diagram 3] FIG. 2 is an explanatory diagram showing a ladder diagram as an example of display or output of a ladder program in the above embodiment. [Figure 4] FIG. 2 is an explanatory diagram showing an example of a ladder program in the above embodiment in a mnemonic format. [Diagram 5] An explanatory diagram showing an example of ladder program information in mnemonic format before and after a change in the above embodiment. [Figure 6] An explanatory diagram showing difference information of a ladder program before and after a change in mnemonic format in the above embodiment. [Figure 7] FIG. 2 is an explanatory diagram showing block-divided ladder program information in the above embodiment in mnemonic format. [Figure 8] FIG. 2 is an explanatory diagram showing an example of a configuration of circuit element information in a mnemonic format in the embodiment. [Figure 9] 11 is an explanatory diagram showing an example of circuit element use definition information in the embodiment. FIG. [Figure 10] 11 is an explanatory diagram showing an example of definition information that associates a ladder program instruction with a next circuit element setting method in the above embodiment. FIG. [Figure 11] 11 is an explanatory diagram showing an example of device use definition information in the embodiment. FIG. [Figure 12] 4 is an explanatory diagram showing an example of definition information of a circuit block pattern in the embodiment. FIG. [Figure 13] FIG. 11 is an explanatory diagram showing an example of flow chart information in the embodiment. [Figure 14] FIG. 11 is a flowchart showing the flow of processing performed by a flowchart information generation processor in the embodiment. [Figure 15] 11 is an explanatory diagram showing a method for setting a next flowchart element of a flowchart element from circuit element information in the embodiment. FIG. [Figure 16]11 is an explanatory diagram showing an example of display color definition information in the embodiment. FIG. [Figure 17] FIG. 11 is an explanatory diagram showing a display screen as an example of a flowchart comparison output in the embodiment. [Figure 18] FIG. 11 is a flowchart showing the flow of a flowchart display process in the embodiment. [Figure 19] FIG. 11 is an explanatory diagram showing an example of conversion from flow chart information to a flow chart in the embodiment. [Figure 20] FIG. 2 is an explanatory diagram showing an example of a work flow in a processing system of a ladder program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. Note that the configurations shown below are merely examples, and those skilled in the art can appropriately change the detailed configurations, for example, without departing from the spirit of the present invention. Also, the numerical values used in the present embodiment are merely examples of reference numerical values.
[0012] Figure 20 shows an overview of the workflow for developing and designing a ladder program (sequence program). A mechanical designer who performs various design tasks related to the hardware of production equipment creates a time chart 1901 through a time chart creation task 1911. This time chart 1901 describes the order in which each piece of production equipment operates in the production process and their dependencies. A software designer receives the completed time chart 1901 and begins design work.
[0013] Here, a design document creation task 1912 is performed to create design documents 1902 such as a stepper configuration table, an IO table, a SW allocation table, an error table, a controller control module management table, and the like.
[0014] Next, a flowchart 1903 is created or automatically generated based on design documents 1902 including a stepper configuration table, an IO table, a SW allocation table, an error table, a controller control module management table, etc., and the above-mentioned time chart 1901. When the flowchart 1903 is automatically generated from the time chart 1901, a process may be performed in which design information from the design documents 1902 is automatically entered into the flowchart 1903 in the form of a difference addition.
[0015] The software designer checks the created flowchart 1903, examines the device specifications, and then modifies the flowchart 1903 according to the branching conditions, waiting conditions, and the processing contents after branching due to the branching conditions.
[0016] Next, referring to the flowchart 1903 and the design documents 1902, a ladder program 1904 is written and edited using a dedicated editor or the like. Alternatively, the ladder program 1904 may be automatically generated according to the flowchart 1903 and the design documents 1902. Note that, in response to debugging, creation, editing, etc. of the ladder program 1904, the flowchart 1903 and the design documents 1902, which are the basis of the ladder program 1904, may be (slightly) modified, as indicated by the leftward arrow in the figure. Finally, a confirmation operation 1917 of the ladder program 1904 is performed, and the design flow ends.
[0017] After confirmation work 1917 or after various changes have been made, the changed ladder program is sent to a sequencer or PLC as a sequence control device that controls the production equipment, and these sequence control devices control the production equipment on the production line. Then, the production equipment on this production line (production system) can manufacture goods such as industrial products.
[0018] FIG. 20 above shows an outline of the workflow of development and design work that starts from the mechanical design of production equipment to the installation and operation of the equipment on a production line. Therefore, the creation flow related to the time chart 1901, flowchart 1903, and design documents 1902, which belong to documents, is also shown. In contrast, when performing maintenance of equipment on an operating production line, the ladder program 1904 may be directly edited and changed without performing any work related to documents. Such work may be difficult because it may be difficult to identify the scope of the impact of a change made to, for example, the ladder program 1904, since there are no documents corresponding to the state after the change.
[0019] In this embodiment, a flowchart is generated with difference information added before and after the change in response to the change in the ladder program, and the flowchart is output via a user interface, which makes it easy to evaluate the change in the ladder program, for example, to identify the extent of its impact.
[0020] An example of the configuration of a ladder program comparison device will be described below. This ladder program comparison device outputs a flowchart including difference information between ladder programs before and after the change. The output format of the flowchart can be any format such as print output, data transmission over a network, or display output, but the following will exemplify display output on a screen. The ladder program comparison process of this embodiment can be implemented in, for example, a standalone information processing device. Furthermore, the ladder program comparison process of this embodiment can also be implemented as a function of any device included in a system that handles ladder programs, such as a control device such as a PLC or sequencer.
[0021] Fig. 1 shows an example of the configuration of a ladder program comparison device 100 of this embodiment. The ladder program comparison device 100 of Fig. 1 includes a CPU 110, a display processing unit 120, an input processing unit 130, a program storage unit 140, and a data storage unit 150. The CPU 110 mainly executes the ladder program comparison process of this embodiment, and performs arithmetic processing according to a control program described later. The display processing unit 120 performs processing for displaying information on a display device such as a display. The input processing unit 130 processes information input from an input device such as a keyboard or mouse in response to an operation input by an operator.
[0022] The program storage unit 140 stores a ladder program comparison processing unit 141, a flowchart information generation processing unit 142, and a flowchart display processing unit 143. The processes executed by these "processing units" stored in the program storage unit 140 are described as a control program executed by, for example, the CPU 110. A disk medium or memory medium storing the control program of this embodiment constitutes a computer-readable recording medium of the present invention.
[0023] Data storage unit 150 stores pre-change ladder program information 161, circuit element information 162, and flowchart information 163, and post-change ladder program information 171 and circuit element information 172. Data storage unit 150 also stores flowchart information 173, ladder program difference information 180, circuit element use definition information 190, and next circuit element setting method definition information 191. Data storage unit 150 also stores device use definition information 192, circuit block pattern definition information 193, and display color definition information 194.
[0024] 2 shows the overall flow of the ladder program comparison process. In step S201 in FIG. 2, ladder program comparison processing unit 141 compares pre-change ladder program information 161 with post-change ladder program information 171, and generates ladder program difference information 180.
[0025] In step S202, the flowchart information generation processing unit 142 functioning as a flowchart generation unit generates pre-altered flowchart information 163 and post-altered flowchart information 173 from pre-altered ladder program information 161 and post-altered ladder program information 171.
[0026] In step S203, flowchart display processing unit 143 generates information for displaying a flowchart with the difference information added, from pre-altered flowchart information 163, post-altered flowchart information 173, and ladder program difference information 180.
[0027] 3 shows a ladder program in the form of a ladder diagram 300 used to control an automatic assembly device such as a robot or a conveyor by a control device such as a programmable logic controller (PLC) or a sequencer. The ladder diagram 300 in FIG. 3 is sometimes called a ladder circuit (diagram) or the like, and is an illustrated format used for display or printing. In the memory of a control device such as a programmable logic controller (PLC) or a sequencer, the ladder program is written in program text using a step control method. In this embodiment, a ladder program written in such a step control method is processed, and the ladder program before and after a change is compared.
[0028] After a ladder program is implemented in a control device such as a programmable logic controller (PLC) or sequencer, part of the ladder program may be changed by on-site workers. When making changes to the ladder program in such work, for example, a ladder diagram 300 is displayed on the GUI of a work terminal. For example, if a malfunction occurs in the operation of an automatic assembly device installed on a production line, the ladder program may be changed by on-site workers.
[0029] In such cases, changes may be made directly to the ladder program in question, without modifying documents or flowcharts related to that ladder program. The documents and flowcharts are prepared after the automated assembly equipment on the production line has been restored, but it would be convenient if, for example, flowcharts could be automatically generated and output in response to changes to the ladder program. Also, depending on the on-site work, even if one or several parts of the ladder program are changed, it may not be possible to immediately restore the ladder program, and it may be necessary to repeatedly modify the ladder program while searching for where the problem lies.
[0030] In this embodiment, a flowchart can be automatically generated and output in response to a change in a ladder program. This makes it possible, for example, to easily identify parts that are affected by the change, and makes it easy to verify whether a change to a ladder program is appropriate. Furthermore, in this embodiment, when a flowchart generated in response to a change in a ladder program is output, a flowchart including difference information related to the change is output. This can significantly improve the ease of operation in changing and editing a ladder program.
[0031] Fig. 4 is an example of ladder diagram 300 shown in Fig. 3 described as ladder program information 161 in mnemonic format. When ladder program information 161 is actually recorded in memory, for example, a binary code corresponding to the mnemonic shown in the figure is recorded. In the format of Fig. 4, each line of the ladder program describes a line number, and a command and a device as components of the ladder program.
[0032] Fig. 5 shows the state when a ladder program is changed. Fig. 5 shows an example of ladder program information 161 before the change and ladder program information 171 after the change. In this ladder program change and editing, some steps of ladder program information 161 before the change are removed to generate ladder program information 171 after the change.
[0033] The display formats shown in Figures 4 and 5 may be used as the display output format of a dedicated editor for ladder programs, for example. Such an editor can be used to change the ladder program shown in Figure 5. Of course, it is also possible to change the ladder program shown in Figure 5 using a text editor or by editing the program text expressed in the mnemonics of the ladder program.
[0034] In this embodiment, ladder program difference information (program difference information) is extracted using pre-change and post-change ladder program information 161, 171 as shown in FIG. 5 as input information, and flowchart difference information is generated and used for flowchart display.
[0035] This ladder program difference information can be generated by ladder program comparison processing unit 141 (Fig. 1). Fig. 6 shows an example of ladder program difference information 180 generated by ladder program comparison processing unit 141. In the example of Fig. 6, ladder program difference information 180 includes, from the left column to the right column, a pre-change line number, a pre-change ladder program, a post-change line number, a post-change ladder program, and a comparison result.
[0036] The ladder program comparison processing unit 141 compares the ladder programs from the pre-change ladder program information 161 and the post-change ladder program information 171 in Fig. 5. Then, based on the comparison results, the ladder program comparison processing unit 141 records the comparison results for each row in the comparison result column of the ladder program difference information 180 (step S201 in Fig. 2). At this time, as items to be described in the comparison results, a flag (identification information) of "match" is generated if the post-change is identical to the pre-change, and a flag (identification information) of "mismatch" is generated if the post-change is not identical to the pre-change. In addition, a flag (identification information) of "add" is generated if the post-change exists only relative to the pre-change, and a flag (identification information) of "delete" is generated if the post-change does not exist relative to the pre-change.
[0037] On the other hand, Fig. 7 shows ladder program information 161 before the change, which has been divided into circuit blocks. A ladder program can be divided into circuit blocks according to the target on which the ladder program command acts. For example, the ladder program information 161 in Fig. 7 is divided into circuit blocks, with the ladder program command "LD" as a separator.
[0038] Fig. 8 shows an example of circuit element information 162 (corresponding to circuit element information 172 in Fig. 1). The circuit element information 162 in Fig. 8 describes circuit element information in one line, and each column includes, from left to right, a circuit element ID, a circuit element use, a next circuit element, a corresponding ladder program line number, and circuit element extraction information.
[0039] 9 shows an example of circuit element use definition information 190. In this circuit element use definition information 190, for the ladder program notation shown in the leftmost column, whether or not to extract from a circuit element, and if a circuit element is extracted, the use of the circuit element is defined.
[0040] 10 shows an example of the next circuit element setting method definition information 191 (FIG. 1). This next circuit element setting method definition information 191 defines the next circuit element setting method of the circuit element on which the instruction acts for the mnemonic of the ladder program instruction shown in the leftmost column, particularly for the mnemonic that relates the circuit elements.
[0041] 11 shows an example of the device use definition information 192 (FIG. 1). This device use definition information 192 defines, for a specific device, the use of the device and the identification number (No.) of the device.
[0042] FIG. 12 shows an example of circuit block pattern definition information 193 (FIG. 1). This circuit block pattern definition information 193 defines information to be extracted from circuit elements in accordance with the circuit element position in the leftmost and center columns in a circuit block and the circuit element use. FIG. 12 shows design pattern information of a step circuit block in step control as an example. The circuit element position in the leftmost column indicates the position in the circuit block based on the relationship between circuit elements, and in particular, the "start" circuit element position corresponds to a circuit element that is not set as the next circuit element of another circuit element. The "end" circuit element position corresponds to a circuit element that has nothing set as the next circuit element. The circuit element position "other" corresponds to a circuit element that does not correspond to either "start" or "end".
[0043] 13 shows an example of the configuration of flowchart information 163 capable of rendering flowchart graphics. The flowchart information 163 has a format in which information on a flowchart element is described on one line, and includes, from the left column to the right column, a flowchart element ID, a step No., a next flowchart element, and a circuit element ID.
[0044] Fig. 14 shows the flow of processing of the flowchart information generation processing unit, describing the details of step S202 in Fig. 2. By the control procedure as shown in Fig. 14, it is possible to generate flowchart information 163 from ladder program information 161 (Fig. 7).
[0045] In step S1401 in Fig. 14, each line of the ladder program of the circuit block is analyzed, and the circuit elements and their uses are extracted from the ladder program notation based on the circuit element use definition information 190 in Fig. 9, and the circuit elements are generated. A circuit element ID that makes the circuit element unique is assigned to the circuit element. In addition, a ladder program line number corresponding to the circuit element is set, making the circuit element ID and ladder program line number mutually traceable.
[0046] Here, as an example, a case will be described where "LD M1" in ladder program line No. 3 in Fig. 7 is analyzed. This "LD M1" corresponds to the ladder program notation "LD Device A" in the circuit element use definition information 190 in Fig. 9 and is a target for circuit element extraction, so the circuit element use is extracted as "M1 ON" and that circuit element is generated.
[0047] In step S1402 in FIG. 14, each ladder program line of the circuit block is analyzed, and the ID of the circuit element corresponding to the next circuit element is set to the next circuit element of the circuit element extracted in step S1401 based on the next circuit element setting method definition information 191 in FIG. 10. Here, as an example, the analysis of ladder program lines No. 3, 4, and 5 in FIG. 7 will be described. In ladder program lines No. 3, 4, and 5, the ladder program instructions are "LD", "MPS", and "AND". Therefore, according to the next circuit element setting method definition information 191 in FIG. 10, the next circuit element setting methods of these instructions correspond to "-", "set the next circuit element to the next circuit element of the immediately preceding circuit element", and "set to the next circuit element of the immediately preceding circuit element", respectively. Therefore, in this case, the circuit element ID5 corresponding to ladder program line No. 5 is set to the next circuit element of the circuit element ID3 corresponding to ladder program line No. 3.
[0048] In step S1403 in FIG. 14, a circuit element (for example, FIG. 8) is analyzed, and information is extracted from the circuit element use based on device use definition information 192 in FIG. 11 and circuit block pattern definition information 193 in FIG. 12, to set circuit element extraction information. Here, as an example, the circuit element use "update D0 with 2" of circuit element ID6 in FIG. 8 is analyzed. According to device use definition information 192 in FIG. 11, D0 corresponds to "step operation control register." Also, according to circuit block pattern definition information 193 in FIG. 12, circuit element ID6 corresponds to the circuit element use of "end" and "update step operation control register with numerical value F." Therefore, "next step device No.=2" can be extracted and set in the circuit element extraction information.
[0049] In step S1404 in Figure 14, the circuit element information 162 (Figure 8) of the ladder program is analyzed, those whose circuit element extraction information is "condition" are extracted, and flowchart elements are generated. A flowchart element ID that makes the flowchart element unique is assigned to the flowchart element of a specific step. In addition, a circuit element ID corresponding to the flowchart element can be set, making it possible to make the flowchart element ID and the circuit element ID mutually traceable. Furthermore, to indicate that the circuit block acting on is the same circuit block, the step device number of the same circuit block is set to the step number of the flowchart information (rightmost column in Figure 8).
[0050] Here, as an example, block 0 of the circuit element information 162 in Fig. 8 is analyzed. Circuit element ID 1, whose circuit element extraction information is "condition", is extracted, and the next flowchart element is generated (rightmost column in Fig. 8). In addition, since step device No. "0" is set in the circuit element extraction information of circuit element ID 0 in block 0, "0" is set as the step No. of the generated flowchart element (rightmost column in Fig. 8).
[0051] In step S1405 in FIG. 14, the circuit element information 162 is analyzed. Here, the relationship between the step device number and the next step device number in the circuit element extraction information in FIG. 12 is used to connect the flowchart elements. For example, the ID of the flowchart element corresponding to the next flowchart element is set to the next flowchart element of the flowchart element extracted in step S1403. In this case, in the circuit element extraction information of the circuit element, the circuit elements having the same step device number as the next step device number are in a connection relationship. Then, the flowchart element ID is set to the next flowchart element of the flowchart element corresponding to the circuit element ID in the connection relationship via that circuit element. As an example, the circuit element IDs 1, 2, 3, and 5 in the circuit element information 162 in FIG. 8 are analyzed (lines 2 to 5 in the figure). In this case, the circuit element extraction information for circuit element IDs 2 and 3 is "next step device number=1" and "step device number=1", respectively, so a connection relationship exists from circuit element ID 2 to circuit element ID 3. Furthermore, since the circuit elements ID1 and ID5 are connected via the circuit elements ID2 and ID3, the flowchart element ID5 corresponding to the circuit element ID5 is set as the next flowchart element of the flowchart element ID1 corresponding to the circuit element ID1.
[0052] Fig. 15 visually shows a method for setting a next flowchart element of a flowchart element from the circuit element information in step S1405 in Fig. 14. A relationship diagram 1501 between circuit elements on the left side of Fig. 15 shows the connection relationships between circuit elements based on the ID of the next circuit element, with the circuit element ID set to the node in the circuit element information 162. A relationship diagram 1502 between flowchart elements on the right side of Fig. 15 shows the connection relationships between flowchart elements generated via step S1405, with the flowchart element ID set to the node.
[0053] On the other hand, the flowchart information generation processing unit 142 also performs the processes of steps S1401 to S1405 on the changed ladder program information 171 to generate a changed flowchart 1702 (FIG. 17). If the flowchart information before and after the change can be generated, a flowchart (1701, 1702: FIG. 17) with difference information before and after the change added can be output via a user interface (the display processing unit 120 or the input processing unit 130 in FIG. 1).
[0054] The following describes an example of a configuration for outputting, for example displaying, a flowchart including difference information before and after a change.
[0055] 16 shows an example of display color definition information 194 when a flowchart including difference information before and after a change is output, for example, displayed. This display color definition information 194 defines the symbol display color of the flowchart for the comparison result of ladder program difference information 180 (FIG. 6). As shown in FIG. 17, in the following example, flowcharts 1701 and 1702 before and after the change are displayed side-by-side on the same screen of a display screen 1700 of a flowchart comparison device. At that time, the flowchart difference information 180 is displayed on the display screen 1700 in accordance with the precedent definition of the display color definition information 194.
[0056] 16 defines that, for example, "match" between the flow (or program steps) before and after the change is displayed in no color (default display color), "mismatch" in yellow, "addition" in red, and "deletion" in blue. In other words, the difference information of the flowchart (or ladder program) is expressed by displaying and outputting in a display format with different colors.
[0057] However, the format for expressing the difference information of a flowchart (or ladder program) is not limited to this, and can be adopted by a person skilled in the art. For example, it is possible to use a method of setting different highlighting modes for elements corresponding to "match", "mismatch", "addition" and "deletion" before and after the change. That is, the difference information of a flowchart (or ladder program) is expressed using a highlighting format that uses different highlighting modes. Depending on how you think about it, the above-mentioned change in display color can also be considered as one of the highlighting formats. In addition, various highlighting styles can be used for the highlighting used to display the difference information, such as changing the display brightness, changing the character font type, changing the character font size, and changing the font style such as italics or bold. In addition to using one highlighting method, multiple highlighting methods can be combined to display the difference information in a way that makes it stand out from other parts.
[0058] Fig. 17 shows an example of the display output format on a display screen 1700 of the flowchart comparison device. In the example of Fig. 17, ladder programs before and after the change are displayed side by side on the left and right sides of the upper part of the screen, and flowcharts before and after the change 1701, 1702 are displayed side by side at the bottom. These two ladder programs before and after the change and flowcharts each include the parts whose display colors have been changed according to the display color definition information 194 of Fig. 16, that is, the difference information of the flowcharts (or ladder programs).
[0059] Fig. 18 shows the flow of processing by the flowchart display processing unit 143 (Fig. 1) describing the details of step S203 in Fig. 2. Also, Fig. 19 shows the conversion from flowchart information to a flowchart performed by the processing of Fig. 18. As shown in the figure, the flowchart display processing unit 143 (Fig. 1) generates flowcharts before and after the change to which difference information has been added from the ladder program difference information and the flowchart information before and after the change, and displays them on the display processing unit 120.
[0060] In step S1801 in FIG. 18, the flowchart elements in the flowchart information are converted into flowchart symbols, and the circuit element uses of the circuit element IDs corresponding to the flowchart element IDs are written in the flowchart symbols.
[0061] In step S1802, the flowchart symbols are connected with arrows based on the ID of the next flowchart element of the flowchart element.
[0062] In step S1803, flowchart symbols having the same step number are grouped based on the step number of the flowchart information, and the step number is displayed.
[0063] In step S1804, difference information is added to the flowchart based on the ladder program difference information. From the correspondence between the flowchart element ID and circuit element ID in the flowchart information and the correspondence between the circuit element ID and ladder program line number in the circuit element information, the ladder program line number is tracked from the flowchart element ID. In this way, the comparison result can be acquired from the ladder program difference information. Then, from the acquired comparison result, the flowchart symbols are displayed in color according to the display color definition information 194 in FIG. 16. Steps S1801 to S1804 are similarly processed for the ladder programs before and after the change, and flowcharts 1701 and 1702 before and after the change are generated.
[0064] In step S1805, the ladder program difference information 180, the pre-altered flowchart 1701 generated up to step S1804, and the post-altered flowchart 1702 are displayed side by side as shown in Fig. 17. The ladder program difference information 180 is also displayed with each line colored according to the comparison result, based on the display color definition information 194.
[0065] By the above processing, according to this embodiment, it is possible to display not only the differences in the ladder program but also the difference information as exemplified in FIG. 17, and to display a flowchart in a format in which the flowchart before and after the change are arranged side by side. The flowchart display as in FIG. 17 makes it easy to understand the context of the difference parts. Furthermore, the flowchart display as in FIG. 17 makes it easy to identify the difference parts in the ladder program and to understand the scope of the influence from the context of the difference parts. For example, by visually checking the flowchart display as in FIG. 17, it becomes possible to clearly understand whether the change part of the ladder program changed in the field work has an influence on other control steps through the flowchart display with differences.
[0066] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-mentioned embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0067] In the above, a ladder program has been exemplified as a target program for which a flowchart is output, but it goes without saying that the present invention can be implemented in the same manner for any control program, not limited to a ladder program. In the above, the form of flowchart output has been mainly exemplified as display output by a display device. However, a printing device or an audio output device may also be used as a user interface for outputting a flowchart. In other words, the flowchart output only needs to be provided to the user, and the configuration of the user interface for this purpose is arbitrary.
[0068] In the example of FIG. 17, the flowcharts and ladder programs before and after the change are displayed side by side. This display format is merely an example, and it is possible to express the difference between the ladder programs and flowcharts by displaying them in color or highlighting, without necessarily juxtaposing two flowcharts or ladder programs. For example, a format such as unified diff is used to express the difference in program text, and this type of difference expression format may be used to display the difference in the flowchart. For example, the flowchart before the change is used as the reference, and the parts that have been deleted or changed can be displayed in a specific color or highlighting to display the difference. For the addition of flows or branches, the difference can be displayed by adding the added elements using the empty space in the flowchart. The difference between ladder programs does not necessarily have to be output by juxtaposing two ladder programs. If the ladder program related to the change is output in text as in FIG. 17, it can be output in text only in one column using a known output format such as unified diff (udiff) or context diff (cdiff).
[0069] Furthermore, the above-described embodiment can be applied to a machine that can automatically perform movements such as stretching, bending, moving up and down, moving left and right, or rotating, or a combination of these movements, based on information from a memory device provided in the control device as a control target by the ladder circuit. [Explanation of symbols]
[0070] 110: CPU, 120: display processing unit, 130: input processing unit, 140: program storage unit, 141: ladder program comparison processing unit, 142: flow chart information generation processing unit, 143: flow chart display processing unit, 150: data storage unit, 194: display color definition information.
Claims
1. An information processing device comprising a control device that generates a flowchart including difference information before and after a change, and outputs the flowchart via a user interface.
2. 2 . The information processing apparatus according to claim 1 , wherein the control device causes the user interface to display and output the difference information before and after the change in the flowchart in a highlighted display format or in a display format of different colors.
3. 3. The information processing apparatus according to claim 1, wherein the control device outputs the flowchart before and after the change, together with the difference information, via the user interface.
4. 4. An information processing device according to claim 1, wherein the control device has a flowchart generation unit that generates flowcharts corresponding to programs before and after the change, and the information processing device generates the difference information using program difference information corresponding to the difference between the programs before and after the change.
5. 5. The information processing apparatus according to claim 4, wherein the program before and after the change is output together with the flowchart.
6. 6. The information processing device according to claim 4, wherein the program is a ladder program, The control device, the flowchart generating unit generating a flowchart corresponding to the ladder program before and after the change from the ladder program before and after the change; a ladder program comparison processing unit that compares a ladder program before and after the change and generates program difference information of the ladder program before and after the change; The user interface outputs the flowchart to which flowchart difference information before and after the change is added using the program difference information generated by the ladder program comparison processing unit and the flowchart generated by the flowchart generation unit; An information processing device having the above configuration.
7. 7. A production system comprising: the information processing device according to claim 6; and a sequence control device that controls production equipment based on a ladder program after the change out of the ladder programs before and after the change, the production system manufacturing an article using the production equipment.
8. A manufacturing method for an article, comprising: the information processing device according to claim 6; and a sequence control device for controlling production equipment based on a changed ladder program among the ladder programs before and after the change; and a manufacturing method for an article using the production equipment in a production system comprising the information processing device according to claim 6; and a sequence control device for controlling production equipment based on a changed ladder program among the ladder programs before and after the change.
9. a flowchart generating step in which the control device generates a flowchart including difference information before and after the change; a flowchart output step in which the control device outputs the flowchart via a user interface; An information processing method comprising:
10. A control program that causes a computer to execute each step of the information processing method according to claim 9.
11. A computer-readable recording medium storing the control program according to claim 10.
Citation Information
Patent Citations
Graphic correcting method and device therefor
JP1997212348A
Ladder program comparison method
JP2012094087A
Cited By
Programming device
WO2026154607A1
