KR20170048802A - Programming apparatus and method for PLC - Google Patents

Programming apparatus and method for PLC Download PDF

Info

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
Application number
KR1020150149338A
Other languages
Korean (ko)
Inventor
최용환
Original Assignee
주식회사 아이로직스
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 아이로직스 filed Critical 주식회사 아이로직스
Priority to KR1020150149338A priority Critical patent/KR20170048802A/en
Publication of KR20170048802A publication Critical patent/KR20170048802A/en

Links

Images

Classifications

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

[0001] The present invention relates to a programming apparatus and method for a PLC,

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.

Korean Patent No. 10-1060194 Korean Patent Publication No. 10-2013-0085886

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 PLC programming device 100 includes an input / output unit 110, a programming unit 120, a compiling unit 130, and an insertion unit 140.

The input / output unit 110 includes a data input / output means such as a keypad (or a touch pad), a monitor (or LCD), a touch screen, and the like. When receiving an editor execution command through input means, 2 to the programming unit 120 and then displays the main screen as shown in FIG. 2 through the output means according to the main screen information transmitted from the programming unit 120. In addition, in the main screen, (Including the selected language information) to the programming unit 120, and then transmits the language selection and the function opening command to the ladder 120, which is transmitted from the programming unit 120, The ladder language coding screen or the library C language coding screen is displayed through the output means according to the ladder language coding screen information or the library C language coding screen information When the insert button is executed in the menu of the main screen, the insert execution command is inputted through the input means and the insert execution command is transmitted to the compiling unit 130 (or the inserting unit 140).

In one embodiment, the input / output unit 110 may manage functions for selecting a language in a ladder language or a library C language through a main screen. In addition, when a first function selected in a ladder language is opened The first function open command may be transmitted to the programming unit 120 and the second function open command may be transmitted to the programming unit 120 when the second function selected in the library C language is opened. 2, the main screen may include a save button, a debugging button, a compile and insert button, a menu button, and the like, and a function name, a selection language, a selection function type, and a program description.

In one embodiment, the input / output unit 110 can transmit a function opening command (including the selected language information) to the programming unit 120 when double-clicking the program name (or function name) in the main screen The ladder language coding screen shown in FIG. 3 may be displayed through the output means according to the ladder language coding screen information transmitted from the programming unit 120 when the language selection is 'LADDER' Data for writing a program in a ladder language can be inputted through the input means and transferred to the programming unit 120. [ Here, the ladder language coding screen may include a storage button, a menu button, etc., a function selection portion, a ladder language coding portion, and the like.

In one embodiment, the input / output unit 110 may transmit a function opening command including the selected language information corresponding to the 'C' in the language selection to the programming unit 120, Language C language coding screen as shown in FIG. 4 through the output means according to the library C language coding screen information transmitted from the library C language, And transmit it to the programming unit 120. Here, the library C language coding screen may include a storage button, a menu button, etc., a function selection portion, a library C language coding portion, and the like.

The programming unit 120 is a part for performing a program process and may include an editor (for example, MP STUDIO) installed in a computer to perform a programming operation, and then, in response to an editor execution command transmitted from the input / And outputs the ladder language coding screen information or the ladder language coding screen information according to the function opening command (checking the selected language information) transmitted from the input / output unit 110. In addition, The C language coding screen information is read and transmitted to the input / output unit 110. The program is programmed in a ladder language or programmed in a library C language, and the corresponding programmed ladder language or library C language is transmitted to the compiling unit 130.

In one embodiment, in the case where the editor is a program tool (for example, MP STUDIO), the programming unit 120 sets the main screen information to be displayed through the input / output unit 110 at the time of execution of the editor, You can save it.

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 / output unit 110 and a second function selected in the library C language are opened by the programming unit 120 And the library C language coding screen information to be displayed through the input / output unit 110 can be stored.

In one embodiment, the programming unit 120 can program the first function selected in the ladder language in a ladder language, and the second function selected in the library C language can be programmed in the library C language, Programming and library C language programming to the compiling unit 130.

In one embodiment, the programming unit 120 is from a main function (e.g., MAIN (LIBRARY C)) in the case of the start of a program, as shown in FIG. 5, Function (for example, MOTOR (LADDER), DISPLAY (LIBRARY C), BEEP SOUND (LIBRARY C), etc.). At this time, the function can be continuously generated through the input / output unit 110 according to the input of the user, and the generated function can select one of the two languages and can also call the function from the function . The function name and the language type can be selected through the main screen of the input / output unit 110, and functions can be created and deleted from the main screen.

In one embodiment, the programming unit 120 may receive data via the input / output unit 110 and program it in a ladder language or program it in a library C language.

The compiling unit 130 receives the ladder language or the library C language programmed from the programming unit 120 and receives the insert execution command from the input / output unit 110. The ladder language or the library C Language is translated into a machine language, the two translated machine words are integrated into one machine language, and the integrated machine language (i.e., integrated source) is transferred to the inserting unit 140.

The insertion unit 140 receives an integrated machine language (i.e., an integrated source) from the compiling unit 130 and receives an insert execution command from the input / output unit 110, The program is output to the CPU to be executed by the wired or wireless (for example, the serial cable or WIFI shown in Fig. 6), and the program is recorded in the flash memory of the CPU. 6, the CPU (for example, MP100) in which the program is written is coupled to various input / output boards (controller boards) (for example, MP-DIDO8) I / O board includes serial communication and WIFI wireless communication, 8 digital input, 8 analog input, 6 channel pulse output and 2 channel pulse counter, I 2 C based accessory, 8 port And the like.

The PLC programming device 100 having the above-described configuration implements a ladder language and a library C language for use in a PLC programming device for inserting a program into a microcontroller, that is, The ladder language and the library C language can be used together by inserting the library C language together with the ladder language which is a programming language. In addition to this, programming of input / output (I / O) control is simple, It is easy to interface with peripherals.

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 programming unit 120. [

The programming unit 120 receives an editor execution command from the input / output unit 110 and executes an editor installed according to the received editor execution command (S701), reads the main screen information stored in the internal memory Output unit 110. The input / The input / output unit 110 displays the main screen as shown in FIG. 2 through the output means according to the main screen information transmitted from the programming unit 120 (S702).

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 / output unit 110 receives the language selection and function opening command through the input means, (Including the selected language information) to the programming unit 120. [

The programming unit 120 receives the function open command from the input / output unit 110 and checks the selected language information in the received function open command to check whether the selected language is a ladder language or a library C language (S703).

If the selected language is a ladder language in the above-described step S703, the ladder language coding screen information is read by the programming unit 120 and is transferred to the input / output unit 110. [ The input / output unit 110 displays the ladder language coding screen as shown in FIG. 3 through the output means according to the ladder language coding screen information transmitted from the programming unit 120 (S704).

In the state where the ladder language coding screen is displayed in step S704, the programming unit 120 performs programming in the ladder language and transfers the programmed ladder language to the compiling unit 130 (S705).

In the above-described step S705, the programming unit 120 can program the first function selected in the ladder language in the ladder language, and deliver the ladder language programming to the compiling unit 130. [

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 programming unit 120 generates the connection point as shown in FIG. 8 (A) , And when the F9 key is pressed, a coil contact is generated as shown in (b) of FIG. 8, and an address value or a symbol can be input as shown in (c) of FIG. 8 by pressing the Enter key Then, the Enter or Tab key can be pressed, and then the cursor can be moved to the place where the vertical connection is made as shown in Fig. 9 (a), and as shown in Fig. 9 (b) The user can press the key to make the vertical connection point and the lower right point of the cursor to be the start point of the vertical connection point. If the start point button is pressed as shown in FIG. 9 (C) The It is able to complete the program.

In the above-described step S705, when the ladder function block is generated, the programming unit 120 moves the cursor to the position where the ladder function block is to be inserted and generates it in the toolbox of the ladder function block Double-click the ladder function block. In this case, press Ctrl + Enter at the position to insert the ladder function block to create the input text box. Enter the ladder function block name and press the Enter or Tab key to create the ladder function block . Here, the ladder function block can not be added to the first row and the last line, and the input text box of the ladder function block has the automatic completion function. At this time, when the EQ is inputted, the name of the EQUAL_I function can be automatically completed , Only the EQ is input and the Enter or Tab key is pressed, the corresponding ladder function block can be generated. Also, the input text box created by pressing Enter can display symbols using the same word in the registered symbol according to the entered text at the bottom of the box, and can not press the Enter or Tab keys, and select the text displayed at the bottom to complete .

In the above-described step S705, in the case of the grid deletion during ladder editing, the programming unit 120 can delete the inserted contact by moving the cursor to the grid to be deleted and pressing the Del key, as shown in Fig. 11 If there are two or more contacts on the selected grid, pressing the first Del key will delete the horizontal contact, and pressing the second Del key will delete the vertical contact. Also, the deleted text can be deleted as well . Also, if you want to delete the selected grid, you can select more than one grid by moving the mouse while clicking the mouse, you can select multiple grids with the arrow key while holding down the Shift key, select multiple grids Pressing the DEL key deletes all selected grids. Here, if there are two or more contacts on the outer grid of the selected grid, the vertical contact can be deleted by pressing the two Del keys as in the case of the grid deletion item.

In the above-described step S705, in the case of the grid movement, the programming unit 120 selects the grid to be moved to the cursor with the cursor, selects a plurality of grids, and presses Ctrl (Ctrl) If the + direction key is pressed, the selected grid is moved by one space in the direction of the direction key. At this time, the unselected grid in the moved direction can be deleted. In the case of line deletion, as shown in FIG. 12 (B) The line of the selected line can be deleted by pressing the Ctrl + I key while the grid of the line is selected by the cursor. In the case of line insertion, And press Ctrl + L to insert a new line into the selected line.

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 programming section 120 can partially select and delete / copy / paste / move the grid as shown in Fig. 14, Press and hold down the left key of the mouse to select it partially, press and hold down the Ctrl key that was pressed when all selections were made, and press Ctrl + Z when you want to restore the programmed contents before editing the ladder Press to restore the previously programmed contents one by one. If you undo from item 2, you can perform the restoration to item 1. In case of re-execution, you can cancel the restored program by executing undo You can restore it to the previous program. If you undo and restore from the first item, you can restore it to the second item. In the case of a comment, a comment can be created with the Enter key on the grid except for the contact point where the variable value should be input.

In the above-described step S705, at the time of monitoring, the programming unit 120 allows the information of the data memory to be confirmed in the ladder program window as shown in Fig. 15 (A), and the created program is called MegaPLC , You can check the value of the variable with the monitoring system. You can execute / stop the monitoring by pressing Run -> Monitoring or the shortcut icon of item 1, or pressing Ctrl + M. You can check the value of the variable like item 2 by entering the value of the variable. In the case of the timer, counter, and comparison function, if the output condition of the ladder function block is not satisfied, the function may not be a monitoring color as shown in FIG. 15 (B).

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 / output unit 110 The insert execution command is inputted through the input means and the insert execution command is transmitted to the compiling unit 130. [

The compiling unit 130 receives the ladder language programmed in the step S705 from the programming unit 120 and receives the insert execution command from the input / output unit 110, compiles the ladder language programmed in the step S705, And translated into the first machine language (S706).

If the selected language is the library C language in the above-described step S703, the programming unit 120 reads the library C language coding screen information and transfers the information to the input / output unit 110. [ The input / output unit 110 displays the library C language coding screen as shown in FIG. 4 through the output means according to the library C language coding screen information transmitted from the programming unit 120 (S707).

In the state where the library C language coding screen is displayed in the above-described step S707, the programming unit 120 performs programming in the library C language and transfers the programmed library C language to the compiling unit 130 (S708 ).

In the above-described step S708, the programming unit 120 can program the second function selected in the library C language in the library C language, and can transmit the library C language programming to the compiling unit 130. [

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 unit 130 receives the library C language programmed in the step S708 from the programming unit 120 and receives the insert execution command from the input / output unit 110. The compiling unit 130 compares the library C language programmed in the step S708 Compiled and translated into a second machine language (S709).

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 unit 130 compares the two machine languages translated in the above-described step S706 and step S709, (I.e., the first machine language and the second machine language) into a single machine language and delivers the integrated machine language (i.e., integrated source) to the insertion unit 140 (S710).

After performing the machine language integration in step S710, the inserting unit 140 receives the integrated machine language (i.e., integrated source) from the compiling unit 130 in step S710 described above, The program is output to the CPU through which the program is to be executed via the cable or WIFI, and is recorded as a program in the flash memory of the CPU (S711).

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)

Receives the main screen information, displays the main screen, receives the language selection and the function opening command, receives the ladder language coding screen information or the library C language coding screen information, An input / output unit displaying a 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 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.
The apparatus of claim 1, wherein the input /
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.
The apparatus according to claim 1,
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.
Receiving an editor execution command from the input / output unit, and transmitting the main screen information by executing the editor by receiving the editor execution command;
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.







KR1020150149338A 2015-10-27 2015-10-27 Programming apparatus and method for PLC KR20170048802A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
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