Program creation assistance device, program creation assistance method, storage medium, and programmable logic controller
By creating a display section for auxiliary devices, creating user-defined hypothetical mechanical components, and setting parameters through the program, the burden on operators when creating programs for complex control mechanisms is reduced, thereby improving operational efficiency.
Patent Information
- Application Number
- CN202180099542.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-23
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-06-23
AI Technical Summary
Existing programs for creating auxiliary devices place a significant burden on operators when creating programs for complex controlled mechanical devices.
A program creation aid is provided, which displays multiple imaginary mechanical parts through a display unit, allows the operator to specify and create different imaginary mechanical parts through a user-defined imaginary mechanical part creation unit, sets parameters through an imaginary mechanical part parameter setting unit, and outputs the parameters to a programmable logic controller through a user program processing execution code generation unit after coding the parameters.
It reduces the operator's burden when creating programs for complex control mechanisms.
Smart Images

Figure CN117561483B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a program creation aid device, a program creation aid method, a program creation aid program, and a programmable logic controller. Background Technology
[0002] A Factory Automation (FA) control system consists of a programmable logic controller (PLC) that acts as a sequential control device. Hereinafter, the programmable logic controller will be referred to as "PLC". PLC is an abbreviation for "Programmable Logic Controller". A PLC is controlled by a sequential program. A sequential program is a program described using, for example, a ladder diagram, function block diagram, or structured text programming language. Generally, the sequential programs specified in the "IEC 61131-3 standard" published by the International Electrotechnical Commission are widely used.
[0003] The sequencer is created by a program creation aid, or engineering design tool, on a personal computer. The personal computer is connected to the PLC, and the sequencer is stored in the PLC's memory.
[0004] In the past, mechanical devices in factories that manufactured products controlled other actions in conjunction with certain actions, using multiple mechanisms such as cam mechanisms, linkage mechanisms, and gear mechanisms to mechanically link and control them.
[0005] For example, when an operator synchronizes the speed of a belt conveyor with the movement of a rotary cutter, they can change the speed ratio by replacing a mechanical component, thus synchronizing the rotary cutter's movement with the belt conveyor's speed. An example of such a mechanical component is a gear. Replacing mechanical components is a very cumbersome operation. Here, a method using a PLC to electrically implement a reduction gear is considered. For example, by making the motor's speed variable, the PLC can achieve the same effect as changing the transmission ratio of a reduction gear. As shown above, the PLC simulates a mechanical component by setting up a hypothetical mechanical component, which has a user program that defines the component's movements using various parameters for calculating the component's actions. For example, a PLC consists of a basic unit and extended units.
[0006] The program creation aid disclosed in Patent Document 1 includes: a display unit that is sequentially connected to each axis from a synchronously controlled synchronous main shaft to a synchronously controlled synchronous slave shaft, and displays multiple imaginary mechanical components that change the position of each input axis to the position of the output axis; a setting unit that sets parameters that define the transformation actions of each of the multiple imaginary mechanical components; a designation unit that designates a mechanical component from the multiple imaginary mechanical components displayed in the display unit that performs a transformation action different from a pre-prepared transformation action; a program receiving unit that receives input of a user program in a general language that defines the transformation action performed by the mechanical component designated by the designation unit; and a forwarding unit that forwards the user program to the expansion unit in order to enable the expansion unit to execute the user program.
[0007] Patent Document 1: Japanese Patent Application Publication No. 2017-79007 Summary of the Invention
[0008] In the program creation aid disclosed in Patent Document 1, the hypothetical mechanical components are limited to differential gears, variable gears, clutches, and cams connected in a pre-set sequence. When creating a program to operate the actual mechanical device, it is necessary to add and program parameters corresponding to the mechanical device. The program creation aid disclosed in Patent Document 1 suffers from the following problem: the operator bears a heavy burden when creating programs for mechanical devices requiring complex control.
[0009] The present invention was made in view of the above circumstances, and its object is to provide a program creation aid that can reduce the burden on the operator when creating a program for a mechanical device that requires complex control.
[0010] To address the aforementioned issues and achieve the objective, the program creation aid device of the present invention comprises: a display unit that displays information on a plurality of imaginary mechanical components, each imaginary mechanical component having at least one axis, and setting predetermined calculations for internal actions to perform motion control; a user-defined imaginary mechanical component creation unit that creates a different imaginary mechanical component from the displayed plurality of imaginary mechanical components as a user-defined imaginary mechanical component based on one or more mechanical components specified from the displayed plurality of imaginary mechanical components; and an imaginary mechanical component parameter setting unit that sets parameters defining the internal actions of each of the plurality of imaginary mechanical components. The program creation aid device of the present invention further comprises: a user-defined imaginary mechanical component program editing unit that edits the calculations of the user-defined imaginary mechanical component using a user program; a user-defined imaginary mechanical component parameter setting unit that sets the parameters of the user-defined imaginary mechanical component; and a user program processing execution code generation unit that outputs the user program, coded based on the parameters set by the user-defined imaginary mechanical component parameter setting unit, to a programmable logic controller to execute the motion control described in the user program.
[0011] The effects of the invention
[0012] The program creation aid device of the present invention achieves the effect of reducing the operator's burden when creating programs for mechanical devices that require complex control. Attached Figure Description
[0013] Figure 1 This is a diagram showing the structure of the PLC system involved in the implementation method.
[0014] Figure 2 This is a diagram illustrating the hardware structure of the program creation auxiliary device involved in the implementation method.
[0015] Figure 3 This is a diagram illustrating the functions of the program creation aid device involved in the implementation method.
[0016] Figure 4 This is a diagram illustrating an example of a user interface for a program creation auxiliary device software involved in an implementation method.
[0017] Figure 5 It is a diagram showing the unwinder, the names of the imaginary mechanical parts of the unwinder, and the parameter setting area for the imaginary mechanical parts of the unwinder.
[0018] Figure 6 It is a diagram showing a belt conveyor, the names of the hypothetical mechanical components of the belt conveyor, and the parameter setting area for the hypothetical mechanical components of the belt conveyor.
[0019] Figure 7 It is a diagram showing the shuttle mechanism, the names of the hypothetical mechanical components of the shuttle mechanism, and the parameter setting area for the hypothetical mechanical components of the shuttle mechanism.
[0020] Figure 8 It is a diagram showing the horizontal pillow packaging machine, the user-defined hypothetical mechanical component names of the horizontal pillow packaging machine, and the user-defined hypothetical mechanical component parameter setting area of the horizontal pillow packaging machine.
[0021] Figure 9 This is a diagram showing the user-defined hypothetical mechanical component parameter setting area of the horizontal pillow packaging machine.
[0022] Figure 10 This is a diagram showing the user-defined hypothetical mechanical component parameter setting area of the horizontal pillow packaging machine.
[0023] Figure 11 This diagram illustrates the function of the CPU (Central Processing Unit) in the PLC involved in the implementation method.
[0024] Figure 12 This is a flowchart illustrating the steps of a program creation assistance method executed by the CPU of the program creation assistance device according to the program creation assistance device software in the embodiment.
[0025] Figure 13 It is a diagram representing an example of a mechanical system simulated by a mechanical model.
[0026] Figure 14 This is a diagram representing the neural network involved in the implementation method.
[0027] Figure 15 This diagram illustrates the processing circuitry used to implement, in cases where a portion or all of the following components of the implementation method—a hypothetical mechanical component designation unit, a user-defined hypothetical mechanical component creation unit, a hypothetical mechanical component parameter setting unit, a user-defined hypothetical mechanical component parameter editing unit, a user-defined hypothetical mechanical component parameter setting unit, a user-defined hypothetical mechanical component program editing unit, a drawing unit, a user program processing execution code generation unit, a user-defined hypothetical mechanical component name input unit, a user-defined hypothetical mechanical component program name input unit, and a user-defined hypothetical mechanical component drawing input unit—are included in the program creation assistance device. Detailed Implementation
[0028] Hereinafter, the program creation assisting device, program creation assisting method, program creation assisting program, and programmable logic controller according to the embodiments will be described in detail with reference to the accompanying drawings.
[0029] Implementation
[0030] First, the structure of the PLC system involved in the implementation method will be described. As mentioned above, PLC is an abbreviation for "Programmable Logic Controller". Figure 1 This is a diagram illustrating the structure of the PLC system 1000 according to the embodiment. The PLC system 1000 includes a program creation auxiliary device 1 for editing user programs and a PLC 2 for centrally controlling various control devices, such as those installed in a factory.
[0031] PLC 2 has a CPU unit 3 that controls the overall operation of PLC system 1000, multiple expansion units 4, and a bus unit 5 that connects the CPU unit 3 and the multiple expansion units 4. PLC 2 may also have only one expansion unit 4 instead of multiple expansion units 4. In the case of PLC 2 having only one expansion unit 4, the expansion unit 4 is connected to the bus unit 5.
[0032] User programs can be created using, for example, ladder logic or graphical programming languages, or high-level programming languages. An example of a graphical programming language is a language used to implement motion flows. An example of a high-level programming language is the C language.
[0033] CPU unit 3 controls the entire PLC system 1000, which includes expansion unit 4, through the user program.
[0034] Extension unit 4 is a unit that extends the control functions of CPU unit 3 by performing relatively simple operations. Various types of units are used as extension unit 4. Examples of extension unit 4 are analog input units, positioning units, temperature input units, or temperature control units. In the case that extension unit 4 is a temperature control unit, if the CPU unit 3 requests the temperature control unit to set the temperature of the external device to a predetermined temperature, the temperature control unit controls the temperature of the external device in a manner that achieves the predetermined temperature.
[0035] The program creation aid 1 is implemented, for example, by a portable personal computer, such as a laptop or tablet. The program creation aid 1 has an input unit 105 and a display unit 106. The user program for controlling the PLC 2 is created using the program creation aid 1. The created user program is converted into code internally within the program creation aid 1. The program creation aid 1 is connected to the CPU unit 3 of the PLC 2 via a transmission path 9, and the converted user program is sent from the program creation aid 1 to the CPU unit 3. The user program is stored in the memory contained in the CPU unit 3. An example of the transmission path 9 is USB (Universal Serial Bus).
[0036] Figure 2 This diagram illustrates the hardware structure of the program creation aid 1 according to the embodiment. The program creation aid 1 is configured by installing an application creation aid on a personal computer. The program creation aid 1 includes a CPU 101, RAM (Random Access Memory) 102, ROM (Read Only Memory) 103, a storage unit 104, an input unit 105, a display unit 106, and a communication interface 107.
[0037] CPU 101 is a computing unit that executes the program creation auxiliary device software. RAM 102 is the working area used by CPU 101 when executing a program. ROM 103 non-volatilely stores the program executed by CPU 101 when program creation auxiliary device 1 starts. An example of a program executed by CPU 101 when program creation auxiliary device 1 starts is an initial program loader. Storage unit 104 non-volatilely stores information. Storage unit 104 is implemented, for example, by a hard disk drive or solid-state drive.
[0038] The input unit 105 is a user interface for an operator to input information into the program creation auxiliary device 1, and is implemented, for example, through one or both of a pointing device and a keyboard. Examples of pointing devices are mice or touch panels. The display unit 106 is a device for displaying information, and is implemented, for example, through a liquid crystal display device or an organic light-emitting display device.
[0039] Communication interface 107 is used for communication between the program creation auxiliary device 1 and the PLC 2 via transmission path 9. The program creation auxiliary device software installed in the program creation auxiliary device 1 is stored in storage unit 104. By reading the program creation auxiliary device software stored in storage unit 104 and executing it by CPU 101, the personal computer functions as the program creation auxiliary device 1.
[0040] In one implementation, program creation aid 1 is constructed by installing software on a personal computer to create the aid. However, program creation aid 1 can also be constructed as a web application that delegates processing from a web browser on a personal computer (acting as a client) to an application running on a web server.
[0041] Figure 3This diagram illustrates the functions of the program creation aid 1 according to the embodiment. The storage unit 104 stores the program creation aid software 111. The CPU 101 executes the program creation aid software 111 stored in the storage unit 104, thereby functioning as a hypothetical mechanical component designation unit 112, a user-defined hypothetical mechanical component creation unit 113, a hypothetical mechanical component parameter setting unit 114, a user-defined hypothetical mechanical component parameter editing unit 115, a user-defined hypothetical mechanical component parameter setting unit 116, a user-defined hypothetical mechanical component program editing unit 117, a drawing unit 118, a user program processing execution code generation unit 119, a user-defined hypothetical mechanical component name input unit 120, a user-defined hypothetical mechanical component program name input unit 121, and a user-defined hypothetical mechanical component drawing input unit 122.
[0042] The storage unit 104 stores the sequencer program 123. The drawing unit 118 causes the display unit 106 to display a user interface for editing the sequencer program 123, namely the sequencer program editing area 132. The sequencer program editing area 132 is... Figure 4 As shown in the image. Figure 4 This is a diagram illustrating an example of the user interface of the program creation auxiliary device software 111 according to the implementation method.
[0043] The drawing unit 118 causes the display unit 106 to display a user interface for displaying images and names of imaginary mechanical parts, namely the imaginary mechanical part area 133.
[0044] The drawing unit 118 causes the display unit 106 to display a user interface for displaying images and names of user-defined imaginary mechanical parts, namely the user-defined imaginary mechanical part area 134.
[0045] The drawing unit 118 and the hypothetical mechanical component parameter setting unit 114 enable the display unit 106 to display a user interface, namely the hypothetical mechanical component parameter setting area 135, for receiving settings of hypothetical mechanical component parameters 126 used in the internal processing corresponding to each hypothetical mechanical component. The storage unit 104 stores the hypothetical mechanical component parameters 126. The hypothetical mechanical component parameter setting unit 114 functions as a hypothetical mechanical component parameter setting unit for setting parameters that define the internal processing of multiple hypothetical mechanical components.
[0046] The drawing unit 118, the user-defined hypothetical mechanical component parameter editing unit 115, and the user-defined hypothetical mechanical component parameter setting unit 116 enable the display unit 106 to display a user interface for receiving and inputting user-defined hypothetical mechanical component parameters 127 used in the internal processing corresponding to the user-defined hypothetical mechanical component, namely, the user-defined hypothetical mechanical component parameter setting area 136. The user-defined hypothetical mechanical component parameters 127 are stored in the storage unit 104. The user-defined hypothetical mechanical component parameter editing unit 115 and the user-defined hypothetical mechanical component parameter setting unit 116 function as a user-defined hypothetical mechanical component parameter editing unit for editing parameters that define the internal processing of each user-defined hypothetical mechanical component, and a user-defined hypothetical mechanical component parameter setting unit for setting parameters.
[0047] The drawing unit 118 and the user-defined hypothetical mechanical part creation unit 113 cause the display unit 106 to display the user interface for creating user-defined hypothetical mechanical parts, namely the user-defined hypothetical mechanical part editing area 137.
[0048] As mentioned above, Figure 4 This is a diagram illustrating an example of the user interface of the program creation auxiliary device software 111 according to the implementation method. For example... Figure 4 As shown, the display unit 106 displays a summary of the hypothetical mechanical parts, including schematic diagrams and names, as a list of hypothetical mechanical parts. The drawing unit 118 is responsible for the drawing of the user interface. The program creation auxiliary device software 111 includes a tree diagram 131, a sequence program editing area 132, a hypothetical mechanical part area 133, a user-defined hypothetical mechanical part area 134, a hypothetical mechanical part parameter setting area 135, a user-defined hypothetical mechanical part parameter setting area 136, a user-defined hypothetical mechanical part editing area 137, and a user-defined hypothetical mechanical part program editing area 138.
[0049] The tree diagram 131 displays, in layers, the sequence program 123 created by the user-created auxiliary device software 111, the user-defined hypothetical mechanical component, the user-defined hypothetical mechanical component parameters 127, and the user-defined hypothetical mechanical component program 125. The user-defined hypothetical mechanical component program 125 is stored in the storage unit 104. The tree diagram 131 includes a text input unit 139 for inputting the name of the user-defined hypothetical mechanical component. The user-defined hypothetical mechanical component name input unit 120 receives the user-defined hypothetical mechanical component name input through the text input unit 139 as the name of the user-defined hypothetical mechanical component.
[0050] In the tree diagram 131, a text input unit 140 is provided for inputting the name of the user-defined hypothetical mechanical component program 125. The user-defined hypothetical mechanical component program name input unit 121 receives the program name input through the text input unit 140 as the name of the program that defines the operation of the user-defined hypothetical mechanical component.
[0051] In the sequencer editing area 132, create sequencer 123.
[0052] In the hypothetical mechanical parts area 133, pre-prepared hypothetical mechanical parts are displayed.
[0053] The user-defined hypothetical mechanical component area 134 displays a user-defined hypothetical mechanical component. This hypothetical mechanical component is a user-defined hypothetical mechanical component.
[0054] In the user-defined hypothetical mechanical component editing area 137, the user-defined hypothetical mechanical component is edited.
[0055] In the hypothetical mechanical component parameter setting area 135, set the hypothetical mechanical component parameter 126.
[0056] In the user-defined hypothetical mechanical component parameter setting area 136, the user-defined hypothetical mechanical component parameter 127 is edited and set.
[0057] In the user-defined hypothetical mechanical component editing area 137, the definition of the user-defined hypothetical mechanical component is set.
[0058] A more detailed explanation is provided regarding the hypothetical mechanical components displayed in hypothetical mechanical component area 133. Each hypothetical mechanical component has a hypothetical mechanical component name, hypothetical mechanical component parameters, and a hypothetical mechanical component program. The hypothetical mechanical component name is the name representing the hypothetical mechanical component. The hypothetical mechanical component parameters are the specification values that define the internal actions of the hypothetical mechanical component. The hypothetical mechanical component program is the program that describes the internal actions of the hypothetical mechanical component based on its parameters. If the hypothetical mechanical component name, hypothetical mechanical component parameters, and hypothetical mechanical component program are considered as a unified information entity, they can be defined as templates, or classes, for each type of object in object-oriented programming.
[0059] Data created based on a class is called an instance, and generating an instance from a class is called objectification. When the hypothetical mechanical component program 124 becomes usable in the sequencer 123, an instance is generated by objectifying the class possessed by the hypothetical mechanical component, thereby enabling the program defined in the class to be called. The hypothetical mechanical component program 124 is stored in the storage unit 104.
[0060] Several hypothetical mechanical components include cams, unwinders, belt conveyors, and shuttle box mechanism modules.
[0061] A cam is a mechanical component that typically has an input shaft and an output shaft, transforming the phase of the input shaft into the relative coordinates of the output shaft.
[0062] A unwinder is a mechanical component with an input shaft and an output shaft. It feeds the sheet and film wound on a reel through the output shaft by transforming the phase of the input shaft to the relative coordinates of the output shaft. The output shaft of the unwinder is the unwinding shaft. The unwinder is a mechanical component capable of correcting the film's feeding position by inputting a correction amount. The function of transforming the phase of the input shaft to the relative coordinates of the output shaft (unwinding shaft) can be achieved by using an unwinder and a cam, connecting the input and output shafts of the unwinder (unwinding shaft) to the input and output shafts of the cam. This is equivalent to attaching a cam class to the member variables of the unwinder class in an object-oriented framework.
[0063] A belt conveyor is a mechanical device with an input shaft and an output shaft. It transports, seals, and conveys membranes by transforming the phase of the input shaft to the relative coordinates of the output shaft. The output shaft of the belt conveyor is the belt conveyor shaft itself. A belt conveyor is a mechanical component capable of correcting its conveying position through a correction input. The function of transforming the phase of the input shaft to the relative coordinates of the output shaft (i.e., the belt conveyor shaft) can be achieved by using a belt conveyor and a cam, connecting the input and output shafts of the belt conveyor to the input and output shafts of the cam. This is equivalent to attaching a cam class to the member variables of the belt conveyor class in object-oriented programming.
[0064] The shuttle mechanism is a mechanical device having an input shaft, a first output shaft, and a second output shaft. By transforming the phase of the input shaft into the relative coordinates of the first and second output shafts, it cuts a sheet or film fed by a belt conveyor to a predetermined size while simultaneously lowering the cutter and moving forward, cutting the sheet or film at a speed synchronized with the sheet or film. The first output shaft is the travel shaft, and the second output shaft is the sealing shaft.
[0065] A box motion is a mechanical device capable of adjusting the speed of its motion. The function of transforming the phase of the input shaft into the relative coordinates of the travel and sealing shafts can be achieved by using a box motion mechanism, a first cam, and a second cam. The input and travel shafts of the box motion mechanism are connected to the input and output shafts of the first cam, and the input and sealing shafts of the box motion mechanism are connected to the input and output shafts of the second cam. This is equivalent to attaching two cam classes to the member variables of the box motion mechanism class in object-oriented programming.
[0066] Figure 5 This is a diagram showing the unwinder (141), the names of the hypothetical mechanical components of the unwinder (142), and the parameter setting area for the hypothetical mechanical components of the unwinder (143). Display unit 106 displays... Figure 5 Because the display unit 106 displays... Figure 5 Therefore, the operator can visually identify the types of imaginary mechanical parts. An unwinder is an example of an imaginary mechanical part. For example... Figure 5 As shown, the parameters of the hypothetical mechanical components of the unwinder include the input shaft, the output shaft (i.e., the unwinding shaft), the transformation pattern (i.e., the cam pattern) used to transform the phase of the input shaft to the relative coordinates of the unwinding shaft, and the membrane diameter.
[0067] exist Figure 5 In the example, `inputAxis` is defined as a parameter representing the input axis, `unwindAxis` as a parameter representing the unwind axis, `camPattern` as a parameter representing the cam pattern, and `filmDiameter` as a parameter representing the membrane diameter. The program for the hypothetical mechanical component of the unwinder includes a program that calculates the relative coordinates of the unwind axis by transforming the phase of the unwinder's input axis through the cam pattern, and a program that corrects the membrane's transport position by inputting a correction amount.
[0068] Figure 6 This diagram shows a schematic diagram 144 of a belt conveyor, a diagram 145 showing the names of hypothetical mechanical components of the belt conveyor, and a diagram 146 showing the parameter setting area for the hypothetical mechanical components of the belt conveyor. Display unit 106 displays... Figure 6 Because the display unit 106 displays... Figure 6 Therefore, the operator can visually identify the types of imaginary mechanical parts. A belt conveyor is an example of an imaginary mechanical part. For example... Figure 6 As shown, the hypothetical mechanical component parameters of the belt conveyor include the input shaft, the output shaft (i.e., the belt conveyor shaft), the transformation pattern (i.e., the cam pattern) used to transform the phase of the input shaft into the relative coordinates of the belt conveyor shaft, and the belt conveyor speed.
[0069] exist Figure 6In the example, `inputAxis` is defined as the parameter representing the input axis, `conveyorAxis` is defined as the parameter representing the output axis (i.e., the belt conveyor axis), `camPattern` is defined as the parameter representing the cam pattern, and `conveyorVelocity` is defined as the parameter representing the belt conveyor speed. The program for the hypothetical mechanical component of the belt conveyor includes a program that calculates the relative coordinates of the belt conveyor axis by transforming the phase of the belt conveyor's input axis through the belt conveyor cam pattern, and a program that corrects the conveying position of the belt conveyor by inputting a correction value.
[0070] Figure 7 This is a diagram 147 showing the shuttle mechanism, a diagram 148 showing the names of the hypothetical mechanical components of the shuttle mechanism, and a diagram 149 showing the parameter setting area for the hypothetical mechanical components of the shuttle mechanism. Display unit 106 displays... Figure 7 Because the display unit 106 displays... Figure 7 Therefore, the operator can visually identify the types of imaginary mechanical parts. The shuttle box mechanism is an example of an imaginary mechanical part. For example... Figure 7 As shown, the parameters of the shuttle mechanism include an input shaft, a first output shaft, a second output shaft, a transformation pattern (i.e., a traveling cam pattern) for transforming the phase of the input shaft to the relative coordinates of the first output shaft, a transformation pattern (i.e., a sealing cam pattern) for transforming the phase of the input shaft to the relative coordinates of the second output shaft, and the combined speed of the shuttle mechanism. The first output shaft is the traveling shaft, and the second output shaft is the sealing shaft.
[0071] exist Figure 7 In the example, `inputAxis` is defined as the parameter representing the input axis, `travelAxis` as the parameter representing the travel axis, `seelAxis` as the parameter representing the seal axis, `travelCamPattern` as the parameter representing the travel cam pattern, `seelCamPattern` as the parameter representing the seal cam pattern, and `boxMotionVelocity` as the parameter representing the speed of the shuttle mechanism. The program for the hypothetical mechanical component of the shuttle mechanism includes a program that calculates the relative coordinates of the travel axis and the seal axis by transforming the phase of the input axis of the shuttle mechanism through the cam pattern, and a program for increasing or decreasing the combined speed of the shuttle mechanism.
[0072] The schematic diagrams 141 (showing the unwinder), 144 (showing the belt conveyor), and 147 (showing the shuttle mechanism) refer to the icons displayed in the hypothetical mechanical component area 133. The hypothetical mechanical component names 142 (showing the unwinder), 145 (showing the belt conveyor), and 148 (showing the shuttle mechanism) refer to the names of the components displayed in the hypothetical mechanical component area 133. The hypothetical mechanical component parameter setting areas 143 (unwinder), 146 (belt conveyor), and 149 (shuttle mechanism) are part of the hypothetical mechanical component parameter setting area 135.
[0073] A more detailed description is provided for the user-defined hypothetical mechanical parts displayed in area 134. Like other hypothetical mechanical parts, user-defined hypothetical mechanical parts have a user-defined hypothetical mechanical part name, user-defined hypothetical mechanical part parameters, and user-defined hypothetical mechanical part program. An example of a user-defined hypothetical mechanical part is a cross-pillow packaging machine created by combining an unwinder, a belt conveyor, and a shuttle mechanism.
[0074] A horizontal pillow packaging machine is a mechanical component that has an input shaft, an unwinding shaft, a belt conveyor shaft, a traveling shaft, and a sealing shaft. By transforming the phase of the input shaft into the relative coordinates of the unwinding shaft, the belt conveyor shaft, the traveling shaft, and the sealing shaft, it has the function of combining the film fed by the unwinder and the workpiece transported by the belt conveyor, and packaging the product by sealing and cutting through a shuttle box mechanism.
[0075] The functions of a horizontal bolster packaging machine can be achieved by using a horizontal bolster packaging machine, an unwinder, a belt conveyor, and a shuttle mechanism. This is achieved by connecting the input shaft and output shaft of the horizontal bolster packaging machine (corresponding to the unwinding shaft) to the input and unwinding shafts of the unwinder; connecting the input shaft and output shaft of the horizontal bolster packaging machine (corresponding to the belt conveyor shaft) to the input and output shafts of the belt conveyor; and connecting the input shaft, output shaft of the horizontal bolster packaging machine (corresponding to the travel shaft), and output shaft of the horizontal bolster packaging machine (corresponding to the sealing shaft) to the input, travel, and sealing shafts of the shuttle mechanism. This is equivalent to attaching unwinder, belt conveyor, and shuttle mechanism classes to the member variables of the horizontal bolster packaging machine class in object-oriented programming.
[0076] Figure 8 This diagram represents a schematic diagram 150 showing the horizontal pillow packaging machine, a diagram 151 showing the user-defined hypothetical mechanical component names of the horizontal pillow packaging machine, and a diagram 152 showing the user-defined hypothetical mechanical component parameter setting area of the horizontal pillow packaging machine. (See diagram 150 for details.) Figure 8As shown, the user-defined hypothetical mechanical component creation area of the horizontal pillow packaging machine displays a schematic diagram of an unwinder, a belt conveyor, and a shuttle mechanism. The parameters of the horizontal pillow packaging machine include the input shaft, the output shaft corresponding to the unwinding shaft, the output shaft corresponding to the belt conveyor, the output shaft corresponding to the travel shaft, the output shaft corresponding to the sealing shaft, the unwinder, the belt conveyor, and the shuttle mechanism.
[0077] exist Figure 8 In the example, the Unwinder1 class is defined as a parameter representing the unwinder, the Conveyor1 class is defined as a parameter representing the belt conveyor, the BoxMotion1 class is defined as a parameter representing the shuttle mechanism, the inputAxis is defined as a parameter representing the input axis, the unwindAxis is defined as a parameter representing the unwind axis, the conveyeyAxis is defined as a parameter representing the belt conveyor axis, the travelAxis is defined as a parameter representing the travel axis, and the sealAxis is defined as a parameter representing the seal axis.
[0078] As a user-defined hypothetical mechanical component program for a horizontal pillow packaging machine, it includes a program that transforms the phase of the input shaft of the horizontal pillow packaging machine through the unwinder, belt conveyor, and shuttle mechanism, and calculates the relative coordinates of the unwinding shaft, belt conveyor shaft, travel shaft, and sealing shaft.
[0079] The schematic diagram 150 showing the horizontal pillow packaging machine is an icon displayed in the user-defined hypothetical mechanical component area 134, and is the background image of the user-defined hypothetical mechanical component creation area. The user-defined hypothetical mechanical component name 151 showing the horizontal pillow packaging machine is the name of the component displayed in the user-defined hypothetical mechanical component area 134. The user-defined hypothetical mechanical component parameter setting area 152 of the horizontal pillow packaging machine is a part of the user-defined hypothetical mechanical component parameter setting area 136.
[0080] Figure 9 This is a diagram representing the user-defined hypothetical mechanical component parameter setting area 153 of the horizontal pillow packaging machine. Figure 9 In the example, parameters are set as parameters for the horizontal pillow packaging machine, used as a reference for inputting a schematic diagram of the horizontal pillow packaging machine. The user-defined hypothetical mechanical component drawing input unit 122 receives an image that becomes a schematic diagram of the horizontal pillow packaging machine based on the path input through the parameters.
[0081] Figure 10 This is a diagram representing the user-defined hypothetical mechanical component parameter setting area 152 of the horizontal pillow packaging machine. Although in Figure 10In the example, the user-defined hypothetical mechanical component program 125 is described using a structured text language, but the user-defined hypothetical mechanical component program 125 can also be described using other high-level languages. An example of other high-level languages is C. Figure 10 In the example, the program MC_CamIn, which performs the transformation from the input axis to the output axis of the unwinder, belt conveyor, and shuttle mechanism, and the program MC_PowerOn, which enables each output axis to operate, are defined. All controls for executing MC_CamIn are freely defined in the program AllCamIn of the cross-pillow packaging machine.
[0082] Figure 11 This diagram illustrates the function of the CPU unit 3 in the PLC 2 according to the embodiment. The CPU unit 3 includes a CPU 301 and a storage unit 302. The CPU 301 includes an execution unit 303. The storage unit 302 stores the sequenced program 123, the hypothetical mechanical component program 124, the user-defined hypothetical mechanical component program 125, the hypothetical mechanical component parameters 126, and the user-defined hypothetical mechanical component parameters 127 forwarded from the user program processing execution code generation unit 119 of the program creation aid 1. Furthermore, the storage unit 302 stores the user program and parameters output from the program creation aid 1. The storage unit 302 is implemented, for example, by a semiconductor memory.
[0083] The execution unit 303 performs motion control according to the user program and parameters corresponding to the user-defined hypothetical mechanical component. Furthermore, the execution unit 303 performs sequence control by executing the sequence program 123 described in the user-defined hypothetical mechanical component program 125 according to the hypothetical mechanical component parameters 126 and 127.
[0084] Figure 12 This is a flowchart illustrating the steps of a program creation assistance method executed by the CPU 101 of the program creation assistance device 1 according to the program creation assistance device software 111 in the embodiment.
[0085] In step S1, the CPU 101 specifically refers to the drawing unit 118 causing the display unit 106 to display a tree diagram 131, a sequence program editing area 132, a hypothetical mechanical component area 133, a user-defined hypothetical mechanical component area 134, a hypothetical mechanical component parameter setting area 135, a user-defined hypothetical mechanical component parameter setting area 136, and a user-defined hypothetical mechanical component editing area 137. Figure 12 In this context, the action of step S1 is described in terms such as "displaying the user interface".
[0086] In step S2, the CPU 101 specifically refers to the user-defined hypothetical mechanical component name input unit 120, which receives the name of the user-defined hypothetical mechanical component based on the instruction input to the text input unit 139 of the tree diagram 131 via the input unit 105. If the CPU 101 automatically assigns a name to the user-defined hypothetical mechanical component, step S2 can be omitted.
[0087] In step S3, the CPU 101 specifically refers to the user-defined hypothetical mechanical component program name input unit 121, which receives the name of the user-defined hypothetical mechanical component program based on the instruction input to the text input unit 140 of the tree diagram 131 via the input unit 105. If the CPU 101 automatically assigns a name to the user-defined hypothetical mechanical component program, step S3 can be omitted.
[0088] In step S4, the CPU 101, specifically the user-defined hypothetical mechanical component creation unit 113, edits the user-defined hypothetical mechanical component based on the instruction input through the input unit 105. This instruction can also be implemented by the operator selecting the desired hypothetical mechanical component from a plurality of hypothetical mechanical components pre-prepared in the hypothetical mechanical component area 133 using a mouse and moving the selected hypothetical mechanical component to the user-defined hypothetical mechanical component editing area 137 using the mouse. Moving the hypothetical mechanical component with the mouse is done by dragging and dropping. The hypothetical mechanical components added to the user-defined hypothetical mechanical component are as follows: Figure 8 The parameters are shown as being added to the user-defined hypothetical mechanical component. The display of the user-defined hypothetical mechanical component editing area 137 can also be achieved by the operator clicking on the user-defined hypothetical mechanical component in the tree diagram 131.
[0089] In step S5, the CPU 101, specifically the hypothetical mechanical component parameter setting unit 114, sets the parameters of each of the multiple hypothetical mechanical components possessed by the user-defined hypothetical mechanical component based on the instruction input to the hypothetical mechanical component parameter setting area 135 via the input unit 105. The display of the hypothetical mechanical component parameter setting area 135 can be achieved by the operator clicking the icon of the hypothetical mechanical component in the user-defined hypothetical mechanical component editing area 137, or by the operator clicking the hypothetical mechanical component in the user-defined hypothetical mechanical component parameter setting area 136.
[0090] In step S6, the CPU 101 specifically refers to the user-defined hypothetical mechanical component parameter editing unit 115, which edits the parameters of the user-defined hypothetical mechanical component based on the instructions input to the user-defined hypothetical mechanical component parameter setting unit 116 via the input unit 105.
[0091] In step S7, the CPU 101, specifically the user-defined hypothetical mechanical component parameter setting unit 116, sets the parameters of the user-defined hypothetical mechanical component based on the instructions input to the user-defined hypothetical mechanical component parameter setting area 136 via the input unit 105. The display of the user-defined hypothetical mechanical component parameter setting area 136 can also be achieved by the operator clicking on the parameters of the user-defined hypothetical mechanical component in the tree diagram 131.
[0092] In step S8, the CPU 101, specifically the user-defined hypothetical mechanical component program editing unit 117, receives instructions for editing the user-defined hypothetical mechanical component program based on instructions input to the user-defined hypothetical mechanical component program editing area 138 via the input unit 105. The display of the user-defined hypothetical mechanical component program editing area 138 can also be achieved by the operator clicking on the user-defined hypothetical mechanical component program in the tree diagram 131.
[0093] When an operator adds a new user-defined hypothetical mechanical component, the addition is indicated by a pop-up menu that appears when the operator right-clicks on the user-defined hypothetical mechanical component in the tree diagram 131. The created user-defined hypothetical mechanical components are displayed hierarchically in the tree diagram 131 and are also displayed in the user-defined hypothetical mechanical component area 134.
[0094] When an operator adds a new user-defined hypothetical machine component program, the addition is indicated by a pop-up menu that appears when the operator right-clicks on the user-defined hypothetical machine component program in tree diagram 131. The created user-defined hypothetical machine component programs are displayed hierarchically in tree diagram 131.
[0095] In step S9, the CPU 101 receives an instruction to edit the sequence program based on an instruction input to the sequence program editing area 132 via the input unit 105. The action corresponding to this instruction can be performed by the operator selecting a desired imaginary mechanical component from a plurality of imaginary mechanical components pre-prepared in the imaginary mechanical component area 133 using a mouse, and then moving the selected imaginary mechanical component to the sequence program editing area 132 using the mouse. Alternatively, the operator can simultaneously materialize the class possessed by the imaginary mechanical component after it has moved to the sequence program editing area 132. The operator can describe the sequence program using instances of imaginary mechanical components added to the sequence program via the imaginary mechanical component program 124.
[0096] The actions corresponding to the above instructions can be performed by the operator selecting the desired user-defined hypothetical mechanical component in the user-defined hypothetical mechanical component area 134 using the mouse, and then moving the selected user-defined hypothetical mechanical component to the sequencer editing area 132 using the mouse. Simultaneously, the class of the user-defined hypothetical mechanical component after moving to the sequencer editing area 132 can be instantiated. The operator can use instances of user-defined hypothetical mechanical components added to the sequencer to describe the sequencer through the user-defined hypothetical mechanical component program 125. Figure 12 In this context, the action of step S9 is expressed in the language of "configuring user-defined hypothetical mechanical parts in the sequencing program".
[0097] In step S10, the CPU 101 specifically refers to the user program processing execution code generation unit 119, which, based on the instructions made by the input unit 105, performs coding for execution by the PLC 2 for the hypothetical mechanical component program 124, the user-defined hypothetical mechanical component program 125, and the sequence program 123 described using the hypothetical mechanical component program 124 and the user-defined hypothetical mechanical component program 125.
[0098] In step S11, the CPU 101, specifically the user program processing execution code generation unit 119, forwards the coded sequenced program 123, the coded hypothetical mechanical component program 124, the coded user-defined hypothetical mechanical component program 125, the hypothetical mechanical component parameters 126, and the user-defined hypothetical mechanical component parameters 127 to the PLC 2 via the communication interface 107.
[0099] In step S12, the CPU unit 3 saves the sequence program 123, the hypothetical mechanical component program 124, the user-defined hypothetical mechanical component program 125, the hypothetical mechanical component parameters 126, and the user-defined hypothetical mechanical component parameters 127 in the storage unit 302.
[0100] In step S13, the execution unit 303 of CPU 301 executes the sequencing program 123.
[0101] As described above, in the program creation assistance device 1 according to the embodiment, the display unit 106 displays a plurality of imaginary mechanical components. Each imaginary mechanical component has information on at least one or more axes and is configured to perform predetermined computational processing on its internal movements to execute motion control. The imaginary mechanical component designation unit 112 designates imaginary mechanical components constituting user-defined imaginary mechanical components from the plurality of imaginary mechanical components displayed by the display unit 106. The user-defined imaginary mechanical component creation unit 113 creates a user-defined imaginary mechanical component different from the displayed plurality of imaginary mechanical components based on one or more mechanical components designated from the displayed plurality of imaginary mechanical components. Furthermore, the user-defined imaginary mechanical component creation unit 113 defines new user-defined imaginary mechanical components by changing or combining predefined imaginary mechanical components. The user-defined imaginary mechanical component parameter editing unit 115 edits the user-defined imaginary mechanical component parameters 127 of the user-defined imaginary mechanical component defined by the user-defined imaginary mechanical component creation unit 113. The user-defined hypothetical machine component parameter setting unit 116 sets the user-defined hypothetical machine component parameters 127. The hypothetical machine component parameter setting unit 114 sets the parameters for the internal actions of each of the defined hypothetical machine components. Furthermore, the hypothetical machine component parameter setting unit 114 sets the hypothetical machine component parameters 126 of the hypothetical machine components possessed by the user-defined hypothetical machine component. The user-defined hypothetical machine component program editing unit 117 edits the operation processing of the user-defined hypothetical machine component using a user program. Furthermore, the user-defined hypothetical machine component program editing unit 117 freely uses the hypothetical machine component program 124 of the hypothetical machine component possessed by the user-defined hypothetical machine component to edit the user-defined hypothetical machine component program 125. The user program processing execution code generation unit 119 encodes the sequence program code containing the user-defined hypothetical machine component program and forwards it to the PLC 2. Furthermore, the user program processing execution code generation unit 119 encodes the sequence program based on the parameters set by the user-defined hypothetical mechanical component parameter setting unit 116, and outputs the coded user program to PLC 2, so that PLC 2 executes the motion control described in the user program.
[0102] The hypothetical mechanical component program 124 is provided within a pre-prepared hypothetical mechanical component. Therefore, the operator can achieve control simply by specifying the parameters of each hypothetical mechanical component. The operator defines a user-defined hypothetical mechanical component by changing or combining at least one hypothetical mechanical component, thereby enabling the definition of a user-defined hypothetical mechanical component program 125 using the hypothetical mechanical component program 124 included in the user-defined hypothetical mechanical component. Therefore, the program creation aid 1 according to the embodiment can reduce the operator's burden when creating programs for mechanical devices requiring complex control.
[0103] If used Figure 4 As explained, a user-defined hypothetical mechanical part name input section 120 can also be set up for inputting the name of a user-defined hypothetical mechanical part. This allows the operator to freely determine the name of the user-defined hypothetical mechanical part. Furthermore, the operator can use the determined name in the program.
[0104] If used Figure 4 As explained, a user-defined hypothetical machine part program name input section 121 can also be provided for inputting the name of the user-defined hypothetical machine part program 125. This allows the operator to freely determine the name of the user-defined hypothetical machine part program 125. Furthermore, the operator can use the determined name in the program.
[0105] If used Figure 9 As explained, a user-defined hypothetical mechanical component drawing input unit 122 can also be provided for inputting schematic diagrams of user-defined hypothetical mechanical components. This allows the operator to freely choose the schematic diagram of the user-defined hypothetical mechanical component, and while visually recognizing the schematic diagram displayed in the user-defined hypothetical mechanical component creation area, to place the hypothetical mechanical component in the user-defined hypothetical mechanical component creation area. Therefore, it is possible to create intuitive user-defined hypothetical mechanical components while being aware of the relationships between them.
[0106] Figure 12 In step S4, editing the user-defined hypothetical mechanical component is achieved by selecting the desired hypothetical mechanical component from a plurality of hypothetical mechanical components pre-prepared in the hypothetical mechanical component area 133 using the mouse, and then moving the selected hypothetical mechanical component to the user-defined hypothetical mechanical component editing area 137 using the mouse. However, editing the user-defined hypothetical mechanical component can also be achieved by selecting the desired user-defined hypothetical mechanical component from the user-defined hypothetical mechanical components in the user-defined hypothetical mechanical component area 134 using the mouse, and then moving the selected user-defined hypothetical mechanical component to the user-defined hypothetical mechanical component editing area 137 using the mouse.
[0107] The operator defines different user-defined hypothetical mechanical parts by changing or combining at least one user-defined hypothetical mechanical part, thereby enabling the definition of different user-defined hypothetical mechanical part programs 125 using the user-defined hypothetical mechanical part program 125 possessed by the user-defined hypothetical mechanical part. Therefore, the program creation aid 1 can reduce the operator's burden when creating programs, even for different user-defined hypothetical mechanical parts that have multiple identical user-defined hypothetical mechanical parts.
[0108] The display unit 106 can also display multiple user-defined hypothetical mechanical parts created by the user-defined hypothetical mechanical part creation unit 113. The user-defined hypothetical mechanical part creation unit 113 creates hypothetical mechanical parts that are different from the displayed hypothetical mechanical parts and the user-defined hypothetical mechanical parts, based on one or more mechanical parts specified from the multiple displayed hypothetical mechanical parts or the user-defined hypothetical mechanical parts. In this case, the program creation assistance device 1 can improve the reusability of the user-defined hypothetical mechanical parts, thereby reducing the operator's burden when creating programs for mechanical devices requiring complex control.
[0109] If used Figure 7 as well as Figure 8 As explained, in this implementation, the hypothetical mechanical components are cams, unwinders, belt conveyors, and shuttle mechanisms. However, the mechanical model modules can also be included within the hypothetical mechanical components as hypothetical mechanical components with a further increased level of abstraction.
[0110] A mechanical model module is a mechanical component that has at least one input shaft, at least one output shaft, and a mechanical model. It has the function of simulating the motion of the machine driven by each input shaft through the mechanical model and outputting the simulation results to each output shaft. Figure 13 This diagram illustrates an example of a mechanical system 401 simulated by a mechanical model. The mechanical system 401 has motors on three axes: X-axis 401a, Y-axis 401b, and Z-axis 401c. These motors control the position of a worktable that moves in the XY plane via X-axis 401a and Y-axis 401b. The movement of the Z-axis 401c causes a head 401d mounted at its front end to machine a workpiece positioned on the worktable 401e.
[0111] For example, a mechanical model takes the axis positions of X-axis 401a, Y-axis 401b, and Z-axis 401c as inputs and the positions of the worktable 401e and head 401d as outputs, and transforms the inputs into a mechanical model of the worktable position and head position through kinematics based on the motor position.
[0112] A mechanical model can also be a model that takes into account the dynamics of the machine, and can simulate vibration characteristics.
[0113] A mechanical model can be prepared in advance, or a mechanical model generation program can be prepared to generate the mechanical model. A hypothetical mechanical component can also have a model generation program for generating a mechanical model that simulates the actions of a motor-driven machine based on data from the actual machine. When a hypothetical mechanical component has a model generation program, it can be controlled by a mechanical model module that already has a mechanical model, even without a pre-prepared mechanical model.
[0114] The mechanical model generation program generates a model based on the input machine information. Machine information refers to the signals obtained from the actual operation of the mechanical system. For example, timing data of the motor positions on the X, Y, and Z axes, as well as timing data of the table position and head position, are included in the machine information.
[0115] The mechanical model generation program generates a mechanical model that takes the timing data of the motor positions on the X, Y, and Z axes as input and outputs the timing data of the table position and head position.
[0116] To determine the relationship between input and output, machine learning techniques such as neural networks or support vector regression, or systematic identification techniques such as prediction error methods or partial space methods, can be used. An example using neural networks is shown below.
[0117] The model generation program uses the timing data of the motor positions on the X, Y, and Z axes, as well as the timing data of the worktable and head positions, as learning data to perform learning actions using a neural network. Figure 14 This is a diagram illustrating the neural network involved in the implementation method. The neural network has an input layer, an intermediate layer, and an output layer. M input data i1, i2, ..., iM, representing the positions of the motors along the X, Y, and Z axes, are input to the input layer. N output data o1, o2, ..., oN, representing the positions of the worktable and the head, are output from the output layer. M and N are both natural numbers greater than or equal to 2.
[0118] It allows for the independent setting of multiple weight coefficients for each node in the input layer and each node in the intermediate layer, but... Figure 14 In this context, multiple weighting coefficients are all denoted by the same weighting coefficient W1. Similarly, in... Figure 14 In this context, all the weight coefficients from each node in the intermediate layer to each node in the output layer are denoted by the same weight coefficient W2.
[0119] The output values of each node in the input layer are multiplied by a weight coefficient W1, and the linear combination of the results is input to the nodes in the intermediate layer. Similarly, the output values of each node in the intermediate layer are multiplied by a weight coefficient W2, and the linear combination of the results is input to the nodes in the output layer. Within each node of each layer, non-linear functions such as the sigmoid function can be used to calculate the output values based on the input values. In both the input and output layers, the output values can also be linear combinations of the input values.
[0120] The model generation program uses timing data of motor positions along the X, Y, and Z axes, as well as timing data of table and head positions, to calculate the weight coefficients W1 and W2 of the neural network. The weight coefficients W1 and W2 can be calculated using either backpropagation or gradient descent. However, any method that allows for the calculation of the neural network weight coefficients is acceptable; the methods for calculating weight coefficients W1 and W2 are not limited to those described above.
[0121] Once the weight coefficients of the neural network are determined, the relationship between the timing data of the motor positions along the X, Y, and Z axes and the timing data of the table and head positions is obtained. This demonstrates learning using a three-layer neural network. Learning using neural networks is not limited to the example above.
[0122] The model generation program generates a mechanical model that takes the positions of the motors on the X, Y, and Z axes as inputs and the positions of the worktable and head as outputs.
[0123] The accuracy of simulations performed by neural networks can be arbitrarily set by changing one or both of the number of layers and nodes in the neural network. That is, multiple mechanical models with varying degrees of accuracy can be easily generated. By generating mechanical models based on real-machine data as described in the implementation method, control can be achieved by a mechanical model module that includes a mechanical model, even if the user has not prepared one beforehand.
[0124] also, Figure 12 The program creation assistance method shown is implemented by the CPU 101 executing the program creation assistance device software 111. That is, according to the embodiment, in addition to the program creation assistance device 1, a program creation assistance method and a program creation assistance program are also provided.
[0125] Figure 15This diagram illustrates the processing circuit 91 used to implement, in cases where part or all of the following components of the program creation aid 1 according to the embodiment are included: the hypothetical mechanical component designation unit 112, the user-defined hypothetical mechanical component creation unit 113, the hypothetical mechanical component parameter setting unit 114, the user-defined hypothetical mechanical component parameter editing unit 115, the user-defined hypothetical mechanical component parameter setting unit 116, the user-defined hypothetical mechanical component program editing unit 117, the drawing unit 118, the user program processing execution code generation unit 119, the user-defined hypothetical mechanical component name input unit 120, the user-defined hypothetical mechanical component program name input unit 121, and the user-defined hypothetical mechanical component drawing input unit 122. That is, part or all of the following units can also be implemented by the processing circuit 91: the hypothetical mechanical component designation unit 112, the user-defined hypothetical mechanical component creation unit 113, the hypothetical mechanical component parameter setting unit 114, the user-defined hypothetical mechanical component parameter editing unit 115, the user-defined hypothetical mechanical component parameter setting unit 116, the user-defined hypothetical mechanical component program editing unit 117, the drawing unit 118, the user program processing execution code generation unit 119, the user-defined hypothetical mechanical component name input unit 120, the user-defined hypothetical mechanical component program name input unit 121, and the user-defined hypothetical mechanical component drawing input unit 122.
[0126] The processing circuit 91 is dedicated hardware. The processing circuit 91 may be, for example, a single circuit, a composite circuit, a programmable processor, a parallel programmable processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination thereof. Parts of the hypothetical mechanical component designation unit 112, the user-defined hypothetical mechanical component creation unit 113, the hypothetical mechanical component parameter setting unit 114, the user-defined hypothetical mechanical component parameter editing unit 115, the user-defined hypothetical mechanical component parameter setting unit 116, the user-defined hypothetical mechanical component program editing unit 117, the drawing unit 118, the user program processing execution code generation unit 119, the user-defined hypothetical mechanical component name input unit 120, the user-defined hypothetical mechanical component program name input unit 121, and the user-defined hypothetical mechanical component drawing input unit 122 may also be implemented using dedicated hardware different from the remaining parts.
[0127] For the multiple functions of the hypothetical mechanical component designation unit 112, the user-defined hypothetical mechanical component creation unit 113, the hypothetical mechanical component parameter setting unit 114, the user-defined hypothetical mechanical component parameter editing unit 115, the user-defined hypothetical mechanical component parameter setting unit 116, the user-defined hypothetical mechanical component program editing unit 117, the drawing unit 118, the user program processing execution code generation unit 119, the user-defined hypothetical mechanical component name input unit 120, the user-defined hypothetical mechanical component program name input unit 121, and the user-defined hypothetical mechanical component drawing input unit 122, some of these multiple functions may be implemented by software or firmware, while the remaining multiple functions may be implemented by dedicated hardware. As described above, these multiple functions can be implemented by hardware, software, firmware, or a combination thereof.
[0128] The execution unit 303 of PLC 2 can also be implemented by the same processing circuit as processing circuit 91.
[0129] The structure shown in the above embodiments is an example that can be combined with other known techniques, and a part of the structure can be omitted or changed without departing from the main idea.
[0130] Explanation of the label
[0131] 1. Program creation auxiliary device; 2. PLC; 3. CPU unit; 4. Expansion unit; 5. Bus unit; 9. Transmission path; 91. Processing circuit; 101, 301 CPU; 102 RAM; 103 ROM; 104, 302 Storage unit; 105 Input unit; 106 Display unit; 107 Communication interface; 111 Program creation auxiliary device software; 112 Hypothetical mechanical component specification unit; 113 User-defined hypothetical mechanical component creation unit; 114 Hypothetical mechanical component parameter setting unit; 115 User-defined hypothetical mechanical component parameter editing unit; 116 User-defined... 117 User-defined hypothetical mechanical component parameter setting unit, 118 User-defined hypothetical mechanical component program editing unit, 119 User program processing execution code generation unit, 120 User-defined hypothetical mechanical component name input unit, 121 User-defined hypothetical mechanical component program name input unit, 122 User-defined hypothetical mechanical component diagram input unit, 123 Sequencing program, 124 Hypothetical mechanical component program, 125 User-defined hypothetical mechanical component program, 126 Hypothetical mechanical component parameters, 127 User-defined hypothetical mechanical component parameters, 131 Tree diagram, 132 Sequencing program The code is divided into several sections: 133 Prefix editing area, 134 User-defined hypothetical mechanical component area, 135 Hypothetical mechanical component parameter setting area, 136 User-defined hypothetical mechanical component parameter setting area, 137 User-defined hypothetical mechanical component editing area, 138 User-defined hypothetical mechanical component program editing area, 139 & 140 Text input section, 141 Schematic diagram of the unwinder, 142 Hypothetical mechanical component name of the unwinder, 143 Hypothetical mechanical component parameter setting area of the unwinder, and 144 Schematic diagram of the belt conveyor. 145 shows the name of the hypothetical mechanical component of the belt conveyor; 146 shows the parameter setting area for the hypothetical mechanical component of the belt conveyor; 147 shows a schematic diagram of the shuttle box mechanism; 148 shows the name of the hypothetical mechanical component of the shuttle box mechanism; 149 shows the parameter setting area for the hypothetical mechanical component of the shuttle box mechanism; 150 shows a schematic diagram of the cross-pillow packaging machine; 151 shows the user-defined hypothetical mechanical component name of the cross-pillow packaging machine; 152 and 153 show the user-defined hypothetical mechanical component parameter setting area for the cross-pillow packaging machine; 303 is the actuator; 401 is the mechanical system; 401a is the X-axis; 401b is the Y-axis; 401c is the Z-axis; 401d is the head; 401e is the worktable; 1000 is the PLC system.
Claims
1. A program creation auxiliary device, characterized in that, have: The display unit shows multiple imaginary mechanical components, each imaginary mechanical component having information on at least one axis, and is configured to perform prescribed calculations on internal movements to execute motion control. The user-defined hypothetical mechanical component creation unit creates a hypothetical mechanical component as a user-defined hypothetical mechanical component based on one or more mechanical components specified from the plurality of hypothetical mechanical components shown. This hypothetical mechanical component includes at least one of the hypothetical mechanical components shown as parameters and is different from the plurality of hypothetical mechanical components shown. The hypothetical mechanical component parameter setting unit sets parameters that define the internal actions of each of the plurality of hypothetical mechanical components; The user-defined hypothetical mechanical component program editing department edits the calculation and processing of the user-defined hypothetical mechanical component through the user program; The user-defined hypothetical mechanical component parameter setting unit sets the parameters of the user-defined hypothetical mechanical component; as well as The user program processing and execution code generation unit outputs the user program, which is coded based on the parameters set by the user-defined hypothetical mechanical component parameter setting unit, to the programmable logic controller (PLC) to execute the motion control described in the user program. The user-defined hypothetical mechanical component creation section displays the user interface for creating user-defined hypothetical mechanical components, i.e., the user-defined hypothetical mechanical component creation section area. When creating a user-defined hypothetical mechanical component, the user-defined hypothetical mechanical component creation area will display a schematic diagram representing the user-defined hypothetical mechanical component as the background of the user-defined hypothetical mechanical component creation area. The display unit displays a schematic diagram representing the user-defined hypothetical mechanical component when the user-defined hypothetical mechanical component creation unit creates the user-defined hypothetical mechanical component.
2. The program creation auxiliary device according to claim 1, characterized in that, The display unit shows multiple user-defined hypothetical mechanical parts created by the user-defined hypothetical mechanical part creation unit. The user-defined hypothetical mechanical component creation unit creates a hypothetical mechanical component that is different from the displayed hypothetical mechanical components and the user-defined hypothetical mechanical components, based on one or more mechanical components specified from the plurality of displayed hypothetical mechanical components or the user-defined hypothetical mechanical components.
3. The program creation auxiliary device according to claim 1 or 2, characterized in that, The hypothetical mechanical component has a schematic diagram representing the hypothetical mechanical component.
4. The program creation auxiliary device according to claim 1 or 2, characterized in that, The hypothetical mechanical component has a name representing the hypothetical mechanical component.
5. The program creation auxiliary device according to claim 1 or 2, characterized in that, The display unit will show a list of the hypothetical mechanical components, which includes schematic diagrams of the hypothetical mechanical components and their names.
6. The program creation auxiliary device according to claim 1 or 2, characterized in that, It also has a user-defined hypothetical mechanical component name input section, which is used to input the name of the user-defined hypothetical mechanical component.
7. The program creation auxiliary device according to claim 1 or 2, characterized in that, It also has a user-defined hypothetical mechanical component program name input section, which is used to input the name of the program possessed by the user-defined hypothetical mechanical component.
8. The program creation auxiliary device according to claim 1 or 2, characterized in that, It also has a user-defined hypothetical mechanical component drawing input section, which is used to input the schematic diagram.
9. The program creation auxiliary device according to claim 1 or 2, characterized in that, The hypothetical mechanical component has a model generation program that generates a mechanical model based on data from the actual machine to simulate the motion of a motor-driven machine.
10. A method for assisting in program creation, characterized in that, It includes the following processes: The mechanical component display process displays multiple imaginary mechanical components. Each imaginary mechanical component has information on at least one axis, and is configured to perform prescribed calculations on its internal movements to execute motion control. The user-defined hypothetical mechanical component creation process creates a hypothetical mechanical component as a user-defined hypothetical mechanical component based on one or more of the mechanical components specified from the plurality of hypothetical mechanical components shown. This hypothetical mechanical component includes at least one of the hypothetical mechanical components shown as parameters and is different from the plurality of hypothetical mechanical components shown. The mechanical component parameter setting process sets parameters that define the internal actions of each of the multiple hypothetical mechanical components. The user-defined hypothetical mechanical component program editing process involves editing the computational processing of the user-defined hypothetical mechanical component through a user program. The user-defined hypothetical mechanical component parameter setting process sets the parameters of the user-defined hypothetical mechanical component; as well as The user program processing execution code generation step outputs the coded user program, based on the parameters set in the user-defined hypothetical mechanical component parameter setting step, to the programmable logic controller to execute the motion control described in the user program. In the user-defined hypothetical mechanical component creation process, a user interface for creating user-defined hypothetical mechanical components, namely the user-defined hypothetical mechanical component creation area, is displayed. In the user-defined hypothetical mechanical component creation area, when performing an operation to create a user-defined hypothetical mechanical component, a schematic diagram representing the user-defined hypothetical mechanical component is displayed as the background of the user-defined hypothetical mechanical component creation area. In the mechanical component display process, when the user-defined hypothetical mechanical component is created through the user-defined hypothetical mechanical component creation process, a schematic diagram representing the user-defined hypothetical mechanical component is displayed.
11. A storage medium storing a program creation aid program for causing a computer to perform the following steps: The mechanical component display step displays multiple imaginary mechanical components on the display unit. Each imaginary mechanical component has information about at least one axis, and is configured to perform prescribed calculations on its internal movements to execute motion control. The user-defined hypothetical mechanical component creation step involves creating a hypothetical mechanical component as a user-defined hypothetical mechanical component based on one or more of the mechanical components specified from the plurality of hypothetical mechanical components shown. This hypothetical mechanical component includes at least one of the hypothetical mechanical components shown as parameters and is different from the plurality of hypothetical mechanical components shown. The mechanical component parameter setting step sets parameters that define the internal actions of each of the multiple hypothetical mechanical components. The user-defined hypothetical mechanical component program editing steps involve editing the computational processing of the user-defined hypothetical mechanical component through a user program; The user-defined hypothetical mechanical component parameter setting steps are used to set the parameters of the user-defined hypothetical mechanical component. The user program processing execution code generation step outputs the coded user program based on the parameters set in the user-defined hypothetical mechanical component parameter setting step to the programmable logic controller to execute the motion control described in the user program. In the user-defined hypothetical mechanical component creation step, a user interface for creating user-defined hypothetical mechanical components, namely the user-defined hypothetical mechanical component creation area, is displayed. In the user-defined hypothetical mechanical component creation area, when performing an operation to create a user-defined hypothetical mechanical component, a schematic diagram representing the user-defined hypothetical mechanical component is displayed as the background of the user-defined hypothetical mechanical component creation area; and In the mechanical component display step, a schematic diagram representing the user-defined hypothetical mechanical component is displayed when the user-defined hypothetical mechanical component is created through the user-defined hypothetical mechanical component creation step.
12. A programmable logic controller, characterized in that, have: Storage unit, which stores the user program and the parameters output from the program creation aid according to claim 1; and The actuator performs motion control according to the user program and the parameters corresponding to the user-defined hypothetical mechanical component.
Citation Information
Patent Citations
Programming support device and program executing apparatus
CN101251751A
Programmable logic controller, program generation support device, and program generation support method and program
JP2017079007A
