background image

 

Starter kit for ecomatController EC2121 
 

23 

 

4.2 

Time response 

57276 

 

4.2.1 

Cycle time 

57277 

The time a controller needs for one cycle is called cycle time. 

Typically, this time is in the ms range. 

The cycle time is also the time an input signal has to be present to be reliably detected by the 
controller. 

If a signal is shorter, it depends on whether it happens to come at that point of time at which the inputs 
are read. Only then will it be recognised. 

With the ecomatController, the cycle time is determined by the configuration of the tasks. 

  

 

It is recommended to define as few tasks as possible. 

That means, usually one task is sufficient. You may need a second task for a bus system. 

  

 

4.2.2 

Watchdog 

57278 

A PLC monitors itself if the cycle is correctly processed. The case that a program cycle is not complete 
is dangerous. Then no inputs are read. A change of the state on the input, e.g. "limit switch reached" 
cannot be processed. 

The status of the output cannot change, e.g. the drive keeps on running although the limit switch has 
been reached. 

The watchdog function exists to avoid such states. If the end of the cycle has not been reached within 
a certain time which is started with each new cycle, the watchdog becomes active. The controller is 
stopped and the outputs are disconnected.   

What can cause such an event? 

1.  Hardware error 

 
If a processor fails, for example, the controller must pass into a safe state. 

2.  Program error 

 
If loops or jumps are used in programming, it is possible that processing takes too long or in the 
worst case a closed loop leads to the situation that the end of the cycle cannot be reached. 

 

 

4.2.3 

Response time 

57279 

This value is often used to characterise the time response of a PLC. 

This is the time that elapses from a change of an input signal to the corresponding response of the 
output. 

If an input signal changes only shortly after the PII has been written and is therefore not copied to the 
PII before the following cycle, the output signal changes after two cycles. 

In the worst case, the response time = 2 * cycle time. 

 

Содержание EC2121

Страница 1: ...80282814 00 11 2019 System Manual Starter kit for ecomatController EC2121 CODESYS Version 3 5 or higher English...

Страница 2: ...12 3 Installation 15 3 1 Prepare installation 15 3 2 Carry out installation 17 3 2 1 Install the programming software CODESYS 3 5 17 3 3 Start CODESYS 3 5 19 3 4 Install packages 20 3 4 1 Start the pa...

Страница 3: ...Starter kit for ecomatController EC2121 3 6 Annex 39 6 1 The I O simulator box 39 6 1 1 Inputs 39 6 1 2 Outputs 40 6 1 3 Communication reset 40 7 Index 41...

Страница 4: ...n e V Germany www can cia org CODESYS is the property of the 3S Smart Software Solutions GmbH Germany www codesys com DeviceNet is the property of the ODVA Open DeviceNet Vendor Association USA www od...

Страница 5: ...on of pushbuttons buttons or indications 1 3 Purpose of the document 57252 These instructions describe how to prepare and program a controller of the device family for mobile applications ecomatmobile...

Страница 6: ...g modules Document Content Description Data sheet EC2121 Technical data of the starter kit Data sheet CR711S Technical data of the controller System manual starter kit for ecomatController Step by ste...

Страница 7: ...l when programming the safety PLC CODESYS installation and first steps Remarks about the installation of the programming system CODESYS First steps for handling the CODESYS programming system After th...

Страница 8: ...Connect the voltage supply via an external voltage source 24 V DC not supplied Connect the voltage source to both 4 mm lab sockets on the prewired connection cable plus pole red minus pole black The L...

Страница 9: ...the supplied network cable Ethernet cable to the interface ETH0 of the controller the Ethernet interface of the PC The controller and PC are connected to the network cable 2 3 2 Check and set the netw...

Страница 10: ...ght click Properties Figure below Click the Properties button Select the menu item Use the following IP address Check the IP address on 192 168 82 xxx and set if necessary The following addresses are...

Страница 11: ...47 Subnet mask 255 255 255 0 Gateway IP address 192 168 82 21 2 3 3 Test connection between the controller and PC 57263 The connection can be tested with the UpdateTool NOTE If the instructions on the...

Страница 12: ...g with Enter The ping replies are displayed When the ping replies are displayed as shown in the figure the connection is OK Return to the menu with Enter From the menu the next step can be taken Check...

Страница 13: ...e update menu figure appear in the window The figure shows that OS version 2 9 0 2 is on the controller Now an update to version 3 0 0 3 is to be made NOTE If the instructions on the screen are not co...

Страница 14: ...kit for ecomatController EC2121 14 The update process starts During the update process various messages appear to conclude the following success message is displayed Exit the UpdateTool with Enter and...

Страница 15: ...roller can also be used for applications with functional safety it is necessary for legal reasons that you download the controller specific packages directly from ifm s website In this way you are reg...

Страница 16: ...Starter kit for ecomatController EC2121 16 Open tab Downloads click Target and documentation package under Software Download Login page for my ifm appears Log in to my ifm...

Страница 17: ...g software CODESYS 3 5 57269 Administrator rights are required for the installation on the PC On the supplied USB flash drive you find the 32 bit version of CODESYS since its use is compulsory To inst...

Страница 18: ...n path in C Program Files x86 3S CODESYS V3 5 SP11 and confirm with OK Activate the Next button to continue the installation The installation wizard will guide you through the installation It is recom...

Страница 19: ...rights are required to install the packages on the PC After the first program start the packages belonging to the controller have to be installed Start CODESYS as admin with desktop symbol CODESYS V3...

Страница 20: ...ow shows installed packages 3 4 2 Install packages with the package manager Install packages Click Install The file explorer appears Select the file ifm_R360 3_Vn n n n package from the directory x if...

Страница 21: ...te the installation of the packages CODESYS has to be restarted Exit CODESYS Restart CODESYS by double clicking on the desktop symbol CODESYS V3 5 SP11 The installed packages are now available Done Th...

Страница 22: ...e read continuously Changes are found and considered in the application program If input signals of the switches and sensors change during processing of the application program this may lead to incorr...

Страница 23: ...ed The status of the output cannot change e g the drive keeps on running although the limit switch has been reached The watchdog function exists to avoid such states If the end of the cycle has not be...

Страница 24: ...New project when CODESYS has been started ifm provides one template each for every controller The basic elements and configurations in these basic projects are already prepared Create a new project wi...

Страница 25: ...Starter kit for ecomatController EC2121 25 When a new project is created via Empty project the hardware specific settings have to be made manually...

Страница 26: ...general settings of CR711S SafetyPLC CR711S SIL2 Contents of the SafetyPLC provides access to the contents of the safety controller StandardPLC CR711S Standard Contents of the StandardPLC provides ac...

Страница 27: ...uction only the StandardPLC is used The distribution of the resources e g memory to the two controllers does not have to be taken into account here 5 2 Connect to the device 57282 First of all check t...

Страница 28: ...ect Gateway 1 on the left and search for the controller by clicking the Scan network button The controller appears below the gateway It is possible that the function Scan network has to be executed tw...

Страница 29: ...r user name admin and no password and confirm with OK If a password was already set it has to be entered for login The connection to the controller is established The green circle on the controller si...

Страница 30: ...T0000 Press release signal 5 3 1 Suppress SafetyPLC in the device tree Since only the controller StandardPLC is used for the first program the section of the SafetyPLC is suppressed in the device tree...

Страница 31: ...ent program sections to different blocks Then the blocks are activated one after the other in PLC_PRG Therefore one separate program block press is created for the press controller in this example 5 3...

Страница 32: ...program Since FBDs are particularly suited for boolean functions it is also used in the example program To enter more complex formulas a textual language from IEC 61131 3 such as structured text ST i...

Страница 33: ...onality can be implemented with an AND operator The general symbol for an AND operator is shown in the image below To add a link in CODESYS In the Toolbox section Drag a Box to the first network Start...

Страница 34: ...r output simultaneously in the program via a function block this value will be overwritten This is usually not what you want If you use both methods in parallel binary inputs via I O mapping other inp...

Страница 35: ...n name the binary output in the same way as the inputs Click the question marks at the input of the AND operator Enter OUT0000_Q Select the property ValueDigital Then the inputs of the AND operator ar...

Страница 36: ...s the programming language PASCAL Since commands are entered here in text format there are no tools in this programming window The implementation part consists of a text editor in which instructions a...

Страница 37: ...roller the program should be transferred Set the StandardPLC as active application StandardPLC Application context menu Set Active Application The option Set Active Application only appears if the app...

Страница 38: ...nd stop both switches IN0100 and IN0101 can be switched on Only if both switches are switched on is the lamp OUT0000 on This behaviour can also be seen in CODESYS Here a supplied H signal is shown as...

Страница 39: ...imulation of input and output signals and the reset of communication parameters of the controller Six inputs and outputs each are connected via the box 6 1 1 Inputs 57298 The input circuit is shown in...

Страница 40: ...i e an H signal to the input Since we work under ideal conditions short cable lengths clean voltage supply no internal and external noise signals ground can be connected via GNDsys in the analogue mo...

Страница 41: ...gram FBD 39 H Hardware installation 9 I Inputs 46 Install packages 21 Install packages with the package manager 22 Install the programming software CODESYS 3 5 19 Install UpdateTool on the PC 9 Instal...

Отзывы: