CN113518947B - Program creation support device, program creation support method, and recording medium storing program creation support program - Google Patents
Program creation support device, program creation support method, and recording medium storing program creation support program Download PDFInfo
- Publication number
- CN113518947B CN113518947B CN201980093411.0A CN201980093411A CN113518947B CN 113518947 B CN113518947 B CN 113518947B CN 201980093411 A CN201980093411 A CN 201980093411A CN 113518947 B CN113518947 B CN 113518947B
- Authority
- CN
- China
- Prior art keywords
- program
- component
- common
- circuit
- input
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
- Stored Programmes (AREA)
Abstract
程序创建辅助装置(1)具有:共通判定部(13),其从定序程序内的电路整体提取共通的逻辑部分,针对提取出的共通的逻辑部分所包含的电路部件,生成表示针对相同位置的电路部件作出的设备分配在全部共通的逻辑部分中是否一致的附属信息;程序组件生成部(程序部件登记部(17)),其基于共通的逻辑部分和附属信息而生成程序组件;以及置换部(部件化处理部(19)),其将定序程序内的共通的逻辑部分各自以程序组件和与程序组件的输入输出参数连接的电路部件进行置换,程序组件生成部构成为,关于针对相同位置的电路部件作出的设备分配在全部共通的逻辑部分中一致的电路部件,能够由用户选择是否生成输入输出参数。
A program creation assisting device (1) includes a common determination unit (13) that extracts a common logic portion from the entire circuit in the sequencer program, and generates a representation for the same position for circuit components included in the extracted common logic portion Attachment information on whether the device assignments made by the circuit components are consistent in all the common logic parts; a program component generation part (program component registration part (17)), which generates a program component based on the common logic part and the attached information; and replacement A part (componentization processing part (19)) that replaces the common logic parts in the sequence program with program components and circuit components connected to the input and output parameters of the program components, and the program component generation unit is configured to Devices created by circuit components at the same location are assigned to circuit components that are identical in all common logic sections, and whether or not to generate input and output parameters can be selected by the user.
Description
技术领域technical field
本发明涉及对定序程序的创建进行辅助的程序创建辅助装置、程序创建辅助方法及程序创建辅助程序。The present invention relates to a program creation assistance device, a program creation assistance method, and a program creation assistance program for assisting the creation of a sequence program.
背景技术Background technique
可编程逻辑控制器(PLC:Programmable Logic Controller)是按照定序程序进行动作,对在工厂等设置的被控制仪器进行控制的控制装置。A programmable logic controller (PLC: Programmable Logic Controller) is a control device that operates according to a sequence program and controls a controlled device installed in a factory or the like.
作为定序程序的主要记述语言,存在梯形图语言。梯形图语言是由模拟了继电器电路的图形化表现来实现的编程语言,能够通过配置诸如触点以及线圈这样的对控制信号进行传输的电路部件,指定它们的连接关系,从而创建程序。此外,控制信号被分配至PLC的内部存储器,但该内部存储器被称为“设备”。另外,由梯形图语言记述的定序程序被称为梯形图程序。在梯形图程序中,将诸如X以及Y这样的符号与数值进行组合来表现设备,向触点以及线圈各自分配设备,由此表现出信号传输。As a main description language of sequence programs, there is a ladder language. Ladder language is a programming language implemented by simulating the graphical representation of relay circuits. It is possible to create programs by configuring circuit components such as contacts and coils that transmit control signals, and specifying their connection relationships. Also, the control signals are distributed to the PLC's internal memory, but this internal memory is called "device". In addition, a sequence program written in a ladder language is called a ladder program. In a ladder program, a device is represented by combining symbols and numerical values such as X and Y, and a device is assigned to a contact and a coil, thereby representing signal transmission.
这里,近年来,生产装备的大规模化不断发展,与此相伴,PLC所控制的被控制仪器的数量增加,定序程序也大规模化。因此,提出了用于能够高效地创建定序程序的技术。Here, in recent years, the large-scale production equipment has progressed, and the number of controlled devices controlled by PLC has increased, and the sequence program has also increased in scale. Therefore, techniques for enabling efficient creation of sequenced programs have been proposed.
例如,在专利文献1所记载的发明中,着眼于在1个定序程序中多次使用相同的电路图案这一情况,能够高效地创建定序程序。具体地说,在专利文献1所记载的发明中,从已创建的定序程序提取共通的电路图案而进行部件化,能够在之后的定序程序的创建等中重复利用部件化后的电路图案即程序部件。For example, in the invention described in Patent Document 1, the sequence program can be efficiently created by focusing on the fact that the same circuit pattern is used a plurality of times in one sequence program. Specifically, in the invention described in Patent Document 1, a common circuit pattern is extracted from an already created sequencer program to be componentized, and the componentized circuit pattern can be reused in the creation of a subsequent sequencer program, etc. the program component.
专利文献1:日本专利第5769900号公报Patent Document 1: Japanese Patent No. 5769900
发明内容SUMMARY OF THE INVENTION
在专利文献1所记载的发明中,自动地决定程序部件的定义即输入输出参数的定义。具体地说,作为从输入输出参数对针对共通的电路图案内的电路部件(触点、线圈等)作出的全部的设备分配进行传递者,定义出程序部件的输入输出参数。因此,例如在共通电路图案内存在5个触点、3个线圈的情况下,根据该共通电路图案生成的程序部件是输入参数为5个(=触点数),输出参数为3个(=线圈数)。In the invention described in Patent Document 1, the definitions of the program components, that is, the definitions of the input and output parameters are automatically determined. Specifically, the input and output parameters of the program components are defined as the transmitter of all device assignments made to circuit components (contacts, coils, etc.) in the common circuit pattern from the input and output parameters. Therefore, for example, when there are 5 contacts and 3 coils in the common circuit pattern, the program part generated from the common circuit pattern has 5 input parameters (= number of contacts) and 3 output parameters (= number of coils) ).
此外,在成为共通电路图案的提取源的多个电路中,关于设备分配相同的电路部件,无需从外部传递设备分配而作为参数,能够省略程序部件的参数。另外,在定序程序中,所使用的程序部件的输入输出参数的数量越少,可读性以及可维护性越高,另外,能够削减程序容量。但是,在专利文献1所记载的发明中,存在未考虑削减程序部件的输入输出参数的数量,即,未考虑定序程序的可读性以及可维护性的改善这一问题。In addition, among a plurality of circuits serving as extraction sources of a common circuit pattern, the same circuit components are assigned to the device, and the device assignment need not be transmitted as a parameter from the outside, and the parameter of the program component can be omitted. In addition, in the sequence program, the smaller the number of input and output parameters of the program components used, the higher the readability and maintainability, and the program capacity can be reduced. However, in the invention described in Patent Document 1, the reduction in the number of input and output parameters of the program components, that is, the improvement of the readability and maintainability of the sequence program is not considered.
本发明就是鉴于上述情况而提出的,其目的在于得到能够提高定序程序的可读性以及可维护性的程序创建辅助装置。The present invention has been made in view of the above-mentioned circumstances, and an object thereof is to obtain a program creation assistance device capable of improving the readability and maintainability of a sequence program.
为了解决上述课题,达成目的,本发明涉及的程序创建辅助装置具有共通判定部,该共通判定部从定序程序内的电路整体提取共通的逻辑部分,针对提取出的共通的逻辑部分所包含的电路部件,生成表示针对相同位置的电路部件作出的设备分配在全部共通的逻辑部分中是否一致的附属信息。另外,程序创建辅助装置具有:程序组件生成部,其基于由共通判定部提取出的共通的逻辑部分和附属信息而生成程序组件;以及置换部,其将定序程序内的共通的逻辑部分各自以程序组件和与程序组件的输入输出参数连接的电路部件进行置换。程序组件生成部生成具有对第1电路部件中的由用户指定的第1电路部件进行设备分配的输入输出参数和对不属于第1电路部件的电路部件即第2电路部件进行设备分配的输入输出参数的程序组件,第1电路部件是针对相同位置的电路部件作出的设备分配在全部共通的逻辑部分中一致的电路部件。In order to solve the above-mentioned problems and achieve the object, a program creation assisting device according to the present invention includes a common determination unit that extracts a common logic portion from the entire circuit in the sequence program, and provides a common logic portion for the extracted common logic portion. The circuit components generate additional information indicating whether or not the device assignments made to the circuit components at the same position are consistent in all the common logic sections. In addition, the program creation assisting device includes: a program component generation unit that generates a program component based on the common logic part and the attached information extracted by the common determination unit; and a replacement unit that replaces each of the common logic parts in the sequence program Replace with program components and circuit components connected to the input and output parameters of the program components. The program component generation unit generates an input/output parameter for device allocation to a first circuit component designated by a user among the first circuit components, and an input/output parameter for device allocation to a second circuit component, which is a circuit component that does not belong to the first circuit component In the program component of the parameter, the first circuit component is a circuit component in which device assignments made to circuit components at the same position are consistent in all common logic sections.
发明的效果effect of invention
本发明涉及的程序创建辅助装置取得能够提高定序程序的可读性以及可维护性的效果。The program creation assisting device according to the present invention achieves the effect of improving the readability and maintainability of the sequence program.
附图说明Description of drawings
图1是表示实施方式涉及的程序创建辅助装置的程序部件生成动作的概要的图。FIG. 1 is a diagram showing an outline of a program component generation operation of the program creation assisting device according to the embodiment.
图2是表示包含实施方式涉及的程序创建辅助装置而构成的程序创建系统的结构的图。FIG. 2 is a diagram showing a configuration of a program creation system including the program creation support device according to the embodiment.
图3是表示实施方式涉及的程序创建辅助装置的动作的一个例子的流程图。3 is a flowchart showing an example of the operation of the program creation assisting device according to the embodiment.
图4是表示程序部件的输入输出参数的生成指定画面的一个例子的图。FIG. 4 is a diagram showing an example of a screen for specifying generation of input and output parameters of a program component.
图5是表示执行了置换处理后的定序程序的确认用画面的一个例子的图。FIG. 5 is a diagram showing an example of a screen for checking the sequence program after the replacement process has been executed.
图6是表示实施方式涉及的程序创建辅助装置的硬件结构的图。FIG. 6 is a diagram showing a hardware configuration of the program creation assisting device according to the embodiment.
具体实施方式Detailed ways
以下,基于附图,对本发明的实施方式涉及的程序创建辅助装置、程序创建辅助方法及程序创建辅助程序详细进行说明。此外,本发明不限定于本实施方式。Hereinafter, the program creation assistance device, the program creation assistance method, and the program creation assistance program according to the embodiments of the present invention will be described in detail based on the drawings. In addition, this invention is not limited to this embodiment.
在以下的实施方式中,对“共通电路图案G”和“共通的逻辑部分H”如下进行区分、说明。In the following embodiments, the "common circuit pattern G" and the "common logic part H" are distinguished and described as follows.
·共通电路图案G:在定序程序中共通地出现的逻辑的图案。• Common circuit pattern G: A pattern of logic that appears in common in sequence programs.
·共通的逻辑部分H:出现共通电路图案G的定序程序的部位(区域)。• Common logic portion H: A portion (region) where the sequence program of the common circuit pattern G appears.
在以下的说明中,使得程序创建辅助装置所处理的定序程序是梯形图程序。In the following description, the sequence program to be handled by the program creation assisting device is a ladder program.
实施方式.implementation.
首先,对本实施方式涉及的程序创建辅助装置的动作的概要进行说明。本实施方式涉及的程序创建辅助装置至少具有以下所示的2个功能,使用这些功能对由用户进行的定序程序的创建进行辅助。First, the outline of the operation of the program creation assisting device according to the present embodiment will be described. The program creation assisting device according to the present embodiment has at least two functions shown below, and uses these functions to assist the creation of a sequence program by a user.
第1功能是从定序程序的电路整体对可部件化的共通的逻辑部分H进行检索而显示的功能。定序程序即梯形图程序由与触点或者线圈相当的命令和与数值运算等相当的应用命令构成。因此,程序创建辅助装置对仅在与触点相当的命令即触点相当命令、与线圈相当的命令即线圈相当命令、以及与数值运算等相当的应用命令的逻辑上共通的共通电路图案G和程序部位(共通的逻辑部分H)进行检索而显示。检索到的共通电路图案G是程序组件即程序部件(宏、子程序等)的候选。The first function is a function of searching and displaying the common logic part H that can be componentized from the entire circuit of the sequence program. A sequence program, that is, a ladder program is composed of commands corresponding to contacts or coils and application commands corresponding to numerical operations. Therefore, the program creation assisting device only logically shares the common circuit pattern G and the The program part (common logic part H) is searched and displayed. The retrieved common circuit pattern G is a candidate for a program component, that is, a program component (macro, subroutine, etc.).
第2功能是如果用户选择由第1功能检索出的共通电路图案G的某一者,则将选择出的共通电路图案G转换为程序部件(执行部件化)而进行登记的功能。另外,第2功能通过以所登记的程序部件的实例对由第1功能检索出的共通的逻辑部分H进行置换,从而将定序程序自动地部件化。The second function is a function of converting the selected common circuit pattern G into a program component (executing componentization) and registering when the user selects one of the common circuit patterns G retrieved by the first function. In addition, the second function replaces the common logic part H retrieved by the first function with an instance of the registered program component, thereby automatically componentizing the sequence program.
这里,在上述的第1功能中,在对共通的逻辑部分H进行检索时,程序创建辅助装置将针对电路中的诸如触点以及线圈这样的各电路部件作出的设备分配是否一致这一信息保存下来。即,就提取出的共通电路图案G而言,将在全部成为其起源的共通的逻辑部分H中,针对在相同的坐标配置的电路部件作出的设备分配是否一致作为附属信息而保存下来。这里的坐标示出电路部件的电路图案内的位置。因此,在相同的坐标配置的电路部件是指在共通电路图案G内的相同位置配置的电路部件。Here, in the above-mentioned first function, when searching for the common logic part H, the program creation assisting device stores information on whether or not the device assignments made to the respective circuit components such as contacts and coils in the circuit are consistent or not. down. That is, in the extracted common circuit pattern G, whether or not the device assignments made to circuit components arranged at the same coordinates in the common logic portion H which is the origin of all of them are stored as attached information. The coordinates here show the position within the circuit pattern of the circuit component. Therefore, the circuit components arranged at the same coordinates refer to the circuit components arranged at the same position within the common circuit pattern G.
另外,当在上述第2功能中生成程序部件时,程序创建辅助装置基于在通过第1功能来检索共通的逻辑部分H时保存下来的附属信息而决定程序部件的参数。具体地说,当在共通的逻辑部分H之间存在尽管配置于相同的坐标但设备分配不一致的电路部件的情况下,程序创建辅助装置生成具有用于向该电路部件分配设备的参数的程序部件。In addition, when the program component is generated in the second function, the program creation assisting device determines the parameters of the program component based on the attached information saved when the common logic part H is searched by the first function. Specifically, when there is a circuit component whose device assignment is inconsistent despite being arranged at the same coordinates among the common logic portions H, the program creation assisting apparatus generates a program component having a parameter for assigning a device to the circuit component .
由此,能够防止程序创建辅助装置所生成的程序部件的输入输出参数超过所需的量,能够提高定序程序的可读性以及可维护性。另外,能够削减定序程序的容量。Thereby, the input and output parameters of the program components generated by the program creation assisting device can be prevented from exceeding the required amount, and the readability and maintainability of the sequence program can be improved. In addition, the capacity of the sequencer program can be reduced.
图1是表示实施方式涉及的程序创建辅助装置的程序部件生成动作的概要的图。FIG. 1 is a diagram showing an outline of a program component generation operation of the program creation assisting device according to the embodiment.
如图1的阶段(A)所示,程序创建辅助装置从定序程序内提取共通的逻辑部分H。这里,程序创建辅助装置提取配置有电路模块2a~4a的模块作为共通的逻辑部分H。As shown in stage (A) of FIG. 1 , the program creation assisting apparatus extracts the common logic portion H from the sequencer program. Here, the program creation assisting apparatus extracts, as the common logic portion H, the modules in which the circuit modules 2a to 4a are arranged.
然后,如图1的阶段(B)所示,程序创建辅助装置基于电路模块2a~4a的逻辑而对可部件化的共通电路图案G进行设定。换言之,程序创建辅助装置将与电路模块2a~4a共通的逻辑设定给共通电路图案G。由此,程序创建辅助装置将电路模块2a~4a作为共通电路图案G来对待。Then, as shown in stage (B) of FIG. 1 , the program creation assisting device sets the common circuit pattern G that can be componentized based on the logic of the circuit modules 2 a to 4 a. In other words, the program creation assisting device sets logic common to the circuit modules 2a to 4a to the common circuit pattern G. Thereby, the program creation assisting device treats the circuit modules 2a to 4a as the common circuit pattern G.
此时,程序创建辅助装置对在提取出的电路模块2a~4a中针对相同坐标的电路部件作出的设备分配是否一致进行确认,对表示确认结果的信息(表示设备分配是否一致的信息)进行保存。在图1所示的例子中,将位于电路模块2a~4a的左上处的电路部件的坐标设为(0,0),将位于该部件的右侧相邻处的电路部件的坐标设为(1,0),将位于该部件的下一个右侧相邻处的电路部件的坐标设为(2,0)。另外,将位于左上的电路部件的下一个电路部件的坐标设为(0,1),将位于该部件的右侧相邻处的电路部件的坐标设为(1,1),将位于该部件的下一个右侧相邻处的电路部件的坐标设为(2,1)。此外,表示各电路部件的位置的坐标的决定方法不限定于此。另外,并非必须通过坐标来表示各电路部件的配置。只要能够知晓电路模块内的各电路部件的配置即可,也可以使用坐标之外的信息来表示各电路部件的配置。At this time, the program creation assisting device checks whether the device assignments made to the circuit components having the same coordinates in the extracted circuit modules 2a to 4a match, and stores information indicating the result of the check (information indicating whether the device assignments match) . In the example shown in FIG. 1 , the coordinates of the circuit components located at the upper left of the circuit blocks 2a to 4a are set to (0, 0), and the coordinates of the circuit components located adjacent to the right side of the component are set to ( 1, 0), the coordinates of the circuit component located next to the right side of the component are set to (2, 0). In addition, let the coordinates of the circuit component next to the circuit component located on the upper left be (0, 1), the coordinates of the circuit component located adjacent to the right side of the component are set to (1, 1), and the component located on the The coordinates of the circuit component next to the right adjacent to (2, 1). In addition, the determination method of the coordinate which shows the position of each circuit component is not limited to this. In addition, the arrangement of each circuit component does not necessarily have to be represented by coordinates. As long as the arrangement of each circuit component in the circuit module can be known, the arrangement of each circuit component may be expressed using information other than coordinates.
在图1所示的例子中,针对坐标为(0,0)以及(1,1)的电路部件作出的设备分配在电路模块2a~4a之间不一致,针对其它坐标的电路部件作出的设备分配在电路模块2a~4a之间是一致的。因此,程序创建辅助装置在阶段(B)中生成、保存表示如下情况的信息,即,针对坐标为(0,0)以及(1,1)的电路部件作出的设备分配在电路模块2a~4a之间不一致,针对坐标为(1,0)、(2,0)、(0,1)以及(2,1)的电路部件作出的设备分配在电路模块2a~4a之间一致。此外,在此后的说明中,根据需要,将设备分配在全部共通的逻辑部分H(在图1中为电路模块2a~4a)之间一致的电路部件称为第1电路部件,将不属于第1电路部件的电路部件称为第2电路部件。In the example shown in FIG. 1 , the device assignments made to the circuit components with coordinates (0, 0) and (1, 1) do not match among the circuit modules 2a to 4a, and the device assignments made to the circuit components with other coordinates It is consistent among the circuit modules 2a to 4a. Therefore, the program creation assisting device generates and saves, in the stage (B), information indicating that the device assignments made to the circuit components with coordinates (0, 0) and (1, 1) are in the circuit modules 2a to 4a Inconsistent among them, the device assignments made to the circuit components whose coordinates are (1,0), (2,0), (0,1), and (2,1) are consistent among the circuit modules 2a to 4a. In addition, in the following description, as necessary, a circuit component in which devices are assigned to all of the common logic sections H (circuit blocks 2a to 4a in FIG. 1 ) that match each other is referred to as a first circuit component, and does not belong to a first circuit component. A circuit part of the first circuit part is referred to as a second circuit part.
接下来,如图1的阶段(C)所示,程序创建辅助装置基于在阶段(B)中生成、保存的信息而使程序部件的输入输出参数的生成指定画面即画面101显示于显示装置。并且,程序创建辅助装置从用户接收生成输入输出参数的电路部件的选择。这里,针对设备分配不一致的电路部件,即,设备分配在电路模块2a~4a之间不完全一致的第2电路部件,必须生成输入输出参数。因此,在图1所示的画面101中,设为以下结构,即,针对坐标为(0,0)的电路部件以及坐标为(1,1)的电路部件进行使得用户知晓必须生成输入输出参数的显示,不接收由用户进行的选择操作。Next, as shown in stage (C) of FIG. 1 , the program creation assisting device displays a screen 101 that is a generation designation screen for input and output parameters of program components on the display device based on the information generated and stored in stage (B). Also, the program creation aid receives from the user a selection of circuit components that generate input and output parameters. Here, it is necessary to generate input/output parameters for the circuit components whose device assignments do not match, that is, the second circuit components whose device assignments do not completely match among the circuit modules 2a to 4a. Therefore, on the screen 101 shown in FIG. 1 , a configuration is set such that the circuit component with coordinates (0, 0) and the circuit component with coordinates (1, 1) are configured to let the user know that input and output parameters must be generated. , does not accept selections made by the user.
如果由用户进行的生成输入输出参数的第1电路部件的选择结束,则程序创建辅助装置转移至阶段(D)。即,程序创建辅助装置如果从用户接收到使生成输入输出参数的第1电路部件的选择结束的操作,则使向程序部件的置换后的概况图像确认画面即画面102显示于显示装置。在图1所例示的画面102中,设为将进行向程序部件的置换前的定序程序显示于左侧,将进行了向程序部件的置换后的定序程序显示于右侧的结构。另外,在画面102中是以可以知晓哪个电路模块被置换为程序部件的方式将程序部件与电路模块相关联的显示内容。画面102的右侧的显示内容遵从于在阶段(C)中从用户接收到的操作内容。在图1所例示的画面102中显示有由用户选择了与坐标为(2,0)的电路部件即线圈相对应的参数的生成的情况下的程序部件。When the selection of the first circuit component for generating the input/output parameters by the user is completed, the program creation assisting apparatus moves to the stage (D). That is, when the program creation assisting device receives an operation to end the selection of the first circuit component for generating input/output parameters from the user, it displays the screen 102 , which is a screen 102 , which is an overview image confirmation screen after replacement of the program component. In the screen 102 illustrated in FIG. 1 , the sequence program before the replacement to the program part is displayed on the left, and the sequence program after the replacement with the program part is displayed on the right. In addition, the screen 102 is a display content in which program components and circuit modules are associated so that it is possible to know which circuit module is replaced with the program component. The display content on the right side of the screen 102 follows the operation content received from the user in stage (C). The screen 102 illustrated in FIG. 1 displays a program component when the user selects the generation of parameters corresponding to the coil, which is a circuit component with coordinates (2, 0).
用户在确认了画面102之后,在进行程序部件的生成以及电路模块向程序部件的置换的情况下,按下画面102的右下的“OK(执行)”按钮。另外,用户在确认了画面102之后,在再次进行生成输入输出参数的电路部件的选择的情况下,按下画面102的右下的“取消”按钮。如果按下“取消”按钮,则程序创建辅助装置返回至阶段(C)。After confirming the screen 102 , the user presses the “OK (execute)” button at the lower right of the screen 102 when generating a program part and replacing the circuit module with the program part. In addition, after checking the screen 102 , the user presses the “Cancel” button at the lower right of the screen 102 when selecting the circuit components for generating the input/output parameters again. If the "Cancel" button is pressed, the program creation aid returns to stage (C).
如果按下画面102的“OK(执行)”按钮,则程序创建辅助装置转移至图1的阶段(E)而生成程序部件即FB(Function Block)。此时,程序创建辅助装置生成在阶段(D)中由显示装置显示的画面102的右侧所示的结构的程序部件。When the "OK (execute)" button on the screen 102 is pressed, the program creation support apparatus moves to the stage (E) in FIG. 1 and generates FB (Function Block), which is a program component. At this time, the program creation assisting device generates a program component having a structure shown on the right side of the screen 102 displayed by the display device in stage (D).
并且,如果程序部件的生成结束,则程序创建辅助装置转移至图1的阶段(F),将在阶段(A)中提取出的电路模块2a~4a置换为在阶段(E)中生成的程序部件而设为电路模块2b~4b。Then, when the generation of the program components is completed, the program creation assisting device moves to the stage (F) in FIG. 1 , and replaces the circuit modules 2a to 4a extracted in the stage (A) with the programs generated in the stage (E). The components are used as
通过这样的流程,程序创建辅助装置根据定序程序生成程序部件,并且,将定序程序的电路模块中的可置换为所生成的程序部件的电路模块置换为程序部件。另外,程序创建辅助装置将所生成的程序部件保存下来,以使得能够在进行其它定序程序的编辑、其它定序程序的开发等时使用。Through such a flow, the program creation assisting apparatus generates program components from the sequence program, and replaces circuit modules that can be replaced with the generated program components among the circuit modules of the sequence program with program components. In addition, the program creation assisting device saves the generated program component so that it can be used when editing another sequencer program, developing another sequencer program, or the like.
图2是表示包含实施方式涉及的程序创建辅助装置而构成的程序创建系统的结构的图。程序创建系统100具有程序创建辅助装置1、定序程序创建装置2、定序程序编辑装置3以及显示装置5。此外,在本实施方式中,对程序创建辅助装置1、定序程序创建装置2、定序程序编辑装置3以及显示装置5为单独的装置进行说明,但也可以将上述各装置所具有的各功能在1个装置例如个人计算机等计算机系统中实现。FIG. 2 is a diagram showing a configuration of a program creation system including the program creation support device according to the embodiment. The
程序创建辅助装置1如上所述,从定序程序提取共通的逻辑部分H,按照来自用户的指示而生成程序部件。As described above, the program creation support apparatus 1 extracts the common logic portion H from the sequence program, and generates program components in accordance with an instruction from the user.
定序程序创建装置2是创建在也被称为定序器的PLC(Programmable LogicController)系统中运行的定序程序的装置。定序程序创建装置2将创建出的定序程序输入至程序创建辅助装置1。The sequencer program creation device 2 is a device that creates a sequencer program to be run in a PLC (Programmable Logic Controller) system also called a sequencer. The sequencer program creation device 2 inputs the created sequencer program to the program creation support device 1 .
定序程序编辑装置3是使用在程序创建辅助装置1中被置换为程序部件的定序程序而进行定序程序的编辑的装置。显示装置5是液晶监视器等,按照来自程序创建辅助装置1的指示,对定序程序、共通电路图案G、程序部件等进行显示。The sequencer program editing device 3 is a device that edits the sequencer program using the sequencer program replaced by the program component in the program creation support device 1 . The display device 5 is a liquid crystal monitor or the like, and displays a sequence program, a common circuit pattern G, program parts, and the like in accordance with an instruction from the program creation support device 1 .
程序创建辅助装置1具有程序输入部11、程序储存部12、共通判定部13、检索结果存储部14、检索结果显示处理部15、指示输入部16、程序部件登记部17、程序部件储存部18、部件化处理部19、输出部20、部件定义显示处理部21和部件化概况图像显示处理部22。The program creation assistance device 1 includes a program input unit 11 , a program storage unit 12 , a common determination unit 13 , a search result storage unit 14 , a search result
程序输入部11接收从定序程序创建装置2输入的定序程序,将接收到的定序程序发送至程序储存部12。The program input unit 11 receives the sequence program input from the sequence program creation device 2 and transmits the received sequence program to the program storage unit 12 .
程序储存部12是存储有被进行共通的逻辑部分H的检索的定序程序(作为部件化对象的程序)的存储器等。程序储存部12如果从程序输入部11接收到定序程序,则对接收到的定序程序进行保存。另外,程序储存部12在从定序程序编辑装置3接收到请求等的情况下,将所请求的定序程序向输出部20输出。向输出部20输出的定序程序被从输出部20传送至定序程序编辑装置3。另外,程序储存部12在进行了置换处理的情况下,对置换处理后的定序程序进行保存,该置换处理是构成所保存的定序程序的电路模块中的被用于程序部件的生成的电路模块由后述的部件化处理部19置换为程序部件的处理。The program storage unit 12 is a memory or the like that stores a sequence program (a program to be componentized) for which the common logic part H is searched. When the program storage unit 12 receives the sequence program from the program input unit 11, it stores the received sequence program. In addition, the program storage unit 12 outputs the requested sequence program to the output unit 20 when receiving a request or the like from the sequence program editing device 3 . The sequence program output to the output unit 20 is transmitted from the output unit 20 to the sequence program editing device 3 . In addition, the program storage unit 12 stores the sequence program after the replacement process, which is used for generation of program components among the circuit modules constituting the stored sequence program, when the replacement process is performed. The circuit modules are replaced by the processing of program components by the componentization processing unit 19 to be described later.
共通判定部13读入在程序储存部12储存的定序程序,对在其中是否存在共通的逻辑部分H进行判定。共通判定部13在存在共通的逻辑部分H的情况下,提取共通的逻辑部分H中的共通的逻辑作为共通电路图案G。换言之,共通判定部13提取配置于共通的逻辑部分H中的电路图案所共通地呈现的逻辑的图案而作为共通电路图案G。此外,程序创建辅助装置1在对定序程序中是否存在共通的逻辑部分H进行判定时,利用公知的代码克隆检测方法等。代码克隆检测方法是指从表示程序的源代码之中寻找类似的代码块的方法。构成源代码的类似的代码块被称为代码克隆。The common determination part 13 reads the sequence program stored in the program storage part 12, and determines whether there exists a common logic part H in it. The common determination unit 13 extracts the common logic in the common logic part H as the common circuit pattern G when the common logic part H exists. In other words, the common determination unit 13 extracts, as the common circuit pattern G, a pattern of logic that is commonly represented by the circuit patterns arranged in the common logic portion H. In addition, the program creation assisting apparatus 1 uses a known code clone detection method or the like when judging whether or not the common logic portion H exists in the sequence program. The code clone detection method refers to a method of finding similar code blocks from the source code representing the program. Similar blocks of code that make up source code are called code clones.
另外,共通判定部13对在全部共通的逻辑部分H中针对在相同的坐标处配置的电路部件作出的设备分配是否一致进行确认,生成共通电路图案G的附属信息而作为表示确认结果的信息。共通判定部13针对多个共通的逻辑部分H所包含的多个电路部件的每一者,对设备分配在全部共通的逻辑部分H中是否一致进行确认,生成表示确认结果的附属信息。附属信息示出针对共通的逻辑部分H所包含的多个电路部件各自的确认结果。例如,在共通的逻辑部分H包含4个电路部件#1~电路部件#4的情况下,附属信息构成为包含针对电路部件#1作出的设备分配在全部共通的逻辑部分H中是否一致的信息、针对电路部件#2作出的设备分配在全部共通的逻辑部分H中是否一致的信息、针对电路部件#3作出的设备分配在全部共通的逻辑部分H中是否一致的信息和针对电路部件#4作出的设备分配在全部共通的逻辑部分H中是否一致的信息。In addition, the common determination unit 13 confirms whether the device assignments made to the circuit components arranged at the same coordinates in all the common logic parts H are consistent, and generates auxiliary information of the common circuit pattern G as information indicating the confirmation result. The common determination unit 13 , for each of the plurality of circuit components included in the plurality of common logic sections H, checks whether the device assignments are consistent in all the common logic sections H, and generates attached information indicating the check result. The attached information shows the respective confirmation results for a plurality of circuit components included in the common logic portion H. For example, when the common logic part H includes four circuit parts #1 to #4, the attached information is configured to include information on whether or not the device assignment for the circuit part #1 is consistent with all the common logic parts H , information on whether the device assignments made to circuit component #2 are consistent in all common logic sections H, information on whether the device allocations made to circuit component #3 are consistent in all common logic sections H, and information for circuit component #4 Information on whether or not the device assignments made are consistent with all the common logical parts H.
检索结果存储部14是将共通判定部13提取出的共通电路图案G的信息以及附属信息作为检索结果而存储下来的存储器等。即,如果由共通判定部13提取出共通电路图案G,则检索结果存储部14接收表示提取到的共通电路图案G的结构的信息和附属信息,将接收到的各信息作为检索结果而进行保存。以下,将表示共通电路图案G的结构的信息称为结构信息。The retrieval result storage unit 14 is a memory or the like that stores the information of the common circuit pattern G and the attached information extracted by the common determination unit 13 as a retrieval result. That is, when the common circuit pattern G is extracted by the common determination unit 13 , the search result storage unit 14 receives the information indicating the structure of the extracted common circuit pattern G and the attached information, and stores each received information as a search result. . Hereinafter, the information indicating the structure of the common circuit pattern G is referred to as structure information.
检索结果显示处理部15将检索结果存储部14所保存的检索结果以一览格式显示于显示装置5。如果由用户从显示中的检索结果内选择了进行部件化的共通电路图案G,则检索结果显示处理部15将被选择的共通电路图案G的结构信息以及附属信息作为与共通电路图案G相关的信息而发送至部件定义显示处理部21。The retrieval result
指示输入部16接收由用户输入的指示,将表示指示内容的信息输出至检索结果显示处理部15、部件定义显示处理部21以及部件化概况图像显示处理部22的一部分或者全部。用户的指示是与检索相关的指示即检索指示、与部件化相关的指示即部件指定指示、参数生成与否指示以及部件化确定指示、或者与输出相关的指示即输出指示等。The instruction input unit 16 receives an instruction input by the user, and outputs information indicating the contents of the instruction to a part or all of the retrieval result
检索指示是从定序程序内对共通电路图案G进行检索的指示,从指示输入部16发送至共通判定部13。部件指定指示是从检索结果之中指定进行部件化的共通电路图案G的指示,从指示输入部16发送至检索结果显示处理部15。参数生成与否指示是对与共通电路图案G相对应的程序部件的输入输出参数的生成与否进行指定的指示,从指示输入部16发送至部件定义显示处理部21。部件化确定指示是基于将定序程序内的一部分的电路模块置换为程序部件后的概况图像(image)的确认结果而指定是确定进行部件化还是取消部件化的指示。部件化确定指示被从指示输入部16发送至部件化概况图像显示处理部22。输出指示是将定序程序输出至外部装置即定序程序编辑装置3等的指示,从指示输入部16发送至输出部20。The search instruction is an instruction to search for the common circuit pattern G from within the sequence program, and is sent from the instruction input unit 16 to the common determination unit 13 . The component designation instruction is an instruction to designate the common circuit pattern G to be componentized from among the search results, and is sent from the instruction input unit 16 to the search result
如果从后述的部件化概况图像显示处理部22发送来程序部件的定义信息,则程序部件登记部17基于发送来的定义信息,将共通电路图案G转换为程序部件而进行部件化。即,程序部件登记部17是基于共通电路图案G以及定义信息而生成程序组件即程序部件的程序组件生成部。另外,程序部件登记部17将生成的程序部件登记于程序部件储存部18。When definition information of a program component is transmitted from the componentization overview image display processing unit 22 to be described later, the program component registration unit 17 converts the common circuit pattern G into a program component and performs componentization based on the transmitted definition information. That is, the program component registration unit 17 is a program component generation unit that generates a program component, that is, a program component based on the common circuit pattern G and the definition information. In addition, the program component registration unit 17 registers the generated program component in the program component storage unit 18 .
程序部件储存部18是按照来自程序部件登记部17的指示而对程序部件进行储存的存储器等。程序部件储存部18对从程序部件登记部17接收到的程序部件进行保存。程序部件储存部18在部件化处理部19进行将定序程序的电路模块置换为程序部件的处理时,将所保存的程序部件输出至部件化处理部19。The program component storage unit 18 is a memory or the like that stores program components in accordance with an instruction from the program component registration unit 17 . The program component storage unit 18 stores the program components received from the program component registration unit 17 . The program component storage unit 18 outputs the stored program components to the componentization processing unit 19 when the componentization processing unit 19 performs the process of replacing the circuit modules of the sequence program with the program components.
部件化处理部19将在程序储存部12储存的定序程序中的共通的逻辑部分H置换为程序部件储存部18所保存的程序部件。部件化处理部19使置换后的定序程序存储于程序储存部12。The componentization processing unit 19 replaces the common logic part H in the sequence program stored in the program storage unit 12 with the program components stored in the program component storage unit 18 . The componentization processing unit 19 stores the replaced sequence program in the program storage unit 12 .
输出部20在被从指示输入部16发送来输出指示的情况下,从程序储存部12读取由输出指示指定的定序程序而输出至外部装置即定序程序编辑装置3。在除了定序程序编辑装置3以外还有其它外部装置与输出部20连接的情况下,输出部20将由输出指示指定的定序程序输出至由输出指示指定的外部装置。When an output instruction is sent from the instruction input unit 16 , the output unit 20 reads the sequence program specified by the output instruction from the program storage unit 12 and outputs it to the sequence program editing device 3 , which is an external device. When an external device other than the sequence program editing device 3 is connected to the output unit 20, the output unit 20 outputs the sequence program specified by the output instruction to the external device specified by the output instruction.
部件定义显示处理部21基于从检索结果显示处理部15发送来的与共通电路图案G相关的信息,使程序部件的输入输出参数的生成指定画面(与图1所示的画面101相当)显示于显示装置5。部件定义显示处理部21在显示有程序部件的输入输出参数的生成指定画面的状态下,接收由用户进行的要生成的输入输出参数的指定。如果由用户进行的要生成的输入输出参数的指定结束,则部件定义显示处理部21基于由用户进行的指定结果而生成程序部件的定义信息,将生成的定义信息发送至部件化概况图像显示处理部22。The part definition display processing unit 21 displays the generation designation screen (corresponding to the screen 101 shown in FIG. 1 ) for the input and output parameters of the program parts on the basis of the information on the common circuit pattern G sent from the retrieval result
部件化概况图像显示处理部22基于从部件定义显示处理部21发送来的程序部件的定义信息而创建将共通的逻辑部分H置换为程序部件后的定序程序的图像(确认用画面),使其显示于显示装置5。具体地说,部件化概况图像显示处理部22使与图1所示的画面102相当的画面显示于显示装置5。另外,部件化概况图像显示处理部22在使置换后的定序程序的确认用画面显示于显示装置5的状态下,从用户接收实际上是否进行置换的判断结果的输入。部件化概况图像显示处理部22如果接收到表示进行置换的判断结果的输入,则将从部件定义显示处理部21接收到的程序部件的定义信息发送至程序部件登记部17。另一方面,部件化概况图像显示处理部22如果接收到表示不进行置换的判断结果的输入,则将判断结果通知给部件定义显示处理部21。接收到通知的部件定义显示处理部21使程序部件的输入输出参数的生成指定画面再次显示于显示装置5,从用户接收要生成的输入输出参数的指定。The componentization overview image display processing unit 22 creates an image (a confirmation screen) of the sequence program in which the common logic part H is replaced by the program component based on the definition information of the program component sent from the component definition display processing unit 21, It is displayed on the display device 5 . Specifically, the componentized overview image display processing unit 22 causes the display device 5 to display a screen corresponding to the screen 102 shown in FIG. 1 . In addition, the componentized overview image display processing unit 22 receives input from the user of the judgment result of whether the replacement is actually performed in a state where the screen for checking the sequence program after replacement is displayed on the display device 5 . The componentization overview image display processing unit 22 transmits the program component definition information received from the component definition display processing unit 21 to the program component registration unit 17 upon receiving an input indicating the result of determination to perform replacement. On the other hand, the componentized overview image display processing unit 22 notifies the component definition display processing unit 21 of the determination result when receiving an input indicating that the replacement is not to be performed. The component definition display processing unit 21 that has received the notification causes the display device 5 to display the input/output parameter generation specification screen of the program component again on the display device 5, and receives specification of the input/output parameter to be generated from the user.
图3是表示实施方式涉及的程序创建辅助装置1的动作的一个例子的流程图。图3的流程图示出由程序创建辅助装置1根据定序程序创建程序部件,生成将共通的逻辑部分H置换为程序部件的定序程序的情况下的处理流程。FIG. 3 is a flowchart showing an example of the operation of the program creation assisting device 1 according to the embodiment. The flowchart of FIG. 3 shows the flow of processing when the program creation assisting apparatus 1 creates a program component from a sequence program and generates a sequence program in which the common logic portion H is replaced by the program component.
就程序创建辅助装置1而言,设为在程序储存部12中保存有定序程序。即,完成了程序创建辅助装置1的程序输入部11从定序程序创建装置2接收定序程序,将接收到的定序程序储存于程序储存部12的处理。In the program creation assisting device 1 , it is assumed that a sequence program is stored in the program storage unit 12 . That is, the program input unit 11 of the program creation assisting device 1 receives the sequence program from the sequencer program creation device 2 and stores the received sequence program in the program storage unit 12 .
程序创建辅助装置1接收共通的逻辑部分H的检索指示,开始程序部件化处理(步骤S1)。即,如果由用户从指示输入部16输入了共通电路图案G(共通的逻辑部分H)的检索指示,则检索指示被从指示输入部16发送至共通判定部13。由此,程序创建辅助装置1开始程序部件化处理。The program creation support apparatus 1 receives the search instruction of the common logic part H, and starts the program componentization process (step S1). That is, when a search instruction for the common circuit pattern G (common logic part H) is input from the instruction input unit 16 by the user, the search instruction is sent from the instruction input unit 16 to the common determination unit 13 . Thereby, the program creation support apparatus 1 starts the program componentization process.
共通判定部13如果从指示输入部16接收到检索指示,则从程序储存部12所保存的定序程序提取共通电路图案G。共通判定部13例如从定序程序提取共通的逻辑部分H,从在该共通的逻辑部分H中配置的电路模块(图1所示的电路模块2a~4a等)提取共通电路图案G(步骤S2)。另外,共通判定部13针对构成提取出的共通的逻辑部分H的各电路部件,确认针对电路部件作出的设备分配在全部共通的逻辑部分H中是否一致,生成表示确认结果的附属信息。附属信息是表示构成共通的逻辑部分H的电路部件各自属于第1电路部件以及第2电路部件中的哪一者的信息。When receiving the search instruction from the instruction input unit 16 , the common determination unit 13 extracts the common circuit pattern G from the sequence program stored in the program storage unit 12 . The common determination unit 13 extracts, for example, a common logic part H from a sequence program, and extracts a common circuit pattern G from the circuit blocks (circuit blocks 2a to 4a shown in FIG. 1 , etc.) arranged in the common logic part H (step S2 ). ). In addition, the common determination unit 13 confirms whether the device assignments made to the circuit components are consistent with all the common logic parts H for each circuit component constituting the extracted common logic part H, and generates attached information indicating the confirmation result. The attached information is information indicating which one of the first circuit component and the second circuit component each of the circuit components constituting the common logic portion H belongs to.
如果共通电路图案G的提取以及附属信息的生成结束,则共通判定部13将提取出的共通电路图案G的结构信息以及附属信息与该共通电路图案G的件数相关联地储存于检索结果存储部14(步骤S3)。When the extraction of the common circuit pattern G and the generation of the attached information are completed, the common determination unit 13 stores the extracted configuration information and the attached information of the common circuit pattern G in the retrieval result storage unit in association with the number of the common circuit patterns G. 14 (step S3).
另外,共通判定部13将共通的逻辑部分H的位置与对提取了共通的逻辑部分H的定序程序进行识别的信息即程序识别信息相关联地发送至部件化处理部19。共通的逻辑部分H的位置例如是梯形图程序的行编号。Also, the common determination unit 13 transmits the position of the common logic portion H to the componentization processing portion 19 in association with program identification information that identifies the sequence program from which the common logic portion H is extracted. The position of the common logic part H is, for example, the line number of the ladder program.
检索结果存储部14如果从共通判定部13接收到信息,则对接收到的信息进行存储。如果从共通判定部13输出的信息被储存于检索结果存储部14,则检索结果显示处理部15基于检索结果存储部14所保存的信息,使由共通判定部13提取出的共通电路图案G的结构以及件数一览显示于显示装置5。显示装置5例如对图1所示的共通电路图案G及其件数(在图1中为3件)进行显示(步骤S4)。从共通判定部13输出的信息是否已被储存于检索结果存储部14例如是通过由检索结果显示处理部15对检索结果存储部14的状态定期地进行确认而掌握的。此外,共通判定部13也可以将信息已储存于检索结果存储部14这一情况通知给检索结果显示处理部15。The retrieval result storage unit 14, upon receiving information from the common determination unit 13, stores the received information. When the information output from the common determination unit 13 is stored in the search result storage unit 14 , the search result
在执行了步骤S4之后,程序创建辅助装置1等待由用户选择进行部件化的共通电路图案G。指示输入部16如果从用户接收到进行部件化的共通电路图案G的选择(步骤S5),则生成表示选择出的共通电路图案G的部件指定指示而发送至检索结果显示处理部15。检索结果显示处理部15从检索结果存储部14读取部件指定指示所示的共通电路图案G的结构信息以及附属信息而发送至部件定义显示处理部21。After step S4 is executed, the program creation assisting device 1 waits for the common circuit pattern G to be selected by the user for componentization. Upon receiving the selection of the common circuit pattern G to be componentized from the user (step S5 ), the instruction input unit 16 generates a component designation instruction indicating the selected common circuit pattern G and sends it to the search result
部件定义显示处理部21如果从检索结果显示处理部15接收到共通电路图案G的结构信息以及附属信息,则基于接收到的信息,使与在步骤S5中由用户选择出的共通电路图案G对应的程序部件的输入输出参数的生成指定画面显示于显示装置5(步骤S6)。部件定义显示处理部21在步骤S6中例如使图4所示的内容的画面作为程序部件的输入输出参数的生成指定画面而显示于显示装置5。图4是表示程序部件的输入输出参数的生成指定画面的一个例子的图。程序部件的输入输出参数的生成指定画面是在由用户指定作为程序部件的输入输出参数而生成的参数的情况下显示的。即,程序创建辅助装置1在从用户接收作为程序部件的输入输出参数而生成的参数的指定的情况下使程序部件的输入输出参数的生成指定画面显示于显示装置5。图4所例示的程序部件的输入输出参数的生成指定画面(以下,记载为画面101)包含“坐标”、“电路符号”、“设备分配的一致·不一致”以及“输入输出参数的生成与否”。“坐标”示出共通电路图案G所包含的各电路部件的在共通电路图案G中的位置。“电路符号”示出在同一行的“坐标”所示的位置处存在的电路部件的种类。“设备分配的一致·不一致”示出针对在同一行的“坐标”所示的位置处存在的电路部件作出的设备分配在全部共通的逻辑部分H中是否一致。即,“设备分配的一致·不一致”示出在同一行的“坐标”所示的位置处存在的电路部件属于第1电路部件以及第2电路部件的哪一者。针对“设备分配的一致·不一致”为“一致”的电路部件(第1电路部件),一并显示出被分配给电路部件的设备。例如,分配给坐标为(1,0)的电路部件的设备为“M2”。“输入输出参数的生成与否”示出是否生成用于对在同一行的“坐标”所示的位置处存在的电路部件分配设备的输入输出参数。用户在画面101被显示于显示装置5的状态时,对鼠标等输入装置进行操作而对“输入输出参数的生成与否”的项目作出勾选或者去除勾选,由此对要生成的输入输出参数的指定进行变更。但是,关于“设备分配的一致·不一致”为“不一致”的电路部件(第2电路部件),输入输出参数的生成是必须的。因此,程序创建辅助装置1将“设备分配的一致·不一致”为“不一致”的电路部件的“输入输出参数的生成与否”固定为作出了勾选的状态,不接收由用户进行的将勾选去除的操作。The component definition display processing unit 21, upon receiving the configuration information and the attached information of the common circuit pattern G from the search result
在执行了步骤S6之后,程序创建辅助装置1在使图4所示的画面101显示于显示装置5的状态下,等待由用户选择程序部件的要生成的输入输出参数以及选择操作的结束。如果由用户进行的选择操作结束,即,从用户接收到要生成的输入输出参数的选择(步骤S7),则指示输入部16生成表示选择出的输入输出参数的参数生成与否指示而发送至部件定义显示处理部21。指示输入部16例如在由用户按下了在图4中省略了记载的选择操作结束按钮的情况下,生成参数生成与否指示。这里,设为按照图4所示的画面101的内容来生成参数生成与否指示而继续进行说明。即,设为用户指定了用于对坐标(2,0)的线圈分配设备的输入输出参数的生成而继续进行说明。在这种情况下,参数生成与否指示包含对用于分别向坐标(0,0)的a触点、坐标(2,0)的线圈以及坐标(1,1)的b触点分配设备的输入输出参数的生成进行指定的信息。此外,执行上述步骤S6以及S7的部件定义显示处理部21以及指示输入部16构成选择接收部,该选择接收部供用户从第1电路部件之中选择在共通的逻辑部分H被置换为程序部件之后需要进行使用了输入输出参数的设备分配的第1电路部件。After step S6 is executed, the program creation assisting device 1 waits for the user to select the input/output parameters to be generated of the program component and to complete the selection operation with the screen 101 shown in FIG. 4 displayed on the display device 5 . When the selection operation by the user is completed, that is, the selection of the input/output parameter to be generated is received from the user (step S7), the instructing input unit 16 generates a parameter generation instruction indicating the selected input/output parameter, and transmits it to the The part definition display processing unit 21 . The instruction input unit 16 generates a parameter generation/non-instruction instruction when, for example, the user presses a selection operation end button whose description is omitted in FIG. 4 . Here, the description will be continued on the assumption that a parameter generation or not instruction is generated in accordance with the content of the screen 101 shown in FIG. 4 . That is, the description will be continued assuming that the user has designated generation of input and output parameters for the coil assignment device to the coordinates (2, 0). In this case, whether the parameter is generated or not indicates that the device is used to assign the device to the a-contact at coordinates (0, 0), the coil at coordinates (2, 0), and the b-contact at coordinates (1, 1), respectively. Generation of input and output parameters specifies information. In addition, the component definition display processing unit 21 and the instruction input unit 16 that execute the above-mentioned steps S6 and S7 constitute a selection receiving unit for the user to select from the first circuit components. The common logic part H is replaced with a program component. After that, the first circuit part for device assignment using input and output parameters is required.
部件定义显示处理部21如果接收到参数生成与否指示,则将接收到的参数生成与否指示和从检索结果显示处理部15接收而保存的共通电路图案G的结构信息发送至部件化概况图像显示处理部22。When the component definition display processing unit 21 receives the parameter generation instruction, it transmits the received parameter generation instruction and the configuration information of the common circuit pattern G received and saved from the retrieval result
部件化概况图像显示处理部22如果从部件定义显示处理部21接收到参数生成与否指示和共通电路图案G的结构信息,则对接收到的信息进行保存。另外,部件化概况图像显示处理部22基于从部件定义显示处理部21接收到的信息和在程序储存部12中保存的定序程序,使将共通的逻辑部分H置换为程序部件后的定序程序的确认用画面显示于显示装置5(步骤S8)。部件化概况图像显示处理部22在步骤S8中例如使图5所示的内容的画面作为置换处理执行后的定序程序的确认用画面而显示于显示装置5。图5是表示置换处理执行后的定序程序的确认用画面的一个例子的图。置换处理执行后的定序程序的确认用画面是用于对共通的逻辑部分H被以程序部件进行置换后的定序程序的结构进行确认的画面。即,部件化概况图像显示处理部22是使得用于对以程序部件进行置换后的定序程序的结构进行确认的画面显示于显示装置5的确认显示处理部。图5所示的置换处理执行后的定序程序的确认用画面(以下,记载为画面102)是将置换前的定序程序和置换后的定序程序横向排列的结构。画面102的左侧是将共通的逻辑部分H置换为程序部件前的定序程序(置换前的程序),画面102的右侧是将共通的逻辑部分H置换为程序部件后的定序程序(置换后的程序)。部件化概况图像显示处理部22也可以对置换前的定序程序的大小以及置换后的定序程序的大小进行计算而显示于画面102。在这种情况下,用户能够事先知晓由将共通的逻辑部分H置换为程序部件所带来的程序大小的削减效果,能够作为是否执行置换的判断材料。在图5中,示出了针对1个共通的逻辑部分H,对置换为程序部件后的定序程序的结构进行显示的画面的例子,但也可以针对多个共通的逻辑部分H,对置换为程序部件后的定序程序的结构进行显示。另外,部件化概况图像显示处理部22也可以按照来自用户的操作而使画面102的显示上下滚动,能够针对全部共通的逻辑部分H,由用户确认置换为程序部件后的定序程序的结构。The componentization overview image display processing unit 22 stores the received information upon receiving the parameter generation instruction and the configuration information of the common circuit pattern G from the component definition display processing unit 21 . In addition, the componentization overview image display processing unit 22 replaces the common logic portion H with the program component based on the information received from the component definition display processing unit 21 and the sequence program stored in the program storage unit 12 . A screen for program confirmation is displayed on the display device 5 (step S8). In step S8 , the componentized overview image display processing unit 22 displays, for example, the screen of the content shown in FIG. 5 on the display device 5 as a screen for checking the sequence program after the replacement process has been executed. FIG. 5 is a diagram showing an example of a screen for checking the sequence program after the replacement process is executed. The confirmation screen of the sequence program after the replacement process is executed is a screen for confirming the structure of the sequence program in which the common logic part H is replaced with the program component. That is, the componentized overview image display processing unit 22 is a confirmation display processing unit that causes the display device 5 to display a screen for confirming the structure of the sequence program substituted with the program components. The screen for checking the sequence program after the replacement process shown in FIG. 5 (hereinafter, referred to as a screen 102 ) is a configuration in which the sequence program before replacement and the sequence program after replacement are arranged horizontally. The left side of the screen 102 is the sequence program before replacing the common logic part H with the program parts (the program before replacement), and the right side of the screen 102 is the sequence program after replacing the common logic part H with the program parts ( replacement program). The componentized overview image display processing unit 22 may calculate the size of the sequence program before replacement and the size of the sequence program after replacement, and display them on the screen 102 . In this case, the user can know in advance the effect of reducing the program size by replacing the common logic part H with the program component, and this can be used as a judgment material for whether or not to perform the replacement. FIG. 5 shows an example of a screen that displays the structure of the sequence program after replacement with program components for one common logic part H, but it is also possible to replace a plurality of common logic parts H with Displays the structure of the sequencer program after the program part. In addition, the componentized overview image display processing unit 22 may scroll the display of the screen 102 up and down in accordance with the operation from the user, and the user can confirm the structure of the sequence program after replacing all the common logic parts H with program components.
在执行了步骤S8之后,程序创建辅助装置1在使图5所示的画面102显示于显示装置5的状态下,等待由用户选择是否执行基于程序部件进行的共通的逻辑部分H的置换(步骤S9)。如果按下了画面102的右下的“OK(执行)”按钮,即,如果选择了执行基于程序部件进行的共通的逻辑部分H的置换(步骤S9:执行),则指示输入部16生成部件化确定指示而发送至部件化概况图像显示处理部22。另外,如果按下了画面102的右下的“取消”按钮,即,如果选择了不执行基于程序部件进行的共通的逻辑部分H的置换(步骤S9:取消),则指示输入部16生成取消指示而发送至部件化概况图像显示处理部22。After step S8 is executed, the program creation assisting device 1 waits for the user to select whether or not to execute the replacement of the common logic portion H by the program components with the screen 102 shown in FIG. 5 displayed on the display device 5 (step S8). S9). When the "OK (execute)" button at the lower right of the screen 102 is pressed, that is, when the replacement of the common logic part H by the program component is selected (step S9: Execute), the input unit 16 is instructed to generate a component The componentization determination instruction is sent to the componentization overview image display processing unit 22 . In addition, when the "Cancel" button at the lower right of the screen 102 is pressed, that is, when it is selected not to perform replacement of the common logic part H by program components (step S9: cancel), the input unit 16 is instructed to generate a cancel The instruction is sent to the componentized overview image display processing unit 22 .
部件化概况图像显示处理部22如果接收到取消指示,则将接收到的取消指示发送至部件定义显示处理部21,结束画面102向显示装置5的显示。部件定义显示处理部21在经由部件化概况图像显示处理部22而接收到取消指示的情况下,使画面101显示于显示装置5。并且,部件定义显示处理部21再次等待由用户对程序部件的要生成的输入输出参数进行选择、选择操作的结束。这样,在由用户按下了图5所示的画面102的右下的“取消”按钮的情况下,程序创建辅助装置1返回至步骤S7。When the componentization overview image display processing unit 22 receives the cancellation instruction, it transmits the received cancellation instruction to the component definition display processing unit 21 and ends the display of the screen 102 on the display device 5 . The component definition display processing unit 21 displays the screen 101 on the display device 5 when a cancellation instruction is received via the componentized overview image display processing unit 22 . Then, the component definition display processing unit 21 waits again for the user to select the input/output parameters to be generated for the program component and for the selection operation to end. In this way, when the "Cancel" button on the lower right of the screen 102 shown in FIG. 5 is pressed by the user, the program creation assisting apparatus 1 returns to step S7.
另一方面,部件化概况图像显示处理部22如果接收到部件化确定指示,则将从部件定义显示处理部21接收而保存下来的信息,具体地说,将参数生成与否指示和共通电路图案G的结构信息发送至程序部件登记部17。On the other hand, when the componentization overview image display processing unit 22 receives the componentization determination instruction, the information received and saved from the component definition display processing unit 21, specifically, the parameter generation or absence instruction and the common circuit pattern. The configuration information of G is sent to the program component registration unit 17 .
程序部件登记部17如果从部件化概况图像显示处理部22接收到参数生成与否指示和共通电路图案G的结构信息,则将在步骤S5中选择出的共通电路图案G转换为程序部件(步骤S10)。具体地说,程序部件登记部17通过将从部件化概况图像显示处理部22接收到的共通电路图案G的结构信息所示的共通电路图案G转换为具有参数生成与否指示所示的输入输出参数的程序部件,从而创建程序部件。程序部件登记部17将转换后的程序部件储存于程序部件储存部18(步骤S11)。这样,由用户选择出的共通电路图案G被作为程序部件而储存于程序部件储存部18。The program component registration unit 17 converts the common circuit pattern G selected in step S5 into a program component (step S10). Specifically, the program component registration unit 17 converts the common circuit pattern G indicated by the configuration information of the common circuit pattern G received from the componentization overview image display processing unit 22 into the input and output indicated by the parameter generation/non-indication instruction. A program part of the parameters, thereby creating a program part. The program component registration unit 17 stores the converted program component in the program component storage unit 18 (step S11). In this way, the common circuit pattern G selected by the user is stored in the program component storage unit 18 as a program component.
程序部件储存部18如果从程序部件登记部17接收到程序部件,则对接收到的程序部件进行存储。如果由程序部件登记部17创建的程序部件被储存于程序部件储存部18,则部件化处理部19将在程序储存部12所保存的定序程序之中存在的共通的逻辑部分H置换为在程序部件储存部18储存的程序部件(步骤S12)。部件化处理部19在以程序部件对共通的逻辑部分H进行置换时,进行置换后的程序部件的输入输出参数的分配。此时,部件化处理部19基于从共通判定部13接收而保存下来的信息,具体地说,基于共通的逻辑部分H的位置和被提取了共通的逻辑部分H的定序程序的程序识别信息,将程序识别信息所示的定序程序的共通的逻辑部分H置换为程序部件。具体地说,部件化处理部19基于程序识别信息而从程序储存部12内提取作为部件化对象的定序程序。并且,部件化处理部19将存在于提取出的定序程序的共通的逻辑部分H中的电路图案以程序部件储存部18所保存的程序部件进行置换。程序部件是否已被储存于程序部件储存部18例如是通过由部件化处理部19对程序部件储存部18的状态定期地进行确认而掌握的。此外,程序部件登记部17也可以将程序部件已被储存于程序部件储存部18这一情况通知给部件化处理部19。When the program component storage unit 18 receives the program component from the program component registration unit 17, it stores the received program component. When the program component created by the program component registration unit 17 is stored in the program component storage unit 18, the componentization processing unit 19 replaces the common logic portion H existing in the sequence program stored in the program storage unit 12 with the Program components stored in the program component storage unit 18 (step S12). The componentization processing unit 19 performs assignment of input and output parameters of the replaced program components when replacing the common logic part H with the program components. At this time, the componentization processing unit 19 is based on the information received and stored from the common determination unit 13 , specifically, based on the position of the common logic portion H and the program identification information of the sequence program from which the common logic portion H was extracted. , and replace the common logic part H of the sequence program indicated by the program identification information with the program component. Specifically, the componentization processing unit 19 extracts, based on the program identification information, the sequence program to be componentized from the program storage unit 12 . Then, the componentization processing unit 19 replaces the circuit pattern existing in the common logic portion H of the extracted sequence program with the program component stored in the program component storage unit 18 . Whether or not the program component has been stored in the program component storage unit 18 is grasped by, for example, the componentization processing unit 19 periodically checking the state of the program component storage unit 18 . In addition, the program component registration unit 17 may notify the componentization processing unit 19 that the program component has been stored in the program component storage unit 18 .
在定序程序的至少一部分被程序部件置换之后,置换后的定序程序被储存于程序储存部12。然后,如果用户将输出指示输入至指示输入部16,则该输出指示被从指示输入部16发送至输出部20。输出部20从程序储存部12提取由输出指示指定的定序程序而发送至定序程序编辑装置3。由此,在定序程序编辑装置3中,按照用户的指示而进行定序程序的编辑。After at least a part of the sequence program is replaced by the program components, the replaced sequence program is stored in the program storage unit 12 . Then, when the user inputs an output instruction to the instruction input unit 16 , the output instruction is sent from the instruction input unit 16 to the output unit 20 . The output unit 20 extracts the sequence program specified by the output instruction from the program storage unit 12 and transmits it to the sequence program editing device 3 . Thereby, in the sequencer program editing device 3, the sequencer program is edited in accordance with the user's instruction.
程序创建辅助装置1也可以在执行了图3的步骤S12之后,返回至步骤S4而继续进行动作。在这种情况下,当检索结果显示处理部15在步骤S4中使共通电路图案G的结构以及件数一览显示于显示装置5时,使得在一览显示中不包含在过去所执行的步骤S5中选择出的共通电路图案G,即,已完成向程序部件的部件化的共通电路图案G。The program creation assisting device 1 may return to step S4 after executing step S12 in FIG. 3 and continue the operation. In this case, when the search result
此外,在本实施方式中,对由用户指定的共通电路图案G进行了部件化,但程序部件登记部17也可以对由共通判定部13提取出的全部共通电路图案G进行部件化。在这种情况下,程序创建辅助装置1例如反复执行图3所示的步骤S6~S9的处理,如果对于全部共通电路图案G,步骤S6~S9的处理都结束,则执行步骤S10~S12。In addition, in this embodiment, the common circuit pattern G designated by the user is componentized, but the program component registration unit 17 may componentize all the common circuit patterns G extracted by the common determination unit 13 . In this case, the program creation assisting apparatus 1 repeatedly executes the processing of steps S6 to S9 shown in FIG.
另外,在本实施方式中,程序创建辅助装置1在上述的步骤S6以及S7中使用户对程序部件的输入输出参数进行选择,但也可以设为不接收由用户进行的选择的结构。即,也可以设为针对共通电路图案G所包含的电路部件中的设备分配在全部共通的逻辑部分H中一致的电路部件(第1电路部件),不生成输入输出参数,使程序部件的输入输出参数的数量最小。在这种情况下,程序创建辅助装置1在上述的步骤S5之后执行步骤S10。此时,检索结果显示处理部15从检索结果存储部14读取在步骤S5中由用户选择出的共通电路图案G的结构信息以及附属信息而发送至程序部件登记部17。In addition, in the present embodiment, the program creation support apparatus 1 allows the user to select the input and output parameters of the program components in the above-described steps S6 and S7, but may be configured to not accept the selection made by the user. That is, a circuit part (first circuit part) that matches all the common logic parts H may be allocated to the devices in the circuit parts included in the common circuit pattern G, the input/output parameters may not be generated, and the input/output parameters of the program parts may be The number of output parameters is minimal. In this case, the program creation assisting apparatus 1 executes step S10 after the above-described step S5. At this time, the retrieval result
另外,在本实施方式中,对程序创建辅助装置1所处理的定序程序是梯形图程序的情况下的例子进行了说明,但定序程序不限定于梯形图程序。In addition, in this embodiment, the example in the case where the sequence program processed by the program creation support apparatus 1 is a ladder program has been described, but the sequence program is not limited to the ladder program.
另外,程序创建辅助装置1也可以与专利文献1所记载的发明同样地,由用户指定作为共通电路图案G而提取的块的大小。In addition, in the program creation assisting device 1 , like the invention described in Patent Document 1, the size of the block to be extracted as the common circuit pattern G may be designated by the user.
如上所述,本实施方式涉及的程序创建辅助装置1对定序程序进行解析而对是否存在多个结构相同的电路图案进行确认,对结构相同的电路图案即共通电路图案G进行提取,生成表示提取出的共通电路图案G的程序部件。并且,程序创建辅助装置1将定序程序所包含的共通电路图案G置换为生成的程序部件。另外,程序创建辅助装置1在提取共通电路图案G之后,针对共通电路图案G所包含的电路部件的每一者,对设备分配在提取出的全部共通电路图案G之间是否一致进行确认,生成表示确认结果的附属信息。并且,程序创建辅助装置1在生成程序部件时,针对设备分配在全部共通电路图案G之间一致的第1电路部件,除了由用户进行了指示的情况以外,不生成用于进行设备分配的输入输出参数。由此,能够削减程序部件的输入输出参数的数量。其结果,能够提高定序程序的可读性以及可维护性。As described above, the program creation assistance device 1 according to the present embodiment analyzes the sequence program to check whether a plurality of circuit patterns with the same structure exist, extracts the common circuit pattern G that is a circuit pattern with the same structure, and generates a representation of the The program component of the extracted common circuit pattern G. Then, the program creation assisting apparatus 1 replaces the common circuit pattern G included in the sequence program with the generated program component. In addition, after extracting the common circuit pattern G, the program creation assisting apparatus 1 , for each circuit component included in the common circuit pattern G, confirms whether or not the device assignments match among all the extracted common circuit patterns G, and generates Indicates the attached information of the confirmation result. In addition, the program creation assisting apparatus 1 does not generate an input for device assignment to the first circuit component that matches all the common circuit patterns G when the program component is generated, unless instructed by the user. Output parameters. Thereby, the number of input and output parameters of the program component can be reduced. As a result, the readability and maintainability of the sequencer can be improved.
接下来,对程序创建辅助装置1的硬件结构进行说明。图6是表示实施方式涉及的程序创建辅助装置1的硬件结构的图。程序创建辅助装置1具有CPU(Central ProcessingUnit)91、ROM(Read Only Memory)92、RAM(Random Access Memory)93、通信接口94以及输入部95。在程序创建辅助装置1中,上述CPU 91、ROM 92、RAM93、通信接口94以及输入部95经由总线B而连接。输入部95构成为具有鼠标、键盘。另外,在ROM 92储存有程序90。程序90是用于使CPU 91作为共通判定部13、检索结果显示处理部15、程序部件登记部17、部件化处理部19、部件定义显示处理部21以及部件化概况图像显示处理部22而进行动作的程序。通信接口94是程序创建辅助装置1用于与定序程序创建装置2、定序程序编辑装置3等其它仪器之间对通信用信号进行收发的处理电路,例如是网络接口卡。在总线B还连接有显示装置5。Next, the hardware configuration of the program creation assisting device 1 will be described. FIG. 6 is a diagram showing a hardware configuration of the program creation support apparatus 1 according to the embodiment. The program creation assisting device 1 includes a CPU (Central Processing Unit) 91 , a ROM (Read Only Memory) 92 , a RAM (Random Access Memory) 93 , a communication interface 94 , and an input unit 95 . In the program creation assisting apparatus 1, the above-mentioned CPU 91, ROM 92, RAM 93, communication interface 94, and input unit 95 are connected via bus B. The input unit 95 is configured to include a mouse and a keyboard. In addition, the program 90 is stored in the ROM 92 . The program 90 is executed by the CPU 91 as the common determination unit 13 , the retrieval result
图2所示的程序创建辅助装置1的各结构要素中的共通判定部13、检索结果显示处理部15、程序部件登记部17、部件化处理部19、部件定义显示处理部21以及部件化概况图像显示处理部22由CPU 91以及ROM 92实现。即,CPU 91通过从ROM 92读取、执行在ROM 92储存的程序90而实现上述的各结构要素。The common determination unit 13 , the retrieval result
另外,图2所示的程序创建辅助装置1的程序储存部12、检索结果存储部14以及程序部件储存部18由RAM 93实现。图2所示的程序创建辅助装置1的程序输入部11以及输出部20由通信接口94实现。图2所示的程序创建辅助装置1的指示输入部16由输入部95实现。In addition, the program storage unit 12 , the retrieval result storage unit 14 , and the program component storage unit 18 of the program creation support apparatus 1 shown in FIG. 2 are realized by the RAM 93 . The program input unit 11 and the output unit 20 of the program creation support apparatus 1 shown in FIG. 2 are realized by the communication interface 94 . The instruction input unit 16 of the program creation assisting device 1 shown in FIG. 2 is realized by the input unit 95 .
此外,这里,用于作为程序创建辅助装置1的共通判定部13、检索结果显示处理部15、程序部件登记部17、部件化处理部19、部件定义显示处理部21以及部件化概况图像显示处理部22而进行动作的程序(程序90)预先储存于ROM 92,但不限定于此。上述的程序90也可以是在被写入至CD(Compact Disc)-ROM、DVD(Digital Versatile Disc)-ROM等存储介质的状态下供给至用户,由用户向实现程序创建辅助装置1的硬件进行安装的方式。在这种情况下,实现程序创建辅助装置1的硬件是包含用于从存储介质读取程序的读取装置,或者,用于与读取装置进行连接的接口电路的结构。另外,上述的程序90也可以是经由互联网等通信线路而提供的方式。Here, the common determination unit 13 , the retrieval result
上述实施方式所示的结构表示的是本发明的内容的一个例子,能够与其它公知技术进行组合,也能够在不脱离本发明的主旨的范围对结构的一部分进行省略、变更。The configuration shown in the above-described embodiment is an example of the content of the present invention, and can be combined with other known technologies, and a part of the configuration can be omitted or changed without departing from the gist of the present invention.
标号的说明Description of the label
1程序创建辅助装置,2定序程序创建装置,3定序程序编辑装置,5显示装置,2a~4a、2b~4b电路模块,11程序输入部,12程序储存部,13共通判定部,14检索结果存储部,15检索结果显示处理部,16指示输入部,17程序部件登记部,18程序部件储存部,19部件化处理部,20输出部,21部件定义显示处理部,22部件化概况图像显示处理部,100程序创建系统。1 Program creation auxiliary device, 2 Sequence program creation device, 3 Sequence program editing device, 5 Display device, 2a~4a, 2b~4b circuit modules, 11Program input part, 12Program storage part, 13Common judgment part, 14 Search result storage unit, 15 Search result display processing unit, 16 Instruction input unit, 17 Program component registration unit, 18 Program component storage unit, 19 Componentization processing unit, 20 Output unit, 21 Component definition display processing unit, 22 Componentization overview Image Display Processing Section, 100 Program Creation System.
Claims (7)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP2019/008657 WO2020178983A1 (en) | 2019-03-05 | 2019-03-05 | Program creation assistance device, program creation assistance method, and program creation assistance program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113518947A CN113518947A (en) | 2021-10-19 |
| CN113518947B true CN113518947B (en) | 2022-10-21 |
Family
ID=70000323
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201980093411.0A Active CN113518947B (en) | 2019-03-05 | 2019-03-05 | Program creation support device, program creation support method, and recording medium storing program creation support program |
Country Status (3)
| Country | Link |
|---|---|
| JP (1) | JP6664563B1 (en) |
| CN (1) | CN113518947B (en) |
| WO (1) | WO2020178983A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024247284A1 (en) * | 2023-06-02 | 2024-12-05 | 三菱電機株式会社 | Structuring support device, structuring support method, and structuring support program |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5586335A (en) * | 1990-03-02 | 1996-12-17 | Mitsubishi Denki Kabushiki Kaisha | Method and apparatus for programming a programmable controller with a ladder diagram by entering multiple device names for each ladder symbol and by storing common ladder segments |
| CN1585925A (en) * | 2002-09-06 | 2005-02-23 | 索尼株式会社 | GUI application program development support device and method, and computer program |
| JP2005092808A (en) * | 2003-09-19 | 2005-04-07 | Keyence Corp | Ladder program macro generator and generation method, program therefor and computer-readable recording medium |
| CN103229175A (en) * | 2010-11-24 | 2013-07-31 | 三菱电机株式会社 | System design device |
| CN104169818A (en) * | 2012-03-19 | 2014-11-26 | 三菱电机株式会社 | Sequence program creation device |
| CN105074592A (en) * | 2013-03-29 | 2015-11-18 | 三菱电机株式会社 | Sequencer component creating program and sequencer component creating device |
| CN106233212A (en) * | 2015-01-28 | 2016-12-14 | 三菱电机株式会社 | Intelligent function unit and programmable logic controller system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6224575B2 (en) * | 2014-12-19 | 2017-11-01 | ファナック株式会社 | Ladder program search device that can search ladder circuits based on specified signal operation conditions |
| CN109478051A (en) * | 2017-04-17 | 2019-03-15 | 三菱电机株式会社 | program creation device |
-
2019
- 2019-03-05 CN CN201980093411.0A patent/CN113518947B/en active Active
- 2019-03-05 WO PCT/JP2019/008657 patent/WO2020178983A1/en not_active Ceased
- 2019-03-05 JP JP2019552927A patent/JP6664563B1/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5586335A (en) * | 1990-03-02 | 1996-12-17 | Mitsubishi Denki Kabushiki Kaisha | Method and apparatus for programming a programmable controller with a ladder diagram by entering multiple device names for each ladder symbol and by storing common ladder segments |
| CN1585925A (en) * | 2002-09-06 | 2005-02-23 | 索尼株式会社 | GUI application program development support device and method, and computer program |
| JP2005092808A (en) * | 2003-09-19 | 2005-04-07 | Keyence Corp | Ladder program macro generator and generation method, program therefor and computer-readable recording medium |
| CN103229175A (en) * | 2010-11-24 | 2013-07-31 | 三菱电机株式会社 | System design device |
| CN104169818A (en) * | 2012-03-19 | 2014-11-26 | 三菱电机株式会社 | Sequence program creation device |
| CN105074592A (en) * | 2013-03-29 | 2015-11-18 | 三菱电机株式会社 | Sequencer component creating program and sequencer component creating device |
| CN106233212A (en) * | 2015-01-28 | 2016-12-14 | 三菱电机株式会社 | Intelligent function unit and programmable logic controller system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113518947A (en) | 2021-10-19 |
| JP6664563B1 (en) | 2020-03-13 |
| JPWO2020178983A1 (en) | 2021-03-11 |
| WO2020178983A1 (en) | 2020-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5769900B2 (en) | Sequence program component creation program and sequence program component creation device | |
| US20100161085A1 (en) | Peripheral device of programmable controller, method of variable substitution, and computer program product thereof | |
| US20160125037A1 (en) | Information processing apparatus, information processing method, information processing program, and storage medium | |
| TW201923625A (en) | Translation support device, translation support program, and method to support translation with information processing device | |
| CN113518947B (en) | Program creation support device, program creation support method, and recording medium storing program creation support program | |
| CN101324844A (en) | Method for making rich text control with intelligent perception | |
| CN112825077A (en) | Information processing apparatus and setting apparatus | |
| CN111033399A (en) | Ladder program creation support device, ladder program creation support method, recording medium, and ladder program creation support program | |
| JP2005301520A (en) | Programming system | |
| CN112987658A (en) | Production system, repair system, production method, and information storage medium | |
| JP7739033B2 (en) | Information processing device, ladder program generating device, information processing method, ladder program generating method, article manufacturing method, program, and recording medium | |
| JP4767309B2 (en) | Information processing apparatus, information processing method, and computer program | |
| CN105122157A (en) | Program editing device, program editing method and program editing program | |
| CN114730167A (en) | PLC system construction auxiliary program, operation terminal readable storage medium, and PLC system construction auxiliary device | |
| JP2006302216A (en) | Display device, screen data producing device and screen display system | |
| JP6949274B1 (en) | Control device and control method | |
| JP2020204963A (en) | Workflow system, information processing device, information processing method, and program | |
| CN118435622A (en) | Information processing device, control system, information processing method and program | |
| CN113454547B (en) | Ladder diagram program production support device, method and program storage medium thereof | |
| KR102235073B1 (en) | System and Method for Generating source code of SECS Message | |
| JP4609655B2 (en) | Attached data generator for program parts | |
| JP6855886B2 (en) | Logic generator | |
| JP2005251014A (en) | Control system, control monitor program, recording medium recorded with program therefor, editor device, editor program, and recording medium recorded with program therefor | |
| JP6907963B2 (en) | CAD system | |
| JP2724241B2 (en) | Automatic program generator with block diagram parts processing function |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |