You are on page 1of 28

Twido, Altivar Magelis and Preventa System User Guide

[source code]

33003550.01

Contents
Application Source Code .......................................................................................................2 Typical applications................................................................................................................3 Architecture.............................................................................................................................4 Installation...............................................................................................................................6
Hardware .............................................................................................................................................................8 Software ............................................................................................................................................................11 Communication .................................................................................................................................................12

Implementation .....................................................................................................................13
HMI ....................................................................................................................................................................15 PLC....................................................................................................................................................................17 Data exchange ..................................................................................................................................................19 Devices..............................................................................................................................................................20

Appendix ...............................................................................................................................23 Detailed components list.......................................................................................................23 Component protection classes..............................................................................................24 Key data for the complete system.......................................................................................24 Component Features ............................................................................................................25 Contact ..................................................................................................................................27

Introduction

This document is intended to provide a quick introduction to the described System. It is not intended to replace any specific product documentation. On the contrary, it offers additional information to the product documentation, for installing, configuring and starting up the system. A detailed functional description or the specification for a specific user application is not part of this document. Nevertheless, the document outlines some typical applications where the system might be implemented.

Twido, Altivar Magelis and Preventa_EN.doc – Juni-05

Schneider Electric

1

Twido.doc – Juni-05 Schneider Electric 2 . Altivar Magelis and Preventa_EN.Abbreviations Word/Expression PLC HMI PC AC DC PSU I/O CB VSD EMERGENCY OFF Twido Phaseo Altivar Explanation Programmable Logic Controller Human Machine Interface Personal Computer Alternating Current Direct Current Power Supply Unit Input/Output Circuit Breaker Variable Speed Drive EMERGENCY OFF switch Name of a mid-range Schneider PLC Name of a Schneider range of SPSUs (power supply units) Name of a Schneider range of variable speed drives Application Source Code Introduction Examples of the source code and wiring diagrams used to attain the system function as described in this document can be downloaded from our „Village“ website under this link.

.g. which are used in the following market segments: Industry • Small automated machine or plant components • Remote automation systems used to supplement large and medium-sized machines Buildings/Services • Goods elevators.doc – Juni-05 Schneider Electric 3 .Typical applications Introduction The following chapter describes some typical applications or partial applications for this system. Twido. which are used in canteens and hospitals. for use in cafeterias or hospitals • Climate management in greenhouses Application Freight or goods elevators Description This application is used in the implementation of goods elevators. Altivar Magelis and Preventa_EN. for example. Example Greenhouses This application is used to open or put greenhouse windows in the shade as required in order to regulate the climate inside. e.

which also controls changes of direction. which limit the motor’s path of travel.doc – Juni-05 Schneider Electric 4 . which is located between the drive and the motor.Architecture Overview The control section of this application consists of a PLC. shuts down the redundant conductors before the drive (safety category 3). Altivar Magelis and Preventa_EN. The emergency off switch activates a Preventa analyzing unit and. Layout Twido. which can be used to implement approximate position control via the pulse rate. can be included as an option. which can be controlled via push buttons or a Magelis panel. The load section is implemented using an Altivar VSD. The system also has two limit switches. an emergency off switch is used to initiate shut down and ensure the (optional) safety. In this case. An additional sensor. and an additional lockable maintenance switch. in the event of an emergency.

75 kW No 3x 2. if so. N. mean that the components can be installed inside a small control cubicle with the following external dimensions: 350 x 350 x 210 mm (WxHxD). based on EN 954-1. can be found in the Appendix to this SMD (System Manual Document). will be determined by the system’s design and the overall extent to which this system represents a hazard to people and machinery.5 • Magelis XBT-F 1003 Number of components Only one unit is needed per system component to fulfill the requirements of the specified task (with the exception of roller limit switches.doc – Juni-05 Schneider Electric 5 . These components will. Size/ Dimensions The compact dimensions of the devices used.Components Hardware: • Vario VCF master switch (with red and yellow knob) • Vario VBF master switch (as maintenance switch with black knob) • GV2ME motor circuit breaker • Altivar ATV11 variable speed drive • XALK locking-type emergency off switch with rotary unlocking (tamper-proof) • Phaseo ABL7 power supply unit • TWIDO modular PLC • Magelis XBT-N compact operator terminal • XB5 selector switches. For information about which components are suitable for direct installation on site. Furthermore. on site”. Twido. therefore.5mm² (L. 3 (optional) Safety notice In this application example. The issue of whether a safety category (1-4) is to be adopted and. Category 3 (according to EN 954-1) has been selected for the purpose of ensuring safety. contactors and buttons/indicator lamps).g. PE) Cat.0 • PowerSuite 1. the PLC and PSU. Design data Supply voltage Total supply output Motor output Motor brake Connector cross-section Safety category 230 V AC ~ 3. the display elements used to indicate a “group error” and “no protection” can be built into the door of the control cubicle along with the system master switch and emergency off master switch. from the Harmony Style 5 range • XCK OsySwitch roller limit switches • Standard AC motor Software: • Twidosoft 3. A detailed list of the required components.. please refer to the list provided in the Appendix (column headed “In the field. which one. e. Altivar Magelis and Preventa_EN. Safety category 3.5 kW ≤ 0. is the second highest category there is. require additional protection and are only suitable for installation in a control cubicle. Degrees of protection Not all of the components used within this configuration have been designed to withstand the full range of environmental conditions in the field. push buttons and indicator lamps. including quantities and part numbers. which also indicates the relevant IP protection class).

Altivar Magelis and Preventa_EN.doc – Juni-05 Schneider Electric 6 . Twido. which is suggested here as one possible option.Installation Introduction This chapter describes the steps required to assemble the hardware and install the software in order to solve the application task concerned. Layout Note This application was configured as if for use in a shading system for the manipulation of light or climate control in a greenhouse. is not necessarily required/adequate for every application. The components and I/O points listed below represent a cross-section of the components and signals that are absolutely essential for control and display purposes and a number of optional inputs and outputs. as a risk analysis must be drawn up and verified for each system (in accordance with national and/or international standards and regulations). Safety category 3. This SMD does not claim to be comprehensive and does not absolve users of their duty to check the safety requirements of their equipment and to ensure compliance with the relevant national or international rules and regulations in this respect. which can be used in conjunction with most typical applications (safety/maintenance switches).

Altivar Magelis and Preventa_EN.doc – Juni-05 Schneider Electric 7 . Out Q0 Trans. reserved for high-speed counters Not used. Out Q1 Relay Out Q2 Relay Out Q3 Relay Out Q4 Relay Out Q5 Relay Out Q6 Relay Out Q7 Twido 24 V supply Com (inputs) -V Com (+) Com 1 Com 2 Com 3 Description Not used.PLC wiring Twido PLC inputs DC In 0 DC In 1 DC In 2 DC In 3 DC In 4 DC In 5 DC In 6 DC In 7 DC In 8 DC In 9 DC In 10 DC In 11 Twido PLC outputs Trans. JOG frequency) Description 0 V DC reference voltage 0 V DC reference voltage +24 V DC +15 V DC (ATV11 potential) +24 V DC +15 V DC (ATV11 potential) VSD control circuit wiring ATV11 LI1 LI2 LI3 LI4 RA RC +15 V Description Twido relay Out Q2 Twido relay Out Q3 Twido relay Out Q4 Twido relay Out Q7 +24 V DC Twido In 8 Twido Com 1 and Com 3 Twido. JOG frequency) Spare (24 V) Spare (24 V) Input LI3 ATV11 (select bit 1. close) Input LI2 ATV11 (counterclockwise rotation. reserved for high-speed counters Open selector switch Close selector switch Stop button Limit switch open Limit switch closed Motor circuit breaker OK Variable speed drive OK (RC terminal) Maintenance switch OK (option) Safety present (option) Spare Description Group fault (24 V) PLC ON (24 V) Input LI1 ATV11 (clockwise rotation. open) Input LI3 ATV11 (select bit 0.

option: Using an XALD enclosure. contactors and motor circuit breaker. 2. • 230 V AC wiring between master switch. • 24 V DC wiring between power supply unit. line circuit breaker. emergency off switch and relay. but cannot be installed directly on a mounting plate. PLC. which can house up to 5 push buttons or indicator lamps. on control cubicle door) without their enclosing housings. indicator lamps and VSD control circuit. 24 V supply (primary). • There are two options available for mounting XB5 push buttons and indicator lamps: 1. Phaseo power supply unit. This XALD is designed for backplane assembly or direct wall mounting. can be snapped onto a 35 mm top-hat rail. option: Using a 22 mm hole drilled into the front door of the control cubicle in the appropriate position. • Drive wiring via relay contacts with potential voltage from the drive (neither 24 V DC nor 230/400 V AC). as well as motor circuit breaker.. all switches can also be installed directly in a control cubicle (e.Hardware General • The components designed for installation in a control cubicle. • The Altivar variable speed drive can also be installed in a control cubicle.g. Altivar Magelis and Preventa_EN.e. push buttons. load relay and VSD. master and maintenance switches are designed for backplane assembly in the field. • Emergency off. Components Master switch VCF-02GE (red/yellow knob) Maintenance switch VBF-02GE (black knob) EMERGENCY OFF switch XALK178G Continued on next page Twido.doc – Juni-05 Schneider Electric 8 . Twido PLC.. emergency off switching device. i.

Components. Altivar Magelis and Preventa_EN. continued Harmony Style 5 selector and push button switch and indicator lamp XB5 EMERGENCY OFF fault relay XPS AC3721 Motor circuit breaker Circuit breaker GV2-M16 Phaseo power supply unit ABL7CEM24012 Continued on next page Twido.doc – Juni-05 Schneider Electric 9 .

Altivar Magelis and Preventa_EN. continued Twido PLC TWDLMDA 20DRT Magelis operator terminal XBT-N401 Osyris roller limit switch XCD2118P16 Altivar ATV11 variable speed drive ATV11PU18M2E Twido.Components.doc – Juni-05 Schneider Electric 10 .

Altivar Magelis and Preventa_EN. However. The software can also help you to optimize the parameters online.Software General Software is primarily used for programming the Twido. The Altivar 11 variable speed drive can be parameterized using the front operator panel. the PowerSuite software is a more user-friendly option and can be used for parameterizing the drive. saving data and quickly restoring existing data for service purposes. The Twidosoft programming tool is used for programming. One of the following versions of the Windows operating system must be installed on your PC: • Windows 2000 or • Windows XP The default installation path on the hard drive of your PC for each software program concerned is: • Twidosoft • XBT-L1000 • PowerSuite C:\Program Files\Schneider Electric\TwidoSoft C:\Program Files\Schneider Electric\XBT-L1000 C:\Program Files\Schneider Electric\PowerSuite Twidosoft XBT-L1000 PowerSuite Twido. including creating the configuration for communication and assigning inputs and outputs. The HMI application on the Magelis operator terminal is configured using XBT-L1000 software.doc – Juni-05 Schneider Electric 11 .

The XBTZ9680 communication cable shown below is needed to connect these two devices. Magelis Communication cable XBTZ9680 Twido. Altivar Magelis and Preventa_EN. The software driver required for Modbus communication is already contained in the software packages for the Magelis panel and the Twido.Communication General A Modbus connection is used to exchange data between the Magelis terminal and the Twido PLC.doc – Juni-05 Schneider Electric 12 .

All the conditions required to clear the group error lamp must be met. Speed preselection: The speed for the variable speed drive can be predefined via the Magelis terminal.Implementation Introduction This chapter describes how to install the hardware and set up the software for the task associated with the following application. Triggering the motion function starts motion in the selected direction. Motion control via the Magelis panel is ignored if the push button housing selector switch is not in the centre position (priority circuit). Faults: Faults are displayed as group errors via a fault indicator lamp or as individual fault messages on the Magelis panel. 4. 6. Twido. It will also stop if an error occurs. The motor can only be controlled in the “open”/”close” direction if the associated limit switch is not pressed and no errors are pending. 2. as appropriate. i. Push buttons: The selection for opening and closing can be activated via the selector switch. motions are then always performed at the lowest speed (1). Entering “0” in the parameter stops the drive. Motion can be stopped by pressing the stop button. The group error message disappears and the Magelis panel is visible on the main screen. Altivar Magelis and Preventa_EN. 5. Although operation is always possible via the push button housing.e. just as if the hardware stop button had been pressed. motor circuit breaker and maintenance switch switched on and safety circuit on. 3. Function Functional description 1. selecting the opposite direction or reaching the limit switch.. A number from 0 to 3 can be entered (0 = lowest speed).doc – Juni-05 Schneider Electric 13 . Motion can also be activated by entering a “1” in the “open” or “close” parameter.

Altivar Magelis and Preventa_EN.Layout Twido.doc – Juni-05 Schneider Electric 14 .

Programming/ Configuration 1 When the XBT-L1000 program starts up. The following pages explain this procedure. Twido.doc – Juni-05 Schneider Electric 15 . 2 Select “File” -> “Open” to go to the default path C:\Program Files\Schneider Electric\XBTL1000\Apps. One of the configured screens will appear when terminal programming is called. the configuration screen for creating a new application appears. which is interfaced with the PLC via the Modbus protocol. XBT-L1000 software is used to program and configure the terminal. Simulation 1 The behavior of the terminal can also be simulated by selecting “Simulation” from the menu bar. followed by “Simulation Application”. Click "Cancel" to exit this dialog.HMI Introduction This application features a compact Magelis XBT-N401 HMI.dop)“ application should be stored. Altivar Magelis and Preventa_EN. This is where the “Grnh(.

a “Connection in progress" message will appear on the panel shortly after the connection is made. The application is transferred to the Magelis terminal by selecting "Transfers" from the menu bar. which you should confirm with "OK".doc – Juni-05 Schneider Electric 16 . Twido. a message appears. If the PLC is active. This message disappears once the bus connection has been established successfully and the application is then displayed. the two must be connected to one another via the XBTZ915 communication cable. Altivar Magelis and Preventa_EN. 3 You can now disconnect the programming cable from the Magelis terminal and reinsert the communication cable used for the link to the Twido. Before the download begins. followed by "Export". Two other windows will follow.Transferring a program 1 2 In order to transfer the program from the PC to the terminal. the first informs you of the progress of the download and the second tells you that the transfer has been completed successfully.

2 Once the program has been loaded.PLC Introduction The PLC chapter describes how to initialize. The "Apps” default directory in which the file should be located is displayed. Preconditions The following conditions must be met in order to carry out the steps described below: • The Twidosoft programming tool is installed on your PC • The “Example. COM1. The PLC program has been created using Twidosoft. in this case.doc – Juni-05 Schneider Electric 17 . Select the “PLC” -> “Select a connection” menu items to reach the selection dialog for the port being used. Twido. parameterize and load the program to the PLC in order to implement the functional description described above.twd" PLC program by selecting "File" -> "Open". communication with the PLC must then be set up. start by calling up the "Example.twd“ Twidosoft project is available in the default directory that has been set up (C:\Program Files\Schneider Electric\TwidoSoft\Applications) • The Twido PLC is switched on and supplied with power • The PLC and the PC are linked to one another via the PC <> Twido programming cable (TSXPCX1031). Setting up communication 1 Once the Twido programming software has been launched. Altivar Magelis and Preventa_EN.

use the left-hand button “PC => Controller” to transfer the program to the PLC. Twido. the PLC and the PC must remain connected to one another via the communication cable. Altivar Magelis and Preventa_EN. Twidosoft tells you that the program and the PLC are different. Once this has been carried out.Transferring a program 1 In order to transfer the program. In this case.doc – Juni-05 Schneider Electric 18 . 2 Before a program is downloaded to the PLC for the first time. select “PLC” -> “Connect” from the menu. in order to create an online connection to the PLC so that you can download the program.

the individual points between which data is exchanged via a bus system (e.g. Reading and writing the data direction Device 1 XBT-N401 (Modbus slave) Address Designation %MW0:X0 Open %MW0:X1 Close %MW1 Speed Device 2 Twido (Modbus master) Address Designation %MW0:X0 RMT_CMD_OPEN %MW0:X1 RMT_CMD_CLOSE %MW1 RMT_SPEED Data direction (device 1 reads from device 2) Device 1 XBT-N401 (Modbus slave) Address Designation %MW5:X0 No error %MW102:X0 Safety not OK %MW102:X1 %MW102:X2 Motor protection off Variable speed drive error Maintenance switch off Limit switch error Spare error Device 2 Twido (Modbus master) Address Designation %MW5:X0 STATUS_ALARM_HMI %MW102:X0 ERR_STAT_MESS01 %M80 %MW102:X1 ERR_STAT_MESS02 %M81 %MW102:X2 ERR_STAT_MESS03 %M82 %MW102:X3 %M83 %MW102:X4 %M84 %MW102:X3 %M85 %MW102:X3 %MW102:X4 %MW102:X3 ERR_STAT_MESS04 ERR_STAT_MESS05 ERR_STAT_MESS06 Twido.doc – Juni-05 Schneider Electric 19 . Modbus Plus or TCP/IP) and that are not linked to digital or analog hardware interfaces are listed..Data exchange Introduction In this chapter. This list defines: • The devices concerned in each case • The direction of transfer • The symbolic name and • The direct bus address on the device concerned. Altivar Magelis and Preventa_EN.

2 The next window allows you to define general user rights.doc – Juni-05 Schneider Electric 20 . we have selected ATV 11. 3 Select the device size in this window. PowerSuite software is used to initialize and parameterize the devices. You do not have to make any changes to this selection screen and can proceed to the selection of the VSD by clicking "OK".Devices Introduction The Devices chapter describes how to initialize and parameterize the devices in order to fulfill the system functionality described above. In this example. Continued on next page Twido. Once you have read the warning message. General The ATV11 parameters can also be entered via the front panel. Altivar Magelis and Preventa_EN. Configuration/ Parameterization 1 The window opposite appears once the program has started up. The advantages of using PowerSuite are that you • Can save the data on your PC • Can print out the documentation and • Can be assisted in optimizing the parameters online. advance to the next screen using the shortcut "Alt+F".

select “Apply” and “OK” in order to transfer the configuration. 6 Once this procedure has been completed. The values assigned to the device are displayed on the right-hand side. Use the menu item indicated by a floppy disk symbol. 5 Here you can make further settings. continued 4 The models available from the ATV11 series are displayed in the drop-down list on the left of the window (circled in red).doc – Juni-05 Schneider Electric 21 . Select the appropriate variable speed drive using its part number. Next. Altivar Magelis and Preventa_EN. Twido. however.Configuration/ Parameterization. you can store the parameters on the PC. only the frequency should be set here in accordance with the actual conditions. in this example we are using the default values.

followed by “Transfer File” and “PC to device”. Twido. 2 You can now transfer the parameters to the ATV by selecting the “Link” menu item.Transferring parameters 1 Check the connection between the PC and the Altivar.doc – Juni-05 Schneider Electric 22 . Altivar Magelis and Preventa_EN.

Appendix Detailed components list Hardware components Item 1. 3-pole. TWDSPU1001V10M TWDSPU1002V10M Rev. XBTN-401 XBTZ9680 GV2ME16 VBF02GE VZ7 ATV11PU18M2E Software components Item 2.20 1.7 1.0 3. Altivar Magelis and Preventa_EN.8 1. 3 Contactor. flat Auxiliary switch module with red LED + 1 auxiliary switch (1x NO) Label holder 30x40 “stop” 3-button push button housing empty Illuminated button blue. locking-type Label holder 30x40 “forward-0-back” Illuminated button red. VCF02GE XALK178G XPSAC3721 LC1D09BD XALD02 XB5AD33 ZBY2284 ZB5AW343 ZB5AW0B42 ZBY2304 XALD03 ZB5AW363 ZB5AW0B61 ZBY22420001 XB5AVB1 ZBY2211 XCKP2118P16 23726 24183 ABL7CEM24012 TWDLMDA20DRT Rev. empty Selector switch.13 1. cat. adjustable Maintenance switch Auxiliary contact block for maintenance switch Altivar ATV11 variable speed drive Part no. 24 V DC operated.9 1. 1x NO + 1x NC 2-button push button housing.23 1.30 TSXPCX1031 XBTL-1003M XBTZ915 VW3A8104 VW3A8106 1.19 1.doc – Juni-05 Schneider Electric 23 .12 1. AC3.5 1.7 No. 9 to 14 A.22 1. 1 1 1 1 1 1 1 Description Twidosoft programming software incl.25 1. 3 positions.1 1.6 2.4 2.3 1. flat Auxiliary switch module with blue LED + 1 auxiliary switch (1x NO) Label holder 30x40 “emergency off” Indicator lamp white.0 4.26 1.17 1.5 2.21 1.2 A Twido PLC modular device with 20 I/Os XBT-N Magelis compact operator terminal Magelis/PLC connection cable Motor circuit breaker.14 1. 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 1 Description Master switch Emergency off switch housing Preventa emergency off relay.27 No.3 2.1 2. flat Label holder 30x40 “controller on“ Position switch Universal (final positions) Miniature circuit breaker C60N 1P 2A C Miniature circuit breaker C60N 1P+N 1A C Phaseo power supply 24 V DC/1.11 1. 9 A.50 Twido.18 1.4 1.16 1.2 1.10 1./ Vers./ Vers.6 1.2 2.15 1. cable Twidosoft programming software Twido programming cable Magelis configuration software (complete version) Magelis programming cable PowerSuite parameterization software Altivar set of connection accessories Part no.24 1. 3.

for example: • The number of I/O points • The number of bus stations (if present) • The number of instructions/operations • The memory utilization Scan time and cycle time A cycle time of 2 ms was not exceeded with the present configuration including the required application code. Twido. flat Auxiliary switch module with LED + 1 auxiliary switch (1x NO). on site IP 55/IP 65 X X Front IP 65 Control cubicle IP 20 X X X X X X X X X X X Key data for the complete system General The data listed below relates to the system and its features described and specified in this SMD. When using these two additional extension modules. 3-pole AC 3. 1x NO + 1x NC 2-button/3-button push button housing. as expected. empty Selector switch. all colors Label holder 30x40. which was used as the I/O level for 2 PID controllers) showed that the cycle time could be increased to a maximum of 6 ms. all types and ratings Phaseo power supply 24 V DC/1. 9 A. memory usage of the logic component did not change.2 A Twido PLC In the field. all colors. all types and ratings Motor protection switch. 3 positions Illuminated buttons.doc – Juni-05 Schneider Electric 24 . Trials with additional integrated extension modules (a digital I/O module with 16 inputs and 8 relay outputs as well as an analog module with 1 output and 2 inputs. The values represented are determined by. memory usage for system data rose to 22% but. Altivar Magelis and Preventa_EN. all texts Position switch Universal Miniature circuit breaker.Component protection classes Recommende d installation locations/ Protection class Components Master and maintenance switch Emergency off switch housing Contactor. 24 V DC operated. The memory utilization of the Twido PLC specified and used in this SMD was 7% for system data and 2% for the logic component.

doc – Juni-05 Schneider Electric 25 . Altivar Magelis and Preventa_EN.2 A secondary • Short-circuit-proof Twido.Component Features Twido PLC The PLC used in this example comprises the power base of a Twido modular PLC and a programming set comprising software and a programming cable (TWDLMDA20DRT + TWDSPU1001V10M): • 24 V DC • 12 digital inputs • 8 digital relay outputs • Can be extended up to a maximum of 7 modules (analog and communication modules are also possible) 3 programming languages: • Ladder Language (LD) • Instruction List (IL) • Sequential Function Chart/Grafcet (SFC) Predefined functions: • Drum controller • High-speed counter up to 5 kHz • Very high-speed counter up to 20 kHz • Frequency meter 1 to 20 kHz • Register areas for LIFO/FIFO execution • PWM/PCS output • External PLC start • PID controller Phaseo power supply unit ABL7CEM24012 • 100 to 240 V AC/24 V DC • 1.

Altivar VSD ATV11 HU18M2E • 0. Altivar Magelis and Preventa_EN.75 kW. single-phase • Integrated class B EMC filter • Temperature range: -10 to + 50°C • • • • Speed range from 1 to 20 (0 to 200 Hz) Speed control with flow vector check Protection of drive and motor Compact design.doc – Juni-05 Schneider Electric 26 . side-by-side installation also possible on a top-hat rail Circuit breaker GV2ME16 • 9 to 14 A • Thermal and magnetic (170 A) activation • Lockable Twido. 230 V AC.

systems@de.doc As standards. Altivar Magelis and Preventa_EN.schneider-electric. 27 . specifications and designs change from time to time.63500 Seligenstadt Germany Twido.com Schneider Electric GmbH Steinheimer Strasse 117 D . please ask for confirmation of the information given in this publication.Contact Author Schneider Electric GmbH Customer & Market System & Architecture Architecture Definition Support Phone +49 6182 81 2555 E-mail cm.