TwidoSuite - Getting Started PDF
TwidoSuite - Getting Started PDF
TwidoSuite - Getting Started PDF
0
Programming software
Getting started
09/2007
35011385.00
www.telemecanique.com
2
Table of Contents
3
4
About the Book
At a Glance
Document Scope This document provides basic information and instructions for getting the
TwidoSuite programming software set up and operating.
Validity Note The data and illustrations found in this book are not binding. We reserve the right to
modify our products in line with our policy of continuous product development. The
information in this document is subject to change without notice and should not be
construed as a commitment by Schneider Electric.
Product Related Schneider Electric assumes no responsibility for any errors that may appear in this
Warnings document. If you have any suggestions for improvements or amendments or have
found errors in this publication, please notify us.
No part of this document may be reproduced in any form or by any means, electronic
or mechanical, including photocopying, without express written permission of
Schneider Electric.
Copyright © Schneider Electric 2007. All rights reserved.
All pertinent state, regional, and local safety regulations must be observed when
installing and using this product. For reasons of safety and to ensure compliance with
documented system data, only the manufacturer should perform repairs to components.
When controllers are used for applications with technical safety requirements,
please follow the relevant instructions.
Failure to use Schneider Electric software or approved software with our hardware
products may result in injury, harm, or improper operating results.
Failure to observe this product related warning can result in injury or equipment damage.
User Comments We welcome your comments about this document. You can reach us by e-mail at
techpub@schneider-electric.com
35011385 09/2007 5
About the Book
6 35011385 09/2007
Installation and Program Start
1
Introduction
35011385 09/2007 7
Installation and Program Start
System Requirements
Hardware Your PC needs to meet the following minimum hardware requirements to run the
Requirements TwidoSuite programming software:
Requirement Minimum
computer processor Pentium 466 MHz
RAM 128 MB
free hard drive space 100 MB
Software The TwidoSuite programming software requires one of the following software
Requirements operating systems:
Operating System Edition/Service Pack Special Considerations
Windows 2000 service pack 2 or above For Windows 2000, Windows XP or
Windows XP service pack 2 or above Windows Vista, you need administration
privileges to install the TwidoSuite
Windows Vista service pack 1 or above
configuration software.
Note: Avoid patch 834707-SP1 (corrected by patch 890175) and patch 896358
which cause display problems with the Online Help.
Connection to a The TwidoSuite programming software runs on a PC that connects to the RS-485
Twido PLC programming port on the Twido PLC. You need to make the connection with a
special TSXPCX1031 programming serial cable, which ships with the software.
For more information about the required hardware connections, refer to the Twido
controllers hardware guide for compact and modular bases.
8 35011385 09/2007
Installation and Program Start
Before You Start Before you install the TwidoSuite programming software:
z uninstall any previous version of the TwidoSuite programming software (note that
if you own a version of the TwidoSuite programming software, uninstall it as well
for TwidoSuite is compatible with automation projects created with any version of
TwidoSuite),
z close all Windows applications and virus-protection software.
TwidoSuite
Uninstalling the To uninstall the TwidoSuite programming software from your computer, choose the
Software following path: Start → Control Panel → Add/Remove Programs
35011385 09/2007 9
Installation and Program Start
Registering TwidoSuite
Introduction Take a few minutes to register this software and become a member of the Schneider
automation community.
Registering is free and it will keep you updated with the latest product news,
software and firmware upgrades for your Twido controller.
Note: There is a 30-day trial period for this software. After expiry of the trial period,
you must register to be able to continue using this software.
How to Register
TwidoSuite 1. Go to Miscellaneous ? .
2. Click About on the task bar.
3. Complete the License form with "Company", "User" and "Serial Number"
information, and press Now.
Result: This starts the TwidoSuite Registration Wizard.
4. Follow the onscreen instructions to register your copy of the TwidoSuite software.
Note: There are four possible ways to register: Web, Phone, Fax, and E-mail.
5. Read the Terms of Service, acceptance is required.
6. Submit the registration.
10 35011385 09/2007
Launching TwidoSuite
2
Program Start
How to Start the You can either start the program via the TwidoSuite Application Launcher:
Program z from the Start → Programs → Schneider Electric → TwidoSuite →
Application Launcher path
z or from the desktop Application Launcher shortcut that has been installed with the
program:
TwidoSuite
Application The Application Launcher constitutes the launch center for the TwidoSuite software suite.
Launcher The TwidoSuite application comes in several language pairs available from the
Options Telemecanique download site:
z English-French
z English-German
z English-Spanish
z English-Italian
z English-Chinese(simplified)
Depending on which language pair you installed, it lets you run TwidoSuite in
English (default language) or the other installation language.
Use the Application Launcher to start TwidoSuite in:
z Programming Mode
z Monitoring Mode
z PLC Firmware Update
35011385 09/2007 11
TwidoSuite Application Launcher
Note: By default the Video Demo is shown at TwidoSuite startup.To disable this
feature uncheck the box "Show video at startup" at the bottom of the video screen.
TwidoSuite The following figure shows an example of the TwidoSuite Application Launcher for
Application the English-French installed language pair:
Launcher
New
Programming Mode
Monitoring Mode
English
12 35011385 09/2007
Upgrading the Twido Firmware
3
Twido PLC Firmware Update
Overview
Note: The Telemecanique Twido PLC is delivered with firmware installed. The
procedures described for loading new firmware are only required if an update is
being made. Before replacing the firmware, you should carefully study the
corresponding instructions and contact the Telemecanique support.
When the TwidoSuite software is connected to the PLC, the firmware version that you
are currently using for your Twido PLC can be found via the Miscellaneous button:
?
The Twido Windows Executive Loader Wizard is a Windows-based program that
guides you through the steps needed to update the Firmware Executive in your
Telemecanique Twido programmable controller. The Firmware Executive is the
operating system that runs your applications and manages controller operation.
The wizard provides an intuitive, point-and-click user interface that guides you
through the steps of the update procedure. It provides directions to quickly download
the latest version of the executive for your controller.
See the Executive Loader Wizard User Guide for detailed instructions. This guide
can be accessed using the Exec Loader utility online help.
Opening the You can open the Executive Loader Wizard from the TwidoSuite Application
Exec Loader Launcher by selecting the PLC Firmware Update option (see p. 11).
Wizard
35011385 09/2007 13
Firmware Upgrade
New Firmware There are four steps required to upgrade your executive. The wizard provides a
(Basic Steps) window for each step and online help is available for each step. The following table
summarizes each step:
Ste Window Function
p
1 Welcome Introduces the Executive Loader Wizard.
2 Parameters Selects the correct executive file to transfer to your controller,
and selects the PC serial port to communicate with the
controller.
3 File and Device Compares the hardware IDs and the executive version
Properties information for the executive file and the controller.
4 Transfer Progress Monitors the transfer of the executive file to the controller.
Note: Loading the firmware may not be interrupted under any circumstances as it
means the module can no longer be accessed, including via the Executive Loader
Wizard. Ensure that neither the communication connection nor the main power
input is disconnected or deactivated in any way and do not deactivate the
procedure with Abort.
14 35011385 09/2007
The TwidoSuite Interface
4
Introduction
35011385 09/2007 15
Interface
Main Window
TwidoSuite
Application steps bar Program substeps bar Taskbar
Workspace
Telemecanique
My project
i
0
10 0
?
0 10
01
10
10
0 10
0 01 1 010 10 0
10
010 101
0 0 1 0 1 0 00
010 1 0 0 0 0
0 1 0 1 0 01 0 0 1 00 1 0 0 0
010 0 0 0 11 1 0 0 0 01 0 1 0 0 0
110 1
0010 01 0 1 0 0 11 0 0 1 0
011 0 0 0 01 0 11 1 0 0
010 1 010
Project Describe Program Report
Configure Program Debug
Configure
the Hardware
Configure
the data
Configure
the behavior
Define
the protections
TWDLMDA20DTK 1 2 3 4
TwidoSuite
16 35011385 09/2007
Interface
Application steps bar: Displays TwidoSuite’s 4 Application Steps (icons and titles),Project Name, Preference,
Miscellaneous and Help Pages buttons.
Program substeps bar: Displays the 3 Program substeps (Configure, Program, Debug). It is showing only when
the Program step is selected.
Taskbar: Provides access to all the tasks that you can perform under the selected application step
or substep.
Functions bar: Provides access to special functions associated to the selected task.
Quick access bar: Displays at all times Previous/Next commands, Save and Analyze Program shortcuts.
Editors and Viewers: Editors and viewers are TwidoSuite windows that organize programming and configuration
controls for efficient development of applications.
Error list box bar: Displays information about the application, the controller, and TwidoSuite.
Display Options
Maximizes the main window
35011385 09/2007 17
Interface
Application Steps/
Substeps Bar
Project
This is the first step in creating/opening an application. The Application Steps/Substeps Bar displays the
name of the open application in the top-right corner.
Describe
This is the second step in building the Twido automation application. The Describe step lets you select hardware
resources from the catalog and describe how equipment interconnect with one-another via networks.
0101
0 00 Program
01
10
10
This is the third step in setting up your Twido application. It provides access to the following 3 substeps.
0
0 011
010 1.Configure
010
010 1 1 000 This substep lets you view/set:
1 0
0 000
110 1 010
011 0 0 0 0 zHardware Configuration for the base controller, expansion modules,
010 1
communication modules and hardware options
zData Objects Configuration for Simple Objects, Function Blocks, I/O Objects, and
Professional Objects
zController Behavior
zApplication Program / Password Protections
10
2.Program
1 0 0
0 1 00 1 0 0 0 Opens the default Program Editor (Ladder or List) and provides access to the Symbol Editor.
01 01 0 0 0
11 1 0 0 0 1
01 1 0 0
010
10 3.Debug
010 0
01 01 0 0 0
0 1 0 1 0 01 0 Lets you manage the TwidoSuite-to-PLC connection and provides access to
11 1 0 0 0
01 1 0 0 Animation Tables Editor and Monitoring tasks.
0 10
Report
This is the final step in setting up your application. It opens the Report Manager window to select report
components, configure printing options, and export the application report to HTML format.
Miscellaneous
? Provides access General Help and information About TwidoSuite.
Preference
Opens the User Preferences window.
18 35011385 09/2007
Interface
Quick Access
Bar
Analyze Program
S
S Launches and stops the Simulator.
35011385 09/2007 19
Interface
Setting Preferences
Displaying
Preferences Click the Preference icon on the Steps bar to display the Preferences window
as shown below.
Preferences
Window Preferences Apply Restore
Clear Dark
Default project image Default image
Personalized image C:\Documents and Settings\Administrateur\My documents\
Default functional levels of applications Automatic Automatic management
The very highest
The very lowest
Manual Manual management
Level 1.0
Level 2.0
Level 2.5
Level 3.0
Connection management
Name Connection type IP / Phone Punit / Address Baud rate Parity Stop bits Timeout Break timeout
COM1 Serial COM1 Punit 5000 20
COM2 Serial COM1 Punit 5000 20
My connection 1 Serial 192.168.1.1 Direct 5000 20
Modem connection Ethernet xxxxxxxxxx 19200 None 1 5000 20
20 35011385 09/2007
Creating and Editing a Program
5
At a Glance
Overview In this section, you will learn how to create and edit a program with TwidoSuite.
To start TwidoSuite you need open the Application Launcher. Click the TwidoSuite icon
located on your PC desktop.
The Application Launcher dialog box appears as shown below:
New
Programming Mode
Monitoring Mode
English
From TwidoSuite Application Launcher, you have access to the following modes:
z TwidoSuite Programming Mode
z TwidoSuite Monitoring Mode
z PLC Firmware Update utility
35011385 09/2007 21
Create/Edit Program
Application The following sections will introduce you step by step to the fundamentals of
Example TwidoSuite programming, through an actual application example: managing the
water level of a water tank used for irrigation:
22 35011385 09/2007
Create/Edit Program
Project information
Project management
File information
Update the project information
Create a new project Project My project
Open an existing project Directory C:\Program File\Schneider Electric\TwidoSuite\...
Open a recent project
Project information
Save current project
Author Author’s name
Close current project
Department Service
Create a new project
Index version
In this screen you can:
-select the project name and enter the Industrial Property XYZ
project information using the form;
-attach a photo to the project in the Comment Description Image
"image" tab.
Create
TwidoSuite
35011385 09/2007 23
Create/Edit Program
How to Create a 1. Click Create a new project in the "Project Management Actions Pane."
New Project 2. Enter a descriptive name for the project in the File Information frame. A valid
project name can contain up to 36 alphanumeric characters (spaces allowed).
3. Specify the new path for the project directory or use the default path. In the
Directory text box, either enter directly the storage directory path or click the
Browse button located immediately to the right of the Directory text box to locate
the folder where the project files will be stored.
4. Enter project authoring information in the Project Information frame. This
includes providing Author’s name, Department name, project version number
in Index field and Industrial Property.
5. In the Comments tab, include the name of the project and write a brief
description. Use the right scrollbar to read the complete text.
6. If you are updating an existing project, click the Description tab to view a
thumbnail representation of the system architecture (see p. 25).
7. Select the Image tab and click Modify to customize the project picture, or use the
default picture. The project picture is printed on the front cover of the project
report (see p. 59). A valid picture file must be in the .BMP format.
8. Click Create to save your changes to the new project file.
Note: If you are updating information of an existing project, click Apply to save
your changes.
24 35011385 09/2007
Create/Edit Program
Describe In the Describe window, you declare the Twido automation system elements
Window selecting hardware resources from the catalog and describing how equipment
interconnect with one-another via networks.
Bill of materials pane Describe tool bar Product catalog pane
Telemecanique
1 0 00 My project
i
0 10
01
10
10
10
0 00 1
?
01
TWDDDI8DT
Expansion module with 8 24V DC
inputs, removable screw
terminal, 1 common line,
sink/source transistor. (25mA)
Page 1
REP
TwidoSuite
Graphic pane
35011385 09/2007 25
Create/Edit Program
1 2 3 4 5 6 7
How to Describe 1. Use drag-and-drop to place catalog elements in the graphic pane, starting with
Your Application the base controller (compact or modular), then adding expansion modules and
options as supported by the controller and as required by your application.
2. Configure communication ports by double-clicking the ports graphical representation
in the graphic pane.
3. Use drag-and-drop to place network elements available from the catalog pane in
the graphic pane.
4. Click to select a Twido communication port and drag the cursor to draw the
network links between the Twido base controller and network elements. Connect
network elements with one another in the same manner to build network links.
Note: To find out more about describing applications, declaring network elements and
configuring networks, please refer to the TwidoSuite Operation Guide - Online Help.
26 35011385 09/2007
Create/Edit Program
1 0 00 My project
i
010
01
10
10
0 010
1
?
010
TWDLCAA10DRF
Compact base controller,
230V AC, 6 24V DC inputs,
4 2A relay outputs.
Non-removable terminal blocks.
Page 1
REP
35011385 09/2007 27
Create/Edit Program
Introduction Before you proceed with programming of your application, you must set your
application I/O wiring specifications.
I/O Wiring It is good practice to draw up a small sketch of your application I/O wiring.
Specifications The following are I/O specifications for the automatic-watering system:
Input specifications
z %I0.0 input from water high level sensor in water tank
z %I0.1 input from water low level sensor in water tank
Output specifications
z %Q0.0 output to water pump actuator
z %Q0.1 output to irrigation control valve
RTC Specifications
z RTC option must be installed on Twido 10 I/O base controller.
28 35011385 09/2007
Create/Edit Program
RTC Option
%Q0.0 Output to water tank’s pump actuator
35011385 09/2007 29
Create/Edit Program
Introduction Now that you have declared the hardware elements in the Describe step, you will
need to configure hardware and software resources.
To have access to hardware and software configuration options, select
10 00
0 10 10
01 10 0
10 0 1 00 1 0 0 0
10 0 1 0 1 0 01 0
11 1 0 0 0
0 01 0
→ Configure
01 0 1 0 0
Program 010 1 01
on the TwidoSuite Steps bar.
Configure Select the Program → Configure → Configure Hardware task to open the
Hardware hardware configuration window.
Resources Graphic Pane Configuration pane
Telemecanique
My project
i
0
10 0
?
0 10
01
10
10
10 10
0 00 010 0 10 0
10
01
1 1010 01 1 0 0
010 1 0 0 0 0
0 100 1 0 01 0 0 100 1 0 0 0
010 1 0 0 0 11 1 0 0 0 01 0 1 0 0 0
110 0 1 0 01 0 1 0 0 11 0 0 1 0
011 0 0 0 0 01 0 11 1 0 0
010
1 010
Project Describe Program Report
Configure Program Debug
Configure
the Hardware
Configure
the data
Configure
the behavior
Define
the protections
TWDLMDA20DTK 1 2 3 4
TwidoSuite
30 35011385 09/2007
Create/Edit Program
35011385 09/2007 31
Create/Edit Program
Configure Select the Program → Configure → Configure Data task to open the software
Software configuration window.
Resources Telemecanique
My project
i
0
100
?
010
01
10
10
0 10
0 01 1 10 0 10
0 10 10 1
0 0 100 1 0 0 0 010 0
0 10 1 0 0 0 0 1 1 0 01 0 01 01 0 0 0
0 10 0 0 0 1 10 0 0 01 01 0 0 0
1
1 10 0 0 1 0 0 110 1 0 00 11 1 0 0 1 0
0 11 0 0 0 01 01 1 0 0
0
0 10 1 01
Project Describe Program Report
Configure Program Debug
1
0
TwidoSuite
32 35011385 09/2007
Create/Edit Program
Note: Internal memory objects such as system bits and words, memory bits and
words, and network exchange words are non-configurable objects.
To configure the Schedule Block (Real Time Clock 0), follow these steps:
1. Select the Program → Configure → Configure Data task to open the software
objects configuration window.
2. From the "Object Categories" frame, select Advanced objects.
Result: The list of available advanced function blocks for that particular controller
is displayed in the dedicated "Advanced objects" frame below.
3. From the "Advanced objects" frame, select %SCH - Schedule blocks.
Result: The schedule blocks configuration window appears in the center pane.
Available schedule blocks (numbered 0 to 15) are listed in a table.
4. Select the schedule block you want to configure in the table: Real Time Clock 0.
Result: By default, the schedule block is disabled and all fields appear as non-
configurable in the configuration window.
5. Click the Configured checkbox to activate the configuration fields and follow
these steps to configure the schedule block (the following settings are given as
an example only):
1. Enter the Output Bit address. In this application, this is the address of the output
terminal connected to the control valve of the irrigation system: %Q0.1
2. Select Start Month and End Month for starting and ending the Schedule Block.
Range: January to December.
3. Select Start Date and End Date for the day of the month for starting and
ending the Schedule Block.
Range: 1 to 31 (depending on month selection).
4. Select the Start Time and End Time for setting the time of day for starting and
ending the Schedule Block.
Range: 00:00 to 23:59.
5. Select the Days of the Week to activate the schedule block output. Checked
boxes indicate the days that the output device is activated.
6. Use the Up/Down keys to scroll through the list of schedule blocks in the table or
use the mouse pointer to select a particular schedule block.
35011385 09/2007 33
Create/Edit Program
7. Changes are effective as soon as the cursor leaves the current schedule block line.
Now that you have configured the schedule block, follow these steps to configure
the maintenance cycle counter (%C0):
1. Select the Program → Configure → Configure Data task to open the software
objects configuration window.
2. From the "Object Categories" frame, select Function blocks.
Result: The list of available function blocks for that particular controller is
displayed in the dedicated "Function blocks" frame below.
3. From the "Function blocks" frame, select Counters.
Result: The counters configuration table appears in the center pane. Available
counters range from #0 to #127.
4. Select the up/down counter you want to configure in the table: %C0.
5. For the selected up/down counter set the corresponding fields in the table, as
follows (the following settings are given as an example only):
1. Click the Symbol text box and enter a symbolic name for this counter:
MAINTENANCE_REQUIRED (for example.)
Note: Symbols are in upper-case format by default. A valid symbol can contain
any combination of 32 characters: (A-Z),(0-9), and (_). No spaces allowed.
2. Select a Preset value: 100 (watering cycles, for example.)
Range: 0 to 9999.
Default: 9999.
3. Select Adjustable option to allow the Preset value to be changed from within
Animation Tables.
6. Use the Up/Down keys to scroll through the list of counters in the table or use the
mouse pointer to select a particular counter.
7. Changes are effective as soon as the cursor leaves the current counter line.
Note: Counters are programmable objects that need to be declared in the Ladder
or List program. It is at that stage that you will specify whether the counter used is
a up or down counter.
34 35011385 09/2007
Create/Edit Program
Introduction Use the Program Editor to develop the main program which is the core of your
Twido automation application. Major programming and configuration features
include reversible ladder and list language programming.
This section will focus on providing you the basics of Ladder language programming in
TwidoSuite program editor. For details on List language programming and Ladder/List
reversibility features, please refer to the TwidoSuite Programming Guide on the CD-ROM.
100
0 10
01 0 10 0
01 0 1 00 1 0 0 0
10 01 0 1 0 0 0
10 11 1 0 0 1 0
0
0 01 1 01 0 1 0 0
To have access to the program editor, select Program → Program
0 10 01
on the TwidoSuite Steps bar and click Edit Program on the task bar.
Note: In program mode, the task bar provides access to the Symbol Editor as well.
35011385 09/2007 35
Create/Edit Program
Program Edition The Program Edition window features the Program Editor and five browsers and
Window tools available on the functions bar, as described in the following figure:
Program Browser Program Editor
Telemecanique
My project
i
0
10 0
?
010
01
10
10
0 1 0 10 10
0 011 0101 0 00 10 10 0
0 10 010 0 00 01 0 0 0 1 00 1 0 0 0
1
1100 0 10 0 1 0 1 0 000
0 1 01 0 10 01 01 0 0 0
011 0 00 1 1 10 0 0 11 0 0 1 0
0101 01 0 1 0 0 0 11 1 0 0
01 010
Project Describe Program Report
Configure Program Debug
1 2 3 Ladder S
S SR 100% Hex
Dec abc
Edit
Program
Program List
1 - - LADDER
R
Ladder
R %TM %C P N Define
Start [1,1] Symbols
1 LD
End [1,1]
SubRoutines
Standard
Standard %I0.0 %I0.1 %Q0.0
Etiq, %Li
Etap. ini.
Etap. déb.
%I0.3
Etap. POST
S 10
01
01
10
TwidoSuite
36 35011385 09/2007
Create/Edit Program
Ladder Editor The Ladder Editor is a graphics-based, program editor used to view, create and
Elements edit ladder programs.
When you select Ladder in the program tool bar drop-down list box, the program
editor switches to Ladder mode. The following figure describes the various elements
that make up the ladder editor:
Hex
Ladder S SR 100%
abc
S Dec
List
Ladder
R
R %TM %C P N
Enter your comments here. Enter your comments here.
1 LD SECTION OR RUN TITLE Enter your comments here. Enter your comments here.
Enter your comments here. Enter your comments here.
Standard
Standard %I0.0 %I0.0 %Q0.0
Label, %Li
Ini. step
Start step
%I0.0
Step POST
Section or Rung
35011385 09/2007 37
Create/Edit Program
Program Edition 3 ladder programming tool bars (see figure above) are available that allow you to
Tool Bars easily edit programs and graphically enter ladder instructions:
z Program Tool Bar
z Ladder Palette Tool Bar
z Extended Ladder Palette
Program Tool Bar
Ladder 100% Hex
S SR
S Dec abc
List
Ladder
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 Toggle Ladder/List mode
2 Add section
3 Insert section
4 Add subroutine
5 Cut in 2 sections
6 Zoom ratio (default is 100%)
7 Cut
8 Copy
9 Paste
10 Undo
11 Redo
12 Display in hexadecimal or decimal
13 Display/Hide rung comments
14 Display/Hide ladder elements comments
15 Display/Hide symbols
38 35011385 09/2007
Create/Edit Program
R
R %TM %C P N
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 Add rung
2 Insert rung
3 Add normally open contact
4 Add normally closed contact
5 Add coil
6 Add inverse coil
7 Add link
8 Remove link
9 Add Comparison block
10 Add Operation block
11 Add Timer block
12 Add Counter block
13 Add Jump or Subroutine Call
14 Extended Ladder Palette buttons (see below)
35011385 09/2007 39
Create/Edit Program
3 S R
4 RET END # #
#D
5 1111123 1111123
6 %M %R %S %SC
MSG SBR
40 35011385 09/2007
Create/Edit Program
Overview of You write a ladder program in the logical order required to control a machine or process.
Ladder Sections/Subroutines
Programming A TwidoSuite ladder program is made up of a sequence of sections and subroutines
containing ladder rungs. Sections and subroutines are delimited by section/subroutine
headers. They are numbered automatically by the TwidoSuite software.
The following figure describes a typical section header (subroutine headers are
similar to this).
Enter your comments here. Enter your comments here.
1 LD SECTION TITLE Enter your comments here. Enter your comments here.
Enter your comments here. Enter your comments here.
Rungs
A ladder rung is similar to a relay logic diagram. Each rung consists of one network
of linked graphical elements organized in a programming grid starting with a
potential bar on the left and ending with a potential bar on the right.
The following figure describes a typical ladder rung.
Comments
Symbol
Address
main switch
Rung 1
SWITCH1
%I0.0 %Q0.0
Note: Programs are limited to a total of 128 sections and subroutines with a
maximum of 64 subroutines (SR0 to SR63).
35011385 09/2007 41
Create/Edit Program
How to Edit a The following procedure gives you the basics to start editing a ladder program.
Program
1. When you start writing a new program, press the Add Section icon on the
program tool bar at the following prompt.
Result: The first section is inserted in the ladder editor, displaying the first empty
rung, as shown below. (Note that a program must contain at least one section.)
5. Click the Normal contact icon (example) on the Ladder Palette to insert the
input graphical instruction.
Result: The normal contact is inserted in the leftmost part of the rung.
42 35011385 09/2007
Create/Edit Program
7. A valid rung must always feature an output element (coil or operation block). Click
the Coil icon (example) on the Ladder Palette to insert the output graphical
instruction.
Result: The coil element is inserted in the rightmost part of the rung.
Note: At this stage, you will note that the red color bar shows that the rung is still
invalid.
8. You must specify an address to each element in the rung. Click the address field
above each element and enter the desired address. Enter %I0.0 for the input
contact and %Q0.0 for output coil (example). Note that you may also optionally
specify a symbol and comment for each element.
Result: The yellow color bar indicates that this rung is valid, but has not been
analyzed (compiled with the program) yet.
9. Click the Analyze icon to start the program validation process and check for
possible program errors in the Error list box.
Note: To find out more about program edition rules and procedures, please refer
to the TwidoSuite Operation Guide - Online Help.
35011385 09/2007 43
Create/Edit Program
Example This section gives you the ladder program that applies to the automatic-watering
Program for the system example. This application consists of 2 independent processes:
Automatic- z Water tank level management
Watering System z Watering Count
This wil require to create 2 sections in the program, one for each process.
Water tank level management section
Insert the first section of the program, and create the following program.
44 35011385 09/2007
Create/Edit Program
Save the Once you have finished writing your program, you can save your program in any of 2 ways:
Program z Provided that you have already given a name to your application and specified
the project directory (see p. 23), click the Save current project shortcut on
the Quick Access Bar.
z Select Project → Save current project task and click the Save button.
Result: The project files containing the application program are saved to the disk in the
project directory which location has been specified in the project file information window.
Note: It is good practice to frequently save your project to the PC disk as you are
writing larger ladder/list instructions programs to prevent any significant loss of
work due to power shut-down or other computer problems.
35011385 09/2007 45
Create/Edit Program
Introduction TwidoSuite offers a simulator function that enables you to test a newly written program
without loading it on a controller. The Twido Simulator lets you run the program and test
different parameters in order to see if the expected responses are occurring.
Starting Twido To start the Twido Simulator select Program → Program and click the Twido
Simulator
Simulator button S at the bottom right of the TwidoSuite screen.
Result:
z TwidoSuite switches automatically to Program → Debug → Animate the program.
z The Twido Simulator overview window appears.
z The Dashboard pops up.
z If an RTC is configured or embedded, the Time Management Panel is also
displayed.
The Simulator loads the configuration you have created in the Describe screen.
Note: Some functions of your application cannot be tested using the Simulator.
Using Twido Once the Simulator is launched you can use the functions that are available in debug
Simulator mode. These are:
z Animate the program
z Manage animation tables
z Check PLC
z Monitor hardware configuration
z Monitor software configuration
z Monitor described configuration
z Monitor the behavior
You can find more information on animating tables and managing animation tables
in Debug the Program (see p. 56).
46 35011385 09/2007
Create/Edit Program
Twido Simulator The Twido simulator overview window shows the state of inputs/outputs of all the
Overview described base controller and expansion modules.
Window The overview window is shown below:
2 3 2 1
4
5 PWR IN OUT IN
TWDLMDA40DTK
NO SIMULATION
NO SIMULATION
RUN
7 ERR 0 8 16 0 8 0 32767
8 STAT 1 9 17 1 9 1
TWDNOI10M3
TWDAMI8HT
TWDNCO1M
2 10 18 2 10 20
3 11 19 3 11 30
4 12 20 4 12 4 223
5 13 21 5 13 5
6 14 22 6 14 6
9 7 15 23 7 15 7
10
1. Click to minimize to tray.
When the overview window is minimized, the Twido Simulator icon appears
in the status area (on the bottom right of your screen). Double click on this icon
to restore the overview window.
2. Inputs states:
z Click to set/reset the corresponding input
z Double click to open the discrete input settings window.
3. Outputs states: double click to open the output tracing window.
4. Click to always toggle the overview window on top
5. PWR LED: Indicates if the simulated PLC is powered up.
6. RUN LED: Indicates the state of the simulated PLC.
7. ERR LED: Indicates the state of the simulated PLC.
8. STAT LED: The operation of the STAT LED is defined by user logic
9. Base controller and expansion modules references
10.Expansion modules that cannot be simulated.
Right click on the Overview Window to expand the following contextual menu:
z Time Management: Opens the Time Management panel.
z Output Tracing: Opens the Output Tracing window.
To access analog input settings, double click on the analog input LED.
To access discrete input settings, double click on the discrete input LED.
35011385 09/2007 47
Create/Edit Program
Twido Simulator You can use the Twido Simulator dashboard to issue the following commands to the
Dashboard controller:
z Stop
z Initialize
When the TwidoSuite application is in simulate mode, these commands can be
selected from the Twido Simulator dashboard shown below:
TWDLC-A24DRF SIMULATION
RUN
Error
Stat
TwidoSuite
RUN, ERR, and STAT LEDs are simulated in the Twido Simulator dashboard as
they would appear on a connected base controller (for details about these LEDs, see
the Twido Hardware Reference Guide).
TwidoSuite
48 35011385 09/2007
Create/Edit Program
TwidoSuite
L Ac: NA
L St:
TWDLC-A24DRF SIMULATION
RUN
Error
Stat
TwidoSuite
Time The Time Management Panel allows to control the timing of the simulation (Action
Management on the time management panel modifies the RTC time accordingly and
Panel immediately), you can choose:
z The beginning and the end of the simulation
z To accelerate the simulation.
Note: The default initial time of the simulation is the time of your PC.
The default duration of the simulation is 7 days.
35011385 09/2007 49
Create/Edit Program
Time Management ?
4 Beginning End
5
6 Day Month Year Hour Minute Second
Min Max
7 8 9 10 11
1. Beginning time: Time at the beginning of the simulation
2. Simulation Period:
z If this box is checked, then when end time is reached the simulator stops and
a window pops up with the following text: End Time Reached! Simulator will
switch to STOP mode!
z If this box is not checked the simulation stays in RUN mode.
3. End time: Time at the end of the simulation
4. A cursor indicates the current time progression.
You can move manually the cursor to set current time.
z If the current time is former to the beginning time then the cursor will go on
"Beginning"
z If the current time is posterior to the end time then the cursor will go on "End".
5. Simulator status:
z : Simulator in Stop mode
z : Simulator in Run mode
z : Simulator in fast forward
z : Simulator in fast rewind
6. Indicates the current time of the simulation
7. Back to beginning time
8. Fast rewind in time
9. Fast forward in time
10.Go to the end time.
11.Set the level of fast forward/rewind in time
50 35011385 09/2007
Create/Edit Program
Setting In order to run tests on your program, the Twido Simulator lets you set the input
Simùlation values and the configure which outputs are traced.
Parameters You can set both the discrete inputs and analog inputs.
z To open the discrete input settings window, double-click on the discrete input LED.
z To open the analog input settings window, double-click on the analog input LED.
You can also configure up to 8 outputs to be traced traced. You open the tracing
configuration window by clicking the Configure button of the output tracing window.
Output Traces The outputs tracing window shows the variation of analog and discrete outputs over time.
with the The outputs tracing window is shown below:
Simulator
Tracing
Analog Outputs
%QW0.1.0:-13108 100%
0%
Discrete Outputs
%Q0.0.0: 0
%Q0.0.2: 1
Help Configure OK
Stopping Twido
To stop the Twido Simulator, click the button S at the bottom right of the
Simulator
TwidoSuite screen.
After stopping the simulation TwidoSuite returns to the screen displayed before
starting Twido Simulator.
Note: It is not possible to backup the Twido Simulator program before stopping.
35011385 09/2007 51
Create/Edit Program
Introduction In this section, you will find out how to transfer the program to the Twido PLC and
start running your program on the controller. Note that a program must be saved
before it can be transferred to the PLC.
Transfer the In order to run your application for debugging, you must first transfer it to the controller RAM.
Program Follow these steps to download your application program to the PLC:
1. If the PC is not yet connected to the controller, select a connection from the
connections table in Program → Debug → Connect task and click Run.
Connection for Debugging
Communication established
Connection tests
The PC and controller applications do not match : immediate connection is not possible !
Hardware configurations match : transfer PC ==> Controller is possible
Controller application not protected : transfer Controller ==> PC is allowed
Cancel Connect
52 35011385 09/2007
Create/Edit Program
Note: Symbols and program comments are not transferred to the controller.
35011385 09/2007 53
Create/Edit Program
Run the Program Use the PLC Soft Control Panel to Run/Stop/Initialize a program that has been
downloaded to the PLC (see p. 52.)
To run the program that you have just tranferred to the PLC, follow this procedure:
1. If the connection between TwidoSuite and the PLC is not active, select a
connection from the connections table in Program → Debug → Connect task
and click OK to establish a connection.
2. When a successful connection is established between TwidoSuite and the
controller, the PLC Soft Control Panel dialog box appears in the form of a
dashboard, always on top of your TwidoSuite workspace.
TWDLC-A24DRF
RUN
Error
Stat
TwidoSuite
z RUN
z STOP
z INTIALIZE
3. Click RUN to execute the TwidoSuite application program currently in controller’s
RAM.
Note: Each command requires confirmation before execution.
Result: 3 soft panel LEDs (RUN, Error, Stat) provide live diagnostics. (See
TwidoSuite Operation Guide -Online Help for details.)
Using the The Control Panel Dashboard is used in the same way as the Dashboard used for
Control Panel the Simulator, refer to Twido Simulator Dashboard (see p. 48).
Dashboard
54 35011385 09/2007
Create/Edit Program
Overview TwidoSuite provides many options to help you debug and adjust your program:
z Cross-Reference browser
z Animation tables
z Forcing I/Os
z Program animation
Cross- Introduction
Referencing your Cross referencing makes it easier to locate several occurences of the same program
Program element throught the application, for debugging purposes.
It consists of selecting items in a program such as an address that you want to track
in an application. Once the items are selected, then a list is generated displaying
where the items are used in the application. Cross referencing provides a useful list
of the operands, symbols, lines and operators used in all or part of an application.
Cross-Reference Browser
000 10
010 1 10 0
01 0 1 00 1 0 0 0
10 0 1 0 1 0 01 0
10 11 1 0 0 0
0
0 01 1 01 0 1 0 0
35011385 09/2007 55
Create/Edit Program
Using Animation Use an animation table to view and adjust program variables online, when the PLC
Tables is either in Run or Stop mode.
With an animation table, you can
z as the program is running, monitor the actual value of any variable in the
controller and compare against expected value,
z change the value of variables independent of calculated values, until they are
updated again,
z backup the current values of all variables in an animation table,
z restore to the controller the retained values of all variables in an animation table,
z force inputs and outputs.
Elements of an Animation Table
Animation table Toolbar Column headings
management tasks
1 0
Manage the animation tables
56 35011385 09/2007
Create/Edit Program
Forcing I/Os Forcing I/Os means that you forcibly set the values of one or more input or output
bits to either 0 or 1.
Note: You can force I/Os when TwidoSuite is in online mode, with the controller
either in Run or Stop mode.
z Clear Force
Animating a You can animate both Ladder and List programs when online. This section
Program describes how to animate a Ladder language program. For more details, please
refer to Animating a Program in TwidoSuite Operation Guide - Online Help.
How to Animate a Ladder Program
1. Select the Program → Debug → Animate program task to open the program
editor in animated mode.
Result: The program editor displays animated ladder elements.
2. Watch the animated ladder elements during program execution.
How Ladder Animation Works
z You can watch the backlight of logical objects such as contacts, coils and special
objects turn on as their logical value becomes 1.
z You can keep track of data variables of fonction blocks, comparison blocks and
operation blocks, including current and preset values.
Note: Binary operands are displayed as 0 or 1, while all other values are displayed in
hexadecimal or decimal, depending on the format selected in Preferences (see p. 20).
35011385 09/2007 57
Create/Edit Program
Click the icon in the functions bar to display/hide the Animation tables in the
lower part of the window.
Copying Rung Objects to an Animation Table
To copy rung objects to the selected animation table, press (leftmost button
on the animation table's tool bar) as shown in the figure below.
Telemecanique
My project
i
1000
?
010
01
10
10 0 10
0 10 1 10 0
0 01 1 0 10 0 0 0 0 100 1 0 0 0 10
0 10 0 10 1 0 0 0 0 1 1 0 010 010 0
1
1 10 0 1 0 01 01 0 0 0
1 10 0 0 01 01 0 0
0 11 0 0 0 0
0 10 1
0 11 1 0 00
0 10
0
11 1 0 0 1 0
01 1 0 0
0
Stop
Project Describe Program Report 01
R
R %TM %C P N Animate
the program
1 LD
Manage
animation tables
Rung 0 Check
PLC
%I0.0 %I0.1 %Q0.0
Monitor
hardware
configuration
Monitor
%I0.3
software
configuration
Monitor
described
configuration
1 0 My animation table 1 Monitor
the behavior
58 35011385 09/2007
Create/Edit Program
Introduction With TwidoSuite report, you create custom printouts and html exports (to .htm file)
by selecting report items from the report manager browser.
Report Manager Use the report manager to select report components, configure printing options, and
export the application report to HTML format.
To access the Report Manager window, select the Report icon on the
TwidoSuite Steps bar.
How to Configure The report manager provides a tree-like structure view of the report items and
the Report subitems that can be included in the report by checking the appropirate boxes.
Contents Folder
Folder
Project My Project
First Page (2)
History (1)
Contents (1)
Describe (1)
Graphical Description (5)
Properties (1)
Nomenclature (1)
Twido
Configuration
Hardware (1)
Memory Objects (1)
Memory Report (1)
Behavior configuration (1)
Program
Contents (1)
Symbols (1)
Cross References (1)
Animation Tables (1)
Preferences (1)
About (1)
To configure the report, select an item from the report browser and set the options
that appear in the configuration window. For details on report options, please refer
to the TwidoSuite Operation Guide - Online Help.
35011385 09/2007 59
Create/Edit Program
Page Setup Select the Report → Page Setup task to set the information you want to display in
page headers and footers, and the page margins as well.
You can configure your report pages to show up to nine different types of information
in three seperate fields per header and footer line, including:
You can configure in your report page to show up to three different type of
information in three seperate fields per header and footer, including:
z Print date
z Creation date
z Modification date
z Project name
z Any text (Free)
z No text (None)
z Page number/Total number of pages (Page i/n)
z Page number (Page i)
z TwidoSuite version
z File name
Print the Report Select the Report → Print task to prepare the report for sending to the printer and/
or to an HTML export file.
The print window allows you to:
z preview the report with several page format and zooming options,
z choose the destination printer and access the printer properties,
z repaginate your report according to selected printing options
z send your report for printing on the selected print device,
z export your report to a HTML file.
60 35011385 09/2007
Monitoring an Application
6
Monitoring an Application
TwidoSuite
Result: The Application Launcher dialog box appears as shown below.
New
Programming Mode
Monitoring Mode
English
35011385 09/2007 61
Monitoring
Scan Time
Name
Command
Apply Cancel
62 35011385 09/2007
*3501138500*
You can download this technical publication and other technical information from our website at
http://www.telemecanique.com.
09/2007