CN115039042A - Program creation support device, program creation support method, and program creation support program - Google Patents

Program creation support device, program creation support method, and program creation support program Download PDF

Info

Publication number
CN115039042A
CN115039042A CN202080095205.6A CN202080095205A CN115039042A CN 115039042 A CN115039042 A CN 115039042A CN 202080095205 A CN202080095205 A CN 202080095205A CN 115039042 A CN115039042 A CN 115039042A
Authority
CN
China
Prior art keywords
unit
character string
data
input
usage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202080095205.6A
Other languages
Chinese (zh)
Inventor
户堀贤治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of CN115039042A publication Critical patent/CN115039042A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Stored Programmes (AREA)

Abstract

A program creation support device (100) that supports creation of project data including a program executed by a programmable logic controller is provided with: an input receiving unit (11) that receives an input of a character string for creating project data; a character string analysis unit (2) which analyzes the character string received by the input reception unit and extracts the expression contained in the character string; an external data analysis unit (3) which analyzes external data (300) including at least one of item data (310) that has been created and dictionary data (320) in which various expressions including an expression used when creating the item data are registered, and extracts an expression included in the external data; a usage frequency evaluation unit (42) that calculates the number of times of usage of the terms extracted by the character string analysis unit and the external data analysis unit; and a candidate display processing unit (6) that displays, on the display unit (7), candidates for the terms received by the input receiving unit based on the number of uses calculated by the use frequency evaluation unit.

Description

Program creation support device, program creation support method, and program creation support program
Technical Field
The present invention relates to a program creation support device, a program creation support method, and a program creation support program for supporting creation of a program executed by a Programmable Logic Controller (hereinafter referred to as PLC).
Background
Patent document 1 describes an invention in which, when creating a program, selection candidates for a command symbol or selection candidates for association information of a command symbol are displayed on a display device in correspondence with a character string for which an input is received, and the input command symbol or association information is selected from the selection candidates. According to the invention described in patent document 1, it is possible to assist in describing a correct command symbol and associated information as a program in a correct syntax, and to realize efficient program creation work.
Patent document 1: japanese patent laid-open publication No. 2011-28552
Disclosure of Invention
The program executed by the PLC may be a large-scale program, and in this case, the program is created by being divided by a plurality of operators. When a program is created by a plurality of workers in a shared manner, it is important to unify terms described in the program in advance in order to efficiently perform debugging work, modification work, and the like of the program. That is, each operator needs to create a program while paying attention to the fact that a plurality of terms having the same meaning are not mixed. When the terms are not unified, if the program needs to be corrected, there is a possibility that a worker different from the worker who created the program takes time to perform the correction. In addition, a new program may be created by following a program created in the past in the program creation job. In this case, it is important to unify the expression used in the part being followed and the expression used in the newly created part.
The invention described in patent document 1 can unify the terms in 1 program, but cannot unify the terms with other programs such as programs created in the past, and has a problem that the burden on the operator is large.
The present invention has been made in view of the above problems, and an object of the present invention is to provide a program creation support device that can unify terms with other programs and reduce a burden on an operator when creating a program.
In order to solve the above problems and achieve the object, the present invention is a program creation support device that supports creation of project data including a program executed by a programmable logic controller, the program creation support device including: an input receiving unit that receives an input of a character string for creating project data; a character string analysis unit that analyzes the character string received by the input reception unit and extracts a term included in the character string; and an external data analysis unit that analyzes external data including at least one of the created item data and dictionary data in which various expressions including the expression used when creating the item data are registered, and extracts the expression included in the external data. Further, the program creation support device includes: a usage frequency evaluation unit that calculates the number of times of use of each usage term based on the usage term extracted by the character string analysis unit and the external data analysis unit; and a candidate display processing unit that displays, on the display unit, candidates for the terms received by the input receiving unit based on the number of times of use calculated by the use frequency evaluation unit.
ADVANTAGEOUS EFFECTS OF INVENTION
The program creation support device according to the present invention has an effect of making words uniform with other programs and reducing the burden on an operator when creating a program.
Drawings
Fig. 1 is a diagram showing a configuration example of a program creation support device according to embodiment 1 of the present invention.
Fig. 2 is a diagram showing an example of the hardware configuration of the program creation support apparatus according to embodiment 1.
Fig. 3 is a flowchart showing a 1 st operation example of the program creation support device according to embodiment 1.
Fig. 4 is a diagram showing an example of a tag file used when the program creation support device according to embodiment 1 generates a list of usage phrases.
Fig. 5 is a diagram showing an example of a device comment file used when the program creation support device according to embodiment 1 generates a list of use phrases.
Fig. 6 is a diagram showing an example of a list of usage expressions generated by the program creation support device according to embodiment 1.
Fig. 7 is a flowchart showing an example of operation 2 of the program creation support apparatus according to embodiment 1.
Fig. 8 is a flowchart showing an example of operation 3 of the program creation support apparatus according to embodiment 1.
Fig. 9 is a diagram showing an example of an input candidate list of terms generated by the candidate list generation unit of the program creation support device according to embodiment 1.
Fig. 10 is a diagram showing an example of a character input reception screen displayed by the program creation support device according to embodiment 1.
Fig. 11 is a diagram showing a configuration example of the program creation support device according to embodiment 2.
Fig. 12 is a diagram showing a configuration example of the program creation support device according to embodiment 3.
Fig. 13 is a diagram showing a configuration example of the program creation support device according to embodiment 4.
Detailed Description
Hereinafter, a program creation support device, a program creation support method, and a program creation support program according to embodiments of the present invention will be described in detail with reference to the drawings. The present invention is not limited to the present embodiment.
Embodiment mode 1
Fig. 1 is a diagram showing a configuration example of a program creation support device according to embodiment 1 of the present invention. The program creation support device 100 according to embodiment 1 includes an input operation receiving unit 1 including an input receiving unit 11 and a string input completion determining unit 12, a string analyzing unit 2, an external data analyzing unit 3, a use phrase list updating unit 4 including a phrase list generating unit 41 and a use frequency evaluating unit 42, a candidate list generating unit 5, a candidate display processing unit 6, a display unit 7, and a use phrase list 200.
The program creation support device 100 is a device that creates project data for operating a PLC. The program creation support device 100 has a function of supporting a job of creating project data. The item data includes a program executed by the PLC, parameters used when the PLC executes the program, and the like. The PLC is sometimes referred to as a sequencer. In addition, the program executed by the PLC is also referred to as a sequence program. Note that, in fig. 1, the description of the project data created by the program creation support apparatus 100 is omitted, but the program creation support apparatus 100 saves the project data being created.
Here, a description will be given of a configuration of hardware that realizes each of the components shown in fig. 1 of the program creation support apparatus 100. Fig. 2 is a diagram showing an example of the hardware configuration of the program creation support apparatus 100 according to embodiment 1. As shown in fig. 2, the program creation assistance device 100 is implemented by an arithmetic device 110, a storage device 120, a display device 130, an input device 140, and a communication device 150.
The computing device 110 is a CPU (Central Processing Unit), a system LSI (Large Scale integration), or the like. The storage device 120 is a ram (random Access memory), a rom (read Only memory), a hard disk drive, a ssd (solid State drive), a removable storage device, or a combination thereof. The display device 130 is a liquid crystal monitor, a display, or the like. The input device 140 is a mouse, a keyboard, a touch panel, or the like. The communication device 150 enables communication with other devices by wire or wirelessly.
Further, the hardware for realizing the program creation assistance apparatus 100 may be an electronic computer such as a personal computer. In the case where the program creation support device 100 is implemented by an electronic computer, a program for operating as the program creation support device 100 is installed in a storage device included in the electronic computer, and the program is executed by a processor of the electronic computer to implement the program creation support device 100. The program for operating the electronic computer as the program creation support device 100 is provided in a state of being written on a recording medium such as a cd (compact Disc) -ROM or a DVD (Digital Versatile Disc) -ROM, for example. The program for causing the electronic computer to operate as the program creation support device 100 may be provided via a communication network such as the internet.
As shown in fig. 2, the input receiving unit 11, the character string input completion determining unit 12, the character string analyzing unit 2, the external data analyzing unit 3, the term list generating unit 41, the use frequency evaluating unit 42, the candidate list generating unit 5, and the candidate display processing unit 6 are implemented by the arithmetic device 110. The display unit 7 is realized by a display device 130. The usage phrase list 200 is stored in the storage device 120. The storage device 120 also stores the project data 210 created by the program creation assistance device 100.
Returning to the description of fig. 1, in the input operation receiving unit 1, the input receiving unit 11 receives various input operations such as a character input operation for creating project data from a user. The character string input completion determination unit 12 determines whether or not the input of the character string by the input reception unit 11 is completed. For example, when an input completion button is present on the character input screen, the character string input completion determination unit 12 determines that the input of the character string is completed if the input completion button is pressed. The character string input completion determination unit 12 may determine that the input of the character string is completed when the enter key is pressed. The determination may also be made by other methods.
When the character string input completion determination unit 12 determines that the input of the character string is completed, the character string analysis unit 2 analyzes the character string for which the input is specified and extracts the expression included in the character string. The character string analysis unit 2 finds, for example, a predetermined character from a character string as a separation character, and extracts a character string sandwiched between two separation characters as a phrase. The separating characters are periods, pause, commas, spaces, etc. Or a structure in which the user can specify the separator character. The character string analysis unit 2 may check whether or not a general expression used for creating the item data is included in the character string, and extract the expression when the expression is included.
The external data analysis unit 3 acquires the item data 310 and the dictionary data 320 included in the external data 300, analyzes these data, and extracts terms. The external data analysis unit 3 analyzes a character string included in the data to find a separation character, and extracts a character string sandwiched between two separation characters as a phrase, in the same manner as the character string analysis unit 2. Fig. 1 shows an example in which the external data 300 includes a plurality of item data 310 and dictionary data 320, but the external data 300 may include at least 1 item data 310 or dictionary data 320.
The project data 310 included in the external data 300 is project data created by the program creation assistance device 100 or other devices in the past. The dictionary data 320 is configured to include character string data describing various expressions related to Factory Automation (FA).
In the usage expression list updating unit 4, the expression list generating unit 41 generates and updates the usage expression list 200 based on the evaluation result of the usage frequency of each expression obtained by the usage frequency evaluating unit 42. The use frequency evaluation unit 42 evaluates the use frequency of each of the use terms extracted by the character string analysis unit 2 and the external data analysis unit 3. In the present embodiment, the usage frequency evaluation unit 42 counts the number of times each usage term is used, and determines that the usage frequency is high if the count value is large. This determination method is an example, and the determination may be performed by other methods.
The term list 200 is a database in which the terms extracted by the character string analysis unit 2 and the external data analysis unit 3 are registered, and the terms are stored in a list form. The terms are registered in the term use list 200 in a state associated with the evaluation result, i.e., the number of times of use, of the use frequency evaluation unit 42. The details of the usage term list 200 will be described separately.
The candidate list generating unit 5 generates a candidate list of the phrases received by the input receiving unit 11 based on the phrases registered in the use phrase list 200 and the number of times of use, and the character string received by the input receiving unit 11. The candidate display processing unit 6 displays the candidates of the term received by the input receiving unit 11 on the display unit 7 according to the candidate list generated by the candidate list generating unit 5.
Next, the operation of the program creation support apparatus 100 will be described in detail. First, an operation of generating the usage expression list 200 used for assisting the creation of the program will be described with reference to fig. 3. Fig. 3 is a flowchart showing a 1 st operation example of the program creation support apparatus 100 according to embodiment 1, and shows an operation example in a case where the usage expression list 200 is generated based on the item data 310 included in the external data 300.
The operation of the program creation support device 100 for generating the usage phrase list 200 based on the item data 310 included in the external data 300 includes step S10 and step S20, where step S10 is to extract phrases registered in the usage phrase list 200 from the external data 300, and step S20 is to register the extracted phrases in the usage phrase list 200. When an operation to instruct the start of the generation of the usage expression list 200 is received from the user, the operation of generating the usage expression list 200 by the program creation support apparatus 100 is executed.
In step S10, in which the program creation support apparatus 100 extracts terms registered in the use term list 200 from the external data 300, first, the external data analysis unit 3 checks whether or not a tag file exists in the item data 310 (step S11). When the external data 300 includes a plurality of item data 310, the external data analysis unit 3 checks whether or not a tag file exists for each of the plurality of item data 310. The label file is a file in which a definition of a label assigned to a device, which is a variable whose value changes in accordance with the state of each instrument controlled by the PLC, is described.
The structure of the tag file is, for example, as shown in fig. 4. Fig. 4 is a diagram showing an example of a tag file used when the program creation support apparatus 100 according to embodiment 1 generates the usage expression list 200. As shown in fig. 4, the tag file includes a tag name indicating the name of the tag, a data type indicating the data type of the device to which the tag is attached, and a tag comment.
When a tag file exists (Yes in step S11), the external data analysis unit 3 extracts a term from the tag name and the tag comment included in the tag file (step S12). At this time, the external data analysis unit 3 finds the separator character from the tag name and the annotation of the tag as described above, and extracts a character string sandwiched between the two separator characters as a phrase. In addition, although the same expression may be used several times in the tag name and the tag comment, the external data analysis unit 3 extracts each of the repeatedly used expressions as 1 expression. For example, when the term "device" is used 10 times, the external data analysis unit 3 extracts the term "device" 10 times.
When the step S12 is executed or the tag file is not present (No in step S11), the external data analysis unit 3 checks whether or not the device comment file is present in the item data 310 (step S13). When the external data 300 includes a plurality of item data 310, the external data analysis unit 3 checks whether or not a device annotation file exists for each of the plurality of item data 310. The device comment file is a file in which comments of the above-described devices are written, and has a structure shown in fig. 5, for example. Fig. 5 is a diagram showing an example of a device comment file used when the program creation support apparatus 100 according to embodiment 1 generates the usage expression list 200. As shown in fig. 5, the device comment file includes a device name indicating the name of the device and a comment of the device.
When the device comment file exists (step S13: Yes), the external data analysis unit 3 extracts a term from the device comment (step S14). The external data analysis unit 3 extracts terms from the comment on the device in the same manner as in the case of extracting terms from the tag name and the comment on the tag.
When the external data analysis unit 3 ends the process of step S14 or the device comment file does not exist (No in step S13), the process of extracting the phrase registered in the use phrase list 200 from the external data 300 in step S10 ends and step S20 starts.
In step S20 in which the expression extracted by the program creation support device 100 is registered in the expression list 200, the use frequency evaluation unit 42 first checks whether or not there is an unexcited expression (step S21). The unexcited phrase is a phrase in which the registration process to the use phrase list 200 is not completed among the phrases extracted in step S10, and specifically, is a phrase in the process shown in steps S22 to S25 described later. Further, in step S21 immediately after step S20 is started, the determination result is "Yes".
If No unexevaded term is present (step S21: No), step S20 ends.
When there are unexevaded expressions (step S21: Yes), the use frequency evaluating unit 42 selects 1 of the unexevaded expressions (step S22), and checks whether or not the expressions are registered in the use expression list 200 (step S23). When the selected phrase is not registered in the phrase list 200 (step S23: No), the phrase list generator 41 registers the phrase in the phrase list 200 and sets the number of times of use of the phrase to 1 (step S25). The usage expression list 200 is data having a structure shown in fig. 6, for example. Fig. 6 is a diagram showing an example of the usage expression list 200 generated by the program creation support apparatus 100 according to embodiment 1. As shown in fig. 6, the term list 200 includes terms and the number of times of use. In step S25, the expression list generation unit 41 receives the expression selected in step S22 by the use frequency evaluation unit 42, registers the expression in the "expression" field of the use expression list 200, and sets 1 in the "number of uses" field. After completion of step S25, the process returns to step S21, and the use frequency evaluation unit 42 again checks whether or not there is an unexevated term.
On the other hand, when the selected phrase is registered in the phrase list 200 (step S23: Yes), the phrase list generator 41 adds 1 to the number of times of use of the phrase (step S24). That is, the phrase list generating unit 41 adds 1 to the number of times of use of the phrases selected in step S22 by the use frequency evaluating unit 42 among the phrases registered in the use phrase list 200. After completion of step S24, the process returns to step S21, and the use frequency evaluation unit 42 again checks whether or not there is an unexevated term.
The program creation support device 100 executes the above steps S10 to S20, thereby generating the usage phrase list 200 based on the external item data 310. In addition, in order not to use the same item data 310 repeatedly in the operation of generating the usage phrase list 200, the program creation support device 100 stores information of the item data 310 that has been used in the operation of generating the usage phrase list 200. The stored information is information that uniquely represents the item data 310, such as an item name and a file name of the item data 310.
The operation in the case of generating the usage expression list 200 based on the external item data 310 is described, but the operation in the case of generating the usage expression list 200 based on the dictionary data 320 is the operation shown in fig. 7. Fig. 7 is a flowchart showing an operation example of the 2 nd operation of the program creation support apparatus 100 according to embodiment 1, and shows an operation example in the case where the usage expression list 200 is generated based on the dictionary data 320 included in the external data 300.
As shown in fig. 7, the operation of the program creation support apparatus 100 in generating the use expression list 200 based on the dictionary data 320 included in the external data 300 is to replace step S10 of the flowchart shown in fig. 3 with step S30.
In step S30 shown in fig. 7, the external data analysis unit 3 extracts a term from the character string included in the dictionary data 320. The method of extracting the character string by the external data analysis unit 3 in step S30 is the same as the method of extracting the phrase from the tag name and the comment on the tag in step S12 shown in fig. 3, and the method of extracting the phrase from the comment on the device in step S14. In step S30, after the external data analysis unit 3 extracts terms from the character strings included in the dictionary data 320, the use frequency evaluation unit 42 and the term list generation unit 41 execute steps S21 to S25 to generate the use term list 200.
Next, an operation when the program creation support device 100 creates project data will be described. When receiving an input of a character in a creation operation of item data, the program creation support apparatus 100 displays a term of an input candidate on the display unit 7 based on the use term list 200. This operation assists the operator in inputting terms and unifies the terms used. Further, each time the program creation support device 100 receives an input of a character string, the usage expression list 200 is updated based on the input character string. If the action is represented by a flow chart, it is shown in fig. 8. Fig. 8 is a flowchart showing an example of the 3 rd operation of the program creation support apparatus 100 according to embodiment 1.
The input receiving unit 11 of the program creation support device 100 confirms whether or not there is an input of a character (step S41). If No character is input (No in step S41), the input receiving unit 11 continues the confirmation. When a character is input (Yes in step S41), the candidate list generation unit 5 and the candidate display processing unit 6 cause the display unit 7 to display the input candidate of the phrase (step S42). Specifically, the candidate list generating unit 5 reads out terms associated with the inputted characters from the use term list 200, arranges the read terms in order of the number of times of use from a large number to a small number, and generates a list of input candidates for terms. The candidate display processing unit 6 displays the list generated by the candidate list generating unit 5 on the display unit 7. The candidate list generation unit 5 generates a list shown in fig. 9, for example. Fig. 9 is a diagram showing an example of an input candidate list of terms generated by the candidate list generating unit 5 of the program creation support apparatus 100 according to embodiment 1. Fig. 9 shows an example of the input candidate list generated at the time when the input receiving unit 11 sequentially receives the input of the characters "m", "i", and "t" (see fig. 10). Fig. 10 is a diagram showing an example of a character input reception screen displayed by the program creation support apparatus 100 according to embodiment 1, and shows a display example when a label name is input. In the example shown in fig. 9, the number of uses of "MIT" is the largest and the number of uses of "MITE" is the largest. Therefore, on the character input reception screen shown in fig. 10, the input candidates of the phrases are displayed in the order of "MIT", "MITE", "MIT water level", "miosis", and … in accordance with the list of fig. 9.
In the examples shown in fig. 9 and 10, the candidate list generating unit 5 reads out a term that matches the front of the character string (in the example, "mit") being input from the use term list 200 to generate the input candidate list, but the present invention is not limited to this. The candidate list generating unit 5 may read a term locally matching the character being input and generate an input candidate list. When there are a plurality of expressions corresponding to the character string being input, the candidate list generating unit 5 may extract a certain number of expressions that are used a high number of times to generate the input candidate list.
Returning to the explanation of fig. 8, after step S42 is executed, the character string input completion determination unit 12 determines whether or not the character string is determined, that is, whether or not the input of the character string is completed (step S43). For example, when the display unit 7 displays a character input reception screen shown in fig. 10, and when an input completion button at the bottom right of the screen is pressed, the character string input completion determination unit 12 determines that the input of the character string has been completed. If the character string has not been specified (No in step S43), the process returns to step S41, and the input receiving section 11 confirms whether or not there is any character input.
When the character string is specified (Yes in step S43), the character string analysis unit 2 extracts a phrase from the specified character string (step S44). The method of extracting expressions from a character string by the character string analysis unit 2 is the same as the method of extracting expressions from a tag name and a tag comment by the external data analysis unit 3 in step S12 shown in fig. 3, and the method of extracting expressions from a device comment by step S14. In step S44, the character string analysis unit 2 extracts a term from the character string, and then executes steps S45 to S49. These steps S45 to S49 are the same as steps S21 to S25 shown in fig. 3 and 7, respectively. Therefore, the description of steps S45 to S49 is omitted.
As described above, the program creation support device 100 according to the present embodiment includes: a character string analysis unit 2 for analyzing a character string and extracting a term if the character string is input in the creation of the project data; and an external data analysis unit 3, upon receiving an instruction from the user, the external data analysis unit 3 analyzes the item data 310 and the dictionary data 320 included in the external data 300 to extract the term. The program creation support device 100 also includes a usage expression list updating unit 4, and the usage expression list updating unit 4 registers the usage expression list 200 with the terms extracted by the character string analysis unit 2 and the extrinsic data analysis unit 3 and the number of times of usage of the terms in association with each other. The program creation support device 100 further includes: a candidate list generation unit 5 that generates a candidate list of terms to be input when a character string input is received in the creation work of the item data, based on the usage term list 200; and a candidate display processing unit 6 for displaying candidates of the received input expression on the display unit 7 based on the candidate list. According to the program creation support device 100, the terms used for each of the plurality of item data can be unified, the terms can be unified with other item data, and the burden on the operator when creating the item data can be reduced.
In the present embodiment, the character string analysis unit 2 and the external data analysis unit 3 extract the same expression a plurality of times when the same expression is found by the analysis processing, but may count the number of times the same expression is extracted and output each expression and the number of times the same expression is extracted as the analysis result to the use frequency evaluation unit 42.
Embodiment mode 2
Fig. 11 is a diagram showing a configuration example of the program creation support device 100a according to embodiment 2. The program creation support device 100a is configured by adding an interface unit 8 to the program creation support device 100 according to embodiment 1. Since the program creation support apparatus 100 is the same except for having the interface unit 8, description is omitted for the configuration other than the interface unit 8.
The interface unit 8 includes a data writing unit 81 and a data reading unit 82. The data writing unit 81 writes the usage expression list 200 generated in the program creation support device 100a into a storage unit, not shown, of the PLC 400. The usage expression list 200 written in the PLC400 is stored in the PLC400 as a usage expression list 410. The data reading unit 82 reads the usage term list 410 held by the PLC400 from the PLC 400. The program creation support device 100a stores the use expression list 410 read from the PLC400 as the use expression list 200. When the program creation support device 100a reads the usage expression list 410 from the PLC400 in a state where the usage expression list 200 is stored, the read usage expression list 410 is overwritten and the usage expression list 200 is updated.
According to the program creation support device 100a of the present embodiment, when modifying the item data being executed by the PLC400, the usage expression list 410 corresponding to the modified item data can be used as the usage expression list 200, and the expressions used in the item data before modification and the expressions used in the modified item data can be unified. Therefore, the wording is unified, and the burden on the operator when modifying the item data can be reduced.
The program creation support apparatus 100a may be configured to store the usage expression list 410 only by the PLC400 without storing the usage expression list 200. In this case, the usage expression list updating unit 4 (the expression list generating unit 41 and the usage frequency evaluating unit 42) of the program creation support apparatus 100a performs the operation of generating the usage expression list 200 described in embodiment 1 when the PLC400 is connected.
Embodiment 3
Fig. 12 is a diagram showing a configuration example of the program creation support device 100b according to embodiment 3. The program creation support device 100b is configured by adding a data conversion unit 9 to the program creation support device 100a according to embodiment 2. Since the program creation support device 100a is the same except for having the data conversion unit 9, the description of the configuration other than the data conversion unit 9 is omitted.
The data conversion unit 9 converts the data format of the usage expression list 200 from the 1 st format to the 2 nd format and delivers the converted data format to the interface unit 8, and converts the data format of the usage expression list 410 read by the interface unit 8 from the PLC400 from the 2 nd format to the 1 st format. The data conversion unit 9 compresses the usage expression list 200 to generate a usage expression list 410, and decompresses the usage expression list 410 to generate the usage expression list 200, for example. That is, the data conversion unit 9 converts the data format from the 1 st format to the 2 nd format by performing compression processing on the usage term list 200, and converts the data format from the 2 nd format to the 1 st format by performing decompression processing on the usage term list 410. This can reduce the amount of data written to the PLC 400. Here, the data format is converted by compression processing and decompression processing, but the data format may be converted by other processing such as encryption processing and decryption processing.
Embodiment 4
Fig. 13 is a diagram showing a configuration example of the program creation support device 100c according to embodiment 4. The program creation support device 100c is configured such that the interface unit 8 of the program creation support device 100b according to embodiment 3 is replaced with the interface unit 8c, and the candidate list generation unit 5 is deleted. The PLC400c connected to the program creation support device 100c includes a candidate list generation unit 420. Since the program creation support apparatus 100b is the same except that the candidate list generation unit 5 is deleted and the interface unit 8c is provided, the description of the configuration other than the interface unit 8c is omitted.
The interface unit 8c of the program creation support apparatus 100c includes a data writing unit 81 and a data relay unit 83. The data writing unit 81 performs the same processing as the data writing unit 81 included in the interface unit 8 of the program creation support apparatus 100 b. The data relay unit 83 relays data between the input receiving unit 11 and the candidate display processing unit 6 and the PLC400 c.
The candidate list generating unit 420 of the PLC400c performs the same processing as the candidate list generating unit 5 included in the program creation support device 100 b. That is, the program creation support device 100c according to embodiment 4 causes the candidate list generation unit 420 of the PLC400c to execute the processing executed by the candidate list generation unit 5 of the program creation support device 100 b. The candidate list generating unit 420 receives the character string input by the input receiving unit 11 via the data relay unit 83, and generates a candidate list of expressions based on the received character string and the expression use list 410 stored in the PLC400 c. The candidate list generation unit 420 outputs the generated candidate list to the candidate display processing unit 6 via the data relay unit 83.
As described above, the PLC400c connected to the program creation support device 100c may have the candidate list generation unit 420, and the PLC400c may generate the candidate list of the expression.
The configuration shown in the above embodiment is an example of the contents of the present invention, and may be combined with other known techniques, and a part of the configuration may be omitted or modified within a range not departing from the gist of the present invention.
Description of the reference symbols
The input operation receiving unit 1, the character string analyzing unit 2, the external data analyzing unit 3, the language list updating unit for 4, the candidate list generating unit for 5 and 420, the candidate display processing unit 6, the display unit 7, the interface units 8 and 8c, the data converting unit 9, the input receiving unit 11, the character string input completion judging unit 12, the language list generating unit for 41, the frequency evaluating unit for 42, the data writing unit 81, the data reading unit 82, the data relaying unit 83, the program creation assisting unit 100, 100a, 100b and 100c, the arithmetic unit 110, the storage unit 120, the display unit 130, the input unit 140, the communication unit 150, the language list for 200 and 410, the project data 210 and 310, the external data 300, the dictionary data 320, and the PLC400 and 400 c.

Claims (8)

1. A program creation assistance apparatus that assists creation of project data containing a program executed by a programmable logic controller,
the program creation assistance device is characterized by comprising:
an input receiving unit that receives an input of a character string for creating the item data;
a character string analysis unit that analyzes the character string input by the input reception unit and extracts a term included in the character string;
an external data analysis unit that analyzes external data including at least one of item data that has been created and dictionary data in which various expressions including an expression used when creating the item data are registered, and extracts an expression included in the external data;
a usage frequency evaluation unit that calculates the number of times of use of each of the usage phrases based on the usage phrase extracted by the character string analysis unit and the external data analysis unit; and
and a candidate display processing unit that displays, on a display unit, candidates for the expression received as input by the input receiving unit based on the number of times of use calculated by the use frequency evaluation unit.
2. The program creation assistance apparatus according to claim 1,
the system comprises a term list generating unit for generating a term list, which is a list in which the terms are registered in a state associated with the number of times the terms are used.
3. The program creation assistance apparatus according to claim 2,
the system includes an interface unit that performs a write process of writing the usage term list to a programmable logic controller and a read process of reading the usage term list from the programmable logic controller.
4. The program creation assistance apparatus according to claim 3,
the system includes a data conversion unit that performs compression processing or encryption processing on the usage phrase list generated by the phrase list generation unit, converts the data format of the usage phrase list from a 1 st format to a 2 nd format, and passes the converted data format to the interface unit, and converts the data format of the usage phrase list read from the programmable logic controller by the interface unit from the 2 nd format to the 1 st format.
5. The program creation assistance apparatus according to claim 3,
the interface unit outputs the list of the usage expression and the character input by the input receiving unit to the programmable logic controller, and causes the programmable logic controller to create a candidate list of the expression input by the input receiving unit,
the candidate display processing unit causes the display unit to display the candidate list generated by the programmable logic controller.
6. The program creation assistance device according to any one of claims 2 to 4,
a candidate list generating unit that generates a candidate list of the phrases received by the input receiving unit based on the used phrase list and the characters received by the input receiving unit,
the candidate display processing unit causes the display unit to display the candidate list generated by the candidate list generating unit.
7. A program creation assistance method executed by a program creation assistance device that assists creation of project data containing a program executed by a programmable logic controller,
the program creation assistance method is characterized by including:
an input receiving step of receiving an input of a character string for creating the project data;
a character string analyzing step of analyzing the character string input in the input receiving step to extract a term included in the character string;
an external data analysis step of analyzing external data including at least one of created item data and dictionary data in which various expressions including an expression used when creating the item data are registered, and extracting an expression included in the external data;
a usage frequency evaluation step of calculating the number of times of use of each of the usage phrases, based on the usage phrases extracted in the character string analysis step and the external data analysis step; and
a candidate display step of displaying, on a display unit, candidates for the expression received in the input reception step based on the number of times of use calculated in the use frequency evaluation step.
8. A program creation assistance program that assists creation of project data containing a program executed by a programmable logic controller,
the program creation assistance program is characterized by comprising:
an input receiving step of receiving an input of a character string for creating the project data;
a character string analyzing step of analyzing the character string input in the input receiving step to extract a term included in the character string;
an external data analysis step of analyzing external data including at least one of item data created and dictionary data in which various expressions including an expression used when creating item data are registered, and extracting an expression included in the external data;
a usage frequency evaluation step of calculating the number of times of use of each of the usage phrases, based on the usage phrases extracted in the character string analysis step and the external data analysis step; and
a candidate display step of displaying, on a display unit, candidates for the expression received in the input reception step based on the number of times of use calculated in the use frequency evaluation step.
CN202080095205.6A 2020-02-04 2020-02-04 Program creation support device, program creation support method, and program creation support program Pending CN115039042A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2020/004143 WO2021156940A1 (en) 2020-02-04 2020-02-04 Program creation assistance device, program creation assistance method, and program creation assistance program

Publications (1)

Publication Number Publication Date
CN115039042A true CN115039042A (en) 2022-09-09

Family

ID=74673585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080095205.6A Pending CN115039042A (en) 2020-02-04 2020-02-04 Program creation support device, program creation support method, and program creation support program

Country Status (3)

Country Link
JP (1) JP6837608B1 (en)
CN (1) CN115039042A (en)
WO (1) WO2021156940A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103562847A (en) * 2011-05-27 2014-02-05 株式会社Ntt都科摩 Function presentation system, terminal device, server device, program and function presentation method
JP2014026514A (en) * 2012-07-27 2014-02-06 Fujitsu Ltd Character input support program, character input support method, and character input support device
WO2014132427A1 (en) * 2013-02-28 2014-09-04 発紘電機株式会社 Screen creation editor device and program
CN108027823A (en) * 2015-07-13 2018-05-11 帝人株式会社 Information processor, information processing method and computer program
JP6422614B1 (en) * 2018-08-09 2018-11-14 株式会社三菱電機ビジネスシステム Text input support system, text input support method, and text input support program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005032111A (en) * 2003-07-09 2005-02-03 Sharp Corp Character string processor, character string processing method, program and recording medium
JP5284117B2 (en) * 2009-01-13 2013-09-11 株式会社東芝 Word segmentation apparatus and method
JP5500896B2 (en) * 2009-07-27 2014-05-21 株式会社キーエンス Program creation support apparatus, program creation support method, and computer program
JP5303391B2 (en) * 2009-07-27 2013-10-02 株式会社キーエンス Program creation support apparatus, program creation support method, and computer program
JP5369156B2 (en) * 2011-09-16 2013-12-18 ヤフー株式会社 Terminal device, method and program
WO2014080490A1 (en) * 2012-11-22 2014-05-30 三菱電機株式会社 Program creation assistance device, method and recording medium
WO2019207791A1 (en) * 2018-04-27 2019-10-31 三菱電機株式会社 Programmable display system and programmable display device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103562847A (en) * 2011-05-27 2014-02-05 株式会社Ntt都科摩 Function presentation system, terminal device, server device, program and function presentation method
JP2014026514A (en) * 2012-07-27 2014-02-06 Fujitsu Ltd Character input support program, character input support method, and character input support device
WO2014132427A1 (en) * 2013-02-28 2014-09-04 発紘電機株式会社 Screen creation editor device and program
CN104903802A (en) * 2013-02-28 2015-09-09 发纮电机株式会社 Screen creation editor device and program
CN108027823A (en) * 2015-07-13 2018-05-11 帝人株式会社 Information processor, information processing method and computer program
JP6422614B1 (en) * 2018-08-09 2018-11-14 株式会社三菱電機ビジネスシステム Text input support system, text input support method, and text input support program

Also Published As

Publication number Publication date
JP6837608B1 (en) 2021-03-03
WO2021156940A1 (en) 2021-08-12
JPWO2021156940A1 (en) 2021-08-12

Similar Documents

Publication Publication Date Title
US20100223047A1 (en) Computer-assisted natural language translation
JP6440895B2 (en) Software analysis apparatus and software analysis method
JP6309795B2 (en) Information processing apparatus, information processing method, and program
JP6035843B2 (en) Formula input device, formula input method and program
JPWO2018079225A1 (en) Automatic prediction system, automatic prediction method, and automatic prediction program
JP5454783B2 (en) Variable name input support method in PLC programming, variable name input support device in PLC programming, and computer program
JP2007011604A (en) Fault diagnostic system and program
JP2007011605A (en) Model inspection support device for software operation specification, model inspection system provided with the same, and model inspection support program
CN104797993A (en) System-building assistance device
JP2008250708A (en) Input character string prediction apparatus and input character string prediction program
JP5342407B2 (en) Program analysis method, program analysis program, and program analysis apparatus
CN115039042A (en) Program creation support device, program creation support method, and program creation support program
KR100417655B1 (en) Regulating information generator and program development system composed of regulator
CN114817659A (en) Information processing device, question answering system, information processing method, and storage medium
JP7514943B2 (en) A method for analyzing logs from complex physical devices.
JP2020204855A (en) Keyword detection device and keyword detection method
JP2020160746A (en) Website design support device, website design support method, and program
JPWO2014136210A1 (en) Execution flow creation support program
JP6902513B2 (en) Source code generation support device and source code generation support method
US11921496B2 (en) Information processing apparatus, information processing method and computer readable medium
Nybom et al. A Systematic Mapping Study on Tools for API Documentation Generation
JP4404436B2 (en) Character input device
JP2023031614A (en) Change degree measuring device, method, and program
JP6643718B2 (en) Program analysis method, program analysis device, and analysis program
JP5968186B2 (en) Program creation support apparatus and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220909