Page 1

System manual
BasicDisplay
CR0451
CoDeSys
®
V2.3
Target V01
English
7390711 / 02 01 / 2011
Page 2

Contents
ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
Contents
1 About this manual 5
1.1 What do the symbols and formats mean? ...........................................................................5
1.2 How is this manual structured?............................................................................................6
2 Safety instructions 7
2.1 Important! .............................................................................................................................7
2.2 What previous knowledge is required?................................................................................8
3 System description 9
3.1 Information about the device................................................................................................9
3.1.1 Accessories ..........................................................................................................9
3.1.2 Colour display.....................................................................................................10
3.1.3 Operating elements ............................................................................................10
3.1.4 Connection on the rear panel of the housing .....................................................11
3.2 Information concerning the software..................................................................................11
3.3 PLC configuration ..............................................................................................................12
4 Operating states and operating system 13
4.1 Operating states.................................................................................................................13
4.1.1 INIT state (Reset) ...............................................................................................13
4.1.2 RUN state ...........................................................................................................13
4.1.3 STOP state .........................................................................................................14
4.1.4 ERROR state......................................................................................................14
4.1.5 FATAL ERROR state..........................................................................................15
4.2 Status LED .........................................................................................................................15
4.3 Operating system...............................................................................................................16
4.3.1 Load the operating system .................................................................................16
5 Configurations 17
5.1 Set device parameters (setup)...........................................................................................17
5.1.1 Display CAN parameters ....................................................................................17
5.2 Set up programming system ..............................................................................................17
5.2.1 Set up programming system manually ...............................................................17
5.2.2 Set up programming system via templates ........................................................21
5.2.3 ifm demo programs.............................................................................................30
5.3 First steps...........................................................................................................................34
5.3.1 Create visualisation ............................................................................................34
5.3.2 Create PLC program ..........................................................................................36
6 Limitations and programming notes 37
6.1 Limits of the device ............................................................................................................37
6.1.1 CPU frequency ...................................................................................................37
6.1.2 Watchdog behaviour...........................................................................................38
6.1.3 Available memory (CR0451) ..............................................................................38
6.1.4 Limitations for visualisations (CR0451) ..............................................................39
2
Page 3

ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
Contents
6.2 Programming notes for CoDeSys projects ........................................................................40
6.2.1 FB, FUN, PRG in CoDeSys................................................................................40
6.2.2 Operating sequence ...........................................................................................41
6.2.3 Creating application program .............................................................................42
6.2.4 CoDeSys visualisation elements (CR0451) .......................................................43
6.2.5 Texts (CR0451) ..................................................................................................44
6.2.6 Movement of elements .......................................................................................44
6.2.7 Using ifm maintenance tool ................................................................................45
7 Visualisations in the device 46
7.1 Recommendations for user interfaces ...............................................................................46
7.1.1 Recommendations for a user-friendly product design........................................47
7.1.2 Do you know the future users?...........................................................................48
7.1.3 Check suitability for use......................................................................................49
7.1.4 Language as an obstacle ...................................................................................49
7.1.5 Cultural details are often not transferable ..........................................................50
7.1.6 Directives and standards ....................................................................................53
7.2 Basic information about colours and bitmap graphics .......................................................60
7.2.1 Image size vector graphics / pixel graphics........................................................61
7.2.2 Colour for bitmap graphics .................................................................................62
7.2.3 What colours are shown? ...................................................................................62
7.3 Power reserves of the device.............................................................................................62
7.3.1 Resample / scale image .....................................................................................63
7.3.2 Visualisation in case of a controller failure .........................................................63
7.4 Special information about bitmap graphics........................................................................64
7.4.1 Additive colour mixing.........................................................................................64
7.4.2 What graphics are suitable for which PDM and what steps must be carried out?65
7.4.3 Colour palettes ...................................................................................................65
8 Variable 68
8.1 Retain variable ...................................................................................................................69
8.1.1 Save retain variables ..........................................................................................69
8.1.2 Read back retain variables .................................................................................69
9 CAN in the PDM360 70
9.1 General about CAN............................................................................................................70
9.1.1 Topology.............................................................................................................70
9.1.2 CAN interfaces ...................................................................................................71
9.1.3 System configuration ..........................................................................................72
9.2 Physical connection of CAN...............................................................................................73
9.2.1 Network structure ...............................................................................................73
9.2.2 CAN bus level.....................................................................................................74
9.2.3 Bus cable length .................................................................................................75
9.2.4 Wire cross-sections ............................................................................................76
9.3 Exchange of CAN data ......................................................................................................77
9.3.1 Hints....................................................................................................................78
9.3.2 CAN functions in the IEC user cycle ..................................................................80
9.4 CAN-FBs on layer 2 (RAW-CAN) ......................................................................................82
9.4.1 Notes ..................................................................................................................83
9.4.2 FBs for RAW-CAN (management) .....................................................................84
9.4.3 FBs for RAW-CAN (transmitting messages) ......................................................91
9.4.4 FBs for RAW-CAN (receiving messages) ..........................................................98
9.4.5 FBs for RAW-CAN (remote access)................................................................ 108
3
Page 4

ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
Contents
9.5 CAN units acc. to SAE J1939 ......................................................................................... 113
9.5.1 CAN for the drive engineering ......................................................................... 113
9.5.2 Units for J1939 (management)........................................................................ 117
9.5.3 Units for J1939 (send) ..................................................................................... 126
9.5.4 Units for J1939 (receive) ................................................................................. 136
9.6 CAN POUs to CANopen ................................................................................................. 143
9.6.1 Technical about CANopen............................................................................... 143
9.6.2 ifm CANopen SDO units.................................................................................. 173
9.6.3 CANopen network management ..................................................................... 184
9.7 CAN errors and error handling........................................................................................ 207
9.7.1 Structure of an EMCY message ...................................................................... 207
9.7.2 Overview CANopen error codes...................................................................... 209
9.7.3 CANopen POUs for error handling.................................................................. 211
10 Managing the data 218
10.1 Reading / writing the system time................................................................................... 218
10.1.1 TIMER_READ_US .......................................................................................... 219
10.2 Saving, reading and converting data in the memory ...................................................... 220
10.2.1 Automatic data backup .................................................................................... 220
10.2.2 Manual data storage........................................................................................ 221
10.3 Data access and data check........................................................................................... 224
10.3.1 GET_IDENTITY ............................................................................................... 225
10.3.2 SET_IDENTITY ............................................................................................... 227
10.3.3 SET_PASSWORD........................................................................................... 228
11 LED, buzzer, visualisation 229
11.1 Control LED..................................................................................................................... 229
11.1.1 SET_LED......................................................................................................... 230
11.2 Manage visualisation ...................................................................................................... 232
11.2.1 BASICDISPLAY_INIT...................................................................................... 233
12 Annex 234
12.1 System flags.................................................................................................................... 235
12.2 Overview of the files and libraries used .......................................................................... 236
12.2.1 General overview............................................................................................. 236
12.2.2 What are the individual files and libraries used for?........................................ 238
13 Glossary of Terms 243
14 Index 258
4
Page 5

ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
About this manual What do the symbols and formats mean?
1 About this manual
What do the symbols and formats mean? .....................................................................................5
How is this manual structured?......................................................................................................6
In the additional "Programming Manual for CoDeSys V2.3" you will obtain more details about the use
of the programming system "CoDeSys for Automation
Alliance". This manual can be downloaded free
of charge from ifm's website:
a) www.ifm.com
(http://www.ifm.com) > select your country > [Service] > [Download] > [Control
systems]
b) ecomatmobile DVD "Software, tools and documentation"
Nobody is perfect. Send us your suggestions for improvements to this manual and you will receive a
little gift from us to thank you.
© All rights reserved by ifm electronic gmbh. No part of this manual may be reproduced and used
without the consent of ifm electronic gmbh.
All product names, pictures, companies or other brands used on our pages are the property of the
respective rights owners.
202
1.1 What do the symbols and formats mean?
The following symbols or pictograms depict different kinds of remarks in our manuals:
DANGER
Death or serious irreversible injuries are to be expected.
WARNING
Death or serious irreversible injuries are possible.
CAUTION
Slight reversible injuries are possible.
NOTICE
Property damage is to be expected or possible.
NOTE
Important notes on faults and errors.
203
Info
Further hints.
5