KR20170048802A - Programming apparatus and method for PLC - Google Patents
Programming apparatus and method for PLC Download PDFInfo
- Publication number
- KR20170048802A KR20170048802A KR1020150149338A KR20150149338A KR20170048802A KR 20170048802 A KR20170048802 A KR 20170048802A KR 1020150149338 A KR1020150149338 A KR 1020150149338A KR 20150149338 A KR20150149338 A KR 20150149338A KR 20170048802 A KR20170048802 A KR 20170048802A
- Authority
- KR
- South Korea
- Prior art keywords
- language
- library
- unit
- input
- programming
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/056—Programming the PLC
Abstract
The present invention relates to a programming device and method for a PLC which is implemented so that a ladder language and a library C language can be used together in a programming device for PLC for inserting a program into a microcontroller , An input / output unit receives an instruction to execute an editor, receives main screen information, displays a main screen, receives a language selection and a function opening command, and transmits ladder language coding screen information or library C language coding screen information A ladder language coding screen or a library C language coding screen, and receives and transmits an insert execution command; An editor is installed in the computer to perform the programming for the additional programming. The editor receives the editor execution command from the input / output unit and executes the editor to transfer the main screen information to the input / output unit. The ladder language coding screen information Or library C language coding screen information to the I / O unit, program in the ladder language or program in the library C language; The compiling unit receives the insert execution command from the input / output unit, compiles and translates the ladder language or the library C language programmed in the programming unit into a machine language, and then integrates the translated machine words into one machine language; The inserting unit outputs the integrated machine language in the compiling unit to the CPU to be programmed by wire or wireless, and records it as a program in the flash memory of the CPU.
Description
The present invention relates to a programming device and method for a PLC, and more particularly, to a programming device for a PLC which inserts a program into a microcontroller, a ladder language and a library, And more particularly, to a programming device and method for a PLC implemented to be used.
PLC (Programmable Logic Controller) is generally used to control various devices and controls various devices by a microcontroller mounted on a circuit board. At this time, the microcontroller applies control signals of various devices according to the input program, so that the PLC can smoothly control various devices.
The above-mentioned microcontroller is programmed by a programming language for PLC such as a ladder language, IL-Instruction List, Sequential Function Charts (SFC), Function Block Diagram (FBD), Structured Text As the language becomes more common, programs are mainly stored in ladder language. Here, ladder language has a merit of simple programming of input / output (I / O) control, but it has a drawback that it is difficult to interface with peripheral devices due to difficult programming of communication protocol.
On the other hand, in the case of a microcomputer, which is a very small computer, it is widely used in a field for controlling various devices by a computer program, which is only programmed by C language or assembly language. Here, the C language is more complicated than the ladder language because the I / O control programming is complicated, but the programming of parsing the communication protocol is easy, so that it is easy to interface with peripheral devices. However, the microcontroller described above is incompatible with the C language having these advantages and is only programmed in the programming language for PLC.
Korean Registered Patent No. 10-1060194 (registered on Aug. 23, 2011) discloses a programming device for a microcomputer that imports a program to a microcomputer, and a program written in a programming language incompatible with the microcomputer is input into a microcomputer In a programming device that converts and imports data into a microcomputer, it is possible to input data to create a program in a programming language incompatible with a microcomputer, and to confirm a program written in a programming language by the input data A screen providing unit for providing the terminal of the program creator with a screen for inputting the created data or confirming the program created by the created data; A coding unit for converting a program created by the created data into a code of a programming language incompatible with the microcomputer and providing the program to a screen so that the program creator can confirm the program created by the created data in a programming language; A compiling unit for compiling the code of the programming language converted by the coding unit into a machine language capable of being input to the microcomputer; A storage unit for storing the compiled machine language as a file; A transfer unit for transferring the machine language stored in the storage unit to the microcomputer and importing the machine language; A format unit for formatting the microcomputer so that the machine language transmitted from the transfer unit is imported; A coding section, a compiling section, a storage section, a transmission section, and a formatting section so that a program is created and written to a programming language by the created data and the created program is compiled and stored in a machine language or transmitted to a microcomputer Wherein the screen providing unit includes: a menu screen DB storing a menu screen having a menu necessary for inputting creation data; And an input / output screen including a screen for inputting creation data and a screen for outputting a code of the programming language converted in the coding unit, and an input / output screen for providing the input / output screen to the terminal of the program creator through the menu selected on the menu screen A storage unit for storing a machine language file compiled by the compiling unit into a file; And a file name providing unit for assigning a file name to the file stored in the machine language file storing unit, wherein the transmitting unit includes: a communication port verifying unit for verifying a communication port of the terminal transmitting the machine language to the microcomputer; And a downloading unit for downloading and downloading the machine language to the microcomputer through the communication port. According to the disclosed technology, a program written in a programming language that is incompatible with the microcomputer and incapable of being input to the microcomputer is converted into a programming language that can be input to the microcomputer and is programmed into the microcomputer. In particular, a program written in a programming language Can be detachably fixed to the lighter or can be programmed in a microcomputer mounted on the PLC.
Korean Patent Laid-Open Publication No. 10-2013-0085886 (published on Jul. 30, 2013) is a PLC for an embedded processor for providing a program necessary for circuit design of an embedded system. The operator of the program code is represented by a graphic user interface- To a programmable automatic control program that allows a circuit design of an embedded system to be easily and simply implemented. According to the disclosed technology, a PLC for an embedded processor mounted on an electronic device having a display device and for providing a program necessary for circuit design of an embedded system, the operator required for circuit design of the embedded system can be selected by the user A step of displaying and providing the information; A plurality of operators are selected by a user among operators provided by being displayed through a display device, and the input is arranged at a user defined position, respectively; And completing a program of a designed circuit according to a mutual arrangement relationship of a plurality of operators, wherein the operators are displayed in the form of a symbol library of an icon or design drawing similar to an actual drawing.
Conventional PLCs as described above are mainly used in factory automation and have a ladder language as a main language. The ladder language has advantages in that input / output control programming is more advantageous than the C language. However, It is difficult to interface with peripheral devices due to difficulty in programming. In other words, by developing a programming device for a PLC that is compatible with the library C language as well as a ladder language, the microcontroller has advantages such as easy input / output control programming and easy programming of communication protocols. We need to develop it so that we can have all kinds of things.
SUMMARY OF THE INVENTION It is an object of the present invention to solve the above-mentioned disadvantages and to provide a ladder language and a library C in a programming device for PLC for inserting a program into a microcontroller, The present invention provides a programming device and method for a PLC that can be used together with a language.
According to an aspect of the present invention, there is provided a method for displaying a main screen, receiving an editor execution command, receiving main screen information, displaying a main screen, receiving a language selection and a function opening command, An input / output unit for receiving ladder language coding screen information or library C language coding screen information and displaying a ladder language coding screen or a library C language coding screen, and receiving and transmitting an insert execution command; Outputting an instruction for executing an editor from the input / output unit, executing an editor to transfer main screen information to the input / output unit, receiving a function open command from the input / output unit, A programming unit for transferring information or library C language coding screen information to the input / output unit, for programming in a ladder language or for programming in a library C language; A compiling unit that receives an insert execution command from the input / output unit, compiles a ladder language or a library C language programmed by the programming unit, translates the translated language into a machine language, and then integrates the translated machine language into one machine language; And an inserting unit for outputting the machine language integrated in the compiling unit to a CPU to be programmed in a wired or wireless manner and recording the program in a flash memory of the CPU.
In one embodiment, the input / output unit manages functions for selecting a language as a ladder language or a library C language through a main screen.
In one embodiment, the input / output unit transfers a first function open command to the programming unit when opening a first function selected in a ladder language, and when opening a second function selected in the library C language, Command to the programming unit.
In one embodiment, the input / output unit transfers a function opening command including the selected language information to the programming unit when the program name or the function name is double-clicked on the main screen.
In one embodiment, the input / output unit displays a ladder language coding screen in accordance with the ladder language coding screen information transmitted from the programming unit when 'LADDER' is selected in the language selection, and ' And the library C language coding screen is displayed according to the library C language coding screen information transmitted from the programming unit.
In one embodiment, the programming unit stores main screen information to be displayed through the input / output unit when the editor is executed.
In one embodiment, the programming unit displays ladder language coding screen information to display through the input / output unit when a first function selected in a ladder language is opened, and a second function selected in the library C language, Line library C language coding screen information.
In one embodiment, the programming unit is configured such that a first function selected in a ladder language is programmed in a ladder language, a second function selected in the library C language is programmed in the library C language, and the ladder language programming and the library C language programming are compiled To the ring portion.
According to another aspect of the present invention, when an input / output unit receives and inputs an editor execution command, the programming unit receives the editor execution command and executes an editor to transfer main screen information step; The input / output unit receiving the main screen information and displaying a main screen; Transmitting the ladder language coding screen information or the library C language coding screen information by the programming unit receiving the function opening command when the input / output unit receives the language selection and the function opening command, The input / output unit receiving the ladder language coding screen information or the library C language coding screen information and displaying a ladder language coding screen or a library C language coding screen; Programming in a ladder language or programming in a library C language; The input / output unit receives the insert execution command, and the compiling unit receives the insert execution command and compiles and translates the ladder language or the library C language programmed in the programming unit into a machine language, Integrating into one machine language; And a step in which the inserting unit outputs the machine language integrated in the compiling unit to a CPU to be programmed in a wired or wireless manner and recording the program in a flash memory of the CPU as a program.
As the effects of the present invention, it is possible to provide a programming device for PLC, which is implemented so that a ladder language and a library C language can be used together in a PLC programming device for inserting a program into a microcontroller, and It is easy to program the input / output (I / O) control as well as to parse the communication protocol, so that it is easy to interface with peripheral devices.
1 is a view for explaining a programming device for PLC according to an embodiment of the present invention.
FIG. 2 is a view for explaining a main screen through the output means of the input / output unit shown in FIG. 1. FIG.
3 is a diagram for explaining a ladder language coding screen through the output means of the input / output unit shown in Fig.
4 is a view for explaining a library C language coding screen through the output means of the input / output unit shown in FIG.
5 is a diagram for explaining the programming of the programming unit shown in Fig.
6 is a diagram for explaining program execution of the inserting unit shown in Fig.
7 is a view for explaining a service providing method according to an embodiment of the present invention.
Figs. 8 to 15 are diagrams for explaining programming steps in the ladder language shown in Fig. 7. Fig.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily carry out the present invention. However, the description of the present invention is merely an example for structural or functional explanation, and the scope of the present invention should not be construed as being limited by the embodiments described in the text. That is, the embodiments are to be construed as being variously embodied and having various forms, so that the scope of the present invention should be understood to include equivalents capable of realizing technical ideas. Also, the purpose or effect of the present invention should not be construed as limiting the scope of the present invention, since it does not mean that a specific embodiment should include all or only such effect.
The meaning of the terms described in the present invention should be understood as follows.
The terms "first "," second ", and the like are intended to distinguish one element from another, and the scope of the right should not be limited by these terms. For example, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component. It is to be understood that when an element is referred to as being "connected" to another element, it may be directly connected to the other element, but there may be other elements in between. On the other hand, when an element is referred to as being "directly connected" to another element, it should be understood that there are no other elements in between. On the other hand, other expressions that describe the relationship between components, such as "between" and "between" or "neighboring to" and "directly adjacent to" should be interpreted as well.
It should be understood that the singular " include "or" have "are to be construed as including a stated feature, number, step, operation, component, It is to be understood that the combination is intended to specify that it does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.
All terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. Commonly used predefined terms should be interpreted to be consistent with the meanings in the context of the related art and can not be interpreted as having ideal or overly formal meaning unless explicitly defined in the present invention.
Now, a PLC programming apparatus and method according to an embodiment of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a diagram for explaining a programming device for PLC according to an embodiment of the present invention, FIG. 2 is a view for explaining a main screen through output means of the input / output unit shown in FIG. 1, FIG. 4 is a view for explaining a library C language coding screen through the output means of the input / output unit shown in FIG. 1, and FIG. 5 is a diagram for explaining programming of the programming unit shown in FIG. Fig. 6 is a view for explaining program execution of the inserting unit shown in Fig. 1. Fig.
1 to 6, the
The input /
In one embodiment, the input /
In one embodiment, the input /
In one embodiment, the input /
The
In one embodiment, in the case where the editor is a program tool (for example, MP STUDIO), the
In one embodiment, when the first function selected in the ladder language is opened, ladder language coding screen information to be displayed through the input /
In one embodiment, the
In one embodiment, the
In one embodiment, the
The compiling
The
The
FIG. 7 is a flowchart for explaining a service providing method according to an embodiment of the present invention, and FIGS. 8 and 15 are diagrams for explaining programming steps in the ladder language shown in FIG.
Referring to FIG. 7 or FIG. 15, if an editor (for example, MP STUDIO) is installed in a computer to perform a programming operation and then an editor is executed through input means, the input / And transmits the editor execution command to the
The
When the language selection and the function opening are executed in the main screen in the state where the main screen is displayed in the above-described step S702, the input /
The
If the selected language is a ladder language in the above-described step S703, the ladder language coding screen information is read by the
In the state where the ladder language coding screen is displayed in step S704, the
In the above-described step S705, the
In the above-described step S705, in the ladder language coding screen, when the cursor is shifted to the right by one space and the F5 key is pressed, the
In the above-described step S705, when the ladder function block is generated, the
In the above-described step S705, in the case of the grid deletion during ladder editing, the
In the above-described step S705, in the case of the grid movement, the
In the above-described step S705, as shown in Fig. 13 (A), the grid to be inserted is selected as a function to move the right side by one space on the cursor basis, and the Ctrl + Insert key The right contacts of the selected grid can be shifted to the right by one space. In the case of the grid deletion, as shown in FIG. 13 (B), as a function opposite to the insertion of the grid, Press to delete the selected grid and move the left contacts of the selected grid one space to the left. Here, if the grid insertion and deletion is being corrected, it is possible to use the grid movement function for a complicated ladder. Also, in the case of grid copying, you can select the grid to copy and press Ctrl + C to copy the selected contents to the buffer. In the case of grid cutting, select the grid to cut and press Ctrl + X Press to copy the selected contents to the buffer and delete the selected contents at the same time. In case of paste the grid, copy the grid or cut the grid, select the grid to paste the contents of the buffer and press Ctrl + V If multiple grids are selected, the top left corner may be the starting point of the paste.
In the above-described step S705, in the case of the grid portion selection, the
In the above-described step S705, at the time of monitoring, the
After executing the programming in the ladder language in the above-described step S705, when the insert button is executed in the menu of the main screen (or in the case of executing the insert button in the ladder language coding screen), the input /
The compiling
If the selected language is the library C language in the above-described step S703, the
In the state where the library C language coding screen is displayed in the above-described step S707, the
In the above-described step S708, the
When the insert button is executed in the menu of the main screen (or when the insert button is executed in the library C language coding screen) after the programming in the library C language is performed in the above-described step S708, (110) receives an insert execution command through the input unit and transfers the insert execution command to the compiling unit (130).
The compiling
After the translation into the first machine language in the above-described step S706 or the translation into the second machine language in the above-described step S709, the compiling
After performing the machine language integration in step S710, the inserting
As described above, the embodiment of the present invention is not limited to the above-described apparatus and / or method, but may be implemented by a program for realizing functions corresponding to the configuration of the embodiment of the present invention, And the present invention can be easily implemented by those skilled in the art from the description of the embodiments described above. While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, It belongs to the scope of right.
100: Programming device for PLC
110: Input / output unit
120: Programming section
130: compiling department
140: Insertion part
Claims (4)
Outputting an instruction for executing an editor from the input / output unit, executing an editor to transfer main screen information to the input / output unit, receiving a function open command from the input / output unit, A programming unit which transmits information or library C language coding screen information to the input / output unit and which is programmed in a ladder language or in a library C language;
A compiling unit that receives an insert execution command from the input / output unit, compiles a ladder language or a library C language programmed by the programming unit, translates the translated language into a machine language, and then integrates the translated machine language into one machine language; And
And an inserting unit for outputting the integrated machine language integrated in the compiling unit to a CPU to be programmed to be executed in a wired or wireless manner and writing the program in a flash memory of the CPU.
And when the program name or the function name is double-clicked on the main screen, a function opening command including the selected language information is transmitted to the programming unit.
Wherein a first function selected in a ladder language is programmed in a ladder language and a second function selected in the library C language is programmed in a library C language to transfer ladder language programming and library C language programming to the compiling unit. For example.
The input / output unit receiving the main screen information and displaying a main screen;
Transmitting the ladder language coding screen information or the library C language coding screen information by the programming unit receiving the function opening command when the input / output unit receives the language selection and the function opening command,
The input / output unit receiving the ladder language coding screen information or the library C language coding screen information and displaying a ladder language coding screen or a library C language coding screen;
Programming in a ladder language or programming in a library C language;
The input / output unit receives the insert execution command, and the compiling unit receives the insert execution command and compiles and translates the ladder language or the library C language programmed in the programming unit into a machine language, Integrating into one machine language; And
And the inserting unit outputs the integrated machine language integrated in the compiling unit to a CPU to be programmed by wire or wireless, and writing the program in a flash memory of the CPU.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150149338A KR20170048802A (en) | 2015-10-27 | 2015-10-27 | Programming apparatus and method for PLC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150149338A KR20170048802A (en) | 2015-10-27 | 2015-10-27 | Programming apparatus and method for PLC |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20170048802A true KR20170048802A (en) | 2017-05-10 |
Family
ID=58743776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020150149338A KR20170048802A (en) | 2015-10-27 | 2015-10-27 | Programming apparatus and method for PLC |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20170048802A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102050312B1 (en) * | 2019-03-28 | 2019-12-02 | 탑시스템주식회사 | Supporting method, apparatus and computer-readable medium of multi communication type and protocol between systems using embedded cpu included in programmable logic controller |
FR3098958A1 (en) * | 2019-07-15 | 2021-01-22 | Crouzet Automatismes | Process for the production of an automatic device capable of controlling a motor |
FR3098959A1 (en) * | 2019-07-15 | 2021-01-22 | Crouzet Automatismes | Process for the production of an automatic device capable of controlling a motor |
-
2015
- 2015-10-27 KR KR1020150149338A patent/KR20170048802A/en not_active Application Discontinuation
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102050312B1 (en) * | 2019-03-28 | 2019-12-02 | 탑시스템주식회사 | Supporting method, apparatus and computer-readable medium of multi communication type and protocol between systems using embedded cpu included in programmable logic controller |
FR3098958A1 (en) * | 2019-07-15 | 2021-01-22 | Crouzet Automatismes | Process for the production of an automatic device capable of controlling a motor |
FR3098959A1 (en) * | 2019-07-15 | 2021-01-22 | Crouzet Automatismes | Process for the production of an automatic device capable of controlling a motor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5039428B2 (en) | Programmable controller and PLC system | |
CN1655120B (en) | Hosted application as a designer in an integrated development environment | |
US20090064103A1 (en) | Method for editing programmer logic controller (plc) program | |
KR100922677B1 (en) | Inverter | |
US20120117548A1 (en) | System and method for free form comments for a programmable logic controller | |
KR19980085571A (en) | How to Create a Process Control Algorithm | |
KR20170048802A (en) | Programming apparatus and method for PLC | |
KR20000022660A (en) | A processor-based process control system with intuitive programming capabilities | |
JP5619328B1 (en) | Sequence program creation support device | |
CN104375934A (en) | Method for testing reliability of Android mobile phone software | |
CN105291118A (en) | Robot control device provided with function of reflecting points of difference of setting data compared with | |
JP5921765B2 (en) | Program graph display device, program graph display method, and program graph display program | |
KR20060128747A (en) | Program creation apparatus, program creation method and program | |
US20180231950A1 (en) | Monitoring method, monitoring module, and mobile terminal for monitoring programmable logic controller | |
JP2009157533A (en) | Programmable controller system | |
CN110471659B (en) | Multilingual implementation method and system, man-machine interface configuration software end and equipment end | |
JP5992777B2 (en) | Programmable controller, program creation support device, and program | |
JP7067520B2 (en) | Development support equipment, control methods for development support equipment, information processing programs, and recording media | |
JP2017102872A (en) | Development device, development system, and program | |
KR102268795B1 (en) | A Method of Memory Mapping for Mixing Programming Language and Manufacturer-defined Language | |
JP3923821B2 (en) | Image processing system and display device connectable to image processing apparatus | |
JP2002062910A (en) | Editor device and storage medium recording editor program | |
JP5183560B2 (en) | Transfer device and transfer program | |
JP2021039568A (en) | Information processing system, programmable display, and information processing device | |
US11321055B2 (en) | Program creation assistance device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E601 | Decision to refuse application |