Difference between revisions of "METEL IEC 61131-3 IDE Getting Started"
Line 21: | Line 21: | ||
== How to start == | == How to start == | ||
− | + | == 1. Download IDE == | |
− | <p style="margin-left: 16px;"> | + | <p style="margin-left: 16px;"> Download METEL IEC 61131-3 iDE from the METEL website www.metel.eu in the software section or on the link: {{Template:DownloadIEC61131-3}} </p> |
− | + | == 2. Installation == | |
<p style="margin-left: 16px;"> Double click on downloaded file and '''install''' it. </p> | <p style="margin-left: 16px;"> Double click on downloaded file and '''install''' it. </p> | ||
− | + | == 3. Run Program == | |
<p style="margin-left: 16px;"> During the installation on your desktop was created IDE icon, by right click '''Run program as administrator'''. </p> | <p style="margin-left: 16px;"> During the installation on your desktop was created IDE icon, by right click '''Run program as administrator'''. </p> | ||
− | + | == 4. New Project == | |
<p style="margin-left: 16px;"> '''Create a new project File->New->New GEB 61131 project''' </p> | <p style="margin-left: 16px;"> '''Create a new project File->New->New GEB 61131 project''' </p> | ||
Line 36: | Line 36: | ||
− | + | == 5. Write the name of the project. == | |
<p style="margin-left: 16px;"> '''If the project or POU name is more than one word, replace the space between words for example with the underscore!''' </p> | <p style="margin-left: 16px;"> '''If the project or POU name is more than one word, replace the space between words for example with the underscore!''' </p> | ||
Line 42: | Line 42: | ||
− | + | == 6. Create a new POU (Program Organization Unit) == | |
<p style="margin-left: 16px;"> Inside the project, by right click open the menu. On the left, the “Project Explorer”shows the projects in the Workspace. The new one is empty. </p> | <p style="margin-left: 16px;"> Inside the project, by right click open the menu. On the left, the “Project Explorer”shows the projects in the Workspace. The new one is empty. </p> | ||
Line 48: | Line 48: | ||
− | + | == 7. Name a new POU == | |
<p style="margin-left: 16px;"> Select one of the 4 languages (textual or grafical) and POU type. </p> | <p style="margin-left: 16px;"> Select one of the 4 languages (textual or grafical) and POU type. </p> | ||
<p style="margin-left: 16px;"> For pairing METEL PLC unit and software it is important to import the Variables as inputs and outputs of PLC to METEL IDE as a Structured text. </p> | <p style="margin-left: 16px;"> For pairing METEL PLC unit and software it is important to import the Variables as inputs and outputs of PLC to METEL IDE as a Structured text. </p> | ||
Line 55: | Line 55: | ||
− | + | == 8. Copy Variables of PLC to Textual POU Variables == | |
<p style="margin-left: 16px;"> - Go to PLC website trough IP address of the device. All metel devices have an uniq IP address which you can see on the housing, for example http://10.68.0.6/metel/iec_61131-3/ </p> | <p style="margin-left: 16px;"> - Go to PLC website trough IP address of the device. All metel devices have an uniq IP address which you can see on the housing, for example http://10.68.0.6/metel/iec_61131-3/ </p> | ||
<p style="margin-left: 16px;"> - Copy whole Variables text to the clipboard. </p> | <p style="margin-left: 16px;"> - Copy whole Variables text to the clipboard. </p> | ||
Line 63: | Line 63: | ||
− | + | == 9. POU Program == | |
<p style="margin-left: 16px;"> Create new POU for part of your program via Function Blocks by Right click to project -> Create new PoU </p> | <p style="margin-left: 16px;"> Create new POU for part of your program via Function Blocks by Right click to project -> Create new PoU </p> | ||
Line 69: | Line 69: | ||
− | + | == 10. Creating a program == | |
<p style="margin-left: 24px;"> Insert Input and Output variables by hit, hold and move to program POU </p> | <p style="margin-left: 24px;"> Insert Input and Output variables by hit, hold and move to program POU </p> | ||
<p style="margin-left: 50px;"> '''Expression''' - Input variables </p> | <p style="margin-left: 50px;"> '''Expression''' - Input variables </p> | ||
Line 77: | Line 77: | ||
[[File:IEC-61131-3 IDE VariablesName.png|500x500px]] | [[File:IEC-61131-3 IDE VariablesName.png|500x500px]] | ||
− | + | == 11. Declaration of Variables == | |
<p style="margin-left: 24px;"> '''The all variables must be declarated in the Ladder Variables''' </p> | <p style="margin-left: 24px;"> '''The all variables must be declarated in the Ladder Variables''' </p> | ||
<p style="margin-left: 24px;"> Hit the '''Add Variable''' button in the right bottom corner and enter properties. </p> | <p style="margin-left: 24px;"> Hit the '''Add Variable''' button in the right bottom corner and enter properties. </p> | ||
Line 87: | Line 87: | ||
− | + | == 12. Function Blocks == | |
<p style="margin-left: 24px;"> '''Interconnections of the variables are via Function Blocks'''. Functions block is the small program which performs various functions as logical OR,AND, TIMERS, COUNTERS and many others. For help with selection the one of them hit the '''F1''' button on the Functions block form. </p> | <p style="margin-left: 24px;"> '''Interconnections of the variables are via Function Blocks'''. Functions block is the small program which performs various functions as logical OR,AND, TIMERS, COUNTERS and many others. For help with selection the one of them hit the '''F1''' button on the Functions block form. </p> | ||
Line 101: | Line 101: | ||
− | + | == 13. Interconnection == | |
<p style="margin-left: 24px;"> '''Interconnections between all objects''' on POU are via dragging of left to right side. </p> | <p style="margin-left: 24px;"> '''Interconnections between all objects''' on POU are via dragging of left to right side. </p> | ||
Line 107: | Line 107: | ||
− | + | == 14. RUN and DEBUG mode (upload binary to PLC)== | |
<p style="margin-left: 24px;"> METEL IDE allows you to work with the project in '''RUN''' and '''DEBUG''' mode from inside the IDE, both in a '''Simulator''' and also in binary, from the device itself. The debugger lets you place breakpoints, step and watch variables from the IEC 61131-3 programs. </p> | <p style="margin-left: 24px;"> METEL IDE allows you to work with the project in '''RUN''' and '''DEBUG''' mode from inside the IDE, both in a '''Simulator''' and also in binary, from the device itself. The debugger lets you place breakpoints, step and watch variables from the IEC 61131-3 programs. </p> | ||
Line 116: | Line 116: | ||
− | + | === Build the project and upload binary to METEL PLC with DEBUG properties === | |
<p style="margin-left: 24px;">Select the RUN button -> Debug As -> GEB application </p> | <p style="margin-left: 24px;">Select the RUN button -> Debug As -> GEB application </p> | ||
Line 123: | Line 123: | ||
− | + | === Set the configuration parameters for binary. === | |
<p style="margin-left: 50px;"> '''Project''' - select the main folder of the project which you want to build. </p> | <p style="margin-left: 50px;"> '''Project''' - select the main folder of the project which you want to build. </p> | ||
Line 133: | Line 133: | ||
− | + | === Debug === | |
Hit the Debug button, '''METEL IDE starts build the program''', generates C code, compiles the binary and transfers binary to hardware. | Hit the Debug button, '''METEL IDE starts build the program''', generates C code, compiles the binary and transfers binary to hardware. | ||
Line 142: | Line 142: | ||
− | + | == Recommendations == | |
- The METEL IDE remembers the previous configuration for DEBUG or RUN, after first configuration is possible click directly to icon DEBUG or RUN from the main toolbar. | - The METEL IDE remembers the previous configuration for DEBUG or RUN, after first configuration is possible click directly to icon DEBUG or RUN from the main toolbar. | ||
- Before program editing STOP the DEBUG mode. | - Before program editing STOP the DEBUG mode. |
Revision as of 08:15, 3 January 2019
The METEL IEC 61131-3 IDE lets you program in IEC 61131-3 languages, both graphical and textual.
You will be able to create, edit and debug IEC 61131-3 (ST, LD, IL, FBD) programs for METEL PLC controllers using a professional IDE (Integrated Development Environment). Based in the world wide recognized Eclipse IDE, the METEL IEC 61131-3 IDE is an extremely easy to use, yet powerful, programming tool.
In fact, METEL IEC 61131-3 IDE is a translater IEC 61131-3 programs to standard C code which you can compile and run inside the METEL hardware with debugging possibility.
Contents
- 1 The Main purpose
- 2 How to start
- 3 1. Download IDE
- 4 2. Installation
- 5 3. Run Program
- 6 4. New Project
- 7 5. Write the name of the project.
- 8 6. Create a new POU (Program Organization Unit)
- 9 7. Name a new POU
- 10 8. Copy Variables of PLC to Textual POU Variables
- 11 9. POU Program
- 12 10. Creating a program
- 13 11. Declaration of Variables
- 14 12. Function Blocks
- 15 13. Interconnection
- 16 14. RUN and DEBUG mode (upload binary to PLC)
- 17 Recommendations
The Main purpose
- Create, edit and debug IEC 61131-3 LD, ST, IL and FBD programs on your computer.
- Use Of state of the art graphic editors and simulators for Ladder and Function Block Diagram (FBD) languages.
- Powerful high-level on-hardware debugger. Simulate and debug programs running in your PLC.
- GEB generates readable and efficient standard C code, and creates a binary using your platform C compiler.
How to start
1. Download IDE
Download METEL IEC 61131-3 iDE from the METEL website www.metel.eu in the software section or on the link: METEL IEC 61131-3 IDE
2. Installation
Double click on downloaded file and install it.
3. Run Program
During the installation on your desktop was created IDE icon, by right click Run program as administrator.
4. New Project
Create a new project File->New->New GEB 61131 project
5. Write the name of the project.
If the project or POU name is more than one word, replace the space between words for example with the underscore!
6. Create a new POU (Program Organization Unit)
Inside the project, by right click open the menu. On the left, the “Project Explorer”shows the projects in the Workspace. The new one is empty.
7. Name a new POU
Select one of the 4 languages (textual or grafical) and POU type.
For pairing METEL PLC unit and software it is important to import the Variables as inputs and outputs of PLC to METEL IDE as a Structured text.
8. Copy Variables of PLC to Textual POU Variables
- Go to PLC website trough IP address of the device. All metel devices have an uniq IP address which you can see on the housing, for example http://10.68.0.6/metel/iec_61131-3/
- Copy whole Variables text to the clipboard.
- Overwrite default text by Variables text of PLC (of clipboard.
9. POU Program
Create new POU for part of your program via Function Blocks by Right click to project -> Create new PoU
10. Creating a program
Insert Input and Output variables by hit, hold and move to program POU
Expression - Input variables
Variable Ref - Output variables
The name of the variable must be in the same form as is declarated in the Variables POU!
11. Declaration of Variables
The all variables must be declarated in the Ladder Variables
Hit the Add Variable button in the right bottom corner and enter properties.
Variable’s name – name the variable same as Variables POU.
Data type – data type of variable, for example BOOL variable has only two states (log. 1 and log. 0), same as is declarated in Variables POU.
Variable type – type of variable, type EXTERNAL contains all variables of PLC, other you can use in the program operation.
12. Function Blocks
Interconnections of the variables are via Function Blocks. Functions block is the small program which performs various functions as logical OR,AND, TIMERS, COUNTERS and many others. For help with selection the one of them hit the F1 button on the Functions block form.
The Functions block selected with a data type declaration as AND_BOOL depends on the data type of input variables. It is a possible to select the Function block of lists without data type declaration, then the data type of the function block wil be automatically selected according to the data type of input variables.
To display the METEL Functions blocks go to Project and select Build all then it will be visible in the list of blocks as well.
13. Interconnection
Interconnections between all objects on POU are via dragging of left to right side.
14. RUN and DEBUG mode (upload binary to PLC)
METEL IDE allows you to work with the project in RUN and DEBUG mode from inside the IDE, both in a Simulator and also in binary, from the device itself. The debugger lets you place breakpoints, step and watch variables from the IEC 61131-3 programs.
As Simulator - Allows you to run and debug program without hardware.
As Application - Build the project and upload binary to hardware.
Build the project and upload binary to METEL PLC with DEBUG properties
Select the RUN button -> Debug As -> GEB application
Set the configuration parameters for binary.
Project - select the main folder of the project which you want to build.
Target device - select iplog_gama.
Target address - IP address of your device (default IP address is on case).
Times to run - how many times the program cycle will, 0=infinity loop.
Debug
Hit the Debug button, METEL IDE starts build the program, generates C code, compiles the binary and transfers binary to hardware.
At the end of program generating and binary upload the METEL IDE automatically runs the program in PLC, shows the debug mode and state of variables.
Recommendations
- The METEL IDE remembers the previous configuration for DEBUG or RUN, after first configuration is possible click directly to icon DEBUG or RUN from the main toolbar.
- Before program editing STOP the DEBUG mode.