Download - PLC_Tutorial_Aplied
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 1/28
Twido and TeSysPhaseo and Magelis
System Manual Document
Inclusive Example Source Code
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 2/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 2
Table of Content
Appl icat ion Example - Source Code.........................................................................................3
Typical Applications ..................................................................................................................4
System ........................................................................................................................................5
Architecture.............................................................................................................................5
Installation...............................................................................................................................7
Hardware.............................................................................................................................................................8
Software ............................................................................................................................................................11
Communication .................................................................................................................................................11
Implementation .....................................................................................................................12
HMI....................................................................................................................................................................13
PLC....................................................................................................................................................................17
Devices..............................................................................................................................................................22
Addendum ................................................................................................................................23Detailed Component list ....................................................................................................................................23
Component Performance ..................................................................................................................................24
Introduction The System Manual Document is intended to be a “Quickstart Manual for a System”.It´s intention is not to replace any product documentation.
Instead it will deliver all the information needed on top of the product documentation to install,parameterize and start-up the outlined system.The functional description or specification of a specific user application is not part of this manual.
Nevertheless the document outlines some typical applications where the system might be used.
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 3/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 3
Abbreviations
Word / Expression Signification
PLC Programmable Logic Controller
HMI Human Machine Interface
VVD Variable Velocity Drive
PC Personal Computer
AC Alternating current
DC Direct current
PS Power supply
I/O Input / Output
CB Circuit Breaker
ESTOP Emergency Stop
Twido The generic range name for a Schneider midrange PLC
Phaseo The generic range name for the Schneider power supply devices
Magelis The generic range name for all the Schneider HMI devices Al tivar The generic range name for all the Schneider VVD devices
Telefast The generic range name for the Schneider distributed I/O devices
Application Example - Source Code
Introduction The attached file(s) contain example code, that is related to the above describedsystem function.Using Adobe Acrobat Reader V6.0 you are able to click on the Icon below andextract the file to your PC.
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 4/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 4
Typical Applications
Introduction Typical applications or sub-applications which use systems as outlined in thefollowing chapters are seen in the following market sectors:
Industry
• Small automation systems using transportation machinery (e.g. Conveyor)
• Decentralised automation systems supplementing large and medium sizedmachinery
Buildings/Services
• Ventilator Control
• Heating Control
Energy & Infrastructu re
• RTU for Pump or Valve controlling (pipeline or fountain )
• RTU for Energy measurement station
• Filter cleaning control in waterworks
Appl ication Descript ion Example
Ventilation Control The application controls aventilation system in anindustrial building .The measuring temperaturegive the two set points for the start /stop of theventilation.
Heating Control The application controls aheating system of anbuilding.
RTU for Pump control or Valve control (pipeline or fountain )
The application controls afountain in an infrastructurenetwork of a municipalservices company.It is possible to control thesystem remotely viamodem.
Filter cleaning control inwaterworks
The application controlsand cleans the filter of anwaterworks. With a “Step byStep” program the filter willbe cleaned by air followedby fresh water . It is alsopossible to control thesystem remotely via
modem.
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 5/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 5
System
Introduction The system chapter describes the architecture, the components, the dimension andthe amount of components used within this system.
Architecture
Overview The system is built up with a low end plc with control and visualisation via small textdisplay to control the connected starter controller and AC motor unit. It includes a safetyprotection in the form of an emergency stop and main switch. The starter controller ishard-wired to the I/O-module of the Twido, which controls the AC-Motor and readsmessages from the TeSys-U – alarm-module for error indication. The Magelis XBT-N withan integrated 4 function keypad on the frontside is the human interface for parameter setting and also displays the application status in text form.
Layout
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 6/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 6
Components Hardware:
• Twido Modular (PLC)
• Phaseo power supply (PS)
• TeSys-U Starter Controller (SC)
• Magelis XBT-N (HMI)
• Standard AC-Motor
Software:
• Twidosoft Version 2.0
• Magelis XBTL1003M V4.2
Amount of Components
For this stand alone application every product is needed only one time.
Dimension The small sizes of the Twido PLC, power supply, and TeSys-U allow the parts to beincluded in a single cabinet of size 220x200x200mm (l, w, d).
The Magelis XBT-N HMI could be built into the front door of the cabinet.
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 7/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 7
Installation
Introduction This chapter describes the step necessary to install the hardware and to setup thesoftware to fullfill the following application architecture.
Layout
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 8/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 8
Hardware
General • All devices can mounted on the inside of a cabinet.This mainly requires M5*18mm screws, nuts and a 35mm DIN rail for fixing
• 230VAC wiring between the main switch, emergency stop, TeSys-U and AC-Motor
• 24VDC wiring between the power supply and PLC. The XBT-N is powered fromthe PCL via the Modbus communication cable.
Main swi tchVCF-02GE
Power Supply ABL7RE2402
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 9/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 9
TwidoTWDLMDA20DRT
TwidoExtension Comm
TWDNOZ485D
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 10/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 10
HMIMagelis
Text terminalXBT-N200
HMIMagelis
Communication cableXBTZ978
Motor Starter TeSys-U
• LUB12 Basis Unit
• LUCB12FU Control unit
• LUFW10 Alarm unit
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 11/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 11
Software
General For the implementation of this system the user needs the following software tools:
• Twidosoft for programming the PLC.
• XBT-L1003 for designing the Magelis text display lines.
Your PC needs a Microsoft Windows operation system (Windows 98, 2000,or XP).For Installation place the CD in the CD-drive of your PC. The CD Auto-Start opensthe Installation menu and leads you through the installation.
The Software installation path on your harddisk is by default be:
• Twidosoft \Program Files\Schneider Electric\Twidosoft
•
XBT-L1003 \Program Files\Schneider Electric\XBT-L1000
Communication
General It is a hard-wired configuration without communication via a bus system.For HMI functionality the Magelis XBT-N is connected to the Twido PLC via Modbus
RTU protocol. For this communication you must parameterize the Modbus port in thePLC + HMI and the additional dialogue table in the HMI application to process theinformation.
XBT-L1003
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 12/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 12
Implementation
Introduction The implementation chapter describes all steps necessary to initialize, parameterize,programm and to Start-Up the system.
Function Functional description
1. Text Line 1:Operation Modus RUN / STOP, MANUAL / AUTOSelect the Operation Mode Manual or Auto on HMI.In MANUAL the Motor could Start/Stop, in AUTO theMotor RUN in an interval of 1 minute and after thenSTOP for 1 minute an RUN again.
2. Text Line 2: FAULT: NO / YES blinkingWhen the Modul Alarm Button on the LUCB is pressed thefault indication blinks.
3. Text Line 3: DATE / TIME / OPERATION (Minutes - Counter)Indication of PLC System Time / Date and a Softwarecounter of every minute of operation time.
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 13/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 13
HMI
Introduction The HMI section describes the different steps needed to initialize, parameterize,programm the HMI database and screens to fullfill the former description of thesystem functionality.The HMI application for Magelis XBT-N200 is implemented using the HMI softwaretool XBT-L1000.
Configuration of the HMI1. Select Terminal type2. Terminal Parameter
(Format of Date/Time,Password ...)
3. Protocol parameter (protocol, speed , timeout...)
4. Equipment Symbols(naming for variables)
5. Dialog table(communication tablebetween HMI PLC)
6. Application Language7. Special characters
(user defined)8. Function keys
(mode with impulsecommands)
Information on HMI screensPage 1:
•
F1: MAN/AUTO to select theoperation mode(Twido reference %MW0 +%MW2)
• F2: RUN/STOP to start/stopthe motor (Twido reference %MW1)
• Link to 2nd Page for DATE/TIME
Page 2:
• Screen with DATE/TIME:
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 14/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 14
Select the required XBTreference (XBTN200(2)and in the same dialog select“parameters..” to set the timesfor the communication protocol(Modbus) and the parameters
for the communication
On selecting “new” the“Page Tree” windowautomatically opens.
Add/Modify: Text Alphanumeric fields Link
Properties of the fields (selectwith a double-click on the
field):
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 15/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 15
Screen of page 2:DATE/TIME:
Fill out the dialogue table tohandle the communication
between HMI and PLC.The table contains the functionvariables, such as,communication control, report,PLC clock, page number etc,the PLC base address, cycletime of communication and theauthorisation code.
Connecting information to thefunction key.
In the dialogue table the PLCbase address is %MW100.This word contains the imageof the function keys.The function key F1 is locatedat Bit 0 of the word %MW100.F1: %MW100:x0....F4: %MW100x3)
......
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 16/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 16
Simulation of HMI functionalityoffline.(without a connected HMI).With the menu function“Simulation” the user can seethe Magelis on the PC screen
and simulate its operation.
On pressing the function keys,the screen displays the realfunctionality and a separatewindows shows the content of the page variable and dialoguetable.
Download, i.e. Export, of anapplication to the MagelisXBT-N200.Plug the communication cableXBT-Z945 into the PC andXBT-N.The XBT-L1003 packageincludes the cable andnecessary software.
Select the menu point“Transfers”- the “Export” to
download the application.
After a moment a popup menuwill ask the user if he wishesto continue or abort: press okto download.
Connect the Magelis XBT-N
HMI to the PLC, using thecommunication cableXBT-Z978
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 17/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 17
PLC
Introduction The PLC section describes the different steps needed to initialize, parameterize,programm the plc logic to fullfill the former description of the system functionality.The user application is written with the Twidosoft programming tool.The Twido application is split into:
• The Hardware module
• Communication port, address and protocol
• Option : additional Com port TWDNOZ485D for the HMI Modbus communication
• Insert Application program
Hardware module:When you start Twidosoft for the first time, you can chooseeither a new application or an
existing application. For a newPLC application select “File”and “new program”.
If you selected “new” or if youhave changed an existingapplication, store your application using either the
disk icon or the menu “saveas”.
The default hardware modulelisted in the browser screen isthe TWDLMDA40DUK. In our application we are using the
TWDLMDA20DRT. So selectthe default module, open withthe left mouse button a newwindows “Change BaseController” and select the rightmodule TWDLMDA20DRT
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 18/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 18
Communication port:The next step is to configurethe communication port..Select the “Port 1” icon in theproject browser and open the“Controller Communication
Setup” window with the leftmouse button. Select under “Protocol” the Modbusprotocol, which is used for theMagelis HMI communication.
After choosing Modbus andthe MB-Address 1 in our application you can accept thestandard communicationparameters (19200,8,1,N) byclicking on “OK”.
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 19/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 19
Option:additional Com portTWDNOZ485D for the HMIModbus communication.
Select Hardware item in theprojectbrowser and open it with a leftmouse click.
Add the TWDNOZ485D shownin the “add option” dialog
Select Port2:Modbus1 in the projectbrowser.
And with left mouse click youhave to open the Editor for thecommunication setup
In this dialog you can setup
the Modbus port for the HMIcommunication.The parameters must besynchronised in both devices(HMI and PLC)
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 20/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 20
Insert Application Program The PLC program (the Twidosoft source) for thisapplication can be found in a file accompanyingthis document. The following steps explain howto input the user logic:
First you choose theprogramming language editor:
• List Editor (IL, AWL)
• Ladder Editor (LD, KOP)
The List Editor screen:Use the toolbar to select the List editor functions : e.g. LD for Load or SR for setregister .....
The Ladder Editor screen:
With the click on second icon Edit you select the Ladder editor functions : e.g.Contact, Set Coil or Timer
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 21/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 21
If you have finished inputtingyour program, click onProgram in the project browser with the left mouse button andselect “analyze program”.Twidosoft checks the source in
case of faults and giveswarnings.
Before you can transfer theapplication to the PLC youmust configure thecommunication port of the PC. After you have connected theTwido controller to your PC
using the Twido connectingcable TSXPCU1030, you cantest the connection with the“Check PLC” selection in the“PLC” menu. If the test issuccessful choose the menu“Connect” to load the programinto the controller.
After successfully transferringyour program to the controller you can start it by selecting“RUN” in the “PLC” menu.
Before you start the PLC(i.e. before selecting “ RUN”)in running mode refer to thesafety instructions of theapplication !
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 22/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 22
Devices
Introduction The Devices section describes the different steps needed to initialize, parameterizethe device logic/behaviour to fullfill the former description of the system functionality.
General There are no devices to be configured within this system.
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 23/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 23
Addendum
Detailed Component list
Type / Software Revision/Version
• Twido Modular - TWDLMDA20DRT
• Twido Extension Comm - TWDNOZ485D
• Twidosoft V2.0 - TWDSPU1001V10M (Programming-Software. Documentation + Programming cable)
• Magelis Text Terminal XTBN200
• Cable XBT-N-PLC - XBTZ978
• Magelis Software - XBTL1003M
• Phaseo power supply - ABL7RE2402
• TeSys-U - LUB12, Basic unit
• TeSys-U - LUCB12FU, Control unit
• TeSys-U - LUFW10, Alarm unit• Vario switch - disconnector VCF02GE - main switch
• Harmony Style 5 emergency stop XALK174G (ESTOP)
• Standard AC-Motor. ALTEUM0040001 - 0,75Kw, 4-pol,Form TE80 230VAC single phase
Twidosoft XBTL1003M
V2.0V4.30
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 24/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 24
Component Performance
PLC:Twido -Modular
TWDLMDA20DRT, the Modular 20 I/O controller:
• Ladder (KOP)and List (AWL) programming• 12 digital inputs
6 relay outputs2 transistor source outputs
• 1 analog voltage input connector
• 1 analog potentiometer
• 1 integrated serial port
• terminal block for wiring
• up to 7 expansion I/O modules
• up to 2 AS-Interface V2 bus interface modules
• accepts both optional cartridges(RTC and memory - 32 KB or 64 KB)
• either an optional operator displayexpansion module or an optionalcommunication expansion module
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 25/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 25
TwidoSoft In Twidosoft you can switch the programming language from ladder to list.
Twidosoft Application screen - Ladder Editor :
Twidosoft Application screen - List Editor :
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 26/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 26
TwidoSoft Twidosoft Communications Menu
Port 1 for remote link with additional Modem: RTU
Port 2 for Modbus communication, in/out application to XBT-N-HMI:
Integrated Functionally
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 27/28
Twido_Magelis_TesysU - Oct-04 Schneider Electric 27
PhaseoPower Supply: ABL7RM2401
• 240VAC / 24 VDC
• 1,3 A
TeSys-U
Motor Starter
LUB12Basis Unit
LUCB12FUControl unit
LUFW10 Alarm unit
Operating Conditions
• Power: 5 hp at 480 VAC
• FLA: 7.5 A
• Class 10 overload protection
• Utilisation category: AC-43
• 3-wire control:
• Start button (S2)
• Stop button (S1)
• Control circuit voltage: 120 VAC
Functions Performed
• Short-circuit protection with level of protection of 42 kA at 480 VAC (10 kA at 600VAV).
• Type 2 total co-ordination of protection devices conforming to EN 60947-6-2(continuity of service) in case of a short-circuit.
• Electronic protection against thermal overloads with an adjustment current rangeof 4.
• Load switching (2 million operating cycles in category AC-43).
• Indication of motor status by N.C. or N.O. contact.
• Interlock between the motor starter control and the handle position; not possible tostart motor when the handle is in the OFF position.
Magelis
HMIXBT-N200
Text Display (LCD) :
• lines 20 characters for XBT-N200 (No big font)
• Fonts : standard, katakana
• Direct connection to PLC
• RJ45 port for point to point communication
• Protocol Unitelway-Modbus point to point
• No 24 VDC power supply needed
• power supplied from PLC’s com port (5Vdc directly on the PLC connection cable or on the computer cable during the download)
Keys
• services keys and 2 keys for the links with other pages• customisable service keys configurable as function keys
• All the functionality of the XBT-H811510
8/16/2019 PLC_Tutorial_Aplied
http://slidepdf.com/reader/full/plctutorialaplied 28/28
Schneider Electric GmbH As standards specifications and design change from
Contact
Author Telephone E-Mail
Schneider Electric GmbHCustomer & MarketSystem & Architecture Architecture Definition Support
+49 6182 81 0 [email protected]