Bedienungshandbuch Moeller GmbH Industrieautomation Hein-Moeller-Straße 7–11 D-53115 Bonn E-Mail: info@moeller.net Internet: www.moeller.net © 2002 by Moeller GmbH Änderungen vorbehalten AWB2724-1584D xx/xx/Ki 05/06 Printed in the Federal Republic of Germany (0x/02) Article No.: xxxxxx 4 *patpks#nycmyn* Hardware, Engineering and Function Description 12/06 AWB2724-1584GB A Think future. Switch to green.
Rückenbreite festlegen! (1 Blatt = 0,106 mm, gilt nur für XBS) All brand and product names are trademarks or registered trademarks of the owner concerned. 1st published 2006, edition date 09/06 2nd edition 12/06 See revision protocol in the “About this manual“ chapter © Moeller GmbH, 53105 Bonn Author: Editor: Translator: Peter Roersch Thomas Kracht Terence Osborn All rights reserved, including those of the translation.
Warning! Dangerous electrical voltage! Before commencing the installation • Disconnect the power supply of the device. • Ensure that devices cannot be accidentally restarted. • Verify isolation from the supply. • Earth and short circuit. • Cover or enclose neighbouring units that are live. • Follow the engineering instructions (AWA) of the device concerned. • Only suitably qualified personnel in accordance with EN 50110-1/-2 (VDE 0105 Part 100) may work on this device/system.
2
12/06 AWB2724-1584GB Contents About This Manual 1 2 3 4 5 List of revisions Additional documentation Reading conventions 7 7 7 7 PLCs: Part number overview 9 9 Device application Setup Inputs – Function and cursor buttons as inputs – Diagnostics inputs – Inputs for high-speed counters Outputs Memory card (MCC) – Memory card data – Data access on the memory card RUN/STOP/SF and CAN/NET LEDs Real-time clock Programming interface for the PC Multi-function interface CAN/easy-NET interfaces 11 11 1
Contents 6 7 8 9 2 12/06 AWB2724-1584GB Memory card, CAN/easy-NET, PC connection – Fitting or removing the memory card – CAN/easy-NET, PC connection Connecting expansion devices/network modules – Local expansion – Remote expansion 26 26 27 28 28 28 Keypad Selecting menus and entering values Selecting or toggling between menu items – Cursor display – Setting values Selecting the System menu – Status display – Status display with time Menu structure – Main menu without password protection – Main menu
12/06 AWB2724-1584GB Contents Reset 44 – Warm reset 44 – Cold reset 44 – Hard Reset 44 – Restoring factory settings (factoryset) 44 – Behaviour of variables after Reset 45 Test and commissioning 45 – Breakpoint/single-step mode 45 – Single cycle mode 45 – Forcing variables and inputs/outputs (Forcing) 45 – Status display in the programming software 45 High-speed counters (Counter) 45 – Counter functions (inputs/outputs) 46 Incremental input 47 – Explanation of the input/output signals (I/Q) 47 – Overview
Contents 13 Defining system parameters via the STARTUP.INI file 12/06 AWB2724-1584GB 65 Overview 65 Structure of the INI file 65 Creating the Startup.INI file 65 Switching on the controller with the fitted memory card containing the Startup.INI file 65 Changing parameters 66 Deleting the Startup.
12/06 AWB2724-1584GB Appendix Index Contents 99 CAN/easy-NET network 99 – Accessories 99 Example program for PLC START/STOP using external switch 100 EASY800-PC-CAB connection cable 101 Dimensions and weight 101 Technical data 102 – Transistor outputs 107 – Analog output 109 111 5
12/06 AWB2724-1584GB 6
12/06 AWB2724-1584GB About This Manual List of revisions Reading conventions The following significant amendments have been introduced since previous issues: Select ‹File r New› means: activate the instruction “New” in the “File” menu. Edition date Page 12/06 93 Description New h Draws your attention to interesting tips and supplementary information.
/06 AWB2724-1584GB 8
12/06 AWB2724-1584GB 1 Device application PLCs: Part number overview Part no. Features Transistor outputs Relay outputs Analog output The EC4-200 series contains controllers with different displays and the type and number of inputs/outputs. Buttons/display The controllers of the EC4-200 series are programmable switching and control devices. They can be used in domestic applications, machine building and plant construction.
12/06 AWB2724-1584GB 10
12/06 AWB2724-1584GB 2 Setup Inputs c a b d RUN STOP SF Table 1: CAN/ NET r q p o Q1 Q2 Q3 Q4 Q5 e f g h i j k l Type and number of inputs Digital 12 (I1…I12) 24 V DC Of which can be used as analog 4 (I7, I8, I11, I12) 24 V DC/0…10 V Inputs I7, I8, I11, I12 can also be used as analog inputs. They are selected in the user program by means of the appropriate syntax used in the PLC configurator.
12/06 AWB2724-1584GB Setup Example: If you are using input I1 for a high-speed counter (16bit), I2 can be used for another high-speed counter (16-bit) but not for generating an interrupt. Inputs I3 and I4 likewise cannot be used for generating an interrupt. Connection description a figure 21 on page 23. Function and cursor buttons as inputs The front plate of the device is provided with the function buttons DEL, ALT, ESC, OK which are arranged around the rocker switch.
12/06 AWB2724-1584GB Memory card (MCC) Memory card (MCC) RUN/STOP/SF and CAN/NET LEDs The memory card is used for data storage and supports the FAT16 file system. After power up, the CPU can switch to the following states, as indicated by the LEDs: Table 3: Memory card data LED status signals LED Meaning/CPU status On the memory card you can save the following data: RUN/STP/SF CAN/NET Data Transfer method Boot project Browser command: copyprojtommc Startup.
12/06 AWB2724-1584GB Setup Real-time clock Multi-function interface The PLC is provided with a real-time clock that can be accessed in the user program via functions from the SysLibRTC library. The functions are described in the PDF file “SysLibRTC”. After the software is installed, this file can be opened via .
12/06 AWB2724-1584GB CAN/easy-NET interfaces CAN/easy-NET interfaces RUN STOP SF The PLC is provided with a CAN/easy-NET interface with two slots that are internally connected via terminals.
12/06 AWB2724-1584GB 16
12/06 AWB2724-1584GB 3 Expansion units You connect the expansion devices directly to the PLC via the EASY-LINK interface. The following expansion devices can be used to increase the number of PLC inputs and outputs.
12/06 AWB2724-1584GB 18
12/06 AWB2724-1584GB 4 Mounting Install the PLC in a control cabinet, a service distribution board or in an enclosure so that the power supply terminals and other terminals are protected against direct contact during operation. The PLC can be installed vertically or horizontally on a top-hat rail in compliance with IEC/EN 60715 or on a mounting plate using fixing brackets.
12/06 AWB2724-1584GB a a a a Figure: 12: Geräte anschrauben aFixing brackets EASY200-EASY EASY202-RE EASY6…-RE/-TE EASY-LINK-DS 2 1 EC4-200 3 6 5 4 Figure: 13: Connecting the expansion unit/network module to the EC4-200 20
12/06 AWB2724-1584GB 5 Installation Connecting the power supply Connecting digital inputs Use input terminals I1 to I12 to connect pushbutton actuators, switches or 3 or 4-wire proximity switches. Do not use any 2-wire proximity switches due to the high residual current. L01 + L01 – F1 L01⫹ L01⫺ F1 ... ...V 0V 0V I1 I2 I3 I4 I5 I6 I7 DC : +24 V ...
12/06 AWB2724-1584GB Installation Connecting setpoint potentiometers Temperature sensor connection L01⫹ L01⫹ L01⫺ L01⫺ +24 V H h F1 F1 H –35...55 ˚C 0V +24 V H 0V 0V Out 0...10 V Out 0...10 V –35...55 ˚C +12 V ... 24 V 0V 0V I1 I2 I3 I4 I5 I6 24 V 0 V I7 0V I1 I2 I3 I4 I5 I6 I7 I8 I9 I10 I11 I12 Figure: 19: Temperature sensor Figure: 16: Setpoint potentiometer Use a potentiometer with the resistance F 1 kO, e.g. 1 kO, 0.25 W.
12/06 AWB2724-1584GB Connecting a pulse transmitter/incremental encoder Connecting a pulse transmitter/incremental encoder Inputs I1 to I4 are designed so that high-speed signals from pulse transmitters/incremental encoders can be counted. Connecting the incremental value encoder L01 + L01 – The following connection options are possible: L02 + • 2 x pulse transmitters (16-bit) • 1 x pulse transmitters (32-bit) • 1 x incremental encoder (32-bit).
12/06 AWB2724-1584GB Installation Connecting the outputs The relay or transistor outputs are used to switch loads such as fluorescent tubes, filament bulbs, contactors, relays or motors. Prior to installation observe the technical limit values and data for the outputs (a page 106, 107). Connecting the relay outputs EC4P-221/222-MR…, EASY6..
12/06 AWB2724-1584GB Connecting transistor outputs Connecting transistor outputs EC4P-221/222-MT…, EASY6…-DC-TE F 10 A 24 VQ f 2.5 A F 10 A 0 VQ Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 S1 S2 S3 S4 S5 S6 S7 S8 24 VQ 0 VQ 0VH f 2.5 A EC4P-221/222-MT… R 24 V H 0.5 A Q1 – Q4 Q5 – Q8 3W 5W Figure: 24: L 0.5 A + 24 V H (20.4 – 28.8 V H) 24 V H R L 0.5 A 0.5 A 24 V 5 W/24 V Transistor outpus EC4P-221/222-MT…, EASY6..
12/06 AWB2724-1584GB Installation Connecting analog outputs Memory card, CAN/easy-NET, PC connection The EC4-200 is provided with one analog output QA 01, 0 V up to 10 V DC, 10-bit resolution (0 to 1023). The analog output can be used for controlling servo valves and other actuators. To fit a memory card or establish a CAN/easy-NET or PC connection the protective cap must be removed first of all. Connecting servo valves L01 + L01 – F1 ...
12/06 AWB2724-1584GB Memory card, CAN/easy-NET, PC connection 1 2 Figure: 30: Fitting/removing the memory card CAN/easy-NET, PC connection Fit the plug for the CAN/easy-NET connection into the opening at the top of the device a. X Fit the plug for the PC connection in the opening on the bottom right on device b. X a b Figure: 31: Plug for the CAN/easy-NET connection a and the PC connection b h For further information see a section “CAN/easy-NET network”, page 99.
12/06 AWB2724-1584GB Installation Connecting expansion devices/network modules Remote expansion Local expansion X Connect the devices to the expansion or to the network module via the EASY-LINK-DS connection plug. j EASY-LINK-DS EC4-200 Remote expansion units can be installed and run up to 30 m away from the basic unit. EASY6...
12/06 AWB2724-1584GB 6 Operation The following chapter describes the operation of the buttons and the display on the front plate. Selecting or toggling between menu items Cursor Í Ú PROGRAM STOP PARAMETER SET CLOCK Keypad DEL: Delete ALT L DE Cursor buttonsúÌíÕÍ Ú: Move cursor Select menu items Set numbers and values OK: Next menu level, Save your entry ES OK C OK ALT: Special function, status display ESC: Previous menu level, Cancel Select or toggle Cursor display HH:MM DD.
12/06 AWB2724-1584GB Operation Selecting the System menu Status display I 12........ NT1SP BP MC DC MO 02:00 WS Q ..34 . STOP Local expansion OK R ..34...... RS SP BP MC DC MO 02:00 WS S....56.. STOP R = Inputs… RS = Expansion S = Outputs… Current selection flashes in menu and DEL ALT No password ESC ESC OK PROGRAM STOPå RUN SET CLOCK INFORMATION SECURITY SYSTEM STARTPARAMETER.. MENU LANGUAGE 1st menu level Main menu 1st menu level System menu Status display with time Inputs I 12 .
12/06 AWB2724-1584GB Menu structure Menu structure Main menu without password protection X You access the main menu by pressing OK.
12/06 AWB2724-1584GB Operation Main menu with password protection Main menu Password entry PASSWORD STOP RUN å SET CLOCK INFORMATION Incorrect entry enter Password Correct entry Status display PASSWORD RUN System menu X The System menu is accessed by simultaneously pressing DEL and ALT.
12/06 AWB2724-1584GB Menu structure System menu PLC: STOP! System menu SYSTEM STARTPARAMETER MENU LANGUAGE CONFIGURATOR NET... LINK... NET PARAMETER.. STATIONS CONFIGURE NET-ID :01 BAUDRATE: 125KB BUSDELAY: 00 SEND IO : å REMOTE RUN Position on the easyNET PARAMETER... STATIONS CONFIGURE 1 2 3 4 1 2 3 0 ID of active devices 0 = No device UP TO 8 0 NET PARAMETER... STATIONS CONFIGURE CONFIGURE? OK CONFIGURATION IN PROGRESS SYSTEM STARTPARAMETER MENU LANGUAGE CONFIGURATOR NET... LINK...
12/06 AWB2724-1584GB 34
12/06 AWB2724-1584GB 7 Description of settings All settings are made using the operating elements on the controller. Selecting the scope of the password Press the OK button. X Select the function or the menu to be protected. X Press the OK button in order to protect the function or menu (tick = protected). X Password protection You can protect access to the main menu and the System menu, the clock setting and the operating mode (RUN/STOP) with a password.
12/06 AWB2724-1584GB Description of settings Access with password protection Changing or deleting the password range Password protection is deactivated once the password is entered. You can reactivate password protection later via the Password menu or by switching the power supply off and on again. X X Press OK to switch to the main menu. The PASSWORD… entry will flash. X Press OK to enter the password entry menu.
12/06 AWB2724-1584GB Changing the menu language Changing the menu language Setting date and time Two menu languages can be selected. These can be set via the System menu. The devices are provided with a real-time clock with date and time. Set the hour, minute, day, month and year during initial commissioning. Language Display English ENGLISH German DEUTSCH X This will open the menu for setting the time.
12/06 AWB2724-1584GB Description of settings The contrast setting is valid until it is changed again. Setting LCD contrast and backlight The background illumination of the LCD display can be switched off. The display contrast can be set to one of five stages. The display is not required during operation. The backlight is only required during maintenance and when texts have to be displayed. X Switch to the System menu.
12/06 AWB2724-1584GB 8 Configuration of the inputs/outputs (I/O) Representation of the inputs/outputs in the configuration Changing the folder function The direct addresses of the inputs/outputs are assigned symbolic names beforehand in the PLC configuration. Symbolic operand Physical operand Data type Transistor Outputs n Relay Outputs The Transistor Outputs are displayed as the default PLC configuration.
12/06 AWB2724-1584GB Configuration of the inputs/outputs (I/O) The submenu will appear: Select a counter type, such as 32-bit counter. X No Counter will then be replaced by “32 Bit Counter”. X Clicking the plus sign will display the inputs and outputs of the counter. X Displaying the inputs/outputs of the expansion devices Click the “+” sign in front of the folder “Extension” Right-click the “No Extension” folder X Select a device from the Replace element menu.
12/06 AWB2724-1584GB 9 Operation General Startup behaviour with boot project on the memory card Overview of memory sizes When the controller is switched on, a boot project on the memory card has priority over a project stored in the system memory. If both projects are different, the boot project of the memory card is copied to the system memory and then started. Due to the copy process the PLC start-up phase will be extended by a few seconds.
12/06 AWB2724-1584GB Operation Power on Boot project on MMC? No Yes Boot project in the system memory (Flash)? No No Boot project in the system memory (Flash)? Yes Yes Boot project on MMC = Boot projet in the main memory (Flash)? No Yes Load boot project from system memory (Flash) into the main memory Load boot project from the MMC into the working Load boot project from the system memory memory (Flash) into the working memory Save boot project from the MMC in system memory (Flash) Startup beh
12/06 AWB2724-1584GB Setting the startup behaviour in the programming software With the setting of the start-up behaviour you determine the start behaviour of the PLC when the supply voltage is switched on. The setting can be made in the PLC configurator or via the operating elements of the controller. The setting options are not prioritised. The last entry is valid. Activate the Common Parameters tab in the PLC configurator and choose the required startup condition from the list.
12/06 AWB2724-1584GB Operation Starting/stopping the program via external switch Reset An external switch connected to an input can be used to start or stop the processing of the program. Some additional program instructions are required, which are shown in the example in the Appendix (). The SysLibPlcCtrl.lib library contains the function SysStartPlcProgram required for the start, and the function SysStopPlcProgram required for the stop.
12/06 AWB2724-1584GB Test and commissioning Forcing variables and inputs/outputs (Forcing) Behaviour of variables after Reset Variable type Reset Non-retentive Retain Warm reset Activation of the initial values Values remain in memory Cold reset Activation of the initial values Hard reset1) No more variables present, program deleted 1) After a hard reset, the program must be reloaded. In online operation, you can then restart the PLC.
12/06 AWB2724-1584GB Operation Figure: 41: 32-bit counter function block The inputs/outputs of the function blocks are essentially the same as the inputs/outputs listed in the PLC configuration. reduced until it reaches 0. On the next count pulse the reference value is accepted again and the program routine is called again.
12/06 AWB2724-1584GB Incremental input Figure: 43: Inputs/outputs of the 16-bit counter 0 and 1 h When the actual values equals the reference value, an interrupt can be generated in order to activate a program routine. To do this, you must activate the interrupt in the task configuration and assign the program routine a section “Interrupt processing”, page 52. Incremental input One incremental input is available.
12/06 AWB2724-1584GB Operation reference value that you have defined in the PLC configuration. RefActive is reset and RefDone is set until the reference window is opened again.
12/06 AWB2724-1584GB System events System events System events are: START START: User program start (cold and warm start) COLDSTART Cold start of the user program WARMSTART Warm start of the user program STOP User program stop (does not apply to cycle time timeout or hardware watchdogs) I/O Interrupt 1, 2, 3, 4 Voltage change at inputs I1, I2, I3, I4 Counter interrupt1 Act = Preset on 16-bit counter 0 Counter interrupt 2 Act = Preset on 16-bit counter 1 or 32-bit counter TIMER_Interrupt.
12/06 AWB2724-1584GB Operation Interrupt inputs I1 … I4 Timer interrupt Inputs I1 to I4 can be configured as interrupt inputs. An edge at the input generates an interrupt signal (a page 52) that calls the program routine assigned to it. You can create a program routine that is called at a fixed time interval. The TIMERINTERRUPTENABLE function is started by a Boolean variable or an external input. The program routine is assigned to the timer interrupt in the task configuration.
12/06 AWB2724-1584GB System events Example • Create a program with a function call Create a program with the function TIMERINTERRUPTENABLE like in figure 50. • Writing program routines X Open the “Task Configuration” sub-directory with a double click in the “Resources” directory. X Click here the System Events folder. The System events tab is active. X Activate the timer interrupt required by activating the check box on the left of “Timer-Interrupt” name.
12/06 AWB2724-1584GB Operation Interrupt processing Steps for interrupt processing If an interrupt occurs, the program is interrupted and the program routine associated with the system event is processed. figure 53 shows a list of interrupt sources. X START/STOP COLDSTART WARMSTART (Start of controll.
12/06 AWB2724-1584GB Direct I/O access Figure: 55: Interrupt edge selection X Change over to the Task configuration and open the “System events” folder. Figure: 57: Allocation of Interrupt source l POU X X Select the “Fastprog” POU and confirm with OK. Save the project. You can now test it. The variable “b” is incremented by one with every rising edge on input I3. Direct I/O access The functions of the library EC_Util.lib allow you direct access to the local I/O on the PLC.
12/06 AWB2724-1584GB Operation Error code for “direct I/O access” All functions verify as far as possible the validity of the call parameters. If a fault is determined, access is not executed and an error code is output. The following return values are possible: Figure: 58: ReadBitDirect function Function call: ReadBitDirect(uiSlot, uiBit, ptr_xValue) The following tables show the access options available: Table 11: Functions for accessing the I/Os Figure: 59: Return values of the EC-UTIL.
12/06 AWB2724-1584GB Creating and transferring boot project Creating and transferring boot project Storing a boot project on a memory card The CPU processes the user program stored in the main memory. As the working memory is not backed up, the program will be lost in the event of a power failure. You can therefore create a boot project to store the program retentively. The boot project stored in the system memory (Flash) can also be stored on the memory card.
12/06 AWB2724-1584GB Operation Operating system, download/update The EC4-200 enables you to replace the currently stored operating system (OS) with a more recent version. The latest OS version can be downloaded from the Moeller website (http://www.moeller.net/support). The latest OS is also supplied on the latest easy Soft CoDeSys CD. h Caution! The download is only possible in offline mode! Downloading the OS will delete all the files on the controller/memory card.
12/06 AWB2724-1584GB Operating system, download/update Figure: 66: OS successfully transferred to the PLC X In this window click the Exit button. Transferring the OS from PC to the memory card Loading an OS onto the memory card will delete the existing OS and the boot project on the memory card as well as the user program in the controller. This is carried out in the same way as described in section “Transferring the operating system from the PC to the PLC”.
12/06 AWB2724-1584GB 58
12/06 AWB2724-1584GB 10 Browser commands The PLC browser is a text-based controller monitor. This is where you enter commands in an entry line and send them as strings to the controller in order to access specific information from it. The response string is shown in a result window of the browser. This function can be used for diagnostics and debugging tasks. h The browser commands can only be used online. Table 14: Browser commands ? Get a list of implemented commands.
12/06 AWB2724-1584GB Browser commands canload setrtc Displays the load of the CANopen fieldbus. Sets or changes the date and/or the time in the controller. Example: Syntax: setrtc_YY:MM:DD:DW_HH:MM:SS> Legend: Figure: 67: “canload” browser command This browser command returns, for example, the following information: • CAN bus load = 0 percent • Baud rate 125 Kbit/s • Integration time: 510 ms.
12/06 AWB2724-1584GB 11 Libraries, function blocks and functions The libraries contain IEC function blocks and functions that you can use, for example, for the following tasks: • • • • • Data exchange via the CANopen bus Controlling the real-time clock Determining the bus load of the CANopen bus Triggering interrupts Sending/receiving data via the interfaces.
12/06 AWB2724-1584GB Libraries, function blocks and functions EC4-200 specific functions EC_Util.lib library EC_Visu.lib/EC_Visu2.lib library This library contains the functions shown in the illustration below: The EC_Visu2.lib library contains function blocks for controlling the LCD display. Figure: 71: EC_Visu2.lib library Figure: 69: Functions of the EC_Util.lib library h The already available functions/function blocks SetBacklight, SetContrast and GetDisplayInfo from library EC_Visu.
12/06 AWB2724-1584GB Communication settings of the PC 12 PC n EC4-200 connection setup The communication parameters of both the PC and the PLC must match in order to establish a connection between them. The default parameters are set as shown in figure 72 on devices that are used for the first time. Just select the COM... interface on the PC. No other settings are required. Communication parameters (baud rate) of the CPU Open the PLC configuration. Click the Communication tab.
12/06 AWB2724-1584GB 64
12/06 AWB2724-1584GB 13 Defining system parameters via the STARTUP.INI file Overview Creating the Startup.INI file You can create project-neutral system parameters and store them on the memory card. Here they are contained in the Startup.INI file. The memory card can also be fitted in other controllers. The controller will accept the parameters during the startup. The Startup.INI file is always created with all controller parameters (a table ).
Defining system parameters via the STARTUP.INI file Changing parameters The parameters are retained until you enter the browser command “removestartupini” and then switch the controller off and on again. The controller will now operate with the parameters of the project. Deleting the Startup.INI file The following browser commands can be used to access the memory card. • removestartupini: Always deletes the controller system parameters.
12/06 AWB2724-1584GB 14 Programming via a CANopen network (Routing) Routing means to establish an online connection from a programming device (PC) to any (routing-capable) PLC in a CAN network without having to directly connect the programming device to the target PLC. It can be connected to another PLC in the network.
12/06 AWB2724-1584GB Programming via a CANopen network (Routing) Changing the block size: Addressing Close all applications. X Close the CoDeSys gateway server. Controllers on the CAN bus can be configured a master or as a device. The controllers are assigned a Node ID/node number (address) so that they can be identified uniquely. The target controller must also be assigned a (routing) Node ID if you wish to access it by means of the routing function.
12/06 AWB2724-1584GB Communication with the target controller Communication with the target controller Connect the PC to the routing PLC. Select the project for the target PLC with which you want to communicate. X First of all define the communication parameters for the connection between the PC and the PLC which is connected to the PC. X Enter the target ID (Target ID = Node ID!) of the target PLC, as in the example, and log on.
12/06 AWB2724-1584GB Programming via a CANopen network (Routing) Example: Accessing a PLC program The example below illustrates the procedure for accessing a PLC program. a b c Call up the communications parameters in the Online menu once again and select the PLC which you want to program/test. X Enter the target ID, number 3 in the example. The target ID is identical to the node ID! To enter the target ID, click on the field in the Value column, to the right of the term Target ID.
12/06 AWB2724-1584GB 15 RS 232 interface in Transparent mode In Transparent mode, data is exchanged between the EC4-200 and data terminal devices (e.g. terminals, printers, PCs, measuring devices) without any interpretation of the data. For this the serial interface RS 232 (COM1/COM2 = Multifunction interface) must be switched to Transparent mode via the user program.
12/06 AWB2724-1584GB 72
12/06 AWB2724-1584GB 16 Interactive display The use of functions and function blocks (FBs) enables you to display variables (text/values) on the PLC display and enter values via the buttons/rocker switch. An MFD-CP4 that performs these functions in parallel can be connected to the PLC for external HMI tasks. Display form The display of the PLC and the MFD-CP4 has a matrix consisting of 4 lines and 16 columns. Each line can therefore display 16 characters. Three characters sets are available for use.
12/06 AWB2724-1584GB Interactive display Other functions are shown in the function/function block overview. Function/function block overview The display in the Entry/output mode can be defined and controlled with the following functions/function blocks contained in the library “EC_Visu2.lib”.
12/06 AWB2724-1584GB Description of important functions / function blocks Description of important functions / function blocks FUNCTION Disp_EnableDisplay: BOOL (*Changing Status display <-> Entry/output mode*) VAR_INPUT xEnable: (* FALSE: Status display, TRUE: Entry/output mode *) xDisableESCKey: (*Enabling of ESC button on local display and MFD-CP4: FALSE: Enable TRUE: Button disabled *) END_VAR (* Return value: TRUE *) About xDisableESCKey: Pressing the ESC button (requirement: ESC button must b
12/06 AWB2724-1584GB Interactive display FUNCTION_BLOCK Disp_GetDisplayInfo (* Actual information of the display status *) VAR_OUTPUT byMenueLevel :(* Menu level: *) (*0: Status menu *) (*1: Main menu *) (*2: Main menu / program *) (*3: Main menu / Set clock *) (*4: Main menu / information *) (*5: System menu *) (*6: System menu/ Security *) (*7: System menu/ System *) (*8: System menu/ Start parameters *) (*9: System menu / menu language *) (*10: System menu / Configurati
12/06 AWB2724-1584GB Description of important functions / function blocks ... TYPE DISP_ATTRIBUT : ( DISP_ATTR_NORMAL := 0, DISP_ATTR_REVERSE, DISP_ATTR_BLINK ) := DISP_ATTR_NORMAL; END_TYPE FUNCTION_BLOCK Disp_DisplayPage (* Display of a screen *) VAR_INPUT xEnable: (* TRUE: Activate display *) xEnableInput: (* TRUE: Activate Entry *) byNoOfElements: (* Number of elements for this screen 1 - 12*) aElementDescription:ARRAY [1..
12/06 AWB2724-1584GB Interactive display Relationship between DISP_DisplayPage.xEnable/ xEnableInput and DISP_ElementDescription.xInputEnable for the value entry Value entry procedure X Set the following in the program: (Display of values/modifications visible) Disp_DisplayPage.xEnableInput = TRUE (Entry enabled) X Press the ALT button on the display. The cursor appears on the first element “aElementDescription[1]” for which its xInputEnable is set to TRUE. X Press the OK button.
12/06 AWB2724-1584GB Description of important functions / function blocks Example of text and values output (with the Disp_DisplayElement FB) The display is required to display the values of the variables “motor1” and “motor2”. The two values are changed continuously by the user program. Figure: 90: Declaration of display variables Figure: 89: Example of text and values output Creating auxiliary variables For the first program cycle call “Startprogram” on system event “Start”.
12/06 AWB2724-1584GB Interactive display Creating the program “Visualisation” Depending on the status of auxiliary variable “g_xFirstCycleAfterStartProgram” register the variables for which the text/value is to be displayed: Disp_RegisterVariable('V1', DISP_TYP_BYTE); ADR(PLC_PRG.byValue), Disp_RegisterVariable('V2', DISP_TYP_WORD); ADR(PLC_PRG.
12/06 AWB2724-1584GB Description of important functions / function blocks Example of a screen output with texts and value entries With the Disp_DisplayPage function block The following display has to be implemented The contents of the variables MO11 and TEMP8 are changed continuously by the user program. Create an auxiliary variable and write the program “Startprogram” as in the “Example of text and values output”.
12/06 AWB2724-1584GB Interactive display PROGRAM Visualization (***************) VAR xIsDisplayEnabled :BOOL; fbDisplayPage1 :Disp_DisplayPage; byError :BYTE; siValue :SINT; END_VAR -----------------------------------------------------------(* Initialisation in the first cycle after program start *) IF g_xFirstCycleAfterStartProgram = TRUE THEN Disp_RegisterVariable('S1', ADR(g_sDisp_String1), DISP_TYP_STRING); Disp_RegisterVariable('S2', ADR(g_sDisp_String2), DISP_TYP_STRING); Disp_Registe
12/06 AWB2724-1584GB Description of important functions / function blocks fbDisplayPage1.aElementDescription[7].sName := 'V3'; fbDisplayPage1.aElementDescription[7].byLine := 3; fbDisplayPage1.aElementDescription[7].byColumn := 8; fbDisplayPage1.aElementDescription[7].byDigits := 9; fbDisplayPage1.aElementDescription[7].byPrecision := 0; fbDisplayPage1.aElementDescription[7].xInputEnable := TRUE; fbDisplayPage1.aElementDescription[7].diMinInputValue := 0; fbDisplayPage1.
12/06 AWB2724-1584GB Interactive display MFD-CP4 multi-function display on the EC4-200 The multi-function display (MFD-CP4) enables you to implement externally the same display and operating functions available on the PLC. Figure: 96: Changing Terminal mode t Local mode In Local mode the MFD display buttons are active. See MFD-CP4 power supply/communication module manual (AWB25281548GB).
12/06 AWB2724-1584GB 17 The easy-NET network Overview Sending/receiving user data easy-NET is based on the CAN network that enables the exchange of process and system data. This network is designed for 8 stations (PLCs). Each station is assigned an ID number 1…8 and can exchange data with all other stations. Bit, byte, word and double word data formats are available. The station with ID1 must always be present. This is responsible for managing the communication in the network.
12/06 AWB2724-1584GB The easy-NET network From the user program to the protocol task: Data transfer options • Send user data via the easy-NET – Local and extended outputs (byQ/byS) – Local and extended inputs (wI/wR) – Send data to a selected station X (aToID[x].dwSN) – Set local outputs of stations without own program (aToID[x].byQ/aToID[x].byS ). This operation is only possible from NET-ID1. – Send data with the PUT command (Broadcast).
12/06 AWB2724-1584GB Overview Transfer of bit data blocks between several PLCs Each PLC can send a 32-bit data block to another specified PLC via the easy_NET. To do this, call the NET_UPDATE function in the program of the EC4-200 PLC and enter the station number X of the receiver via the structure (EASY_NET_MAIN) (SND.aToID[X].dwSN). Write the data to be sent to the variable dwSN. To receive data from other PLCs, use the structure (EASY_NET_MAIN).
12/06 AWB2724-1584GB The easy-NET network 1st connection: The value “a” (32-bit) is transferred from EC4-200 (ID1) to the easy800 (ID2). The following structure must be programmed in the EC4-200: NET_MAIN.SND.aToID[2].dwSN:=a; The value can be processed in the easy800 by the scanning of the input bits 1RN1 to 1RN32. 2nd connection: A data block with the value 7 (3hex) has to be sent from the easy800 PLC (ID3) to the EC4-200 (ID1). The 3 outputs 1SN1, 1SN2, 1SN3 must be programmed and set in the easy800.
12/06 AWB2724-1584GB Configuring EC4-200 with easy800 on the easy-NET The EC4-200 scans this data unit. For this the following structure variable entries are required: (EASY_NET_GET).byModuleNumber := 2; (EASY_NET_GET).byNET_ID := 3; Figure: 106: Transfer of data according to the PUT-GET principle Figure: 108: Transfer of data according to the PUT-GET principle (GET) The following program sequence can be used in the EC4-200 in order to execute a PUT operation. If the input IX0.
12/06 AWB2724-1584GB The easy-NET network Configuration in the easy SOFT CoDeSys 1. Parameter definition in the configurator Configure and program the EC4-200 with the easy Soft CoDeSys programming software. • Add a tick to the section Activate in the easy-NET Settings area on the CAN/easy-NET tab • Set the NET-ID = 1. • Activate/deactivate the functions Remote Run (ID = 2 … 8) and Send I/O.
12/06 AWB2724-1584GB Programming via easy-NET (Routing) Routing offers an advantage which makes it possible to access all routing capable PLCs on the easy-NET bus from any PLC which is connected with the programming device. This makes it possible to operate remotely configured controllers easily. However, the data transfer rate with routing connections is considerably slower than with direct connections (serial or TCP/IP).
12/06 AWB2724-1584GB The easy-NET network Bus topology A bus topology can be configured as a linear topology with optional spur lines. The ends of the bus must be terminated by bus terminating resistors (120 Ohm). figure 115 shows two connection options. Figure: 113: Communication parameters of easy800 (ID2) Transfer the new settings to the PLC in the following way: Click the PC => Device button in the menu ‹Communication l Program›.
12/06 AWB2724-1584GB 18 EC4-200 network modules The EASY205-ASI, EASY221-CO, EASY204-DP, EASY222-DN network modules enable you to connect the EC4-200 as a slave to ASI, CAN, PROFIBUS-DP or DeviceNet (a table 20) networks. The controller can also be integrated as a station in an easy-NET network. Master EASY205-ASI Cyclic data exchange The master sends 8 bits to the EASY205-ASI network module connected to the EC4-200: 4 bits of output data and 4 parameter bits.
12/06 AWB2724-1584GB EC4-200 network modules Configuration Master The configuration is carried out in the PLC configuration of the easy Soft CoDeSys programming software. The network module is entered as an expansion device in the configuration tree. This contains predefined input and output channels (R1…R8, S1…S4) for the cyclical transfer of data.
12/06 AWB2724-1584GB EASY221-CO, EASY204-DP, EASY222-DN Configuration Acyclic data exchange The configuration is carried out in the PLC configuration of the easy Soft CoDeSys programming software. The network module is entered as an expansion device in the configuration tree. This contains predefined input and output channels (R1…R16, S1…S8) for the cyclical transfer of data. Acyclical data exchange enables access to the defined objects of the EC4-200.
12/06 AWB2724-1584GB EC4-200 network modules Start addreses for inputs/outputs and markers The start addresses for the address ranges of the inputs and outputs can be set in the PLC configuration. The marker range is shown in table 24. Figure: 121: Setting the address ranges The configuration and setting of the station address was already described in the section “Cyclical data exchange”.
12/06 AWB2724-1584GB EASY221-CO, EASY204-DP, EASY222-DN Word 60 (118) DWord 30 (116) 59 (116) 58 (114) 57 (112) Word 66 (130) DWord 33 (128) Word 72 (142) DWord 36 (140) Word 78 (154) DWord 39 (152) Word 84 (166) DWord 42 (164) Word 90 (178) DWord 45 (176) Word 96 (190) DWord 48 (188) 47 (184) 46 (180) DWord 51 (200) 50 (196) 49 (192) DWord 54 (212) 53 (208) 52 (204) DWord 57 (224) 56 (220) 55 (216) DWord 60 (236) 59 (232) 58 (228) DWord 63 (248) 62 (244)
12/06 AWB2724-1584GB 98
12/06 AWB2724-1584GB Appendix Calculating the cable length for a known cable resistance If the resistance of the cable per unit of length is known (resistance per unit length R’ in O/m), the entire cable resistance RL must not exceed the following values. RL depends on the selected baud rate: CAN/easy-NET network Accessories • RJ45 plug, Type: EASY-NT-RJ45 (8-pole) h Baud rate Cable resistance RL Kbaud O 10 … 125 F 30 250 F 25 500 F 12 Pre-assembled cables have RJ45 plugs at both ends.
12/06 AWB2724-1584GB Appendix Example program for PLC START/STOP using external switch The SysLibPlcCtrl.lib library contains the function SysStartPlcProgram required for the start, and the function SysStopPlcProgram required for the stop.
12/06 AWB2724-1584GB EASY800-PC-CAB connection cable EASY800-PC-CAB connection cable Dimensions and weight 9-pole socket connector on the cable (Terminal/PC plug) Pin Signal 2 RxD 3 TxD 4 DTR 5 GND 7 RTS Dimensions (W x H x D) [mm] with adapter for MMC 107.5 x 90 x 72 107.5 x 90 x 79 [inches] with adapter for MMC 4.23 x 3.54 x 2.84 4.23 x 3.54 x 3.11 Space units (SU) width 6 Weight [g] 320 [lb] 0.
12/06 AWB2724-1584GB Appendix Technical data Climatic environmental conditions (Cold to IEC 60068-2-1, Heat to IEC 60068-2-2) Operational ambient temperature Installed horizontally/vertically °C, (°F) –25 to 55, (–13 to 131) Prevent condensation by means of suitable measures Condensation LCD display (reliably legible) °C, (°F) 25 … 55, (–13 … 131) Storage/transport temperature °C, (°F) –40 … 70, (–40 … 158) Relative humidity (IEC 60068-2-30), non-condensing % 5 to 95 Atmospheric pressure (oper
12/06 AWB2724-1584GB Slot-head screwdriver, width Technical data mm 3.5 x 0.8 Inch 0.14 x 0.03 Nm 0.6 Program code KByte 256 Program data KByte 14 segments of 16 KB each Marker/Input/Output/Retain data KByte 16/4/4/8 Tightening torque CPU Memory specifications Cycle time for 1 k instructions < 0.
12/06 AWB2724-1584GB Appendix CAN(open)/easy-NET Data transmission rate Kbit/s 10, 20, 50, 100, 125, 250, 500 Default: 125 Potential isolation from inputs/outputs/power supply Yes Bus termination resistor 120 O or EASY-NT-R plug (incl. bus terminating resistor 120 O) Connection type 2 x RJ45, 8pole CAN(open) operating mode: – Stations Number max. 126 – PDO type Asynchronous, cyclic, acyclic – Device profile to DS301V4 easy-NET operating mode – Station Number max.
12/06 AWB2724-1584GB Technical data Delay time from 0 to 1 I1 … I4 ms 0.02 I1 to I4 ms 0.25 I1 … I4 ms 0.02 I1 to I4 ms 0.25 m 100 Delay time from 1 to 0 Cable length (unshielded) Additional input functions Inputs for analog signals Number 4 (I7, I8, I11, I12) Signal range V DC 0 … 10 Resolution analog V 0.01 Resolution digital Bit 10 Value 0 … 1023 kO 11.
12/06 AWB2724-1584GB Appendix Relay outputs Number of outputs 6 Connection of outputs in parallel to increase the output Not permissible Protection of an output relay Miniature circuit-breaker B16 A 16 or fuse (slow-blow) A 8 Electrical isolation Yes Safe isolation V AC 300 Basic insulation V AC 600 Switch operations 10 x 106 Conventional therm.
12/06 AWB2724-1584GB Technical data Relay switching frequency Mechanical switch operations Switch operations 10 mill. (107) Mechanical switching frequency Hz 10 Resistive lamp load Hz 2 Inductive load Hz 0.5 Transistor outputs Number of outputs Rated voltage Ue 8 V DC 24 Permissible range V DC 0.25 to 0.
12/06 AWB2724-1584GB Appendix Parallel connection of outputs with resistive load; inductive load with external suppression circuit (a section “Connecting transistor outputs”, page 25); combination within a group Yes Group 1: Q1 … Q4 Group 2: Q5 … Q8 Maximum number of outputs Total maximum current 4 2 A Attention! Outputs connected in parallel must be switched at the same time and for the same duration.
12/06 AWB2724-1584GB Technical data Analog output Number 1 Electrical isolation To power supply No From the digital inputs No To the digital outputs Yes From the easy-NET network Yes DC voltage Output type Signal range V DC 0 … 10 Output current max. mA 10 Load resistor kO 1 Yes Short-circuit and overload proof Resolution analog V 0.
12/06 AWB2724-1584GB 110
12/06 AWB2724-1584GB Index A Addressing, PLC on CANopen fieldbus . . . . . . . . . . . . . 68 Analog outputs Connecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Application routine . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 B Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Backup time, battery . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Baud rate, specifying/changing . . . . . . . . . . . . . . . . . .
12/06 AWB2724-1584GB Index EnableInterrupt . . . . . . . . . . . . . . . . . . . . . . . . . . .52 FileOpen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 FileRead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 TimerInterruptEnable . . . . . . . . . . . . . . . . . . . . . . .50 Transparent mode . . . . . . . . . . . . . . . . . . . . . . . . .71 Functios GetDisplayInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 N NET-ID . . . . . . . . . . . . . .
12/06 AWB2724-1584GB Index Setting the time via easy-NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Setup, EC4-200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Short-circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Short-circuit monitoring . . . . . . . . . . . . . . . . . . . . . 12, 17 Signals Overview, inputs/outputs . . . . . . . . . . . . . . . . . . . 47 Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .