GetStarted Ecomatdisplay English
GetStarted Ecomatdisplay English
Table of Contents
Content Page
Details 3
Wiring 4
Setup 7
Connecting CR1077 to a PC 8
Installing CODESYS 11
Installing a Package 16
Libraries 21
Saving a Project 32
References 33
Programmable graphic display CR1077
2
Details
USB 0
USB 1
Supply
inputs/outputs
audio
CAN
ifm Service pins
mounting options
pressure compensation
element Ethernet 0
Ethernet 1
Equipment configuration
Manufacturer Device Model Version, Remarks
- PC - OS : Windows 10 Pro
ifm Ecomat CR1077 Display CR1077
electronics Display LAN cable with M12 Connector (E12490)
24V DC e.g. Not included
Power DN4013
Supply
User Manual - https://www.ifm.com/mounting/80289589UK.
pdf
3
Wiring
*** If using the E70450 - connect the M12 male cable to an M12 female with flying lead. Pin 1 (brown) - 24
V DC and pin 3 (blue) - 0 V DC. E70451 has 2 leads; brown - 24 V DC; blue - 0 V DC ***
Pull
- Push the plug in the receptacle of the CR1077 until you feel resistance
- Push the locking mechanism inwards, the plug will move downwards a little more
4
IP address configuration
Device IP address Sub-Net Mask
PC 192.168.82.100 255.255.255.0
Gateway (default) 192.168.82.21
CR1077 (default) 192.168.82.247
References
Manufacturer Name Reference / Remarks
3S-Smart CODESYS Online Help https://help.codesys.com/
Software
Solutions GmbH
ifm electronic CR1077 Display https://www.ifm.com/de/en/product/CR1077
5
Setup
1 Turning on the CR1077
Wire the CR1077 as shown below. Connect the LAN cable to the PC and the 24V DC Supply to the
Display.
Ethernet
Power Supply
* In this case the CR1077 is mounted on a test rack, the power supply may also be connected to the
I/O and power interface as shown on page 4
2 Download Firmware and CODESYS Package
1) Search for CR1077 or go to
https://www.ifm.com/de/en/product/CR1077
3) Navigate to “Software
Download“ and click on the
link “Further Software (Tools)“
5) Save the Zip-file to a convenient folder and extract it after download is finished.
6
Connecting CR1077 to a PC
Follow the steps below to connect CR1077 and PC via Ethernet
7 - Make sure that the CR1077 is connected to your PC and the IP address is set
correctly.
- Open a browser and enter the URL: http://192.168.82.247:8080/
- Press the “enter” key. The Recovery App is displayed in your browser.
7
8 - Click in the center or use “drag and drop” to select and move a firmware
version of type “*.swu” to the Recovery App.
- Update will start automatically after a few seconds.
- Restart the CR1077 by clicking the “Restart” button after the update has
finished.
8
Installing CODESYS
1 Install CODESYS V3.5 SP16 Patch4
9
2 Starting CODESYS
- Double click on the
“CODESYS V3.5 SP16 Patch 4”
icon on your desktop.
CODESYS will start
10
Installing a Package
To use the CR1077, CODESYS needs the ecomatDisplay Package by ifm.
11
4 - Click “Finish” to exit the installation.
12
Loading a Template Project
1 - Open CODESYS by double clicking on the icon on the desktop.
- Go to “File” → “New Projekt”.
- Select “ecomatDisplay”. A selection of template programs will
be displayed.
-Chose the 7 inch version
- Enter a name for the program (you can leave the standard
name, but for better orientation with multiple programs, a
distinct name is recommended)
- Chose a location for saving the program
- When done, click “OK” (creating can take a few seconds)
13
3 - **Click Launch Application on the screen of the CR display **
- Click “Scan Network”, to find the connected CR1077
14
5 - Click “Login” to load the program to the CR1077
- The program is now loaded to the CR1077, but the PLC is still in STOP mode
Press “RUN” to switch to RUN mode
15
Libraries
Libraries contain pre coded function blocks of frequently used functions to make coding faster and easier.
2
- To access the submenus, click on
any (not the “+” icon) and it will
show in the area below
- Click the “+” icon to expand the
contents of the “Device library”
16
3 - Navigate to “Status LED” by using the “+” icons and click on “SetStatusLEDstate”
- In the right area, additional information is displayed (list of inputs and outputs, a graphical
description, detailed written documentation)
- Information about any pre defined functions/function blocks supplied by ifm can be found here
- Navigate to
“SetStatusLEDstate” as you
did in the Library Manager
- Double click on
“SetStatusLEDstate”
17
5 - The “Auto Declare” window will show up
- If not already manually done, you can declare the variable for the called function and
click “OK”
6 - The “fbStatusLED” will be declared in the local variable table and automatically be called in the
PRG
18
Making additional changes to the Template
This shows a few examples of possible functions for the CR1077.
uiLightValue : UINT;
fbLight : ifmDevice.GetLightSensorCyclic;
fbLight(xEnable:=TRUE,
xError=> ,
eDiagInfo=> ,
uiAmbientLight=>uiLightValue);
19
3 - Double click on “PLC_PRG”
- Click “OK”
20
5 - Click “Login” again
- The changes have to be transferred
to the CR1077. Chose “Online
Change” for minor adjustments. For
some cases it doesn’t work. Then
use “Login with download”. The
whole program will be loaded again.
21
Creating a new Visualization
1 - Right click on
“Application” → “Add
Object” →
“Visualization”
- Name the new
visualization
- Click “Add”
2
The blank area indicates
the space used on the
CR1077 Display
- Right click and chose
“Background”
- Select a color and click
“OK”
22
3 - Go to the “Visualization Toolbox”
by finding the tab in the right
bottom corner of your display and
chose a rectangle
- Drag and Drop it into your
visualization
- Enter “%s” in the Box
23
Changing between Visualizations
Changing between visualizations can be done in three different ways:
• Using “Hotkey Configuration” (simple, only for set number of keys)
• Using “Input Configuration” (simple, for any keys)
• Using variables (advanced, for more complex programs)
1 Hotkey Configuration
- Select the “Visu_Default” on the left by double click
- Switch to “Hotkeys Configuration” tab
- After loading the changes to the CR1077, the new visualization should be shown after pressing F5
24
2 Input Configuration
- Add a Button to the visualization from the
“Visualization ToolBox” on the right
- Click on the added button to open the Properties
on the right
- Click on the “+” Symbol in front of “Input
configuration” → go to “OnMouseDown”→ Click
“Configure…”
25
5 Using Variables in a separate POU
- This can also be done, by only using the F5 key and
not creating a button (skip to No. 7)
- Add a Button to the visualization from the
“Visualization ToolBox” on the right
- Click on the added button to open the Properties
on the right
- Click on the “+” Symbol in front of “Input
configuration” → click on “+” in front of “Tap”→
double click in the field next to “Variable” and click
on “…”
7 - Create a new POU called “ADD_VISU”. It stores the orders to change between visualizations.
The keys of the Keypad are listed globally, so they can be used in any POU without any declaration
26
Saving a Project
Normally, programs are stored in multiple files, making it difficult to use on other computers.
Here is the procedure to save it in one file (Archive) and make it easy to use on other computers.
1 Save as Archive
- Click “File” → “Project Archive” → “Save/Send Archive”
2 Open an Archive
- Menu "File" → "Project Archive" → "Extract Archive"
Select a file on the “Extract Archive” screen and click “Open”
- Select (all) items on the “Extract Project Archive” screen and
click “Extract”
27
EthernetIP_Scanner from SP15 to SP16 causes out of retain memory build error - see image below
To fix the error: ignore the CIP_RETAIN_SUPPORTED directive because CR only has Persistent memory and not
retain
28
29
References
Videos
How to: Install of CoDeSys 3.5 and Packages for ifm ecomatController
https://www.youtube.com/watch?v=GFkA4E1R4aQ
Step by step tutorial on how to install ecomatController's CoDeSys 3.5 and packages.
30