Command list creation device, information creation device, screen creation device, drawing creation device, command list creation method, information creation method, command list creation program, screen creation program, drawing creation program, and recording medium
Through the command list creation device, the sequence of composite names is generated using the machine action sequence, which solves the problem of low utilization efficiency of design information of ladder diagram programs and operation display screens, realizes automatic creation, and improves work efficiency.
Patent Information
- Application Number
- CN202380040749.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-05-18
- Filing Date
- 2023-05-12
- Publication Date
- 2024-12-27
AI Technical Summary
When creating ladder diagram programs and operating display screens, the utilization efficiency of design information in the prior art is low, resulting in long manual input time and prone to typing errors, and screen creation and program creation have nothing in common, increasing work burden.
A command list creation device is designed, and the generation unit generates sequence information of composite names based on the order of machine action, and uses predefined comparison information to determine commands and identification information, establish correspondence relationships, generate command lists, and then automatically creates a ladder diagram program. and screen data.
It improves the efficiency of design information utilization, reduces manual input time, reduces error rate, and realizes the automation of ladder diagram programs and screen creation, improving work efficiency.
Smart Images

Figure CN119213371A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a command list creating device and the like for creating a command list used in creating a ladder diagram program and the like. Background Art
[0002] A control device that performs sequence control, such as a PLC (Programmable Logic Controller), operates according to a sequence program that describes control procedures. As such a sequence program, for example, a ladder diagram program is known.
[0003] In the creation of a ladder diagram program, programming software created in the form of a ladder diagram is used. Generally speaking, the programming software is installed on a PC (personal computer). As described in patent document 1, such a PC functions as a program creation auxiliary device for assisting the creation of a ladder diagram program.
[0004] Prior art literature
[0005] Patent Literature
[0006] Patent Document 1: Japanese Patent Application Publication No. 2017-188115 Summary of the invention
[0007] Problems to be solved by the invention
[0008] When creating a ladder diagram program using the program creation auxiliary device, design information that designs the movements of the machines that constitute the production facility is created in advance. The design information includes the various machines used, the movement sequence of the machines, etc. Then, the creator of the ladder diagram program performs programming work using the program creation auxiliary device based on the design information. The programming work is performed by the creator manually inputting while referring to the design information, which may cause problems such as time-consuming and typing errors.
[0009] In addition, the above-mentioned design information is not only used for the creation of ladder diagram programs, but also used when creating various information for the construction and operation of production facilities. For example, the design information is also used to create a screen displayed on the operation display device. The operation display device has a touch panel and a display device, and is linked with the control device to display the status of the production facility on the display device based on the data obtained from the control device, or to issue control instructions to the control device via the touch panel. In general, the creation of the screen is performed using a PC with screen creation software installed. The creation of the screen is also the same as the creation of the ladder diagram program, and is performed by the creator of the screen manually inputting while referring to the design information. Moreover, the creation of the screen does not have a part that can be shared with the creation of the ladder diagram program, and is performed as a completely different operation from the creation of the ladder diagram program, so there is a problem of taking time.
[0010] Thus, the design information is only provided as a reference for the creator when creating the ladder program and screen, and is not prepared in a form that contributes to efficient creation.
[0011] An object of one embodiment of the present invention is to effectively utilize design information.
[0012] Technical means of solving problems
[0013] In order to solve the above-mentioned problem, a command list creation device of one embodiment of the present invention has a generating unit, which generates a command list by establishing a correspondence between commands that specify sequence control to be performed by the control device and identification information of the machine based on sequence information of a compound name representing the action of a machine connected to the control device in the order of the action of the machine, wherein the compound name includes a machine name representing the machine and an action name representing the action of the machine, and the generating unit has: a command determination unit, which determines the command corresponding to the compound name read out in sequence from the sequence information with reference to command comparison information that pre-defines the correspondence between the compound name and the command; and an identification information determination unit, which determines the identification information corresponding to the machine name contained in the compound name read out in sequence from the sequence information with reference to machine comparison information that pre-defines the correspondence between the machine name and the identification information.
[0014] In order to solve the above-mentioned problem, a command list creation method of one embodiment of the present invention includes a generation process, which generates a command list by establishing a correspondence between commands that specify sequence control to be performed by the control device and identification information of the machine based on sequence information of a compound name representing the action of a machine connected to a control device in the order of the action of the machine, wherein the compound name includes a machine name representing the machine and an action name representing the action of the machine, and the generation process includes: a command determination process, referring to command comparison information that predefines the correspondence between the compound name and the command, to determine the command corresponding to the compound name read out in sequence from the sequence information; and an identification information determination process, referring to machine comparison information that predefines the correspondence between the machine name and the identification information, to determine the identification information corresponding to the machine name contained in the compound name read out in sequence from the sequence information.
[0015] Effects of the Invention
[0016] According to one aspect of the present invention, design information can be effectively utilized. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a block diagram showing the structure of a ladder program creation system according to the first embodiment of the present invention.
[0018] Figure 2 This is a diagram showing the structure of an input form for creating design information by a PC for creating design information in the ladder program creation system.
[0019] Figure 3 This is a diagram showing a part of the input form in which the device comparison information for the position of the servo motor in the design information is recorded.
[0020] Figure 4 It is a diagram showing a part of the input form in which the device comparison information for the speed of the servo motor in the design information is recorded.
[0021] Figure 5 This is a diagram showing a part of the input form in which the device comparison information for the acceleration / deceleration time of the servo motor in the design information is recorded.
[0022] Figure 6 It is a diagram showing a part of the input table in which the device comparison information for the input device in the design information is recorded.
[0023] Figure 7 It is a diagram showing a part of an input table in which device comparison information for output devices in the above-mentioned design information is recorded.
[0024] Figure 8 This is a diagram showing a configuration example of a replacement machine for creating an object of sequence information in the above-mentioned design information.
[0025] Fig. 9 It is a figure which shows a part of the input form which recorded the said sequence information with respect to the said switching machine.
[0026] Fig.10 This is a diagram showing a command list created by a PC for creating a command list in the ladder program creation system.
[0027] Fig.11 This is a flowchart showing the procedure for creating a command list by a PC for creating a command list.
[0028] Fig.12 This is a diagram showing a ladder program for the current value of the servo motor.
[0029] Fig.13 This is a ladder diagram program that indicates the position of the servo motor.
[0030] Fig.14 This is a diagram showing a ladder diagram program for interlocking.
[0031] Fig.15This is a diagram showing a ladder program for setting the target position and movement amount of the servo motor.
[0032] Fig.16 This figure shows a ladder program for setting the origin of the servo motor.
[0033] Fig.17 This figure shows a ladder program for JOG start of the servo motor.
[0034] Fig.18 This figure shows a ladder program for the start command for the servo motor.
[0035] Fig.19 This is a diagram showing a ladder program for processing when an abnormality occurs.
[0036] Fig. 20 This is a diagram showing a ladder diagram program for abnormality detection by a sensor.
[0037] Fig.21 This is a diagram showing a ladder program for manual operation.
[0038] Fig. 22 This is a diagram showing a ladder diagram program for the operation of the output circuit.
[0039] Fig.23 This is a diagram showing a ladder diagram program for autonomous driving.
[0040] Fig.24 This is a block diagram showing the configuration of a screen creation system according to Embodiment 2 of the present invention.
[0041] Fig.25 This is a diagram showing a list of devices used in a PC for screen creation in the above-mentioned screen creation system.
[0042] Fig.26 This is a diagram showing a device list of a part of devices to which the PC used to create the command list outputs the command list in CSV format.
[0043] Fig. 27 This is a diagram showing a text representation list of a part of the comments of the command list output in CSV format by a PC used for creating the command list.
[0044] Fig.28 This is a flowchart showing the screen creation procedure performed by a PC for screen creation.
[0045] Fig.29 This figure shows the I / O monitor screen.
[0046] Fig.30 This figure shows the tracking screen.
[0047] Fig.31 It is a diagram showing an arm Z information display screen.
[0048] Fig.32 This is a diagram showing an abnormality display screen.
[0049] Fig.33 This is a block diagram showing the structure of a drawing creation system according to Embodiment 3 of the present invention.
[0050] Fig.34 This is a diagram showing a list of machine information created by the above-mentioned PC.
[0051] Fig.35 This is a diagram showing a list of current values created by the above-mentioned PC.
[0052] Fig.36 This is a flowchart showing the steps of creating drawings by a PC used for creating drawings in the above-mentioned drawing creation system.
[0053] Fig.37 It is a diagram showing the drawing template prepared by the above-mentioned PC and the drawing data created by the PC based on the drawing template.
[0054] Fig.38 It is a diagram showing other drawing templates prepared by a PC used for drawing creation in the above-mentioned drawing creation system and other drawing data created by the PC based on the drawing templates. DETAILED DESCRIPTION
[0055] [Implementation method 1]
[0056] Hereinafter, one embodiment of the present invention will be described in detail.
[0057] <Overview of Ladder Program Creation System 1001>
[0058] Figure 1 This is a block diagram showing the structure of the ladder program creation system 1001 according to the first embodiment.
[0059] like Figure 1 As shown, the ladder diagram program creation system 1001 has PC 1 (information creation device), PC 2 (command list creation device), and PC 3. PC 1 to PC 3 are personal computers, which are not shown in the figure but have a CPU (central processing unit), RAM (random access memory), ROM (read only memory), auxiliary storage device (HHD, SSD, etc.), display device, input device, communication device, etc.
[0060] The ladder program creation system 1001 is a system that first creates design information, creates a command list 100 based on the design information, and automatically creates a ladder program based on the command list 100. The created ladder program is written into the PLC 4.
[0061] The PLC 4 is a control device for monitoring and controlling the machine 5 constituting the main part of the production facility. The PLC 4 has a communication unit 41, a program memory 42, and a control unit 43. The communication unit 41 receives a ladder program created by the PC 3 from the PC 3. The program memory 42 stores the ladder program received by the communication unit 41. The control unit 43 reads the state of the machine 5 or provides a control instruction to the machine 5 at predetermined scan times according to the control steps specified in the ladder program.
[0062] The command list is a list in which commands for defining sequence control by the PLC 4 are associated with devices (identification information) of the machines 5. The command list will be described in detail later.
[0063] The device 5 is connected to and operates with the PLC 4. As the device 5, there are provided a motion device, an input device, an output device, and the like.
[0064] An action machine is a machine such as a cylinder that moves by turning on / off a signal. In addition, an action machine is a machine that can perform complex actions through a dedicated controller, for example, a machine such as a servo motor that moves under the control of a servo amplifier (controller). Multiple servo motors are used in devices that require multi-axis control, such as robot arms, XY tables, and conveying devices.
[0065] The input device is a button switch, a sensor, and an operation display device 7 (see Fig.24 ) is a device that outputs input signals to PLC4, such as a touch switch shown in FIG. Output devices are devices such as lamps, solenoid valves, and motors (motors other than servo motors) that receive output signals from PLC4.
[0066] 〈Structure of PC1〉
[0067] The PC 1 is configured as an information creation device for creating design information. The PC 1 includes an information creation unit 11, a storage device 12, an input device 13, a display device 14, and a communication unit 15 to create design information.
[0068] The information creation unit 11 creates design information in accordance with an input operation by a user via the input device 13, and displays the design information on the display device 14. The information creation unit 11 also causes the communication unit 15 to transmit the created design information to the PC 2.
[0069] The design information is information for designing the operation of the machine 5 installed in the production facility, and includes machine matching information and sequence information. The machine matching information and sequence information will be described in detail later.
[0070] The information creation unit 11 provides, for example, a dedicated input form F as a user interface that allows the user to enter necessary items so that the design information can be created. The input form F is stored in the storage device 12. As the input form F, a table of spreadsheet software can be used. In this case, the input form F can be formed in a table format and can be easily imported. The input form F is not limited to this, and can also be formed in HTML (Hyper Text Markup Language) format, CSV (Comma Separated Values), text, matrix format, form format, visual programming format, etc.
[0071] Here, the input form F will be described. Figure 2 1 is a diagram showing the structure of an input form F used in creating design information by the PC 1.
[0072] like Figure 2 As shown, the input form F includes a storage unit F1, a machine control information creation area F2, and a sequence information creation area F3.
[0073] The storage unit F1 stores a machine name and a sequence name which is a compound name. The machine name is a name indicating the machine 5. The machine name is not only the name of the machine 5 itself, but may also be a name indicating the function of the machine 5 as long as the machine 5 can be identified. The sequence name is a name including the machine name and an action name indicating the action of the machine 5. It can be said that the sequence name indicates the action of the machine 5 by including the action name. In the case where the input form F is formed by a table of spreadsheet software, the storage unit F1 is configured as a drop-down list, for example. The storage unit F1 is configured to be able to be browsed in the machine comparison information creation area F2 and the sequence information creation area F3 described later.
[0074] The machine comparison information creation area F2 is provided for creating machine comparison information. The machine comparison information is information that predefines the correspondence between machine names and devices. The machine comparison information creation area F2 is provided with, for example, a device entry area F21 for entering devices and a machine name entry area F22 for entering machine names in the same unit. The devices and machine names entered in the device entry area F21 and the machine name entry area F22 in the same row are respectively established in correspondence. The machine comparison information creation area F2 is configured to be able to obtain machine names from the storage unit F1.
[0075] The device is composed of a combination of a device symbol and a device number. For example, the input relay is represented by X, the output relay is represented by Y, the internal relay is represented by M, the timer is represented by T, and the data register is represented by D. As devices, there are bit devices (X, Y, M, etc.) that process bit data (0, 1), text devices (D, etc.) that process numerical values, and mixed devices (T, etc.) that process bit data and text data. The device symbol may differ depending on the manufacturer of the PLC4.
[0076] The sequence information creation area F3 is provided for recording sequence information. The sequence information is information that describes the sequence name according to the operation sequence of the machine 5. The sequence information creation area F3 is, for example, Figure 2 As shown, there are a name entry area F31 and a number entry area F32. The name entry area F31 is configured to record a sequence name as a compound name in a row unit. The number entry area F32 is configured to record a sequence number that specifies the operation sequence (sequence order) of the device 5 in each row. The sequence information creation area F3 is configured to be able to obtain the sequence name from the storage unit F1.
[0077] The information creating unit 11 includes a machine matching information creating unit 111 and a sequence information creating unit 112 in order to create design information.
[0078] In order to create the device comparison information using the input form F, the device comparison information creation unit 111 includes an acquisition unit 111a and a creation unit 111b. The acquisition unit 111a acquires the device name from the storage unit F1 of the input form F through the user's operation, and enters it in the device name entry area F22. The creation unit 111b establishes a correspondence between the device name acquired by the acquisition unit 111a and the device entered in the device entry area F21.
[0079] In order to create sequence information using the input form F, the sequence information creation unit 112 includes an acquisition unit 112a and a creation unit 112b. The acquisition unit 112a acquires the sequence from the storage unit F1 of the input form F by the user's operation. The creation unit 112b creates the sequence information by accepting the user's operation to arrange the sequence name acquired by the acquisition unit 112a according to the operation sequence of the machine 5. Figure 1 It is recorded in the input form F stored in the storage device 12 that only includes the machine name and serial information, but the storage device 12 can of course store Figure 2 Input form F is shown.
[0080] 〈Creation of design information by PC1〉
[0081] The creation of design information (information creation method) by the PC 1 will be described. First, the creation of device matching information by the PC 1 will be described.
[0082] Figure 3 1 is a diagram showing a part of an input form F in which device comparison information for the position of a servo motor in design information is recorded. Figure 4 1 is a diagram showing a part of an input form F in which device comparison information on the speed of a servo motor in design information is recorded. Figure 5 1 is a diagram showing a part of an input form F in which device comparison information on acceleration and deceleration times of servo motors in design information is recorded. Figure 6 This is a diagram showing a part of an input form F in which device comparison information for input devices in design information is described. Figure 7 This is a diagram showing a part of an input form F in which device comparison information for output devices in design information is described. Figure 8 This is a diagram showing the structure of the reloading machine 200 that creates an object of sequence information in the design information.
[0083] Regarding the creation of the machine comparison information, an example in which the PC 1 creates the machine comparison information for the machine 5 in the reloading machine having the following configuration will be described.
[0084] like Figure 8 As shown, the replacement machine 200 has a robot arm 201, a rotating device 202, a box 203 made of foam plastic, and a box (BOX) 204 arranged at a position different from the box 203. The arm portion 201a of the robot arm 201 is configured to be able to be extended and retracted in the direction of the arrow by a servo motor. The robot arm 201 takes out the glass 205 from the box 203 and transports it to the rotating device 202. The rotating device 202 clamps the taken out glass 205 at the four corners and rotates it 90°. The robot arm 201 loads the rotated glass 205 into the box 204. As a driving source, the robot arm 201 and the rotating device 202 each have a servo motor. Various sensors are provided on the replacement machine 200 for position detection and the like.
[0085] In addition, the change-over machine 200 is set in a closed room with a plurality of doors. A switch is set on the door to be turned on when the door is opened. In addition, a switch for emergency stop is set on the change-over machine. Furthermore, an operation panel, a button switch, a lamp, etc. for monitoring and operation are set on the change-over machine.
[0086] For the servo motor, the machine reference information creation unit 111 first sets the axis name and sets the details for each axis. For example, the axis name of the servo motor used in the extension and retraction of the robot arm 201 is called "arm Z", and the axis name of the servo motor used in the rotating device 202 is called "glass rotation". Figure 3 to Figure 5As shown, the machine comparison information creation unit 111 creates machine comparison information on the position, speed, and acceleration / deceleration time for the axis name "arm Z".
[0087] like Figure 3 As shown, regarding the position of the arm Z, the acquisition unit 111a acquires the position name as the machine name from the storage unit F1 of the input form F through the user's operation, such as a selection operation in a drop-down list, and records it in the machine name recording area F22. As the position name, for example, "minimum movement amount", "maximum movement amount", "retract position", "chuck position (before rotation)" and "chuck position (after rotation)" are acquired. In addition, the acquisition unit 111a also acquires the set values of the "minimum movement amount", "maximum movement amount", "retract position", "chuck position (before rotation)" and "chuck position (after rotation)" from the storage unit F1 through the user's operation, and records them in the set value recording area F20.
[0088] The creation unit 111b establishes a correspondence between the location name acquired by the acquisition unit 111a, the device recorded in the device recording area F21, and the setting value recorded in the setting value recording area F20. The device recording may be performed by the user inputting the device one by one. Alternatively, the device recording may be performed by the user inputting the device number for the first device name, and the creation unit 111b adds the device number to the subsequent device names one by one, thereby generating a continuous device.
[0089] like Figure 4 As shown in FIG. 1 , the device comparison information creation unit 111 creates device comparison information for speed in the same manner as for position. Figure 5 As shown, the device comparison information creation unit 111 creates device comparison information for the acceleration / deceleration time in the same manner as the position.
[0090] like Figure 6 As shown, for the input machine, the machine name entry area F22 of the machine reference information creation area F2 is provided with "name prefix", "function name", "name suffix" and "final name". "Function name" is a part indicating the function of the input machine, but it may also be the name of an input machine indicating a function such as "door switch". A plurality of "function names" are prepared in advance so that they can be selected through a drop-down list. "Name prefix" is a part appended before the "function name", indicating the place where the input machine is configured, etc. "Name suffix" is a part appended after the "function name". "Final name" is a machine name formed by appending "name prefix" before the "function name" and appending "name suffix" after the "function name".
[0091] The acquisition unit 111a acquires the "prefix of name", "function name" and "suffix of name" from the storage unit F1 of the input form F through the user's operation, such as the selection operation in the drop-down list, and determines the "final name" by combining them. The "prefix of name" and "suffix of name" may also be entered by the user's input.
[0092] The creation unit 111b associates the final name determined by the acquisition unit 111a with the device entered in the device entry area F21. The entry of the device is performed in the same procedure as the entry of the device in the creation of the device comparison information of the servo motor.
[0093] like Figure 7 As shown, for the output device, the device name entry area F22 of the device comparison information creation area F2 also has "name prefix", "function name", "name suffix" and "final name". Here, "name prefix" can also be the name of the output device.
[0094] For example, Figure 7 "BOX push X2" written as "name in front" in the cylinder indicates a cylinder. The cylinder has a port for air supply and exhaust on the cylinder head side and the piston rod side. The piston rod is moved forward and backward by switching the air supply and exhaust of the ports with a solenoid valve (WSV: double solenoid valve). Figure 7 In the figure, the "Final Name" indicates that the piston rod of the cylinder called BOX Push X2 is advanced for the device "Y432".
[0095] In addition, for the output device, "Details" is set in the device comparison information creation area F2, which is different from the input device. "Details" is set to set the sensor input and interlock corresponding to the output device. In "Details", the name, contact (contact form) and device can be set. In addition, for example, in the case where the input form F is formed by a table of spreadsheet software, "Details" records a link for jumping to the detailed entry area F23 set in a table different from the device comparison information creation area F2.
[0096] In the "Sensor Input" of the detailed entry area F23, for example, a sensor for detecting that the piston rod of the above-mentioned cylinder has reached the forward position is recorded. Specifically, "BOX push X2 forward CSW" is recorded as the name of the sensor, and "T112" is recorded as the device. The name of the sensor can also be obtained from Figure 6 Select from the drop-down list in the machine name entry area F22 of the machine comparison information creation area F2 shown.
[0097] The acquisition unit 111a determines the "final name" in the same manner as when determining the "final name" of the input device. The creation unit 111b establishes a correspondence between the final name and the device in the same manner as when determining the "final name" of the input device. In addition, the creation unit 111b creates "details" based on the user's input operation.
[0098] Next, creation of sequence information by PC1 will be described.
[0099] Fig. 9 1 is a diagram showing a part of an input form F in which sequence information for the switching machine 200 is described. Fig. 9 The sequence information creation area F3 in the input form F formed as a table of spreadsheet software is shown.
[0100] Regarding the creation of sequence information, an example in which the PC 1 creates sequence information for the device 5 in the reloading machine having the following configuration will be described.
[0101] The sequence information creating unit 112 Fig. 9 The sequence information is created in the sequence information creation area F3 shown. The sequence information creation area F3 has the above-mentioned name entry area F31 and number entry area F32, and condition entry area F33. The condition entry area F33 is provided for entering the conditions for starting the operation of the device 5 specified by the sequence name.
[0102] Although not shown in the figure, "Details" is provided in the sequence information creation area F3 in the same manner as in the machine control information creation area F2. "Details" records a link to a table for setting details for the sequence name. In addition, "Details" is provided for setting output machines such as solenoid valves or for setting servo motors. In the case of output machines, the name (sequence name), contacts (contact form), equipment, etc. of each output machine can be set in "Details". In the case of servo motors, the axis name (sequence name), contacts (contact form), equipment, etc. of each servo motor can be set in "Details".
[0103] The acquisition unit 112a of the sequence information creation unit 112 acquires the sequence name from the storage unit F1 of the input form F through the user's operation, such as a selection operation in a drop-down list, and enters it in the sequence information creation area F3 (acquisition step). Fig. 9In the example shown, "robot: rotation position (front)" is entered in the name entry area F31. With respect to "robot: rotation position (front)", "robot" indicates the machine name of the robot arm 201, and "rotation position (front)" indicates the action name of the action of the robot arm 201 moving the glass 205 to the position before the rotation of the rotating device 202. The creation unit 111b creates the sequence information by accepting the above selection operation of the user to arrange the sequence names in the order of the sequence numbers.
[0104] In addition, the creation unit 112b sets the operation sequence (creation process) of the machine 5 specified by the sequence name based on the conditions entered in the condition entry area F33. Fig. 9 The sequence information creation area F3 shown in the figure has three start condition entry areas where start conditions are entered, an area where a sequence number for stopping an action is entered, and an area where a "start delay time" for delaying the start of an action is entered. Each start condition entry area has an area where three sequence numbers can be entered. When any one of the sequence numbers entered in the three start condition entry areas ends (OR condition), the action starts.
[0105] exist Fig. 9 In the example shown, the actions of sequence numbers (2) and (3) start when the action of sequence number (1) ends. The action of sequence number (2) starts after the action of sequence number (1) ends, after the "start delay time" is set to 1 second. In addition, the action of sequence number (3) starts 2 seconds after the action of sequence number (1) ends. The action of sequence number (4) starts when the actions of sequence numbers (2) and (3) end. The action of sequence number (5) starts when the action of sequence number (3) or (4) ends.
[0106] The action of sequence number (6) starts when the action of sequence number (4) ends. The action of sequence number (7) starts when the action of sequence number (5) ends, but the action of sequence number (6) stops when the action of sequence number (5) starts. The actions of sequence numbers (8) to (10) start when the actions of sequence numbers (6) to (8) end, respectively.
[0107] When the machine comparison information and the sequence information are created as described above, the information creation unit 11 transmits the design information including the machine comparison information and the sequence information to the PC 2 via the communication unit 15 .
[0108] 〈Structure of PC2〉
[0109] First, the command list 100 described above will be described. Fig.10 1 is a diagram showing a command list 100 created by PC 2.
[0110] like Fig.10 As shown, the command list 100 includes a step number recording area 101 , a command recording area 102 , a device recording area 103 , and a comment recording area 104 .
[0111] In the step number recording area 101, the step numbers that specify the order in which the commands are executed are recorded. In the command recording area 102, the commands represented by the form of mnemonics or the like (command symbols) are recorded. In the device recording area 103, the devices are recorded. In the comment recording area 104, the above-mentioned sequence names are recorded as comments added to the ladder program. The command list 100 is in a table form, and the step numbers, commands, devices, and comments recorded in each row are associated with each other.
[0112] PC 2 is configured as a command list creation device that creates a command list 100. In order to create the command list 100, PC 2 includes a command list generation unit 21, a storage device 22, an input device 23, a display device 24, and a communication unit 25. The input device 23 is a device that performs a user's operation instruction to create the command list 100, an instruction to export the created command list 100 to PC 3, etc. The display device 24 is a device that displays a screen for accepting the above operations.
[0113] The storage device 22 stores the machine comparison information and sequence information of the design information sent by the communication unit 15 of the PC 1 and received by the communication unit 25. The storage device 22 also stores the command list 100 generated by the generation unit 211. The storage device 22 also stores the command comparison information.
[0114] The command comparison information is information that predefines the correspondence between the sequence name and the command represented in the mnemonic code format. In addition, the command comparison information predefines the correspondence between the sequence name and the associated command associated with the command corresponding to the sequence name.
[0115] The associated commands include, for example, Figure 7 The commands shown are abnormality detection, completion confirmation, etc. performed based on the sensor input recorded in the detailed recording area F23. In addition, the associated command is a permission command that allows the execution of the next command when a certain condition is met, and can include commands related to the interlock recorded in the detailed recording area F23.
[0116] The command list generating unit 21 includes a generating unit 211 and an exporting unit 212. The exporting unit 212 exports the command list 100 generated by the generating unit 211 to the PC 3. The exporting unit 212 converts the command list 100 into a CSV format and exports it.
[0117] The generating unit 211 associates the commands including the associated commands with the devices to generate the command list 100. In addition, the generating unit 211 associates the sequence names with the commands as the comments in the command list 100. In order to generate the command list 100, the generating unit 211 includes a command determining unit 211a and a device determining unit 211b (identification information determining unit).
[0118] The command identification unit 211a refers to the command comparison information and identifies the command corresponding to the sequence name sequentially read from the sequence information. In addition, the command identification unit 211a identifies the associated command corresponding to the sequence name sequentially read from the sequence information.
[0119] The device identification unit 211 b refers to the device comparison information to identify the device corresponding to the device name included in the read serial name.
[0120] <Creation of Command List 100 by PC 2>
[0121] The creation of the command list 100 by the PC 2 (command list creation method) will be described. Fig.11 This is a flowchart showing the procedure of creating a command list performed by PC 2.
[0122] like Fig.11 As shown, first, the command determination unit 211a and the device determination unit 211b of the generation unit 211 read out the sequence name from the sequence information stored in the storage device 22 according to the operation order of the device 5 (step S1). Specifically, the command determination unit 211a and the device determination unit 211b read out the sequence name from the sequence information stored in the storage device 22. Next, the command determination unit 211a refers to the command comparison information stored in the storage device 22 to determine the command corresponding to the sequence name (step S2, command determination process).
[0123] The device determination unit 211b refers to the machine comparison information stored in the storage device 22 to determine the device corresponding to the machine name included in the read sequence name (step S3, identification information determination process). In addition, steps S2 and S3 can be interchanged in order or performed simultaneously. The generation unit 211 establishes a correspondence between the device determined by the device determination unit 211b and the command determined by the command determination unit 211a (step S4, generation process). In addition, the generation unit 211 establishes a correspondence between the read sequence name as a comment and the command (step S5). In addition, steps S4 and S5 can be interchanged in order or performed simultaneously.
[0124] Then, the generator 211 determines whether the devices and commands are associated with all the sequence names (step S6). In step S6, if the generator 211 determines that the devices and commands are associated with all the sequence names (yes), the creation process of the command list 100 is terminated. In step S6, if the generator 211 determines that the devices and commands are not associated with all the sequence names (no), the process returns to step S1.
[0125] In this way, PC2 creates the command list 100 based on the machine comparison information created by the machine comparison information creation unit 111 of PC1 and the sequence information created by the sequence information creation unit 112 of PC1. Comments corresponding to the ladder program are described in the command list 100. For example, in the case where the ladder program of the abnormal circuit includes a glass detection sensor, a comment such as "glass detection sensor detects abnormality" is automatically described.
[0126] The generating unit 211 stores the created command list 100 in the storage device 22. In addition, the exporting unit 212 of the generating unit 211 reads the command list 100 stored in the storage device 22 according to the user's instruction, converts it into a CSV format, and transmits it to the PC 3 through the communication unit 25 to export the command list 100. In addition, the command list 100 converted into a format other than the CSV format may be used by the PC 3 (ladder program creation device) described later for exporting the command list 100. Therefore, the conversion format of the command list 100 performed by the exporting unit 212 is not limited to the CSV format.
[0127] 〈Structure of PC3〉
[0128] PC3 is configured as a ladder program creation device for creating a ladder program. In order to create a ladder program, PC3 has a ladder program creation unit 31, a storage device 32, an input device 33, a display device 34, and a communication unit 35. The input device 33 accepts operations such as a user's instruction to create a ladder program and an instruction to write the created ladder program to the PLC 4. The display device 34 displays a screen for accepting the above operations.
[0129] The ladder program creation unit 31 is implemented by commercially available ladder program creation software. In order to create a ladder program, the ladder program creation unit 31 includes an import unit 311, an automatic generation unit 312, a conversion unit 313, and a writing unit 314.
[0130] The importing unit 311 imports the command list 100 in CSV format exported from the PC 2. The automatic generating unit 312 analyzes the commands recorded in the command list 100 in the order of step numbers, converts the commands into ladder symbols constituting a ladder program (ladder diagram), and arranges them in the ladder diagram, thereby automatically generating a ladder program. The automatic generating unit 312 stores the generated ladder program in the storage device 32.
[0131] The conversion unit 313 reads the ladder diagram program generated by the automatic generation unit 312 from the storage device 32, and converts (compiles) it into a format (code) that can be recognized by the control unit 43 (CPU) of the PLC 4. The conversion unit 313 stores the converted code in the storage device 32. The writing unit 314 writes the code converted from the ladder diagram program by the conversion unit 313 into the program memory 42 of the PLC 4 via the communication unit 25.
[0132] 〈Creating ladder programs using PC3〉
[0133] Figure 12 to Figure 23 This is a diagram showing various ladder programs created by PC3.
[0134] PC 3 creates a ladder program with the above-mentioned structure. Various ladder programs are described below.
[0135] As shown in the dashed box, Fig.12 The ladder program shown represents the process of obtaining the current value from the servo motor and outputting it. Here, the devices and comments attached are respectively based on the devices and comments recorded in the command list 100, and are recorded by the ladder program creation unit 31 (automatic generation unit 312) of the PC 3. This is also the same in the subsequent ladder programs.
[0136] Fig.13 The ladder diagram program shown shows the processing of outputting the position of the servo motor. Each position is based on Figure 3 When the output signal is turned on, the current positions P1 to P5 of the servo motor are known for "minimum movement", "maximum movement", "retracted position", "chuck position (before rotation)" and "chuck position (after rotation)". Figure 4 The speed and Figure 5 The acceleration and deceleration times shown are also used to create corresponding ladder diagram programs.
[0137] As shown in the dashed box, Fig.14 The ladder diagram program shown shows the processing for interlocking. Interlocking is based on Figure 7 The detailed entry area F23 is shown. Fig.14 In the example shown, it is specified that if the device "T118" sensor is not switched on, no action is taken.
[0138] Fig.15 The ladder diagram program shown in FIG. 1 shows the process of setting the target position S1. The target position and the movement amount are set based on the machine comparison information. The movement amount is limited to not become Figure 3 The minimum movement amount is less than Q1 and the maximum movement amount is greater than Q2.
[0139] Fig.16 The ladder diagram program shown shows the processing of the origin setting of the servo motor. The origin setting is based on the setting of the machine reference information. The servo motor has an encoder, and the current position can be known from the output value of the encoder. Through the processing of this ladder diagram program, it is confirmed whether the zero point (origin) is logged in. If it is not logged in, or "abnormal information" is output, it cannot operate. Therefore, when "abnormal information" is received, the origin setting is performed.
[0140] Fig.17 The ladder program shown shows the process of JOG start of the servo motor. JOG start is based on the setting of the machine reference information. As shown in the dotted box, when the operation button is pressed, the internal relay of the device "M15001" is turned on. As a result, a JOG command for JOG operation is issued to the servo motor.
[0141] Fig.18 The ladder diagram program shown shows the process of providing a start command to the servo motor. The start command to the servo motor is based on the setting of the machine reference information. As shown in the dotted box, when the operation button is pressed, the internal relay of the device "M15004" is turned on. As a result, a start command for origin setting is issued to the servo motor.
[0142] Fig.19 The ladder program shown shows the processing when an abnormality occurs. The processing when an abnormality occurs is based on the setting of the machine reference information. Generally, the servo motor has an over-limit detection function. The over-limit is based on the setting of the machine reference information. When the forward end is detected as an abnormality, the internal relay of the device "M5510" is turned on in output OUT1, and when the backward end is detected as an abnormality, the internal relay of the device "M5511" is turned on in output OUT2. In addition, when an abnormality of some error is detected in the servo motor, the internal relay of the device "M5512" is turned on in output OUT3.
[0143] like Fig. 20 The ladder diagram program shown shows the processing of abnormality detection by the sensor. The abnormality detection processing is based on the setting of the machine reference information. Figure 7) issues a forward command to a cylinder such as the piston rod, but the sensor that detects the forward position of the piston rod is sometimes not turned on. In this case, as shown in the dotted box, the ladder program turns on the input relay of the device "Y432" at the input IN1, but turns off the sensor of the device "T112" at the input IN2. Therefore, in this case, the internal relay of the device "M5106" is turned on at the output OUT4 to notify the abnormality.
[0144] Fig.21 The ladder diagram program shown in the figure shows the processing of manual operation. The processing of manual operation is based on the setting of the machine reference information. For example, the operator operates the operation display device 7 (see Fig.24 ) is pressed, and the internal relay of the device "M10507" is turned on at input IN11. In addition, the operator presses the mechanical operation button, and the input relay of the device "X206" is turned on at input IN12. As a result, when the internal relay of the device "M13507" is turned on at output OUT11, the internal relay of the device "M15507" is finally turned on at output OUT12.
[0145] Fig. 22 The ladder diagram program shown represents the processing of performing the action of the output circuit. The action of the output circuit is based on the setting of the machine reference information. In step number 668, when the internal relay of the device "10507" at the input IN21 is turned on by the above-mentioned manual operation, "1" is written in the link register of the device "W432" at the output OUT21. In step number 694, when the timer bits of the devices "T100" and "T102" constituting the interlock at the input IN22 are turned on, the output relay of the device "Y1432" at the output OUT22 is turned on. Furthermore, in step number 700, if the value of the link register of the device "W432" at the input IN23 is "1" and the output relay of the device "Y1432" is turned on, the output relay of the device "Y432" at the output OUT23 is turned on. As a result, the piston rod of the above-mentioned cylinder moves forward.
[0146] Fig.23 The ladder diagram program shown shows the process of automatic operation. Automatic operation is based on the setting of the machine reference information. In step number 55, when the internal relay of the device "M8105" related to the automatic operation execution instruction is turned on, Fig. 22 In step number 668 of the ladder diagram program shown in FIG. 1 , automatic operation is started. As a result, by writing "1" to the link register of device "W432", the output relay of device "Y432" is turned on, and the piston rod of the cylinder moves forward. As a result, Fig.23In step number 82 of the ladder diagram program shown, the sensor of the device "T112" is turned on, thereby completing the advancement of the piston rod of the cylinder.
[0147] Although the details of PC3 are omitted, various ladder programs are created, such as starting commands for servo motors, confirming that the servo motors have reached the target position, confirming that the servo motors are powered on, and stopping axes when the servo motors do not move.
[0148] <Effect>
[0149] The ladder program creation system 1001 of the present embodiment includes a PC 2 having a command list generation unit 21. The command list generation unit 21 includes a generation unit 211 including a command identification unit 211a and a device identification unit 211b.
[0150] In the above structure, the command determination unit 211a refers to the command comparison information, and the device determination unit 211b refers to the machine comparison information. Thus, the command corresponding to the sequence name read out in sequence from the sequence information and the device corresponding to the machine name included in the sequence name are determined. Therefore, they are established in correspondence and recorded in the order in which the sequence name is read out. Therefore, in the command list 100, the command execution order is recorded, and the command list 100 in which the device and each command are established in correspondence is created. Therefore, the command list 100 can be automatically created based on the sequence information.
[0151] The command control information predetermines the correspondence between the sequence name and the associated command associated with the command corresponding to the sequence name. The command determination unit 211a determines the associated command corresponding to the sequence name sequentially read from the sequence information. In addition, the generation unit 211 establishes a correspondence between the associated command and the device in the command list 100.
[0152] According to the above configuration, it is possible to create not only commands constituting the main sequence but also associated commands including the commands associated with the commands in the command list.
[0153] When a certain condition is satisfied, the associated command may be a permission command that allows the next command to be executed. Thus, interlocking can be specified based on the permission command.
[0154] The generating unit 211 may associate the sequence name with the command in the command list 100. Thus, when a sequence program such as a ladder program is automatically generated based on the command list 100, the sequence name can be used as a comment in the sequence program.
[0155] Furthermore, the ladder program creation system 1001 includes the PC 3 having the sequence information creation unit 112. Thus, the sequence information is created based on the sequence name prepared in advance in the storage unit F1 of the input form F. Therefore, the sequence information can be created efficiently.
[0156] In the present embodiment, the ladder program is created by PC 3 based on the command list 100 created by PC 2. On the other hand, if PLC 4 can recognize the command list 100, the command list 100 may be directly written into PLC 4 as a sequence program.
[0157] [Implementation method 2]
[0158] In addition, for the sake of convenience, the same reference numerals are given to the structural members having the same functions as the structural members described in the above embodiment, and the description thereof will not be repeated.
[0159] <Overview of Screen Creation System 1002>
[0160] Fig.24 This is a block diagram showing the structure of the screen creation system 1002 according to the second embodiment. Fig.25 It is a diagram showing the device list 400 .
[0161] like Fig.24 As shown, the screen creation system 1002 includes PC 1 and PC 2 similarly to the ladder program creation system 1001, and further includes PC 6. PC 6 is a personal computer similarly to PC 1 and PC 2.
[0162] The screen creation system 1002 creates design information, creates a command list 100 based on the design information, and automatically creates screen data for displaying a screen on the operation display device 7 based on the device list 400 obtained from the command list 100. The created screen data is downloaded to the operation display device 7.
[0163] The operation display device 7 is also called a programmable display, etc., and communicates with the PLC4 by connecting to the PLC4 via a communication cable. The operation display device 7 is a dedicated computer configured as an HMI (Human Machine Interface) machine that realizes the operation function and display function unique to the operation display device 7 by displaying a screen for operation and display. Specifically, the operation display device 7 performs operations for providing instructions to the PLC4, and displays the status of the machine 5 based on the data obtained from the PLC4.
[0164] The screen is constructed by configuring various components (objects) on the basic screen. As components, display components such as nameplate components, numerical displays, and lights for displaying text; operation components such as operation buttons, etc. can be used. Among the display components, there are components that establish a correspondence with an address to reflect the state of the data obtained from PLC4 for the address. In addition, among the operation components, there are components that establish a correspondence with an address to provide data for the address to PLC4.
[0165] The operation display device 7 includes a communication unit 71, a screen memory 72, a control unit 73, a touch panel 74, and a display device 75. The communication unit 71 receives screen data created by the PC 6 from the PC 6, and communicates with the PLC 4. The screen memory 72 stores the screen data received by the communication unit 71. The control unit 73 causes the display device 75 to display a screen based on the screen data, and accepts an operation on the touch panel 74 on the screen. In addition, the control unit 73 updates the display state of the screen according to the communication with the PLC 4.
[0166] The export unit 212 of the PC 2 does not output the command list 100, but outputs the device list 400 in the CSV format from which the step numbers and names are deleted. Fig.25 As shown, the device list 400 includes a device description area 401 and a comment description area 402 .
[0167] 〈Structure of PC6〉
[0168] The PC 6 is configured as a screen creation device for creating screen data. In order to create screen data, the PC 6 includes a screen creation unit 61, a storage device 62, an input device 63, a display device 64, and a communication unit 65. The input device 63 is a device for accepting user operations such as an instruction to create screen data and an instruction to download the created screen data to the operation display device 7. The display device 64 is a device for displaying a user interface screen for accepting the above operations.
[0169] To create screen data, the screen creation unit 61 includes an import unit 611, a correspondence creation unit 612, and a setting unit 613. The screen creation unit 61 stores the created screen data in the storage device 62, and causes the communication unit 65 to transmit the screen data to the operation display device 7 according to a user's instruction.
[0170] The importing unit 611 imports the equipment list 400 exported in CSV format. The corresponding relationship establishing unit 612 uses the screen template as a template of the screen data corresponding to the ladder program created by the PC 3. The screen template is preliminarily arranged on the basic screen with various components corresponding to the structure of the production facility, and each component is established in correspondence with a temporary address, for example, stored in the storage device 62. In addition, the screen template also has a template for a part of the components not arranged.
[0171] The correspondence establishing unit 612 replaces the temporary address corresponding to the component of the screen template with the device recorded in the device list 400. In addition, for a screen template in which a part of the component is not configured, the correspondence establishing unit 612 configures the component corresponding to the device in the device list 400 at a specified position of the screen template, so that the device corresponding to the component is established in a correspondence relationship.
[0172] The setting unit 613 sets the comment in the device list 400 to the corresponding component.
[0173] <Creation of screen data by PC6>
[0174] The creation of screen data by the PC 6 is described. Fig.28 This is a flowchart showing the procedure of creating a screen by the PC 6. Fig.26 4 is a diagram showing a device list 400A in which the device portion of the command list 100 is output in CSV format by the PC 2 . Fig. 27 4 is a diagram showing a device list 400B in which the PC 2 outputs the comment portion of the command list 100 in CSV format.
[0175] First, if Fig.26 As shown in FIG. 1 , the export unit 212 of PC 2 outputs the devices in the device list 400 as a device list 400A in CSV format. In the device list 400A, the devices are combined and described as "PLC1" with the number of PLC4. Fig. 27 As shown, the export unit 212 of the PC 2 extracts the comments in the device list 400 and outputs the extracted comments as a device list 400B represented as a text in the CSV format.
[0176] like Fig.28 As shown, the importing unit 611 of the screen creation unit 61 imports the device lists 400A and 400B exported from the PC 2 (step S11). The correspondence establishing unit 612 determines the screen template based on the imported device lists 400A and 400B (step S12).
[0177] The correspondence establishing unit 612 determines the screen template based on the correspondence between the name (including comments) recorded in the device list 400B and the name included in the corresponding screen template. For example, when screen templates for 48 axes are prepared for the servo motor, "01 axis name", "02 axis name", ..., "48 axis name" are recorded as temporary names in each screen template. If "A servo" is recorded as the name of the servo motor of the first axis in the device list 400B, the correspondence establishing unit 612 determines the screen template of the first axis. In addition, the determination of the screen template by the correspondence establishing unit 612 is not limited to the above method.
[0178] The correspondence establishing unit 612 establishes a correspondence between the devices in the device list 400A and the components in the determined screen template (step S13). In establishing the correspondence between the devices, the correspondence establishing unit 612 replaces the temporary devices that have established a correspondence with the components in advance with the devices in the device list 400A. In addition, the correspondence establishing unit 612 configures the corresponding components at the specified positions in the screen template where some components are not configured. For example, if the device includes Y (input relay) as the device symbol, the correspondence establishing unit 612 configures the components of the operation button.
[0179] The corresponding relationship establishing unit 612 sets the comment of the device list 400B to each component in the determined screen template (step S14 ), and ends the processing.
[0180] <Example of screen data creation>
[0181] An example of creating the screen data created as described above will be described.
[0182] Fig.29 This is a diagram showing an I / O monitor screen 300 . Fig.30 2 is a diagram showing a tracking screen 500 . Fig.31 2 is a diagram showing the arm Z information display screen 600 . Fig.32 2 is a diagram showing an abnormality display screen 700 .
[0183] Fig.29 The I / O monitor screen 300 shown is a screen showing the status of the I / O, that is, the status of the input device and the output device. On the I / O monitor screen 300, a plurality of lamp components 301 (objects) are arranged in rows, and a character string display component 302 (object) for displaying devices and comments is arranged in rows. The lamp components 301 are associated with the devices, and the character string display component 302 contains the devices associated by the association establishing unit 612 and the comments set by the setting unit 613.
[0184] Fig.30The tracking screen 500 shown has an operation button 501 (object). The operation button 501 is used to Fig.21 The input component in which the internal relay of the device "10507" in the ladder diagram program shown is turned on is configured by the correspondence establishing unit 612.
[0185] Fig.31 The arm Z information display screen 600 shown has operation buttons 601 and 602 (objects). The operation button 601 is used to Fig.17 The input component for turning on the internal relay of the device "M15001" in the ladder diagram program shown in FIG. 6 is configured by the correspondence establishing unit 612. The operation button 602 is used to turn on the internal relay of the device "M15001". Fig.18 The input component for turning on the internal relay of the device “M15004” in the ladder diagram program shown is configured by the correspondence establishing unit 612 .
[0186] Fig.32 The abnormality display screen 700 shown has an abnormality display component 701 (object). The abnormality display component 701 is used to display Fig.19 The display component of the abnormal content when the internal relay of each of the devices "M5510", "M5512", and "M15001" in the ladder program shown is turned on. The abnormal display component 701 is pre-set in the screen template. In addition, the information displayed in the abnormal display component 701 is obtained from the device list 400B, for example.
[0187] <Effect>
[0188] The screen creation system 1002 of the present embodiment includes a PC 6 having a screen creation unit 61 . The screen creation unit 61 includes a correspondence relationship creation unit 612 and a setting unit 613 .
[0189] In the above configuration, screen data can be automatically generated based on the device list 400. This eliminates the need to perform device matching operations on components. In addition, by displaying the sequence name as a comment on the component on the screen, the effort of separately setting the component name can be omitted.
[0190] [Implementation method 3]
[0191] In the following, another embodiment of the present invention will be described. In addition, for the sake of convenience of description, the same reference numerals are given to the structural members having the same functions as the structural members described in the above embodiment, and the description thereof will not be repeated.
[0192] <Overview of Drawing Creation System 1003>
[0193] Fig.33 This is a block diagram showing the structure of the illustration creation system 1003 according to the third embodiment. Fig.34 This is a diagram showing a device information list 801 created by the PC 8 . Fig.35 This is a diagram showing a current value list 802 created by the PC 8 .
[0194] like Fig.33 As shown, the drawing creation system 1003 has PC1 and PC2 similarly to the ladder diagram program creation system 1001, and further has PC8. PC8 is a personal computer similarly to PC1 and PC2.
[0195] The drawing creation system 1003 is a system that creates design information, creates a command list 100 based on the design information, and the PC 8 automatically creates an electrical diagram based on identification information and machine object information obtained from the command list 100.
[0196] An electrical diagram is a circuit diagram, specifically a power diagram, a safety circuit diagram, a power diagram, a PLC structure diagram, an input circuit diagram, an output circuit diagram, a terminal block diagram, etc. The power diagram is a diagram showing the circuit of the power supply and the peripheral parts of the power supply. The safety circuit diagram is a diagram showing the circuit with a safety function. The power diagram is a diagram showing the wiring related to the power part of the motor. The PLC structure diagram is a diagram showing the unit structure of the PLC and the circuit of the peripheral parts of the PLC. The input circuit diagram is a circuit diagram showing the connection structure of the input unit in the PLC. The output circuit diagram is a circuit diagram showing the connection structure of the output unit in the PLC. The terminal block diagram is a diagram showing the structure of the terminal block and the wiring to the terminal block.
[0197] The circuit diagram determines the configuration of the basic device 5 for each system for executing a series of commands specified by the device reference information and the command list 100. Therefore, a drawing template including a circuit diagram corresponding to the configuration of each device 5 is prepared for each circuit diagram. The storage device 22 stores such a drawing template in the form of a file.
[0198] The export unit 212 of the PC 2 reads the command list 100 and the device object information from the storage device 22 , converts them into a CSV format or the like, and causes the communication unit 25 to send them to the PC 8 , thereby exporting the command list 100 and the device object information.
[0199] 〈PC8 Structure〉
[0200] The PC 8 is configured as an illustration creation device for creating illustration data. In order to create the illustration data, the PC 8 includes an illustration creation unit 81, a storage device 82, an input device 83, a display device 84, and a communication unit 85. The input device 83 is a device for accepting user operations such as instructions for creating illustration data. The display device 84 is a device for displaying a user interface screen for accepting the above operations.
[0201] In order to create drawing data, the drawing creation unit 81 includes an import unit 811, a device identification unit 812, an instruction unit 813, and a drawing unit 814. The drawing creation unit 81 stores the created drawing data in the storage device 82.
[0202] The importing unit 811 imports the command list 100 and the device object information exported in the CSV format.
[0203] The machine determination unit 812 refers to the machine object information to determine the machine name corresponding to the device that is consistent with the device obtained from the command list 100. The machine determination unit 812 may also determine the machine name directly from the machine object information. In addition, the instruction unit 813 generates a graphic drawing instruction for drawing a circuit graphic corresponding to the determined machine name. Specifically, the instruction unit 813 selects the file name of the above-mentioned drawing template corresponding to the system determined based on the determined machine name as the instruction. The above-mentioned system and the drawing template establish a correspondence relationship, which is embedded in the instruction unit 813 as an instruction creation function, but it may also be stored in the storage device 22.
[0204] The instruction unit 813 generates a wiring drawing instruction for drawing wiring corresponding to the connection relationship between the circuit patterns for the plurality of circuit patterns in the system specified by the drawing template. In this way, the instruction unit 813 generates a file name and a drawing instruction as an instruction.
[0205] The instruction unit 813 generates a name allocation instruction for allocating the determined machine name as a name configured at a predetermined position in the circuit diagram corresponding to the machine name. In the circuit diagram in the drawing template, the position where the name is configured is determined. Here, the instruction unit 813 generates the name itself as the name allocation instruction.
[0206] The instruction unit 813 generates an I / O allocation instruction for allocating the device obtained from the command list 100 and the machine object information to an I / O number corresponding to the device and arranged at a predetermined position of at least one of the input unit (input circuit) and the output unit (output circuit) of the PLC. The position where the I / O number is arranged is determined in the input unit and the output unit in the drawing template. Therefore, the instruction unit 813 generates the device as the above-mentioned instruction.
[0207] The command unit 813 generates a drawing command based on various information corresponding to the machine name. When generating an information list drawing command for drawing a list of machine information, specifically, the command unit 813 includes various information for each machine name as a list, and generates the information list drawing command by converting the various information from the list into a CSV format or the like. When creating machine information individually, the command unit 813 generates the various information for each machine name as an individual drawing command, and stores it in the storage device 82.
[0208] like Fig.34 As shown, the machine information list 801 includes a name column 801a, a model column 801b, a specification column 801c, a number column 801d, a manufacturer column 801e, and a special matters column 801f. The name column 801a is a column in which the machine name, the name corresponding to the machine name, etc. are recorded. The model column 801b is a column in which the reference numeral indicating the model of the machine 5 is recorded. The specification column 801c is a column in which the specification of the machine 5 is recorded. The number column 801d is a column in which the number of the machine 5 is recorded. The manufacturer column 801e is a column in which the manufacturer of the machine 5 is recorded. The special matters column 801f is a column in which special matters related to the machine 5 are recorded.
[0209] In addition, in the machine information list, not limited to Fig.34 The information shown may also include other information. In addition, in the machine information list 801, a list of information related to components attached to the machine 5 may also be included.
[0210] The command unit 813 calculates the current value flowing through the device 5 based on the above-mentioned various information corresponding to the device name. Specifically, the command unit 813 calculates the current value based on the above-mentioned various information and a predetermined calculation formula. In addition, the command unit 813 generates a current value list drawing command for displaying a list of current values based on the calculated current value. Specifically, the command unit 813 generates the command by outputting the current value and the associated information associated with the current value in a CSV format or the like.
[0211] like Fig.35 As shown, the current value list 802 includes a name column 802a, a current value column 802b, and a remark column 802c. The name column 802a is a column in which the machine name itself, the name corresponding to the machine name, etc. are recorded as the above-mentioned related information. The current value column 802b is a column in which the calculated current value is recorded. The remark column 802c is a column in which various remark items related to the current value are recorded as the above-mentioned related information.
[0212] In addition, in the current value list 802, except Fig.35 In addition to the information shown, other information related to the current value may be recorded.
[0213] The drawing unit 814 copies and draws a predetermined circuit pattern of a shape predetermined by the device name at a position predetermined by the device name based on the pattern drawing command and the wiring drawing command of the instruction unit 813. Specifically, the drawing unit 814 reads a drawing template having the file name from the storage device 22 based on the file name of the command from the instruction unit 813, draws the circuit pattern in the drawing template, and appropriately draws the lines representing the wiring between the circuit patterns. The drawing unit 814 stores the created drawing data in the storage device 82.
[0214] In addition, the drawing unit 814 may draw not only the wiring but also the prescribed circuit pattern in the drawing template that does not include the prescribed circuit pattern without copying the prescribed circuit pattern. Therefore, the instruction unit 813 generates a graphic drawing instruction for drawing the circuit pattern itself. The drawing unit 814 draws the circuit pattern according to the graphic drawing instruction.
[0215] The drawing unit 814 draws the name at a predetermined position in the circuit pattern based on the name allocation command of the instruction unit 813. The drawing unit 814 draws the I / O number based on the I / O allocation command of the instruction unit 813.
[0216] The drawing unit 814 draws the device information list based on the information list drawing command of the command unit 813. Specifically, the drawing unit 814 draws the device information list by writing various information in the CSV format or the like one by one in a table-format drawing template.
[0217] The drawing unit 814 draws the current value list based on the current value list drawing command from the command unit 813. Specifically, the drawing unit 814 draws the current value list by writing the current values and related information in the CSV format or the like generated as the command from the command unit 813 one by one in a table-like drawing template.
[0218] However, the drawing unit 814 may also be composed of a general-purpose drawing program (drawing software). As such a drawing program, Microsoft's Excel (registered trademark) can be cited. The drawing unit 814 is implemented by various drawing functions described in VBA (Visual Basic for Applications: VB language for application programs), a programming language of Excel (registered trademark). The instruction unit 813 executes the drawing function by accessing the drawing function.
[0219] In addition, the drawing unit 814 can also be composed of a general CAD (Computer Aided Design). The drawing unit 814 can also directly operate the CAD software. In addition, when the file of the drawing object is a DXF file, the file is composed of a text file, and as the information of the circuit diagram, it includes graphic information such as lines, basic graphics (circles, quadrilaterals, etc.). The drawing unit 814 is configured as a file editor program, and by opening the drawing data created in the form of this file, the circuit diagram is drawn and visualized. In contrast, the instruction unit 813 is composed of a text editing program such as a text editor, thereby generating rewriting of the above-mentioned graphic information to the text file, appending of the graphic information, etc. as a drawing instruction.
[0220] <Creation of drawing data by PC8>
[0221] The creation of drawing data by the PC 8 will be described. Fig.36 This is a flowchart showing the procedure of creating a drawing performed by the PC 8.
[0222] First, the export unit 212 of the PC 2 outputs the command list 100 and the device object information in CSV format.
[0223] like Fig.36 As shown in FIG. 1 , the importing unit 811 of the drawing creation unit 81 imports the command list 100 and the device comparison information exported from the PC 2 (step S21). The device identification unit 812 determines the device name based on the command list 100 and the device comparison information (step S22). The device identification unit 812 uses the device of the command list 100 as a keyword to search the device comparison information and extract the device name corresponding to the device, thereby determining the device name for each command in the command list 100.
[0224] Here, the above-mentioned various information corresponding to the machine 5 is associated with the machine name. For example, when the machine 5 is a motor, various information such as capacity, rated current, model, cable name, capacitance, etc. are associated with the machine name as various information about the motor. Therefore, when the machine name is determined, various information corresponding to the machine name is also determined.
[0225] In addition, the device name may be specified by a method other than the above method. For example, as described above, the device specifying unit 812 may directly specify the device name based on the device comparison information.
[0226] The instruction unit 813 instructs to draw a circuit diagram corresponding to the determined device name (step S23). As for drawing the circuit diagram, the instruction unit 813 instructs the assignment of a name in the circuit diagram, the assignment of I / O numbers in the circuit diagram, the drawing of a device information list, and the drawing of a current value list in addition to drawing the circuit diagram and wiring.
[0227] The drawing unit 814 receives the instruction from the instruction unit 813, draws the circuit diagram corresponding to the device name on the screen template (step S24), and creates the drawing data. In addition to drawing the circuit diagram, the drawing unit 814 also assigns a name in the circuit diagram, assigns an I / O number in the circuit diagram, draws a list of device information, and draws a list of current values based on the device name and the various information attached to the device name.
[0228] 〈Example of creating attached data〉
[0229] An example of creating the drawing data created as described above will be described.
[0230] Fig.37The diagram shows a drawing template 910 prepared by the PC 8 and drawing data 920 created by the PC 8 based on the drawing template 910 . Fig.37 The figure shown on the upper side is a drawing template 910 for creating a PLC structure diagram. Fig.37 The figure shown at the lower side is the drawing data 920 of the PLC structure diagram created based on the drawing template.
[0231] Fig.38 It is a diagram showing other drawing templates 930 prepared by the PC 8 and other drawing data 940 created by the PC 8 based on the drawing templates 930 . Fig.38 The figure shown on the upper side is a drawing template 930 for creating an input circuit diagram of a PLC. Fig.38 The figure shown at the lower side is the drawing data 940 of the input circuit diagram of the PLC created based on the drawing template 930.
[0232] Fig.37 The template 910 shown on the upper side of FIG. 9 is a minimum structure for creating a PLC structure diagram, and includes circuit diagrams 911 to 914. Circuit diagram 911 represents a power supply unit of the PLC. Circuit diagram 912 represents a CPU unit of the PLC.
[0233] Circuit diagrams 911 and 912 have name entry columns 911a and 912a, model entry columns 911b and 912b, and information entry columns 911c and 912c. The above-mentioned name is entered in the name entry columns 911a and 912a. The symbol representing the above-mentioned model is entered in the model entry columns 911b and 912b. Various information other than the name and model is entered in the information entry columns 911c and 912c. Circuit diagram 913 shows the interface circuit on the PLC side. Circuit diagram 914 shows the above-mentioned operation display device 7 (see Fig.24 ) such a touch panel machine.
[0234] The drawing unit 814 receives the graphic drawing instruction from the instruction unit 813, such as Fig.37 As shown on the lower side of , circuit graphics 915 to 917 are drawn by copying the specified circuit graphics, thereby adding and creating the attached drawing data 920. Circuit graphic 915 represents the units other than the power supply unit and CPU unit of the PLC (input unit, output unit, etc.). Circuit graphic 916 represents various machines 5 (sensors, switches, motors, solenoid valves, etc.) for input and output connected to the above units. Circuit graphic 917 represents the interface circuit on the touch panel machine side. In addition, the drawing unit 814 accepts the wiring drawing instruction of the instruction unit 813, and draws the wiring between the circuit graphics 913 and 917, between the circuit graphics 914 and 917, and between the circuit graphics 915 and 916 with lines.
[0235] Fig.38 The template 930 shown on the upper side of the drawing is a minimum structure for creating an input circuit diagram of a PLC, and includes circuit graphics 931 to 936. Circuit graphics 931 and 932 represent the power wiring of the PLC in the input circuit on the left. Circuit graphics 933 represents each input unit of the PLC in the input circuit on the left. Circuit graphics 934 and 935 represent the power wiring of the PLC in the input circuit on the right. Circuit graphics 936 represents each input unit of the PLC in the input circuit on the right.
[0236] The circuit diagrams 933 and 936 have terminal number entry columns 933a and 936a, I / O number entry columns 933b and 936b, and name entry columns 933c and 936c, respectively. The terminal number of each input unit is entered in the terminal number entry columns 933a and 936a. The above I / O numbers are entered in the I / O number entry columns 933b and 936b. The above names are entered in the name entry columns 933c and 936c.
[0237] The drawing unit 814 receives the graphic drawing instruction from the instruction unit 813, such as Fig.38 As shown in the lower side of , a circuit pattern 937 is drawn by copying a predetermined circuit pattern between the circuit patterns 931, 932 and the circuit pattern 933 as needed, thereby adding and creating the drawing data 940. The circuit pattern 937 represents the equipment 5 such as a relay and a switch.
[0238] <Effect>
[0239] The drawing creation system 1003 of the present embodiment includes a PC 8 having a drawing creation unit 81. The drawing creation unit 81 includes a device identification unit 812, an instruction unit 813, and a drawing unit 814.
[0240] In the above structure, the circuit diagram is drawn based on the command list 100 and the machine object information. Thus, the graphic data can be automatically generated. Therefore, the time required to create the drawings can be greatly reduced. In addition, the creation of the circuit diagram corresponding to the system composed of the PLC 4 and the machine 5 can be carried out in collaboration with the creation of the above ladder diagram program.
[0241] Furthermore, the drawing unit 814 draws the name at a predetermined position in the circuit pattern based on the instruction of the instruction unit 813. This makes it possible to automate the description of the name assigned to the circuit pattern such as the circuit diagram block.
[0242] Furthermore, the drawing unit 814 draws the I / O numbers at predetermined positions in the circuit pattern based on the instructions of the instruction unit 813. This makes it possible to automate the description of the I / O numbers.
[0243] Furthermore, the drawing unit 814 draws the device information list based on the command of the command unit 813. Thus, by referring to the created device information list, the name, model, manufacturer, specification, etc. of the device in the created circuit diagram can be confirmed.
[0244] In addition, the drawing unit 814 draws the above-mentioned current value list based on the command of the command unit 813. Since the current flowing through each device 5 is determined as the rated current value, by calculating the current value, it is possible to easily select the components and the like attached to the device 5. In addition, by using the current value to perform power calculation, it is possible to automatically select control devices such as circuit breakers and DC power supplies, and automatically select the size of electric wires, and the like.
[0245] 〔Software-based implementation example〕
[0246] The functions of PCs 1, 2, 3, 6, and 8 (hereinafter referred to as "devices") can be realized by a program (command list creation program, screen creation program, drawing creation program, etc.) for causing the computer to function as the device. The program is a program for causing the computer to function as each control block of the device (particularly, the information creation unit 11, the command list generation unit 21, the ladder diagram program creation unit 31, the screen creation unit 61, and the drawing creation unit 81).
[0247] In this case, the device includes a computer having at least one control unit (e.g., a processor) and at least one storage device (storage device 12, 22, 32, 62, 82) as hardware for executing the program. The control unit and the storage device execute the program to implement the functions described in the above embodiments.
[0248] The program may be recorded in one or more computer-readable recording media, rather than just temporarily recorded. The recording medium may or may not be possessed by the device. In the latter case, the program may be supplied to the device via any transmission medium, whether wired or wireless.
[0249] In addition, part or all of the functions of the above-mentioned control blocks can be realized by logic circuits. For example, an integrated circuit formed with a logic circuit that functions as the above-mentioned control blocks is also included in the scope of the present invention. In addition, the functions of the above-mentioned control blocks can also be realized by, for example, a quantum computer.
[0250] In addition, each process described in the above embodiments may be executed by AI (Artificial Intelligence). In this case, the AI may be executed in the above control unit or in other devices (such as edge computers or cloud servers).
[0251] [Additional Notes]
[0252] The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims. In addition, embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention.
[0253] Description of Reference Numerals
[0254] 1PC (Information creation device)
[0255] 2PC (Command List Creation Device)
[0256] 4PLC (control device)
[0257] 6PC (screen creation device)
[0258] 7. Operation display device
[0259] 8PC (Photo Creation Device)
[0260] 100 Command List
[0261] 112a Acquisition Department
[0262] 112b Creation Department
[0263] 211 Generation Department
[0264] 211a Order determination section
[0265] 211b Device identification unit (identification information identification unit)
[0266] 301 Lighting parts (object)
[0267] 302 string display component (object)
[0268] 501, 601, 602 operation buttons (objects)
[0269] 701 Abnormal display component (object)
[0270] 801 Machine Information List
[0271] 802 Current Value List
[0272] 812 Machine Determination Department
[0273] 813 Command Department
[0274] 814 Drawing Department
[0275] 912~917、931~936 circuit diagram
[0276] F1 storage unit
Claims
1. A command list creation device, wherein: The invention comprises: a generating unit which generates a command list by establishing a correspondence between commands for sequence control performed by a control device and identification information of a machine connected to the control device based on sequence information, wherein the sequence information records compound names representing the actions of the machine in the order of the actions of the machine; The compound name includes a machine name representing the machine and an action name representing an action of the machine; The generating unit comprises: a command determination unit that determines the command corresponding to the compound name sequentially read from the sequence information by referring to command comparison information that predefines a correspondence relationship between the compound name and the command, and The identification information specifying unit specifies the identification information corresponding to the device name included in the compound name sequentially read from the sequence information, by referring to the device comparison information that predefines the correspondence relationship between the device name and the identification information.
2. The command list creation device according to claim 1, wherein: The command comparison information predefines a correspondence between the compound name and an associated command associated with the command corresponding to the compound name. The command determination unit determines the associated command corresponding to the compound name sequentially read from the sequence information, The generating unit establishes a correspondence relationship between the associated command and the identification information in the command list.
3. The command list creation device according to claim 2, wherein: The associated command is a permission command that allows the next command to be executed if a certain condition is met.
4. The command list creation device according to claim 1, wherein: The generating unit establishes a correspondence between the compound name and the command in the command list.
5. A command list creation program for causing a computer to function as the command list creation device according to any one of claims 1 to 4, wherein: Make the computer function as each unit.
6. A computer-readable recording medium, wherein: The command list creation program according to claim 5 is recorded.
7. An information creation device for creating the sequence information used in the command list creation device according to any one of claims 1 to 4, wherein: The information creation device has: an acquisition unit, which acquires the compound name from a storage unit storing the compound name; as well as The creation unit creates the sequence information by accepting an input from a user to arrange the compound name acquired by the acquisition unit in the action sequence.
8. The information creation device according to claim 7, wherein: The device further includes the storage unit.
9. A screen creation device, wherein: have: A correspondence establishing unit, referring to the identification information obtained from the command list created by the command list creation device described in any one of claims 1 to 4, displays the state of the machine acquired from the control device, and establishes a correspondence between the identification information and the objects constituting the screen displayed by the operation display device, wherein the operation display device is used to provide the control instructions received via the touch panel to the control device.
10. A screen creation program for causing a computer to function as the screen creation device according to claim 9, wherein: Make the computer function as each unit.
11. A computer-readable recording medium, wherein: The screen creation program according to claim 10 is recorded.
12. A screen creation device, wherein: have: a correspondence establishing unit that refers to the identification information obtained from the command list created by the command list creating device according to claim 4, displays the state of the machine acquired from the control device, and establishes a correspondence between the identification information and an object constituting a screen displayed by an operation display device, wherein the operation display device is used to provide a control instruction received via a touch panel to the control device; and The setting unit sets the compound name corresponding to the identification information on the screen so as to be displayed on the object.
13. A screen creation program for causing a computer to function as the screen creation device according to claim 12, wherein: Make the computer function as each unit.
14. A computer-readable recording medium, wherein: The screen creation program according to claim 13 is recorded.
15. A device for creating a drawing, wherein: have: a device identification unit that refers to the device comparison information to identify the device name corresponding to the identification information, the identification information being consistent with the identification information obtained from the command list created by the command list creation device according to claim 1; An instruction unit that generates an instruction for drawing a circuit diagram corresponding to the determined device name; as well as The drawing unit draws a circuit pattern having a shape predetermined according to the device name at a position predetermined according to the device name based on the command.
16. The drawing creation device according to claim 15, wherein: The instruction unit generates an instruction to assign the determined device name as a name arranged at a predetermined position in the circuit pattern corresponding to the device name. The drawing unit draws the name at the predetermined position based on the instruction.
17. The drawing creation device according to claim 15, wherein: The instruction unit generates an instruction for assigning the identification information obtained from the command list as an I / O number configured at a predetermined position of at least one of an input circuit and an output circuit corresponding to the identification information, The drawing unit draws the I / O number based on the command.
18. The drawing creation device according to claim 15, wherein: The instruction unit generates an instruction for drawing a list of device information based on various information corresponding to the device name. The drawing unit draws the device information list based on the command.
19. The drawing creation device according to claim 15, wherein: The command unit calculates a current value flowing through the device based on various information corresponding to the device name, and generates a command for displaying a list of current values based on the calculated current value. The drawing unit draws the current value list based on the command.
20. A drawing creation program for causing a computer to function as the drawing creation device according to any one of claims 15 to 19, wherein: Make the computer function as each unit.
21. A computer-readable recording medium, wherein: The drawing creation program according to claim 20 is recorded.
22. A method for creating a command list, wherein: include: A generation step of generating a command list by establishing a correspondence between commands for sequence control performed by a control device and identification information of a machine connected to the control device based on sequence information, wherein the sequence information records compound names representing the actions of the machine in the order of the actions of the machine; The compound name includes a machine name representing the machine and an action name representing an action of the machine; The generation process comprises: a command determination step of determining the command corresponding to the compound name sequentially read from the sequence information by referring to command comparison information that predefines a correspondence relationship between the compound name and the command, and The identification information specifying step specifies the identification information corresponding to the device name included in the compound name sequentially read from the sequence information, referring to device comparison information that predefines a correspondence relationship between the device name and the identification information.
23. An information creation method for creating the sequence information used in the command list creation method according to claim 22, wherein: have: An acquisition step of acquiring the compound name from a storage unit storing the compound name; as well as The creation step creates the sequence information by accepting a user's input for arranging the compound name acquired in the acquisition step in accordance with the action sequence.
Citation Information
Patent Citations
Program creation support apparatus, control method of program creation support apparatus, and control program of program creation support apparatus
JP2017188115A
