You are on page 1of 123

TwidoSuite V1.

0
Programming software
Logiciel de programmation
Getting started
Mise en route
06/2006

www.telemecanique.com

English

English

Table of Contents

About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5


Chapter 1

Installation and Program Start . . . . . . . . . . . . . . . . . . . . . . . . . . 7


Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Installing and Uninstalling the Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Registering TwidoSuite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Chapter 2

Launching TwidoSuite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Program Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Chapter 3

Upgrading the Twido Firmware . . . . . . . . . . . . . . . . . . . . . . . . . 13


Twido PLC Firmware Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Chapter 4

The TwidoSuite Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17


Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Main Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Setting Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Chapter 5

Creating and Editing a Program . . . . . . . . . . . . . . . . . . . . . . . . 23


At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 1: Create a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 2: Describe Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 3: Define Application I/O Wiring Specifications. . . . . . . . . . . . . . . . . . . . . .
Step 4: Configure Hardware and Software Resources . . . . . . . . . . . . . . . . . . . .
Step 5: Write the Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 6: Save, Transfer and Run the Program . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 7: Debug the Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 8: Manage the Program Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Chapter 6

23
25
27
30
32
37
46
52
57

Monitoring an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Monitoring an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

English

English

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.

Related
Documents
Title of Documentation
The Twido Programmable Controllers Hardware Guide for Compact and Modular Bases

Reference Number
3501138700

The Twido Programmable Controllers Hardware Guide for Discrete I/O Modules

3501138800

The Twido Programmable Controllers Hardware Guide for Analog I/O Modules

3501138900

The Twido Programmable Controllers Hardware Guide for Communication Modules

3501139000

The Twido Programmable Controllers Programming Guide

3501138600

The TwidoSuite Programming Software Online Help

The Twido Windows Executive Loader Wizard Online Help

35013826 06/2006

English

About the Book

Product Related
Warnings

Schneider Electric assumes no responsibility for any errors that may appear in this
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 2006. 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

35013826 06/2006

English

Installation and Program Start

Introduction
Overview

The TwidoSuite programming software is designed to run on various


Windows2000/NT/XP operating systems. This chapter describes your computer
system requirements to install and run this software. It also provides instructions for
installing/uninstalling and starting the software.

What's in this
Chapter?

This chapter contains the following topics:


Topic
System Requirements

35013826 06/2006

Page
8

Installing and Uninstalling the Software

Registering TwidoSuite

10

English

Installation and Program Start

System Requirements
Hardware
Requirements

Your PC needs to meet the following minimum hardware requirements to run the
TwidoSuite programming software:
Requirement

Minimum

computer

processor Pentium 466 MHz

RAM

128 MB

free hard drive space

100 MB

A CD-ROM drive is the required installation medium.


Software
Requirements

The TwidoSuite programming software requires one of the following software


operating systems:
Operating System

Edition/Service Pack

Special Considerations

Windows NT 4.0

service pack 6 or above

Windows 2000

service pack 1 or above

Windows XP

service pack 1 or above

For Windows NT, Windows 2000 or


Windows XP, you need administration
privileges to install the TwidoSuite
configuration software.

The browser needs to be Microsoft Internet Explorer 4.01 or higher.


Connection to a
Twido PLC

The TwidoSuite programming software runs on a PC that connects to the RS-485


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 (3501138700).

35013826 06/2006

English

Installation and Program Start

Installing and Uninstalling the Software


Before You Start

Before you install the TwidoSuite programming software:


z

Installing the
Software
Step

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),
close all Windows applications and virus-protection software.

To install the TwidoSuite programming software:

Action

Result

Insert the TwidoSuite CD in your PCs CD-ROM


drive.

If the AUTORUN function is activated, the installation will


start automatically, then go to step 4.
Otherwise go to step 2.

If the installation does not start automatically, click The Run dialog box will appear.
Start Run.

Enter [Drive:]\setup.exe, then click OK.

The language selection screen appears.

Choose a language and click OK.

A message appears asking you if you want to register


your copy of the software.

To register the software, click Yes. To run the


software without registering it, click No.

An unregistered software package will run for 30 days,


then stop running. You will need to uninstall the expired
software before installing a new version. The new
installation must be registered before it will work.

Choose the installation language among the list of The software will be installed in both the selected local
available languages.
language and in the English version. You will later be
able to execute the software in either of these languages
by selecting the execution language from the TwidoSuite
Application Launcher.

Follow the remaining on-screen installation


instructions.

Once the software has been installed, an icon appears on


your desktop, which you can double-click to start the
software:

TwidoSuite

Uninstalling the
Software

35013826 06/2006

To uninstall the TwidoSuite programming software from your computer, choose the
following path: Start Control Panel Add/Remove Programs

English

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

10

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.

35013826 06/2006

English

Launching TwidoSuite

Program Start
How to Start the
Program

You can either start the program via the TwidoSuite Application Launcher:
z from the Start Programs TwidoSuite Application Launcher path
z or from the desktop Application Launcher shortcut that has been installed with the
program:

TwidoSuite

Application
Launcher
Options

The Application Launcher constitutes the launch center for the TwidoSuite software
suite.
The TwidoSuite application comes in several language pairs available from the
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:
Programming Mode
z Monitoring Mode
z PLC Firmware Update
z Start TwidoSoft (available only if TwidoSoft is installed on your PC)
z

35013826 06/2006

11

English

TwidoSuite Application Launcher

Additional
Features

Use the additional features to:


New

see Whats new?

view the Video Demo

,
.

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
Application
Launcher

The following figure shows an example of the TwidoSuite Application Launcher for
the English-French installed language pair:

New

Programming Mode
Monitoring Mode

English
Franais

12

PLC Firmware Update


Start TwidoSoft

35013826 06/2006

English

Upgrading the Twido Firmware

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
Exec Loader
Wizard

35013826 06/2006

You can open the Executive Loader Wizard from the TwidoSuite Application
Launcher by selecting the PLC Firmware Update option (see Application Launcher
Options, p. 11).

13

English

Firmware Upgrade

New Firmware
(Basic Steps)

There are four steps required to upgrade your executive. The wizard provides a
window for each step and online help is available for each step. The following table
summarizes each step:
Step

Window

Function

Welcome

Introduces the Executive Loader Wizard.

Parameters

Selects the correct executive file to transfer to your


controller, and selects the PC serial port to communicate
with the controller.

File and Device


Properties

Compares the hardware IDs and the executive version


information for the executive file and the controller.

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

35013826 06/2006

Supported Twido
Controllers

English

Firmware Upgrade

The following table lists all Twido devices that are supported by the Executive
Loader Wizard program:
Controller Module

Description

TWDLCAA10DRF

Compact base unit, 230V AC(1), with 6 In (24V DC), 4 Out (2A Relays).
Screw terminal blocks, non-removable.

TWDLCDA10DRF

Compact base unit, 24V DC, with 6 In (24V DC), 4 Out (2A Relays).
Screw terminal blocks, non-removable.

TWDLCAA16DRF

Compact base unit, 230V AC(1), with 9 In (24V DC), 7 Out (2A Relays).
Screw terminal blocks, non-removable.

TWDLCDA16DRF

Compact base unit, 24V DC, with 9 In (24V DC), 7 Out (2A Relays).
Screw terminal blocks, non-removable.

TWDLCAA24DRF

Compact base unit, 230V AC(1), with 14 In (24V DC), 10 Out (2A
Relays). Screw terminal blocks, non-removable.

TWDLCDA24DRF

Compact base unit, 24V DC, with 14 In (24V DC), 10 Out (2A Relays).
Screw terminal blocks, non-removable.

TWDLCAA40DRF

Compact base Unit, 230V AC(1), with 24In (24VDC), 2 Transistor(24V


DC), 14 Relays (2A) Out, Embedded RTC, Screw terminal block, nonremovable.

TWDLCAE40DRF

Compact base Unit, 230V AC(1), with 24In (24VDC), 2 Transistor(24V


DC), 14 Relays (2A) Out, Embedded RTC, 100Base Tx Ethernet,
Screw terminal block, non-removable.

TWDLMDA20DUK

Modular base unit with 12 In (24V DC), 8 Out (0.3A Transistors, Sink).
MIL connectors(2), removable.

TWDLMDA20DTK

Modular base unit with 12 In (24V DC), 8 Out (0.3A Transistors,


Source). MIL connectors(2), removable.

TWDLMDA20DRT

Modular base unit with 12 In (24V DC), 8 Out (2 Out 0.3A Transistors,
Source and 6 Out 2A Relays). Screw terminal blocks, removable.

TWDLMDA40DUK

Modular base controller 24 inputs (24V DC), 16 sink transistor outputs


(0.3 A)). Removable MIL connectors(2).

TWDLMDA40DTK

Modular base unit with 24 In (24V DC), 16 Out (0.3A Transistors,


Source). MIL connectors(2), removable.

Note 1: Products described as 230 VAC power supply are 120/230 VAC compatible.
Note 2: MIL connectors are also known as HE10 connectors.

35013826 06/2006

15

English

Firmware Upgrade

16

35013826 06/2006

English

The TwidoSuite Interface

Introduction
Overview

This section describes the TwidoSuite:


z
z

main window workspace


preferences settings

This section also provides a work flow for creating a TwidoSuite project (see
Application Steps/Substeps Bar, p. 20).
What's in this
Chapter?

35013826 06/2006

This chapter contains the following topics:


Topic

Page

Main Window

18

Setting Preferences

22

17

English

Interface

Main Window
TwidoSuite
Workspace

Program substeps bar

Application steps bar

Taskbar
Telemecanique

0 10
01
10
10

Project

Describe

10 0

My project

0
0 01 1
010

Program

0
101
010 1 0 0 0
010 0 0 0
110 1
0010
011 0 0 0
010 1

Report

Configure

10
010
0 1 0 1 0 00
0
0 1 0 1 0 01 0
11 1 0 0 0
01 0 1 0 0
01

Program

10
10 0
0 1 00 1 0 0 0
01 0 1 0 0
0
11 0 0 1 0
0 11 1 0 0
010

Debug
Configure
the Hardware
Configure
the data
Configure
the behavior
Define
the protections

TWDLMDA20DTK

Description of the module

Reference num TWDLMDA20DT


Address 0
Description
Modular base controller, 12 24V DC inputs, 8 ouputs (0.3A
source transistors). Removable MIL connectors.

Module configuration.

Apply

Cancel

Table of inputs

Used Address
%I0.0
%I0.1
%I0.2
%I0.3
%I0.4

Symbol

Used By

Filtering
3 ms
3 ms
3 ms
3 ms
3 ms

Latch?

Run/Stop? Deactivation

High Priority SR Number

Not used
Not used
Not used

Table of outputs

Used Address
%Q0.0
%Q0.1
%Q0.2
%Q0.3

Symbol

Status?

Used By

TwidoSuite

Error list box

Quick access bar

Functions bar

Editors and Viewers

18

35013826 06/2006

English

Interface

Application steps bar:

Displays TwidoSuites 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
Minimizes the main window
Closes the TwidoSuite application
Docking button for the Application Steps bar
Resizes the main window

35013826 06/2006

19

English

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.
0 10 1
01
10
10

0 00

0
0 01
0 10 1

Program
This is the third step in setting up your Twido application. It provides access
to the following 3 substeps.
1.Configure
0 10
010 1
0 00
1
This substep lets you view/set:
0
1
0
0 00
110 1
0 10
zHardware Configuration for the base controller,
011 0 0 00
010 1
expansion modules, 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
010 0
01 010 0 0
0 1 0 1 0 01 0
11 10 0 0
01 0 1 0 0
01

10
010 0
01 0 1 0 0 0
01 01 0 0 0
11 10 0 1 0
01 1 0 0
0
01

2.Program
Opens the default Program Editor (Ladder or List) and
provides access to the Symbol Editor.
3.Debug
Lets you manage the TwidoSuite-to-PLC connection and
provides access to Animation Tables Editor and
Monitoring tasks.

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.

20

35013826 06/2006

English

Interface
Miscellaneous
Provides access General Help and information About TwidoSuite.
Preference
Opens the User Preferences window.

Shows the Task-level Quick Help pages

Quick Access
Bar
Return to previous task, as you left it

Move back to next task, as you left it

Save current project

Analyze Program

35013826 06/2006

21

English

Interface

Setting Preferences
Displaying
Preferences

Preferences
Window

Click the Preference icon


as shown below.

on the Steps bar to display the Preferences window

Preferences

Apply
Directoty:

Default project directory

Restore

C:\Program File\Schneider Electric\TwidoSuite\My project

None

Default projects

Schneider default
Customized
Default program editor

C:\Program File\Schneider Electric\TwidoSuite\My project

Ladder
List

Autosave project

every

Yes

minutes

15

No
Default background color
Clear

Dark

Default project image

Default image

Default functional levels of applications

Automatic

Automatic management
The very highest

Manual

Manual management

C:\Documents and Settings\Administrateur\My documents\

Personalized image

The very lowest


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

5000

20

19200

None

Add

Modify

Delete

Customize Project Preferences


z Set the default project directory path
z Set the default/customize projects
z Set the default program editor (Ladder or List)
z Set the autosave options
z Set the background color
z Set the default/custom project image
z Select the automatic/manual functional level management method to
implement at project start
z Add/update/remove connections by using the connections management table

22

35013826 06/2006

English

Creating and Editing a Program

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 launch icon
located on your PC desktop.

TwidoSuite

The Application Launcher dialog box appears as shown below:

New

Programming Mode
Monitoring Mode

English
Franais

35013826 06/2006

PLC Firmware Update


Start TwidoSoft

23

Create/Edit Program

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
z TwidoSoft application program
Application
Example

The following sections will introduce you step by step to the fundamentals of
TwidoSuite programming, through an actual application example: managing the
water level of a water tank used for irrigation:

What's in this
Chapter?

This chapter contains the following topics:

24

Topic

Page

Step 1: Create a New Project

25

Step 2: Describe Application

27

Step 3: Define Application I/O Wiring Specifications

30

Step 4: Configure Hardware and Software Resources

32

Step 5: Write the Program

37

Step 6: Save, Transfer and Run the Program

46

Step 7: Debug the Program

52

Step 8: Manage the Program Report

57

35013826 06/2006

English

Create/Edit Program

Step 1: Create a New Project


How to Start the
Project Manager

Click the Project icon


on the TwidoSuite workspace Steps bar to display the
Project window and create/open/edit a TwidoSuite project.

Project Window
Telemecanique

1
0 10
01
10
10

Project

Describe

My project

0 00

0
0 01 1
010

Program

Report

Project information

Project management
Update the project information

File 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

Close current project


Create a new project
In this screen you can:
-select the project name and enter the
project information using the form;
-attach a photo to the project in the
"image" tab.
-Click on "Create" to create the project.

Authors name

Service

Service

Index

version

Industrial Property

XYZ

Comment

Description

Image

Type your comments here.

Create

TwidoSuite

Actions frame

35013826 06/2006

Project information main pane

25

English

Create/Edit Program

How to Create a
New Project

26

1. Click Create a new project in the "Project Management Actions Pane."


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 File Information frame. This includes
providing Authors name, Service 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 Step 2: Describe
Application, p. 27).
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 Step 8: Manage the Program Report, p. 57). 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.

35013826 06/2006

English

Create/Edit Program

Step 2: Describe Application


How to Start the
Describe Feature

Describe
Window

Click the Describe icon


the Describe window.

on the TwidoSuite workspace Steps bar to display

In the Describe window, you declare the Twido automation system elements
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

0 10
01
10
10

Project

Describe

Bill of materials

My project

1 0 00

10
0 00
1
01

Program

Report

Catalog

1x2 landscape

Place

Export
Family

Refrence n...

Twido
Twido
Twido
Twido

TWDLMDA20DTK
TWDDDI8DT
TWDDAI8DT
TWDAMI2HT

Bases
Q..

Expansion modules
Discrete IO expansion

1
2
1
1

TWDDDI8DT
TWDDAI8DT
TWDDDI16DT
TWDDDI16DK
TWDDDI32DK
TWDDMM8DRT
TWDDMM24DRF
TWDNOI10M3
TWDDDO8UT
TWDDDO8TT

TWDDDI8DT
Expansion module with 8 24V DC
inputs, removable screw
terminal, 1 common line,
sink/source transistor. (25mA)

Page 1

REP

TwidoSuite

Graphic pane

Elements of the Describe window:


z Graphic Pane: This is where you build the graphical representation of your
application by adding hardware elements. Drag selected hardware elements
from the catalog pane to the graphic pane to gradually construct your automation
system. You use the graphic pane to declare networks and how equipment
interconnect with one another, as well.
35013826 06/2006

27

English

Create/Edit Program
z

Describe tool bar: Use the Describe tool bar to manage the graphic pane and
elements.
1x2 landscape

How to Describe
Your Application

1. Select page format


2. Zoom in
3. Zoom out
4. Select graphic element
5. Add a note
6. Configure element
7. Erase element
Product catalog pane: This dockable pane displays the Twido hardware
elements catalog, including compact base and modular controllers, expansion
modules, options, network elements in a tree-like structure.
The bottom part of the pane provides a short description of the selected hardware
element.
Bill of materials pane: This dockable pane shows a bill of materials of the
hardware elements that currently make up the open project. You can
conveniently click Export to save the bill of materials to a file in .CSV format.

1. Use drag-and-drop to place catalog elements in the graphic pane, starting with
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.

28

35013826 06/2006

AutomaticWatering System
Example

In this example, you will need to:


1. place a TWDLCA10DRF 10 I/O compact base controller in the Describe window
and
2. add the RTC (real-time clock) option to the TWDLCA10DRF controller in the
Describe window, as shown in the figure below.
Telemecanique

010
01
10
10

Project

Describe

Bill of materials

10 0

My project

0
0 011
010

Program

Report

Catalog

1x2 landscape

Place

Export

Compact bases
Family Reference n...
Q..
Twido TWDLCAA10DRF 1
Twido TWDXCPRTC
1

TWDLCAA10DRF
TWDLCDA10DRF
TWDLCAA16DRF
TWDLCDA16DRF
TWDLCAA24DRF
TWDLCDA24DRF
TWDLCAA40DRF
TWDLCAE40DRF

TWDLCAA10DRF
Compact base controller,
230V AC, 6 24V DC inputs,
4 2A relay outputs.
Non-removable terminal blocks.

Page 1

REP

TWDXCPRTC

35013826 06/2006

TWDLCAA10DRF

TwidoSuite

29

English

Create/Edit Program

English

Create/Edit Program

Step 3: Define Application I/O Wiring Specifications


Introduction

Before you proceed with programming of your application, you must set your
application I/O wiring specifications.

I/O Wiring
Specifications

It is good practice to draw up a small sketch of your application I/O wiring.


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
%Q0.0 output to water pump actuator
z %Q0.1 output to irrigation control valve
z

RTC Specifications
z RTC option must be installed on Twido 10 I/O base controller.

30

35013826 06/2006

Create/Edit Program

English

I/O wiring specifications are outlined in the following wiring sketch:


%I0.0 Input form water high level sensor
%I0.1 Input form water low level sensor

RTC Option
%Q0.0 Output to water tanks pump actuator
%Q0.1 Output to irrigation control valve
Controller Power Supply

Output power supply

35013826 06/2006

31

English

Create/Edit Program

Step 4: Configure Hardware and Software Resources


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
0 10 1
01
10
10

Program
Configure
Hardware
Resources

0 00

0
0 01
010 1

Configure

10
01 0 0
01 0 1 0 0 0
0 1 0 1 0 01 0
11 1 0 0 0
01 1 0 0
0 10

on the TwidoSuite Steps bar.

Select the Program Configure Configure Hardware task to open the


hardware configuration window.
Graphic Pane

Configuration pane

Telemecanique

010
01
10
10

Project

Describe

My project

1 0 00

0
0 011
0 10

Program

0
10 1
0101 0 00
0101 0 00
110 0 10
0110 0 00
1
010

Report

Configure

10
10 0
0 100 1 0 0 0
0 1 1 0 010
1 1010 0 0
01 1 0 0
0 10

Program

10
010 0
01 0 1 0 0 0
01 01 0 0 0
11 1 0 0 1 0
01 01 0 0
01

Debug
Configure
the Hardware
Configure
the data
Configure
the behavior
Define
the protections

TWDLMDA20DTK

Description of the module

Reference num TWDLMDA20DT


Address 0
Description
Modular base controller, 12 24V DC inputs, 8 ouputs (0.3A
source transistors). Removable MIL connectors.

Module configuration.

Apply

Cancel

Table of inputs

Used Address
%I0.0
%I0.1
%I0.2
%I0.3
%I0.4

Symbol

Used By

Filtering
3 ms
3 ms
3 ms
3 ms
3 ms

Latch?

Run/Stop? Deactivation

High Priority SR Number

Not used
Not used
Not used

Table of outputs

Used Address
%Q0.0
%Q0.1
%Q0.2
%Q0.3

Symbol

Status?

Used By

TwidoSuite

Graphic Pane: Picture of the controller and its expansions


Configuration Pane: Description (with configuration) of the currently selected hardware
elements

32

35013826 06/2006

English

Create/Edit Program

Configurable hardware resources include:


z Base and remote controllers discrete inputs and outputs
z Expansion I/O modules parameters, such as analog modules
z AS-Interface module and slave devices parameters
z CANopen master module and slave devices parameters
z Options parameters
Automatic-Watering System Example
In this application example, you will find it useful to symbolize inputs and outputs
(see Step 3: Define Application I/O Wiring Specifications, p. 30).
To configure symbols for I/Os, follow these steps:
1. Select the Program Configure Configure Hardware task to open the
hardware configuration window.
2. Click once on the controller picture to select the TWDLCAA10DRF controller in
the graphic pane.
3. In the configuration pane, enter symbolic names for the I/Os you want to
symbolize, for example:
z WATER_HIGH_LEVEL, in %I0.0 symbol field
z WATER_LOW_LEVEL, in %I0.1 symbol field
z WATER_PUMP, in %Q0.0 symbol field
z IRRIGATION_VALVE, in %Q0.1 symbol field
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.
4. Changes are effective as soon as the cursor leaves the current input or output
line.

35013826 06/2006

33

English

Create/Edit Program

Configure
Software
Resources

Select the Program Configure Configure Data task to open the software
configuration window.
Telemecanique

010
01
10
10

Project

Describe

100

My project

0
0 01 1
0 10

Program

10
10 0
0 100 1 0 0 0
0 1 1 0 01 0
1 10 0 0
0 110 1 0 00
01

0
10 1
0 10 1 0 0 0
0 10 0 0 0
1
1 10 0 0 1 0
0 11 0 0 0
0 10 1

Report

Program

Configure
Object Categories
Simple objects
Function blocks
I/O objects
Advanced objects

Allocation

%M
%MW
%MD
%MF
%KW
%KD
%KF

Debug
Configure
the Hardware

Define Objects
Number of objects

Automatic

Table

Affected 0 Maxi: 3000

Configure
the data
Configure
the behavior

All
Used

Simple objects

10
010 0
01 01 0 0 0
01 01 0 0
0
11 1 0 0 1 0
01 1 0 0
0
01

Equ. Used

%MW
%MW.0
%MW.1
%MW.2
%MW.3
%MW.4
%MW.5
%MW.6
%MW.7
%MW.8
%MW.9
%MW.10
%MW.11
%MW.12
%MW.13
%MW.14
%MW.15
%MW.16
%MW.17
%MW.18
%MW.19

Define
the protections

Symbol

1
0

TwidoSuite

Configurable software resources include:


z Simple objects
z Memory bits (%M)
z Memory words (%MW, %MD, %MF)
z Constants (%KW, %KD, %KF)
z Function blocks
z Timers
z Counters
z Drum controllers
z LIFO/FIFO registers
z I/O objects
z Fast counters
z PLS/PWM pulse generators
z Very fast counters
z Advanced objects
z Schedule blocks
z PID
z Macro functions

34

35013826 06/2006

Note: Internal memory objects such as system bits and words, memory bits and
words, and network exchange words are non-configurable objects.
Automatic-Watering System Example
In this application example, you will need to configure two software objects:
z One Schedule Block (Real Time Clock 0) that will manage the weekly watering
schedule.
z One Counter (%C0) that will serve as a maintenance cycle counter.
Note: Configuring schedule blocks
To support schedule blocks, make sure the RTC option is installed on your
TWDLCAA10DRF controller.
z Schedule blocks are non-programmable objects that do not need any
declaration in the Ladder or List program. You simply need to enable them and
configure their respective parameters.
z

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 nonconfigurable in the configuration window.
5. Click the Configure 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).

35013826 06/2006

35

English

Create/Edit Program

English

Create/Edit Program

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.
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.

36

35013826 06/2006

Create/Edit Program

Introduction

English

Step 5: Write the Program


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.
01 0
01
10
10

100

0
0 01 1
0 10

To have access to the program editor, select Program


Program
on the TwidoSuite Steps bar and click Edit Program on the task bar.

10
10 0
0 1 00 1 0 0 0
01 0 1 0 0 0
11 1 0 0 1 0
01 0 1 0 0
01

Note: In program mode, the task bar provides access to the Symbol Editor as
well.

35013826 06/2006

37

English

Create/Edit Program

Program Edition
Window

The Program Edition window features the Program Editor and five browsers and
tools available on the functions bar, as described in the following figure:
Program Editor

Program Browser

Telemecanique

010
01
10
10

Project

Describe

10 0

My project

1 0 10
0101 0 00
010 0 00
1
1100 0 10
011 0 00
0101

0
0 011
0 10

Program

Report

Program

Configure

1 2 3
Program
1 - - LADDER
Start [1,1]
End [1,1]

Ladder

List
R
R
Ladder

Debug

Hex
Dec

100%

SR

10
10 0
0 1 00 1 0 0 0
01 01 0 0 0
11 0 0 1 0
0 11 1 0 0
010

10
01 0 0
0 1 0 1 0 000
0 1 01 0 10
1 1 10 0 0
01 0 1 0 0
01

Edit
Program

abc

%TM %C

Define
Symbols

1 LD

SubRoutines

Standard
Standard
Etiq, %Li
Etap. ini.
Etap. db.
Etap. POST

All
Used

%I0.0

%I0.1

%Q0.0

%I0.3

Without
Address

Find
Symbol

Comment

10
01

01
10

TwidoSuite

Error List Box

Data Browser

Functions Bar

38

Import Program
Export Program
Show/hide ProgramBrowser
Show/hide Cross-Ref Browser
Show/hide Data Browser

35013826 06/2006

Ladder Editor
Elements

The Ladder Editor is a graphics-based, program editor used to view, create and
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:
Section or Rung
header

Program Toolbar

Ladder

LD

Hex
Dec

100%

SR

List
R
Ladder
R
1

Ladder Palette Toolbar

%TM %C
SECTION OR RUN TITLE

abc

Enter your comments here. Enter your comments here.


Enter your comments here. Enter your comments here.
Enter your comments here. Enter your comments here.

Standard

Section or Rung

Standard
Label, %Li
Ini. step
Start step
Step POST

%I0.0

%Q0.0

%I0.0

Ladder elements

35013826 06/2006

%I0.0

Programming grid

Extended Ladder
Palette Buttons

39

English

Create/Edit Program

English

Create/Edit Program

Program Edition
Tool Bars

3 ladder programming tool bars (see figure above) are available that allow you to
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

Hex
Dec

100%

SR

abc

List
Ladder

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

10

11 12

13

14

15

Toggle Ladder/List mode


Add section
Insert section
Add subroutine
Cut in 2 sections
Zoom ratio (default is 100%)
Cut
Copy
Paste
Undo
Redo
Display in hexadecimal or decimal
Display/Hide rung comments
Display/Hide ladder elements comments
Display/Hide symbols

Ladder Palette Tool Bar


R

%TM %C

9 10 11 12 13

14

Toggle Extended Ladder Palette sections

1
2
3
4
5
6
7
8
9
40

Add rung
Insert rung
Add normally open contact
Add normally closed contact
Add coil
Add inverse coil
Add link
Remove link
Add Comparison block
35013826 06/2006

Create/Edit Program
Add Operation block
Add Timer block
Add Counter block
Add Jump or Subroutine Call
Extended Ladder Palette buttons (see below)

English

10
11
12
13
14

Extended Ladder Palette


R

%TM %C

Toggle Extended Ladder Palette sections

XOR

XORN

1
2
3
4
5
6

35013826 06/2006

XORR

RET

1111123 1111123

%M %R %S
MSG
SBR

END

XORF

#D

%SC

Contacts: Normally Open, Normally Closed, Rising Edge, Falling Edge


Special Contacts: XOR, XORN, XORR, XORF, OPN, SHORT
Coils: Normal Coil, Inverse Coil, Set Coil, Reset Coil
Special Coils: JMP/SR, RET, END, Grafcet Coil 1, Grafcet Coil 2
Basic Function Blocks: %FC, %VFC, %PLS, %PWM
Advanced Function Blocks: %MSG, %R, %SBR, %DR, %SC

41

English

Create/Edit Program

Overview of
Ladder
Programming

You write a ladder program in the logical order required to control a machine or
process.
Sections/Subroutines
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).
1

LD

Enter your comments here. Enter your comments here.


Enter your comments here. Enter your comments here.
Enter your comments here. Enter your comments here.

SECTION TITLE

Four lines of up to 122 characters each

One line of up to 122 characters

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

RUNG TITLE
Rung 1

ENTER COMMENTS ABOUT THIS RUNG HERE.

main switch
SWITCH1
%I0.0

Rung state indicator:


green for a valid rung

%Q0.0

Input element
(example of
normally open contact)

Output element
(example of
normal coil)

red for an invalid rung


yellow for a rung not yet analyzed
none if the rung has not been modified

Note: Programs are limited to a total of 128 sections and subroutines with a
maximum of 64 subroutines (SR0 to SR63).

42

35013826 06/2006

How to Edit a
Program

The following procedure gives you the basics to start editing a ladder program.
1. When you start writing a new program, press the Add Section icon
program tool bar at the following prompt.

on the

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.)

2. Double-click the section header to enter the following:


z Section title
z Comments
3. Double-click the rung header to enter the following:
z Rung title
z Comments
z Declare rung type: Standard, Label (%Li), or Grafcet step (Start step, End
step, or POST)
4. Select the empty horizontal link that runs between the rung left and right power
lines.
Result: The selected link is higlighted green.

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.

35013826 06/2006

43

English

Create/Edit Program

Create/Edit Program

English

6. Repeat steps 4 to 5 to insert other graphical instructions, as needed.


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.

44

35013826 06/2006

Example
Program for the
AutomaticWatering System

This section gives you the ladder program that applies to the automatic-watering
system example. This application consists of 2 independent processes:
z
z

Water tank level management


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.

Description of the water tank level regulation process:


1 Whenever the water low-level is reached (%I0.1 is closed), the water-pump is started
(%Q0.0 is closed). Note that %I0.0 remains normally closed.
2 Whenever the water high-level is reached (%I0.0 is open), the water-pump is stopped
(%Q0.0 coil is activated and %Q0.0 contact is closed). Note that the %Q0.0 contact allows
to keep the water-pump running until the water high-level is reached.

Watering count
Add a section to the program, create the following program that will count the
watering cycles and save your project. (Note: If you have not done it yet at the Data
Objects Configuration stage, double-click the %C0 element and set the Preset
value to 100 cycles in the Counters table.)

Description of the watering-count process:


1 Whenever the watering control valve is activated (%Q0.1 is closed) by the RTC function
(Real-Time Clock 0), the counter %C0 is incremented.
2 When the counter current value reaches 100, the memory bit %M0 is set to 1. Memory bit
%M0 can be used to control an LED that will indicate that maintenance is required after
completion of the 100 watering cycles. Note that you may connect a push button to the R
input to manually reset the maintenance cycle counter.

35013826 06/2006

45

English

Create/Edit Program

English

Create/Edit Program

Step 6: Save, Transfer and Run the Program


Introduction

In this section, you will find out how to save your work and transfer the program to
the Twido PLC. Note that a program must be saved before it can be transferred to
the PLC.
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.

Save the
Program

You can save your program in any of 2 ways.


z Provided that you have already given a name to your application and specified
the project directory (see Step 1: Create a New Project, p. 25), click the Save
current project shortcut
z

Select

on the Quick Access Bar.

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.

46

35013826 06/2006

Transfer the
Program

English

Create/Edit Program

In order to run your application for debugging, you must first transfer it to the
controller RAM.
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
This connection method allows to
directly connect to the controller or to
transfer an application from the PC to
the controller.

Select a connection
Type

Name

Project

My connection 1

Ethernet

13.1.2.3.Direct

Project

My connection 2

Serial

Connection method

Punit

IP/Phone

Project

My connection 3

Modem

555554443333,

Project

My connection 4

USB

USB,8

PC

USB

Serial

USB,Punit

Establish the communication

OK

Results: TwidoSuite tries to establish a connection with the controller and


performs synchronization checks between the PC and the PLC applications.
z The Connection Test Table displays the results of 3 synchronization checks.
Connection for Debugging
This connection method allows to directly connect to the controller or to
transfer an application from the PC to
the controller.

Select a connection
Type

Name

Connection method

IP/Phone

Project

USB direct

USB

USB

Project

Ethernet direct

TCP/IP

192.168.0.1

Project

Modem direct

MODEM

+33 2 23 45 67 89

Project

COM1 P2P

Srie

COM1,@

PC

USB P2P

USB

USB,1
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
Comparing applications

Project

Controller

Application name
Base controller

ViewEx
TWDLCAA16DRF

ViewEx
TWDLCAA16DRF

Select a connection method

Immediate connection

Transfer
PC ==> Controller

Transfer
Controller ==> PC
Cancel

35013826 06/2006

Connect

Line 1: Comparison between the PC and the PLC applications


Line 2: Hardware compatibilty check
Line 3: Security check (if the PLC application is valid), otherwise indicates if
the PLC application is invalid.
The Application Comparison Table is displayed only if both PC and PLC
application are not identical.

47

English

Create/Edit Program

2. If the PC and PLC applications are different, select Transfer PC => Controller.

3. If the controller application is password protected, you are prompted for a


password. Enter the password and select OK to continue the transfer.
4. If the controller is running, a warning box is displayed stating that to continue the
transfer, the controller must be stopped.
If the controller is stopped, the transfer begins. If the controller is running, select
OK to stop the controller and continue the transfer. Select Cancel to close the
box and cancel the transfer.
A warning dialog box is displayed indicating that the contents of the controller
application will be overwritten.
5. Select OK to continue the transfer.
An option can be set to protect the application (see Security Features in the
TwidoSuite Operation Guide - Online Help.)
Note: Symbols and program comments are not transferred to the controller.

48

35013826 06/2006

Run the Program

Use the PLC Soft Control Panel to Run/Stop/Initialize a program that has been
downloaded to the PLC (see Transfer the Program, p. 47.)
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

It features the following command buttons:


z

RUN

STOP

INTIALIZE

3. Click RUN to execute the TwidoSuite application program currently in controllers


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.)

35013826 06/2006

49

English

Create/Edit Program

English

Create/Edit Program

Closing and
Reopening
Control Panel
Dashboard

To close the control panel dashboard:


TWDLC-A24DRF
RUN
Error
Stat

TwidoSuite

To re-open the dashboard, click the button in the top right hand corner of the window
as shown below:
Telemecanique

My project

?
Stop

50

35013826 06/2006

Expanding
Dashboard

English

Create/Edit Program

To expand/reduce the control panel dashboard, click as shown below:


TWDLC-A24DRF
RUN
Error
Stat

TwidoSuite

The dashboard expands upwards as shown below. It may be reduced again by


using the same expansion/reduction button.
Application name:

My Twido

Twido State:

Stopped

Reference:

TWDLC-A24DRF

Firmware version:

3.40

Current Time:
I/O Failure

TRUE

I/O Forced:
Current PLc scanning period:

Address used:

Punit

COM2
L Ac:

NA

L St:

TWDLC-A24DRF
RUN
Error
Stat

TwidoSuite

35013826 06/2006

51

English

Create/Edit Program

Step 7: Debug the Program


Overview

TwidoSuite provides many options to help you debug and adjust your program:
z
z
z
z

CrossReferencing your
Program

Cross-Reference browser
Animation tables
Forcing I/Os
Program animation

Introduction
Cross referencing makes it easier to locate several occurences of the same 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
0 10
01
10
10

Select Program

100

0
0 01 1
010

Program

10
010 0
01 0 1 0 0 0
01 0 1 0 0 0
11 1 0 0 1 0
01 1 0 0
0
01

on the TwidoSuite Steps bar .

Click Cross-Ref browser


on the functions bar to display the cross-reference
browser. The cross-reference browser displays to the right of the program window.
Operand: %I0.0.0

Configure

Symbol: TEST
Section

52

Location

Section 1

Rung 1

Section 1

Rung 1

Operator

35013826 06/2006

How to Cross-Reference your Application


This is a simple four-step procedure:
1. Click the specific program item you want to cross-reference.
Result: The cross-reference table is updated.
2. If you want to change the configuration settings of the cross-referenced object,
click the Configure shortcut in the Cross-Reference browser.
Result: This brings up the hardware or software object configuration screen with
the cursor pointing on the cross-referenced object.
3. Configure the desired object in the hardware or software object configuration
table.
4. Click the
Using Animation
Tables

button to return to the Cross-Reference browser.

Use an animation table to view and adjust program variables online, when the PLC
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.

35013826 06/2006

53

English

Create/Edit Program

Create/Edit Program

English

Elements of an Animation Table


Animation table
management tasks

Column headings

Toolbar

Manage the animation tables

Create a new table


Copy the current table
Rename the current table

Address
%I0.0

Used

Symbol

Current
0

Retained
0

Format
Decimal

%I0.1

Decimal

Delete the current table

%I0.2

Decimal

Import a table

%I0.3

Decimal

Export a table

%I0.4

Decimal

%I0.5

Decimal

%I0.6

Decimal

%I0.7

Decimal

%I0.8

Decimal

10

%I0.9

Decimal

11

%Q0.1

Decimal

12

%Q0.2

Decimal

13

%Q0.3

Decimal

14

%Q0.4

Decimal

15

%Q0.5

Decimal

16

%IW1.0

Decimal

17

%IW1.1

Decimal

18

%IW1.2

Decimal

19

%IW1.3

Decimal

20

%IW1.4

Decimal

Animation tables
Name
My animation table 1
My animation table 2
My animation table 3
My animation table 4
My animation table 5

Address

Animation table

For more details, please refer to Debugging Online via the Program Animation in
TwidoSuite Operation Guide - Online Help.

54

35013826 06/2006

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.
How to Force I/Os in an Animation Table
The animation table tool bar provides Force Commands:
1

z
0

Force to 1

Force to 0

Clear Force

Clear All Force

To force a value to 0 or 1, or clear a forced value:


1. Highlight a variable in the animation table.
2. Click the desired Force to 0, Force to 1 or Clear Force command on the
animation table tool bar.
Result: In the column labeled Current in the animation table, the forced variable
displays with a "F" prefix paired with the forced state "0" or "1": "F 0" or "F 1".
Animating a
Program

You can animate both Ladder and List programs. This section 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
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.
z

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
Setting Preferences, p. 22).

35013826 06/2006

55

English

Create/Edit Program

English

Create/Edit Program

Display/hide the Animation tables


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


on the animation table's tool bar) as shown in the figure below.

(leftmost button
Telemecanique

010
01
10
10

Project

Describe

My project

1000

10
10 0
0 100 1 0 0 0
0 1 1 0 010
1 10 0 0
0 11 1 0 00
0 10

0
10 1
0 10 0 0 0
0 10 1 0 0 0
1
1 10 0 1 0
0 11 0 0 0 0
0 10 1

0
0 01 1
0 10

Program

Report

Program

Configure
Ladder

SR

Hex
Dec

100%

?
Stop

Debug
Connect

abc

%TM %C

10
010 0
01 01 0 0 0
01 01 0 0
0
11 1 0 0 1 0
01 1 0 0
0
01

1 LD

Animate
the program
Manage
animation tables
Check
PLC

Rung 0
%I0.0

%I0.1

%Q0.0

Monitor
hardware
configuration
Monitor
software
configuration

%I0.3

Monitor
described
configuration

Address
%M0

%Q0.1

%I0.0

Used

My animation table 1

Symbol

Current

Monitor
the behavior

Retained

Format
Decimal

Decimal

Decimal

Disconnect

<EXECUTION WARNING> : NO START IN RUN WAS


TwidoSuite

56

35013826 06/2006

English

Create/Edit Program

Step 8: Manage the Program Report


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
TwidoSuite Steps bar.

How to Configure
the Report

on the

The report manager provides a tree-like structure view of the report items and
subitems that can be included in the report by checking the appropirate boxes.
Contents
Repaginate

Folder
Folder name

Station

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.

35013826 06/2006

57

English

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
z No text
z Page number/Total number of pages
z Page number
z TwidoSuite version

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.

58

35013826 06/2006

English

Monitoring an Application

Monitoring an Application
How to Start the
Monitoring Utility

To start the TwidoSuite Monitoring Utility:


1. Open the Application Launcher by clicking the icon located on your PC desktop.

TwidoSuite

Result: The Application Launcher dialog box appears as shown below.

New

Programming Mode
Monitoring Mode

English
Franais

PLC Firmware Update


Start TwidoSoft

2. From TwidoSuite Application Launcher, click Monitoring Mode

35013826 06/2006

59

English

Monitoring

Monitoring
Features

Select Check PLC:


Select a task
See memory information

Controller Status

Adjust RTC Time

RAM Executable

Configure Real Time Clock

Date and time of the last top

RAM Protected

See Ethernet Statistics

I/O Forced

Modify modem Configuration

Potentiometers

Potentiometer adjustment point 0


Potentiometer adjustment point 1
Scan Time

Maximum (ms)

Modify modem configuration


The configuration that you will enter will be
substitued for the controller with the configuration defined by the application.
Modem:

...

TD-33/V90

Reset Hayes Command:


ATEOQ1&B1&DO&HO&IO&R
1&SOSO

Current (ms)

Minimum (ms)

Watchdog time out


Controller Real Time Clock

Date (dd/mm/yy)

Time (hh:mm:ss)

RTC Correction

Modem connected

Name
Command

Apply

1.
2.
3.
4.
5.

Cancel

The Monitoring Utility allows you to perform the following tasks:


See memory information
Set RTC time
Configure RTC correction factor
See Ethernet statistics
Modify modem configuration

For details on how to use the various monitoring features, please refer to Hardware
Monitoring chapter in TwidoSuite Operation Guide - Online help.

60

35013826 06/2006

TwidoSuite V1.0
Logiciel de programmation
Mise en route
06/2006

www.telemecanique.com

Franais

Franais

Table des matires

A propos de ce manuel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapitre 1

Installation et lancement du programme . . . . . . . . . . . . . . . . . . 7


Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Configuration systme requise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Installation et dsinstallation du logiciel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Enregistrement de TwidoSuite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Chapitre 2

Lancement de TwidoSuite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Lancement du programme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Chapitre 3

Mise niveau du microprogramme Twido . . . . . . . . . . . . . . . . 13


Mise jour du microprogramme de l'automate Twido . . . . . . . . . . . . . . . . . . . . 13

Chapitre 4

Interface TwidoSuite. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Fentre principale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Dfinition des prfrences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Chapitre 5

Cration et dition d'un programme . . . . . . . . . . . . . . . . . . . . . 23


Prsentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Etape 1 : Cration d'un projet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Etape 2 : Description de l'application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Etape 3 : Dfinition du schma de cblage des E/S de votre application . . . . . .
Etape 4 : Configuration des ressources matrielles et logicielles . . . . . . . . . . . .
Etape 5 : Ecriture du programme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Etape 6 : Enregistrement, transfert et excution du programme. . . . . . . . . . . . .
Etape 7 : Mise au point du programme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Etape 8 : Gestion du rapport du programme. . . . . . . . . . . . . . . . . . . . . . . . . . . .

Chapitre 6

23
25
27
30
32
37
47
53
58

Surveillance d'une application . . . . . . . . . . . . . . . . . . . . . . . . . 61


Surveillance d'une application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

Franais

Franais

A propos de ce manuel

Prsentation
Objectif du
document

Ce document fournit des informations et des instructions caractristiques sur la


configuration et le fonctionnement du logiciel de programmation TwidoSuite.

Champ
d'application

Les donnes et illustrations fournies dans cette documentation ne sont pas


contractuelles. Nous nous rservons le droit de modifier nos produits conformment
notre politique de dveloppement permanent. Les informations prsentes dans ce
document peuvent faire l'objet de modifications sans pravis et ne doivent pas tre
interprtes comme un engagement de la part de Schneider Electric.

Document
consulter
Titre

Rfrence

Guide de rfrence du matriel d'automates programmables Twido - Bases compactes et modulaires 3501323600
Guide de rfrence du matriel d'automates programmables Twido - Modules d'E/S TOR

3501325200

Guide de rfrence du matriel d'automates programmables Twido - Modules d'E/S analogiques

3501326100

Guide de rfrence du matriel d'automates programmables Twido - Modules de communication

3501326800

Guide de programmation des automates programmables Twido

3501322700

Aide en ligne du logiciel de programmation TwidoSuite

Aide en ligne de l'assistant Windows Executive Loader pour Twido

35013826 06/2006

A propos de ce manuel

Avertissements
lis au(x)
produit(s)

Schneider Electric ne saurait tre tenu responsable des erreurs pouvant figurer
dans le prsent document. Merci de nous contacter pour toute suggestion
d'amlioration ou de modification ou si vous avez trouv des erreurs dans cette
publication.

Franais

Aucune partie du prsent document ne peut tre reproduite sous quelque forme ou
par quelque moyen que ce soit, lectronique ou mcanique (photocopiage inclus),
sans autorisation crite expresse de Schneider Electric.
Copyright Schneider Electric 2006. Tous droits rservs.
Toutes les rglementations de scurit pertinentes locales doivent tre observes
lors de l'installation et de l'utilisation du prsent produit. Pour des raisons de scurit
et pour garantir une conformit aux donnes systme documentes, seul le
fabricant est habilit effectuer des rparations sur les composants.
Lorsque les automates sont utiliss pour des applications prsentant des exigences
de scurit technique, suivez les instructions appropries.
La non-utilisation du logiciel Schneider Electric ou du logiciel approuv avec nos
produits peut entraner des blessures, des dommages ou des dysfonctionnements.
Le non-respect du prsent avertissement relatif au produit peut entraner des
blessures ou des dommages matriels.
Commentaires
utilisateur

Envoyez vos commentaires l'adresse e-mail techpub@schneider-electric.com

35013826 06/2006

1
Franais

Installation et lancement du
programme

Introduction
Vue d'ensemble

Le logiciel de programmation TwidoSuite peut s'excuter sur diffrents systmes


d'exploitation Windows 2000/NT/XP. Le prsent chapitre dcrit la configuration
informatique requise pour installer et excuter le logiciel. Vous y trouverez
galement des informations concernant l'installation, la dsinstallation et le
lancement du logiciel.

Contenu de ce
chapitre

Ce chapitre contient les sujets suivants :

35013826 06/2006

Sujet

Page

Configuration systme requise

Installation et dsinstallation du logiciel

Enregistrement de TwidoSuite

10

Installation et lancement du programme

Configuration systme requise

Franais

Configuration
matrielle

Votre PC doit respecter la configuration matrielle suivante pour excuter le logiciel


de programmation TwidoSuite :
Matriel

Minimum

Ordinateur

Processeur Pentium 466 MHz

RAM

128 Mo

Espace disque disponible

100 Mo

L'installation du logiciel requiert un lecteur de CD-ROM.


Configuration
logicielle

Le logiciel de programmation TwidoSuite exige l'un des systmes d'exploitation


suivants :
Systme
d'exploitation

Edition/Service Pack

Windows NT 4.0

Service pack 6 ou version Sous Windows NT, Windows 2000 ou


suprieure
Windows XP, vous devez disposer de
Service pack 1 ou version droits d'administration pour installer le
logiciel de configuration TwidoSuite.
suprieure

Windows 2000
Windows XP

Remarques

Service pack 1 ou version


suprieure

Le navigateur requis est Microsoft Internet Explorer 4.01 (ou version suprieure).
Connexion un
automate Twido

Le logiciel de programmation TwidoSuite s'excute sur un PC connect au port de


programmation RS-485 de l'automate Twido. Vous devez utiliser le cble srie de
programmation TSXPCX1031 livr avec le logiciel.
Pour plus d'informations sur le matriel de connexion requis, reportez-vous au
Guide de rfrence du matriel d'automates Twido - Bases compactes et
modulaires (3501323600).

35013826 06/2006

Installation et lancement du programme

Installation et dsinstallation du logiciel


Avant d'installer le logiciel de programmation TwidoSuite :
z

Installation du
logiciel

dsinstallez toute version antrieure du logiciel de programmation TwidoSuite (si


vous possdez une version du logiciel de programmation TwidoSuite,
dsinstallez-la galement pour que TwidoSuite soit compatible avec les projets
d'automatisation crs avec n'importe quelle version de TwidoSuite) ;
fermez toutes les applications Windows et tout logiciel anti-virus.

Pour installer le logiciel de programmation TwidoSuite :

Etape Action

Rsultat

Insrez le CD TwidoSuite dans le lecteur


de CD-ROM de votre ordinateur.

Si la fonction AUTORUN est active, le programme d'installation


dmarre automatiquement et vous pouvez passer l'tape 4.
Sinon, passez l'tape 2.

Si l'installation ne dmarre pas


automatiquement, cliquez sur
Dmarrer Excuter.

La bote de dialogue Excuter s'affiche.

Entrez [Lecteur:]\setup.exe, puis


cliquez sur OK.

L'cran de slection de la langue s'affiche.

Slectionnez une langue, puis cliquez


sur OK.

Un message vous propose d'enregistrer votre logiciel.

Pour enregistrer le logiciel, cliquez sur


Oui. Pour utiliser le logiciel sans
l'enregistrer, cliquez sur Non.

Toute version non enregistre du logiciel est exploitable pendant une


dure limite de 30 jours. Vous devez dsinstaller la version expire
du logiciel avant d'en installer une nouvelle. Pour utiliser cette
nouvelle installation du logiciel, vous devez cette fois l'enregistrer.

Slectionnez dans la liste des langues


Le logiciel sera install la fois dans la langue slectionne et
disponibles une langue pour l'installation. dans la version anglaise. Vous pourrez par la suite excuter le
logiciel dans l'une ou l'autre de ces langues en slectionnant la
langue d'excution partir du Lanceur d'applications TwidoSuite.

Suivez les instructions d'installation qui


s'affichent.

Dsinstallation
du logiciel

35013826 06/2006

Une fois le logiciel install, une icne apparat sur


le bureau. Cliquez deux fois sur cette icne pour
dmarrer le logiciel :

TwidoSuite

Pour dsinstaller de votre ordinateur le logiciel de programmation TwidoSuite,


utilisez la commande suivante : Dmarrer Panneau de configuration
Ajout/Suppression de programmes.

Franais

Prrequis

Installation et lancement du programme

Enregistrement de TwidoSuite
Introduction

Consacrez quelques minutes enregistrer ce logiciel et devenez un membre de la


communaut d'automatisation Schneider.

Franais

L'enregistrement est gratuit et vous permet d'tre averti des dernires nouveauts
de produit, ainsi que des mises niveau des logiciels et microprogrammes pour
votre automate Twido.
Note : Ce logiciel comporte une priode d'essai gratuite de 30 jours. Aprs
l'expiration de la priode d'essai, vous devez vous enregistrer pour pouvoir
continuer utiliser ce logiciel.

Comment
enregistrer
TwidoSuite

10

1. Cliquez sur Divers


.
2. Cliquez sur A propos de dans la barre des tches.
3. Renseignez le formulaire Licence, notamment les informations "Socit",
"Utilisateur", "Numro de srie", et cliquez sur Maintenant.
Rsultat : L'Assistant d'enregistrement de TwidoSuite dmarre.
4. Suivez les instructions l'cran pour enregistrer votre logiciel TwidoSuite.
Remarque : Vous pouvez effectuer l'enregistrement de quatre manires
diffrentes : par Internet, tlphone, tlcopie ou courrier lectronique.
5. Lisez les Conditions de service. Il est ncessaire que vous les acceptiez.
6. Soumettez l'enregistrement.

35013826 06/2006

2
Franais

Lancement de TwidoSuite

Lancement du programme
Comment lancer
le programme

Vous pouvez dmarrer le programme via le Lanceur d'applications TwidoSuite :


z soit l'aide du chemin Dmarrer Programmes TwidoSuite Lanceur
d'applications ;
z ou partir du raccourci bureau du Lanceur d'applications install avec le
programme :

TwidoSuite

Options du
Lanceur
d'applications

Le Lanceur d'applications reprsente le centre de lancement de la suite logicielle


TwidoSuite.
L'application TwidoSuite est disponible dans plusieurs couples de langues partir
du site de tlchargement Telemecanique :
z anglais-franais
z anglais-allemand
z anglais-espagnol
z anglais-italien
z anglais-chinois (simplifi)
Selon le couple de langues install, vous pouvez excuter TwidoSuite en anglais
(par dfaut) ou dans une autre langue.
Utilisez le Lanceur d'applications pour dmarrer TwidoSuite en :
Mode de programmation
z Mode de surveillance
z Mise jour du Firmware de l'automate
z Lancement de TwidoSoft (disponible uniquement si TwidoSoft est install sur
votre PC)
z

35013826 06/2006

11

Lanceur d'applications TwidoSuite

Franais

Fonctions
supplmentaires

Utilisez les fonctions supplmentaires pour :


New

voir les Nouveauts

afficher la Dmonstration vido

Note : Par dfaut, la dmonstration vido s'affiche au dmarrage de TwidoSuite.


Pour la dsactiver, dslectionnez la case "Afficher la vido au dmarrage" en bas
de l'cran vido.

Lanceur
d'applications
TwidoSuite

La figure suivante prsente un exemple d'cran du Lanceur d'applications


TwidoSuite Application pour le couple de langues anglais-franais :

Nouveau
Nouveau

Mode de programmation
Mode de surveillance

Anglais
Franais

12

Mise jour du Firmware de


l'automate
Dmarrer TwidoSoft

35013826 06/2006

3
Franais

Mise niveau du microprogramme Twido

Mise jour du microprogramme de l'automate Twido


Prsentation
Note : Le microprogramme est dj install dans l'automate
Twido Telemecanique. La procdure de chargement de nouveaux
microprogrammes est seulement ncessaire si une mise jour est effectue.
Avant de remplacer le microprogramme, lisez attentivement les instructions
correspondantes et contactez le support Telemecanique.
Lorsque le logiciel TwidoSuite est connect l'automate, la version du
microprogramme utilise pour votre automate Twido peut tre trouve via le
bouton Divers :

?
L'assistant Windows Executive Loader pour Twido est un assistant fonctionnant
sous Windows qui vous guide tout au long des tapes ncessaires la mise jour
de l'excutif du microprogramme de votre automate programmable
Twido Telemecanique. L'excutif du microprogramme est le systme d'exploitation
qui lance vos applications et gre le fonctionnement de l'automate.
L'assistant fournit une interface utilisateur intuitive qui, d'un simple clic, vous guide
dans la procdure de mise jour. Il vous indique galement comment tlcharger
rapidement la version la plus rcente de l'excutif de votre automate.
Reportez-vous au Guide utilisateur de l'assistant Executive Loader pour obtenir des
instructions dtailles. Ce guide est disponible depuis l'aide en ligne de l'utilitaire
Exec Loader.
Ouverture de
l'assistant Exec
Loader

35013826 06/2006

Vous pouvez ouvrir l'assistant Executive Loader partir du Lanceur d'applications


TwidoSuite en slectionnant l'option Mise jour du Firmware de l'automate (voir
Options du Lanceur d'applications, p. 11).

13

Mise niveau du microprogramme

Franais

Nouveau
Firmware (tapes
de base)

Quatre tapes sont ncessaires pour mettre niveau votre excutif. L'assistant
affiche une fentre chaque tape et une aide en ligne est disponible pour chacune
des tapes. Le tableau suivant rsume chaque tape :
Etape

Fentre

Fonction

Accueil

Prsente l'assistant Executive Loader.

Paramtres

Slectionne le bon fichier excutif transfrer vers votre


automate, ainsi que le port srie PC de communication avec
l'automate.

Proprits fichier et
unit

Compare les ID matriel et les informations de version du


microprogramme pour le fichier excutif et l'automate.

Droulement du
transfert

Contrle le transfert du fichier excutif vers l'automate.

Note : Le chargement du microprogramme ne doit tre interrompu sous aucun


prtexte sans quoi le module ne sera plus accessible, y compris via l'assistant
Executive Loader. Assurez-vous que ni la connexion de communication ni
l'alimentation d'entre principale sont dconnectes ou dsactives, et ne
dsactivez pas la procdure en utilisant Annuler.

14

35013826 06/2006

Mise niveau du microprogramme

Le tableau suivant numre tous les priphriques Twido pris en charge par
l'assistant Executive Loader :
Module de
l'automate

Description

TWDLCAA10DRF

Base automate compacte, 230 V ca(1), 6 entres (24 V cc), 4 sorties


(relais 2 A). Borniers vis non dbrochables.

TWDLCDA10DRF

Base automate compacte, 24 V cc, 6 entres (24 V cc), 4 sorties


(relais 2 A). Borniers vis non dbrochables.

TWDLCAA16DRF

Base automate compacte, 230 V ca(1), 9 entres (24 V cc), 7 sorties


(relais 2 A). Borniers vis non dbrochables.

TWDLCDA16DRF

Base automate compacte, 24 Vcc, 9 entres (24 Vcc), 7 sorties (relais


2 A). Borniers vis non dbrochables.

TWDLCAA24DRF

Base automate compacte, 230 V ca(1), 14 entres (24 V cc), 10 sorties


(relais 2 A). Borniers vis non dbrochables.

TWDLCDA24DRF

Base automate compacte, 24 V cc, 14 entres (24 V cc), 10 sorties


(relais 2 A). Borniers vis non dbrochables.

TWDLCAA40DRF

Base automate compacte, 230 V ca(1), 24 entres (24 V cc), 2


transistors (24 V cc), 14 sorties relais (2 A), RTC intgr, bornier vis
non dbrochable.

TWDLCAE40DRF

Base automate compacte, 230 V ca(1), 24 entres (24 V cc), 2


transistors (24 V cc), 14 sorties relais (2 A), RTC intgr, Ethernet
100Base Tx, bornier vis non dbrochable.

TWDLMDA20DUK

Base automate modulaire 12 entres (24 Vcc), 8 sorties (transistor


sink 0,3 A). Connecteurs MIL dbrochables(2).

TWDLMDA20DTK

Base automate modulaire 12 entres (24 V cc), 8 sorties (transistor


source 0,3 A). Connecteurs MIL dbrochables(2).

TWDLMDA20DRT

Base automate modulaire 12 entres (24 Vcc), 8 sorties (2 sorties


transistors sources 0,3 A et 6 sorties relais 2 A). Borniers vis
dbrochables.

TWDLMDA40DUK

Base automate modulaire 24 entres (24 Vcc), 16 sorties transistor


sink 0,3 A. Connecteurs MIL dbrochables(2).

TWDLMDA40DTK

Base automate modulaire 24 entres (24 Vcc), 16 sorties (transistor


source 0,3 A). Connecteurs MIL dbrochables(2).

Remarque 1 : Les produits dont la spcification indique une alimentation 230 V ca sont
compatibles avec le 120/230 V ca.
Remarque 2 : Les connecteurs MIL sont galement dsigns sous le terme
connecteurs HE10.

35013826 06/2006

15

Franais

Automates
Twido pris en
charge

Franais

Mise niveau du microprogramme

16

35013826 06/2006

4
Franais

Interface TwidoSuite

Introduction
Vue d'ensemble

Ce chapitre dcrit le logiciel TwidoSuite :


z
z

Fentre principale de l'espace de travail


Paramtres des prfrences

Cette section dcrit galement le processus de cration d'un projet TwidoSuite (voir
Barre des tapes/sous-tapes d'une application, p. 20).
Contenu de ce
chapitre

35013826 06/2006

Ce chapitre contient les sujets suivants :


Sujet

Page

Fentre principale

18

Dfinition des prfrences

22

17

Interface

Fentre principale

Franais

Espace de travail
TwidoSuite

Barre des sous-tapes de la


section Programme

Barre des tapes d'une


application

Barre des tches

Telemecanique

0 10
01
10
10

Projet

Description

10 0

Mon projet

0
0 01 1
010

Programme

10
010
0 1 0 1 0 00
0
0 1 0 1 0 01 0
11 1 0 0 0
01 0 1 0 0
01

0
101
010 1 0 0 0
010 0 0 0
110 1
0010
011 0 0 0
010 1

Rapport

Programme

Configurer

10
10 0
0 1 00 1 0 0 0
01 0 1 0 0
0
11 0 0 1 0
0 11 1 0 0
010

Mise au point
Configurer
le matriel
Configurer
les donnes
Configurer
le
comportement
Dfinir
les protections

TWDLMDA20DTK

Description du module

Rfrence
Description

Configuration du module.

Appliquer

TWDLMDA20DTK
Repre 0
Base automate modulaire 12 entres (24 V cc), 8 sorties
(Transistors source 0,3 A). Connecteurs MIL dbrochables.
Annuler

Tableau des entres

Utilis

Repre
%I0.0
%I0.1
%I0.2
%I0.3
%I0.4

Symbole Utilis par

Filtrage
3 ms
3 ms
3 ms
3 ms
3 ms

Mmoris Run/Stop ? Dclenchement Haute Priorit Numro SR


Non utilis
Non utilis
Non utilis

Tableau des sorties

Utilis Repre
%Q0.0
%Q0.1
%Q0.2
%Q0.3

Symbole

Etat ?

Utilis par

TwidoSuite

Zone de liste
Barre d'accs rapide
d'erreurs
Editeurs et visualisateurs

18

Barre des fonctions

35013826 06/2006

Interface

Affiche les boutons des 4 tapes d'une application


TwidoSuite (icnes et titres), Nom Projet, Prfrence,
Divers et le bouton permettant d'accder l'aide.

Barre des sous-tapes de


la section Programme :

Affiche les 3 sous-tapes de la section Programme


(Configurer, Programme, Mise au point). Cette barre
apparat uniquement lorsque l'tape Programme est
slectionne.

Barre des tches :

Permet d'accder toutes les tches que vous pouvez


excuter sous l'tape ou la sous-tape de l'application
slectionne.

Barre des fonctions :

Permet d'accder aux fonctions particulires associes la


tche slectionne.

Barre d'accs rapide :

Permet d'afficher tout moment les commandes Prcdent/


Suivant et les raccourcis Enregistrer et Analyser le
programme.

Franais

Barre des tapes d'une


application :

Editeurs et visualisateurs : Les diteurs et les visualisateurs sont des fentres de


TwidoSuite qui servent organiser les commandes de
programmation et de configuration et qui permettent de
dvelopper efficacement les applications.
Barre de la liste d'erreurs :

Affiche des informations sur l'application, l'automate et le


programme TwidoSuite.

Options
d'affichage
Agrandit la fentre principale.
Rduit la fentre principale.
Ferme l'application TwidoSuite.
Bouton d'ancrage pour la barre des tapes de l'application.
Redimensionne la fentre principale.

35013826 06/2006

19

Interface

Barre des tapes/


sous-tapes
d'une application

Projet
Il s'agit de la premire tape excuter lors de la cration/l'ouverture d'une
application. Le nom de l'application ouverte apparat dans le coin suprieur
droit de la barre des tapes/sous-tapes de l'application.

Franais

Description
Il s'agit de la deuxime tape excuter lors de la construction d'une
application d'automatisation Twido. L'tape Description vous permet de
slectionner des ressources matrielles dans le catalogue et de dcrire
l'interconnexion des priphriques via des rseaux.
0 10
01
10
10

100

0
0 01 1
0 10

Programme
Il s'agit de la troisime tape excuter lors de la configuration d'une
application Twido. Elle permet d'accder aux 3 sous-tapes suivantes :
1.Configurer
0 10
010 1
0 00
Cette sous-tape vous permet de visualiser/paramtrer :
0
010 1
00
110 1
0 10
zla configuration matrielle de la base automate, des
011 0 0 00
010 1
modules d'expansion, des modules de communication et
des options matrielles,
zla configuration des objets de donnes pour les objets
simples, les blocs fonctions, les objets d'E/S et les objets
professionnels,
zle comportement de l'automate,
zle programme d'application/les protections par mot de
passe.
2.Programme
10
10 0
0 1 00 1 0 0 0
Ouvre l'Editeur de programme par dfaut (Ladder ou List)
0 1 0 1 0 01 0
11 10 0 0
01 1 0 0
et permet d'accder l'Editeur de symboles.
0 10
10
10 0
0 1 00 1 0 0 0
0 1 0 1 0 01 0
11 10 0 0
01 1 0 0
0 10

3.Mise au point
Permet de grer la connexion entre TwidoSuite et
l'automate et d'accder l'Editeur de tables d'animation
et aux tches de surveillance.

Rapport
Il s'agit de la dernire tape excuter lors de la configuration d'une
application. Cette tape ouvre la fentre Gestionnaire de rapport dans
laquelle vous pouvez slectionner les composants du rapport, configurer les
options d'impression et exporter le rapport de l'application au format HTML.

20

35013826 06/2006

Interface

Divers
Permet d'accder l'Aide gnrale et aux informations contenues dans
A propos de TwidoSuite.

Franais

Prfrence
Ouvre la fentre Prfrences de l'utilisateur.

Affiche les pages d'aide rapide relative aux tches.

Barre d'accs
rapide
Revient la tche prcdente, telle que vous l'avez quitte.

Passe la tche suivante, telle que vous l'avez quitte.

Enregistre le projet en cours.

Analyse le programme.

35013826 06/2006

21

Interface

Dfinition des prfrences

Franais

Affichage des
prfrences

Fentre
Prfrences

Cliquez sur l'icne Prfrence


dans la barre des tapes pour afficher la
fentre Prfrences illustre ci-dessous.
Prfrences

Appliquer

Rpertoire de projet par dfaut

Rpertoire :

Restauration

C:\Program File\Schneider Electric\TwidoSuite\Mon projet

Aucun

Projets par dfaut

Schneider par dfaut


Personnaliss
Editeur de programme par dfaut

C:\Program File\Schneider Electric\TwidoSuite\Mon projet

Ladder
List

Sauvegarde automatique du projet

Toutes les

Oui

minutes

15

Non
Couleur d'arrire-plan par dfaut
Clair

Sombre

Image du projet par dfaut

Image par dfaut

Niveaux fonctionnels par dfaut des


applications

Automatique

Gestion automatique
Le plus haut

Manuelle

Gestion manuelle

C:\Documents and Settings\Administrateur\Mes documents\

Image personnalise

Le plus bas
Niveau 1.0
Niveau 2.0
Niveau 2.5
Niveau 3.0
Gestion des connexions
Nom

Type de

IP/Tlphone P-Unit/Repre

Dbit

Parit

Bits

Timeout Break timeout

COM1

Srie

COM1

P-Unit

5000

20

COM2

Srie

COM1

P-Unit

5000

20

Ma connexion 1

Srie

192.168.1.1

Direct

5000

20

Connexion Modem

Ethernet

xxxxxxxxxx

5000

20

19200

Aucune

Ajouter

Modifier

Supprimer

Personnalisation des prfrences d'un projet


z Dfinissez le rpertoire par dfaut du projet.
z Dfinissez les projets par dfaut/personnaliss.
z Dfinissez l'Editeur de programme par dfaut (Ladder ou List).
z Dfinissez les options de sauvegarde automatique.
z Dfinissez la couleur d'arrire-plan
z Dfinissez l'image par dfaut/personnalise du projet.
z Slectionnez la mthode de gestion des niveaux fonctionnels (automatique/
manuelle) mettre en uvre au dmarrage d'un projet.
z Ajoutez/mettez jour/supprimez des connexions l'aide du tableau Gestion des
connexions.

22

35013826 06/2006

5
Franais

Cration et dition d'un


programme

Prsentation
Vue d'ensemble

Cette section vous explique comment crer et diter un programme avec


TwidoSuite.
Vous devez ouvrir le Lanceur d'applications pour dmarrer TwidoSuite. Cliquez sur
l'icne situe sur le bureau de votre PC.

TwidoSuite

La bote de dialogue Lanceur d'applications s'affiche, comme illustr ci-dessous :


Nouveau

Mode de programmation
Mode de surveillance

English
Franais

35013826 06/2006

Mise jour du Firmware


de l'automate
Dmarrer TwidoSoft

23

Cration/Edition de programme

Franais

Le Lanceur d'applications TwidoSuite vous permet d'accder aux modes suivants :


z Mode de programmation TwidoSuite
z Mode de surveillance TwidoSuite
z Utilitaire de mise jour du Firmware de l'automate
z Programme d'application TwidoSoft
Exemple
d'application

Les sections suivantes vous expliquent, tape par tape, les notions fondamentales
requises pour la programmation avec TwidoSuite, commencer par l'exemple
d'application suivant : gestion du niveau de l'eau d'un rservoir utilis pour
l'irrigation.

Contenu de ce
chapitre

Ce chapitre contient les sujets suivants :


Sujet
Etape 1 : Cration d'un projet

24

Page
25

Etape 2 : Description de l'application

27

Etape 3 : Dfinition du schma de cblage des E/S de votre application

30

Etape 4 : Configuration des ressources matrielles et logicielles

32

Etape 5 : Ecriture du programme

37

Etape 6 : Enregistrement, transfert et excution du programme

47

Etape 7 : Mise au point du programme

53

Etape 8 : Gestion du rapport du programme

58

35013826 06/2006

Cration/Edition de programme

Comment
dmarrer le
Gestionnaire de
projets

Cliquez sur l'icne Projet


dans la barre des tapes de l'espace de travail
TwidoSuite afin d'afficher la fentre Projet et de crer, ouvrir ou modifier un projet
TwidoSuite.

Fentre Projet
Telemecanique

0 10
01
10
10

Projet

10 0

Mon projet

0
0 01 1
010

Description Programme

Rapport

Informations projet

Gestion de projet
Mettre jour les informations projet

Informations fichier

Crer un nouveau projet

Projet

Mon projet

Ouvrir un projet

Rpertoire

C:\Program File\Schneider Electric\TwidoSuite\...

Ouvrir un projet rcent


Sauvegarder le projet courant
Fermer le projet courant
Crer un nouveau projet
Dans cet cran, vous pouvez :
-choisir le nom du projet et entrer les
informations projet l'aide du
formulaire ;
- attacher une photo au projet dans
l'onglet "Image".

Informations projet
Auteur

Nom de l'auteur

Service

Service

Index

Version

Proprit industrielle
Commentaire

XYZ

Description

Image

Saisissez ici vos commentaires.

- Cliquez sur "Crer" pour crer le


projet.

Crer

TwidoSuite

Volet Tches

35013826 06/2006

Volet principal des informations projet

25

Franais

Etape 1 : Cration d'un projet

Cration/Edition de programme

Franais

Comment crer
un projet

26

1. Cliquez sur Crer un nouveau projet dans le volet "Gestion de projet".


2. Saisissez un nom explicite pour le projet dans la section Informations fichier.
Un nom de projet valide peut contenir au maximum 36 caractres alphanumriques (les espaces sont autoriss).
3. Indiquez le nouveau chemin du rpertoire de projet ou utilisez le chemin par
dfaut. Dans la zone de texte Rpertoire, saisissez directement le chemin du
rpertoire de stockage ou cliquez sur le bouton Parcourir situ droite de la zone
de texte Rpertoire afin de localiser le dossier o les fichiers de projet sont
enregistrs.
4. Entrez les informations relatives la cration du projet dans la section
Informations fichier : nom de l'Auteur, nom du Service, numro de version du
projet dans le champ Index et Proprit industrielle.
5. Dans l'onglet Commentaires, saisissez le nom du projet et une courte
description. Utilisez la barre de dfilement droite pour lire l'intgralit du texte.
6. Si vous mettez jour un projet existant, cliquez sur l'onglet Description pour
afficher une reprsentation miniature de l'architecture du systme (voir Etape 2 :
Description de l'application, p. 27).
7. Cliquez sur l'onglet Image, puis sur Modifier pour personnaliser l'image du projet
ou utiliser l'image par dfaut. L'image du projet est imprime sur la page de
couverture du rapport du projet (voir Etape 8 : Gestion du rapport du programme,
p. 58). Un fichier image valide doit tre au format .BMP.
8. Cliquez sur Crer pour enregistrer vos modifications dans le nouveau fichier de
projet.
Remarque : Si vous mettez jour les informations d'un projet existant, cliquez
sur Appliquer pour enregistrer les modifications.

35013826 06/2006

Cration/Edition de programme

Comment lancer
la fonction
Description

Fentre
Description

Cliquez sur l'icne Description


dans la barre des tapes de l'espace de
travail TwidoSuite, afin d'afficher la fentre du mme nom.
La fentre de description permet de dclarer les lments du systme d'automatisation Twido en slectionnant des ressources matrielles dans le catalogue et en
dcrivant l'interconnexion des quipements via des rseaux.
Volet Nomenclature

Barre d'outils Description

Volet Catalogue de produits


Telemecanique

0 10
01
10
10

Projet

Mon projet

1 0 00

10
0 00
1
01

Description Programme

Rapport

Catalogue

1x2 paysage

Nomenclature

Dposer

Exporter
Famille Rfrence n...
Twido
Twido
Twido
Twido

TWDLMDA20DTK
TWDDDI8DT
TWDDAI8DT
TWDAMI2HT

Bases
Modules d'expansion

Q..

Modules d'expansion

1
2
1
1

TWDDDI8DT
TWDDAI8DT
TWDDDI16DT
TWDDDI16DK
TWDDDI32DK
TWDDMM8DRT
TWDDMM24DRF
TWDNOI10M3
TWDDDO8UT
TWDDDO8TT

TWDDDI8DT
Module d'expansion avec 8
entres (24 Vcc), bornier vis
dbrochable, 1 ligne commune
transistor logique ngative et
logique positive. (25 mA)

Page 1

REP

TwidoSuite

Volet du graphique

Elments de la fentre Description :


z Volet du graphique : le volet dans lequel vous laborez la reprsentation
graphique de votre application en ajoutant des lments matriels. Faites glisser
des lments matriels du volet du catalogue vers le volet du graphique pour
laborer peu peu votre systme d'automatisation. Le volet du graphique vous
permet de dclarer les rseaux et l'interconnexion des quipements.
35013826 06/2006

27

Franais

Etape 2 : Description de l'application

Cration/Edition de programme
z

Barre d'outils Description : cette barre d'outils vous permet de grer le volet du
graphique et les lments.

Franais

1x2 paysage

1.
2.
3.
4.
5.
6.
7.

Comment dcrire
votre application

Slectionner le format de page


Zoom avant
Zoom arrire
Slectionner un lment graphique
Ajouter une remarque
Configurer un lment
Effacer un lment

Volet Catalogue de produits : ce volet flottant affiche le catalogue des lments


matriels Twido, notamment des automates compacts et modulaires, des
modules d'expansion, des options et des lments rseaux (affichs sous la
forme d'une arborescence).
La partie infrieure du volet contient une brve description de l'lment matriel
slectionn.

Volet Nomenclature : ce volet flottant affiche une nomenclature des lments


matriels constituant le projet en cours. Vous pouvez cliquer sur Exporter pour
enregistrer la nomenclature dans un fichier au format .CSV.

1. Glissez-dplacez les lments du catalogue dans le volet du graphique, en


commenant par la base automate (compacte ou modulaire), puis en ajoutant les
options et les modules d'expansion pris en charge par l'automate, conformment
votre application.
2. Cliquez deux fois sur la reprsentation graphique des ports de communication
dans le volet du graphique afin de les configurer.
3. Glissez-dplacez dans le volet du graphique les lments rseaux disponibles
dans le volet Catalogue.
4. Slectionnez un port de communication Twido et dplacez le curseur pour
dessiner les liaisons rseau entre la base automate Twido et les lments du
rseau. Connectez les lments entre eux de la mme manire pour construire
les liaisons rseau.
Note : Pour obtenir plus d'informations sur la description des applications, la
dclaration des lments du rseau et la configuration des rseaux, consultez
l'Aide en ligne du Guide d'exploitation TwidoSuite.

28

35013826 06/2006

Cration/Edition de programme

Dans cet exemple, vous serez amen :


1. dposer une base automate compacte TWDLCA10DRF 10 E/S dans la
fentre Description ;
2. ajouter une fonction RTC (horodateur) l'automate TWDLCA10DRF dans la
fentre Description, tel qu'indiqu dans la figure ci-dessous.

Franais

Exemple de
systme
d'irrigation
automatique

Telemecanique

010
01
10
10

Projet

Description

100

Mon projet

0
0 01 1
0 10

Programme

Rapport

Catalogue

1x2 paysage

Nomenclature

Dposer

Exporter

Bases compactes
Famille Rfrence n...
Q..
Twido TWDLCAA10DRF 1
Twido TWDXCPRTC
1

TWDLCAA10DRF
TWDLCDA10DRF
TWDLCAA16DRF
TWDLCDA16DRF
TWDLCAA24DRF
TWDLCDA24DRF
TWDLCAA40DRF
TWDLCAE40DRF

TWDLCAA10DRF
Base automate compacte,
230 V ca, 6 entres 24 V cc,
4 sorties relais 2 A.
Borniers non dbrochables.

Page 1

REP

TWDXCPRTC

35013826 06/2006

TWDLCAA10DRF

TwidoSuite

29

Cration/Edition de programme

Franais

Etape 3 : Dfinition du schma de cblage des E/S de votre application


Introduction

Avant de programmer votre application, vous devez dfinir le schma de cblage de


ses E/S.

Schma de
cblage des E/S

Il est recommand de dessiner une esquisse du cblage des E/S de votre


application.
Voici le schma de cblage des E/S pour le systme d'irrigation automatique :
Entres
z %I0.0 entre dans le rservoir via le capteur de niveau haut
z %I0.1 entre dans le rservoir via le capteur de niveau bas
Sorties
%Q0.0 sortie vers l'actionneur de la pompe eau
z %Q0.1 sortie vers la vanne de contrle de l'irrigation
z

RTC
z L'option RTC doit tre installe sur la base automate Twido 10 E/S.

30

35013826 06/2006

Cration/Edition de programme

Le schma de cblage des E/S est dtaill ci-dessous :


%I0.0 Entre dans le rservoir via le capteur de niveau haut

Franais

%I0.1 Entre dans le rservoir via le capteur de niveau bas

Option RTC
%Q0.0 Sortie vers l'actionneur de la pompe
eau
Alimentation de l'automate

%Q0.1 Sortie vers la vanne de contrle


de l'irrigation

Alimentation de sortie

35013826 06/2006

31

Cration/Edition de programme

Etape 4 : Configuration des ressources matrielles et logicielles


Introduction

Puisque les lments matriels ont t dclars au cours de l'tape Description,


vous devez maintenant configurer les ressources matrielles et logicielles.

Franais

Pour accder aux options de configuration matrielle et logicielle, slectionnez


0 10 1
01
10
10

Programme
Configuration
des ressources
matrielles

0 00

0
0 01
0 10 1

Configurer

10
010 0
01 0 1 0 0 0
0 1 0 1 0 01 0
11 1 0 0 0
01 1 0 0
0 10

dans la barre des tapes TwidoSuite.

Slectionnez la tche Programme Configurer Configurer le matriel afin


d'ouvrir la fentre de configuration matrielle.
Volet du graphique

Volet de configuration

Telemecanique

010
01
10
10

Projet

Description

Mon projet

1 0 00

0
0 01 1
010

Programme

1010
010 1 0 0 0
010 1 0 0 0
110 0 1 0
011 0 0 0 0
1
010

Rapport

Configurer

10
10 0
010 1 0 0 0
0
0 10
10 0
1 1 01 0 0 1 0
01 1 0 0
0 10

Programme

10
010 0
01 1 0 0 0
0 10 1 0 0 0
1
1 10
100 0
01 1 0 0
0 10

Mise au point
Configurer
le matriel
Configurer
les donnes
Configurer
le
comportement
Dfinir
les protections

TWDLMDA20DTK

Description du module

Rfrence
Description

Configuration du module.

Appliquer

TWDLMDA20DTK
Repre 0
Base automate modulaire 12 entres (24 V cc), 8 sorties
(Transistors source 0,3 A). Connecteurs MIL dbrochables.
Annuler

Tableau des entres

Utilis Repre
%I0.0
%I0.1
%I0.2
%I0.3
%I0.4

Symbole Utilis par

Filtrage
3 ms
3 ms
3 ms
3 ms
3 ms

Mmoris Run/Stop ? Dclenchem Haute Priorit Numro SR


Non utilis
Non utilis
Non utilis

Tableau des sorties

Utilis Repre
%Q0.0
%Q0.1
%Q0.2
%Q0.3

Symbole

Etat ?

Utilis par

TwidoSuite

Volet du graphique : il s'agit de l'illustration de l'automate et de ses modules d'expansion


Volet de configuration : il s'agit de la description (comprenant la configuration) des lments
matriels actuellement slectionns

32

35013826 06/2006

Les ressources matrielles suivantes pouvant tre configures :


z Entres et sorties TOR de la base automate et de l'automate distant
z Modules d'expansion d'E/S (modules analogiques, par exemple)
z Module AS-Interface et priphriques esclaves
z Module matre CANopen et priphriques esclaves
z Options
Exemple de systme d'irrigation automatique
Dans cet exemple d'application, il s'avre utile d'attribuer des symboles aux entres
et aux sorties (voir Etape 3 : Dfinition du schma de cblage des E/S de votre
application, p. 30).
Pour configurer les symboles des E/S, procdez comme suit :
1. Slectionnez Programme Configurer Configurer le matriel afin d'ouvrir
la fentre de configuration matrielle.
2. Cliquez sur l'illustration de l'automate afin de slectionner l'automate
TWDLCAA10DRF dans le volet du graphique.
3. Dans le volet de configuration, saisissez des noms symboliques pour les E/S
auxquelles vous souhaitez attribuer des symboles, par exemple :
z NIVEAU_HAUT_EAU, dans le champ correspondant au symbole %I0.0
z NIVEAU_BAS_EAU, dans le champ correspondant au symbole %I0.1
z POMPE_EAU, dans le champ correspondant au symbole %Q0.0
z VANNE_IRRIGATION, dans le champ correspondant au symbole %Q0.1
Remarque : Par dfaut, les symboles sont en majuscules. Un symbole valide
peut comporter n'importe quelle combinaison de 32 caractres : (A-Z), (0-9), et
(_). Les espaces ne sont pas autoriss.
4. Les modifications prennent effet ds que le curseur n'est plus sur la ligne d'entre
ou de sortie.

35013826 06/2006

33

Franais

Cration/Edition de programme

Cration/Edition de programme

Configuration
des ressources
logicielles

Slectionnez la tche Programme Configurer Configurer les donnes afin


d'ouvrir la fentre de configuration logicielle.
Telemecanique

010
01
10
10

Projet

Description

100

Mon projet

0
0 01 1
0 10

Programme

10
10 0
0 100 1 0 0 0
0 1 1 0 01 0
1 10 0 0
0 110 1 0 00
01

0
10 1
0 10 1 0 0 0
0 10 0 0 0
1
1 10 0 0 1 0
0 11 0 0 0
0 10 1

Rapport

Franais

Configurer
Catgories d'objets
Objets simples
Blocs fonction
Objets E/S
Objets avancs

Allocation

%M
%MW
%MD
%MF
%KW
%KD
%KF

Mise au point
Configurer
le matriel

Dfinir les objets


Nombre d'objets

Automatique

Affect(s) 0 max. : 3000

Table

Configurer
les donnes
Configurer
le
comportement

Tout
Utilis Equ. Utilis

Objets simples

Programme

10
010 0
01 01 0 0 0
01 01 0 0
0
11 1 0 0 1 0
01 1 0 0
0
01

%MW
%MW.0
%MW.1
%MW.2
%MW.3
%MW.4
%MW.5
%MW.6
%MW.7
%MW.8
%MW.9
%MW.10
%MW.11
%MW.12
%MW.13
%MW.14
%MW.15
%MW.16
%MW.17
%MW.18
%MW.19

Dfinir
les protections

Symbole

1
0

TwidoSuite

Les ressources logicielles suivantes pouvant tre configures :


z Objets simples
z Bits mmoire (%M)
z Mots mmoire (%MW, %MD, %MF)
z Constantes (%KW, %KD, %KF)
z Blocs fonction
z Temporisateurs
z Compteurs
z Programmateurs cycliques
z Registres LIFO/FIFO
z Objets E/S
z Compteurs rapides (FC)
z Gnrateurs d'impulsions PLS/PWM
z Compteurs trs rapides (VFC)
z Objets avancs
z Blocs horodateur
z PID
z Fonctions macro

34

35013826 06/2006

Cration/Edition de programme

Exemple de systme d'irrigation automatique


Dans cet exemple d'application, vous devez configurer deux objets logiciels :
z Un bloc horodateur 0 permettant de grer le programme d'irrigation hebdomadaire.
z Un compteur (%C0) utilis comme compteur des cycles de maintenance.
Note : Configuration des blocs horodateur
Pour que les blocs horodateur puissent tre pris en charge, assurez-vous que
l'option RTC est installe sur votre automate TWDLCAA10DRF.
z Les blocs horodateur ne sont pas des objets programmables et ne ncessitent
pas d'tre dclars dans le programme en langage schma contacts ou liste
d'instructions. Activez-les simplement et configurez leurs paramtres respectifs.
z

Pour configurer le bloc horodateur 0, procdez comme suit :


1. Slectionnez Programme Configurer Configurer les donnes afin
d'ouvrir la fentre de configuration des objets logiciels.
2. Depuis la fentre "Catgories d'objets", slectionnez Objets avancs.
Rsultat : La liste des blocs fonction avancs disponibles pour l'automate en
question s'affiche dans la fentre ddie "Objets avancs".
3. Depuis la fentre "Objets avancs", slectionnez %SCH - Blocs horodateur.
Rsultat : La fentre de configuration des blocs horodateur apparat dans le
volet central. Les blocs horodateur disponibles (numrots de 0 15) sont
rpertoris dans un tableau.
4. Slectionnez dans le tableau le bloc horodateur que vous souhaitez configurer :
Horodateur 0.
Rsultat : Par dfaut, le bloc horodateur est dsactiv et tous les champs
apparaissent dans la fentre de configuration comme n'tant pas configurables.
5. Cochez la case Configurer pour activer les champs de configuration et suivez
les tapes ci-dessous pour configurer le bloc horodateur (les paramtres
suivants sont donns titre d'exemple seulement) :
1. Saisissez le repre Bit sortie. Dans cette application, il s'agit du repre du
bornier de sorties connect la vanne de contrle du systme
d'irrigation : %Q0.1
2. Slectionnez un Mois de dbut et un Mois de fin pour indiquer le lancement
et l'arrt du bloc horodateur.
Plage : janvier dcembre.
3. Slectionnez une Date de dbut et une Date de fin pour indiquer le jour du
mois auquel le bloc horodateur doit dmarrer et s'arrter.
Plage : 1 31 (selon le mois slectionn).

35013826 06/2006

35

Franais

Note : Les objets mmoire internes, comme par exemple les bits et mots systme,
les bits et mots mmoire et les mots d'change rseau, ne peuvent pas tre
configurs.

Cration/Edition de programme

Franais

4. Slectionnez une Heure de dbut et une Heure de fin pour indiquer l'heure
de lancement et d'arrt du bloc horodateur au cours du jour slectionn.
Plage : 00:00 23:59.
5. Slectionnez les Jours de la semaine pour activer la sortie du bloc horodateur.
Les cases cocher indiquent les jours o le priphrique de sortie est activ.
6. Utilisez les touches Haut/Bas pour faire dfiler la liste des blocs horodateur ou
utilisez le pointeur de la souris pour en slectionner un en particulier.
7. Les modifications prennent effet ds que le curseur n'est plus sur la ligne du bloc
horodateur actuel.
Puisque le bloc horodateur est dsormais configur, procdez comme suit pour
configurer le compteur des cycles de maintenance (%C0) :
1. Slectionnez Programme Configurer Configurer les donnes afin
d'ouvrir la fentre de configuration des objets logiciels.
2. Depuis la fentre "Catgories d'objets", slectionnez Blocs fonction.
Rsultat : La liste des blocs fonction disponibles pour l'automate en question
s'affiche dans la fentre ddie "Blocs fonction".
3. Depuis la fentre "Blocs fonction", slectionnez Compteurs.
Rsultat : Le tableau de configuration des compteurs apparat dans le volet
central. Les compteurs disponibles sont numrots de 0 127.
4. Slectionnez dans le tableau le compteur/dcompteur que vous souhaitez
configurer : %C0.
5. Dfinissez dans le tableau les champs correspondant au compteur/dcompteur
slectionn, comme indiqu ci-aprs (les paramtres sont donns titre
d'exemple seulement) :
1. Cliquez sur la zone de texte Symbole et saisissez un nom symbolique pour le
compteur en question : MAINTENANCE_REQUISE (par exemple).
Remarque : Par dfaut, les symboles sont en majuscules. Un symbole valide
peut comporter n'importe quelle combinaison de 32 caractres : (A-Z), (0-9),
et (_). Les espaces ne sont pas autoriss.
2. Slectionnez une valeur de Prslection : 100 (cycles d'irrigation, par
exemple).
Plage : 0 9999.
Par dfaut : 9999.
3. Slectionnez l'option Rglable pour permettre la modification de la valeur
Prslection depuis les tables d'animation.
6. Utilisez les touches Haut/Bas pour faire dfiler la liste des compteurs ou utilisez
le pointeur de la souris pour en slectionner un en particulier.
7. Les modifications prennent effet ds que le curseur n'est plus sur la ligne du
compteur actuel.
Note : Les compteurs sont des objets programmables et ncessitent d'tre
dclars dans le programme en langage schma contacts ou liste d'instructions.
Spcifiez maintenant si le compteur utilis sera un compteur ou un dcompteur.

36

35013826 06/2006

Cration/Edition de programme

Introduction

Utilisez l'Editeur de programme pour dvelopper le programme principal qui


constitue la base de votre application d'automatisation Twido. Les principales
fonctions de programmation et de configuration comprennent la programmation en
langage schma contacts rversible et liste d'instructions.
Cette section a pour but de vous prsenter les bases de la programmation en
langage schma contacts dans l'Editeur de programme TwidoSuite. Pour obtenir
davantage d'informations sur la programmation en langage liste d'instructions et sur
les fonctions de rversibilit liste d'instructions/schma contacts, reportez-vous au
Guide de programmation TwidoSuite figurant sur le CD-ROM.
Pour accder l'Editeur de programme, slectionnez
0 10
01
10
10

1 0 00

0
0 01
0 10 1

10
010 0
01 0 1 0 0 0
01 0 1 0 0 0
11 1001 0
01 1 0 0
0 10

Programme
Programme
dans la barre des tapes TwidoSuite
et cliquez sur Editer le programme dans la barre des tches.
Note : En mode programme, la barre des tches permet galement d'accder
l'Editeur de symboles.

35013826 06/2006

37

Franais

Etape 5 : Ecriture du programme

Cration/Edition de programme

Fentre Edition
de programme

La fentre Edition de programme est compose de l'Editeur de programme et


d'un ensemble de cinq navigateurs et outils disponibles dans la barre des
fonctions, comme illustr sur la figure suivante :
Editeur de programme

Navigateur de programmes

Franais

Telemecanique

010
01
10
10

Projet

Description

Mon projet

1000
0
10 1
010 1 0 00
010 0 00
1
110 0 0 10
011 0 00
010 1

0
0 01 1
010

Programme

Rapport
Configurer

1 2 3
Programme
1 - - LADDER
Dbut [1,1]
Fin [1,1]

Ladder

List
R
R
Ladder

Programme

Mise au point

Hex
Dc

100 %

SR

10
01 0 0
01 1 0 0 0
0 10 1 0 0 0
1 101 0 0 1 0
01 0 1 0 0
01

10
10 0
0 10 1 0 0
00
0 10
10
1 101 0 0 100
01 10 0
0 10

Editer
le programme

abc

%TM %C

Dfinir
les symboles

1 LD

Sous-programmes

Standard
Standard
Etiq, %Li
Etap. ini.
Etap. db.
Etap. POST

Tout
Utilis

%I0.0

%I0.1

%Q0.0

%I0.3

Sans
Repre

Rechercher
Symbole

Commentaire

10
01

01
10

TwidoSuite

Liste des erreurs

Navigateur de donnes

Barre des fonctions


Importer le programme
Exporter le programme
Afficher/masquer le navigateur
de programmes
Afficher/masquer le navigateur
de rfrences croises
Afficher/masquer le navigateur
de donnes

38

35013826 06/2006

Cration/Edition de programme

Elments de
l'Editeur Ladder

L'Editeur Ladder est un diteur graphique de programme permettant de visualiser,


crer et diter des programmes en langage schma contacts.
Si vous slectionnez Ladder dans la zone de liste droulante de la barre d'outils
Programme, l'Editeur de programme passe en mode Ladder. La figure ci-dessous
prsente les diffrents lments accessibles dans l'Editeur Ladder :
Barre d'outils
Programme

Ladder

LD

Hex
Dc

100 %

SR

List
R
Ladder
R
1

Barre d'outils de la
palette Ladder

TITRE DE SECTION OU RESEAU

abc

%TM %C

Franais

En-tte de section
ou rseau

Saisissez ici vos commentaires. Saisissez ici vos commentaires.


Saisissez ici vos commentaires. Saisissez ici vos commentaires.
Saisissez ici vos commentaires. Saisissez ici vos commentaires.

Standard

Section ou Rseau

Standard
Etiquette, %Li
Etap. ini.
Etap. db.
Etape POST

%I0.0

%Q0.0

%I0.0

Elments de langage
schma contacts

35013826 06/2006

%I0.0

Grille de
programmation

Bouton de la palette
tenduedu langage
schma contacts

39

Cration/Edition de programme

Franais

Barres d'outils
pour l'dition de
programme

Trois barres d'outils de programmation en langage schma contacts (voir figure


ci-dessus) sont disponibles et vous permettent ainsi d'diter des programmes en
toute facilit, ainsi que de saisir graphiquement des instructions en langage schma
contacts :
z Barre d'outils du programme
z Barre d'outils de la palette du langage schma contacts
z Palette tendue du langage schma contacts
Barre d'outils du programme
Ladder

Hex
Dc

100 %

SR

abc

List
Ladder

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

10

11 12

13

14

15

Basculer en mode Ladder ou List


Ajouter une section
Insrer une section
Ajouter un sous-programme
Diviser en 2 sections
Facteur de zoom (le pourcentage par dfaut est de 100 %)
Couper
Copier
Coller
Annuler
Rtablir
Afficher au format hexadcimal ou dcimal
Afficher/masquer les commentaires relatifs au rseau
Afficher/masquer les commentaires relatifs aux lments du langage schma contacts
Afficher/masquer les symboles

Barre d'outils de la palette du langage schma contacts


R

%TM %C

9 10 11 12 13

14

Basculement des sections de la palette tendue du


langage schma contacts

1
2
3
4
5
6
7
40

Ajouter un rseau
Insrer un rseau
Ajouter un contact normalement ouvert
Ajouter un contact normalement clos
Ajouter une bobine
Ajouter une bobine inverse
Ajouter une liaison
35013826 06/2006

Cration/Edition de programme
Supprimer une liaison
Ajouter un bloc comparaison
Ajouter un bloc opration
Ajouter un bloc temporisateur
Ajouter un bloc compteur
Ajouter un appel de saut ou de sous-programme
Boutons de la Palette tendue du langage schma contacts (voir figure ci-dessous)

Franais

8
9
10
11
12
13
14

Palette tendue du langage schma contacts


R

%TM %C

Basculement des sections de la palette tendue du


langage schma contacts

XOR

XORN

1
2
3
4
5
6

35013826 06/2006

XORR

RET

1111123 1111123

%M %R %S
MSG
SBR

END

XORF

#D

%SC

Contacts : normalement ouvert, normalement clos, front montant, front descendant


Contacts spciaux : XOR, XORN, XORR, XORF, OPN, SHORT
Bobines : normale, inverse, d'enclenchement, de dclenchement
Bobines spciales : JMP/SR, RET, END, Grafcet 1, Grafcet 2
Blocs fonction lmentaires : %FC, %VFC, %PLS, %PWM
Blocs fonction avancs : %MSG, %R, %SBR, %DR, %SC

41

Franais

Cration/Edition de programme

Vue d'ensemble
de la
programmation
en langage
schma
contacts

Un programme en langage schma contacts est crit dans l'ordre logique requis
pour piloter une machine ou un processus.
Sections/Sous-programmes
Un programme en langage schma contacts TwidoSuite est compos d'une squence
de sections et de sous-programmes incluant des rseaux en langage schma
contacts. Les sections et les sous-programmes sont spars par des en-ttes de sections
ou de sous-programmes. Ils sont numrots automatiquement par le logiciel TwidoSuite.
La figure ci-dessous prsente un en-tte de section type (les en-ttes de sousprogramme sont similaires).
1

LD

Saisissez ici vos commentaires. Saisissez ici vos commentaires.


Saisissez ici vos commentaires. Saisissez ici vos commentaires.
Saisissez ici vos commentaires. Saisissez ici vos commentaires.

TITRE DE SECTION

Cette ligne peut contenir jusqu' 122


caractres

Chaque ligne peut contenir jusqu' 122


caractres

Rseaux
Un rseau en langage schma contacts est similaire un logigramme. Chaque
rseau est constitu d'un rseau d'lments graphiques lis et organiss en une
grille de programmation avec une barre de potentiel aux extrmits gauche et droite.
La figure ci-dessous illustre un rseau en langage schma contacts type.
Commentaires
Symbole
Repre

TITRE RESEAU
Rseau 1

SAISISSEZ ICI VOS COMMENTAIRES CONCERNANT CE RESEAU.

commutateur principal
SWITCH1
%I0.0

Voyant d'tat de rseau :


vert pour un rseau valide

%Q0.0

Elment d'entre
(exemple de
contact normalement ouvert)

Elment de sortie
(exemple de
bobine normale)

rouge pour un rseau non valide


jaune pour un rseau qui n'a pas encore t analys
aucune, si le rseau n'a pas t modifi

Note : Les programmes peuvent comporter au total 128 sections et sousprogrammes, le nombre de sous-programmes tant limit 64 (SR0 SR63).

42

35013826 06/2006

Cration/Edition de programme

La procdure ci-aprs vous indique les tapes de base pour dmarrer l'dition d'un
programme en langage schma contacts.
1. Lorsque vous commencez crire un nouveau programme, cliquez sur l'icne
Ajouter une section

dans la barre d'outils Programme, l'invite suivante.

Rsultat : La premire section est insre dans l'Editeur Ladder et le premier


rseau vide s'affiche, comme illustr ci-dessous. (Un programme doit comporter
au moins une section.)

2. Cliquez deux fois sur l'en-tte de section pour saisir les informations suivantes :
z titre de section ;
z commentaires ;
3. Cliquez deux fois sur l'en-tte de rseau pour saisir les informations suivantes :
z titre du rseau ;
z commentaires ;
z dclaration du type de rseau : standard, tiquette (%Li) ou tape Grafcet
(tape de dbut, tape de fin ou POST).
4. Slectionnez la liaison horizontale vide qui se situe entre les circuits
d'alimentation gauche et droite du rseau.
Rsultat : La liaison slectionne est surligne en vert.

5. Cliquez sur l'icne Contact normal


(par exemple) dans la Palette du langage
schma contacts afin d'insrer l'instruction graphique d'entre.

35013826 06/2006

43

Franais

Comment diter
un programme

Cration/Edition de programme

Franais

Rsultat : Le contact normal est insr dans la partie la plus gauche du rseau.

6. Rptez les tapes 4 5 pour insrer d'autres instructions graphiques si


ncessaire.
7. Un rseau valide doit toujours comporter un lment de sortie (bobine ou bloc
opration). Cliquez sur l'icne Bobine
(par exemple) dans la Palette du
langage schma contacts afin d'insrer l'instruction graphique de sortie.
Rsultat : La bobine est insre dans la partie la plus droite du rseau.

Remarque : A ce stade, la barre de couleur rouge indique que le rseau n'est


toujours pas valide.
8. Vous devez spcifier un repre pour chaque lment du rseau. Cliquez sur le
champ du repre au-dessus de chaque lment et saisissez le repre souhait.
Saisissez %I0.0 pour le contact d'entre et %Q0.0 pour la bobine de sortie (par
exemple). Remarque : vous avez galement la possibilit de dfinir un symbole
et un commentaire pour chaque lment.

Rsultat : La barre de couleur jaune indique que le rseau est valide, mais qu'il
n'a pas encore t analys (compil avec le programme).
9. Cliquez sur l'icne Analyser
pour lancer le processus de validation du
programme et rechercher les erreurs de programmation ventuelles dans la
zone de liste d'erreurs.
Note : Pour obtenir plus d'informations sur les rgles et les procdures d'dition de
programmes, consultez l'Aide en ligne du Guide d'exploitation TwidoSuite.

44

35013826 06/2006

Cration/Edition de programme

Exemple de
programme pour
le systme
d'irrigation
automatique

Cette section vous prsente le programme en langage schma contacts


s'appliquant au systme d'irrigation automatique. L'application se divise en deux
processus indpendants :
z
z

Gestion du niveau du rservoir d'eau


Nombre de cycles d'irrigation

Franais

2 sections, une par processus, doivent alors tre cres dans le programme.
Gestion du niveau du rservoir d'eau
Insrez la premire section du programme et crez le programme suivant.

Description du processus de rgulation du niveau du rservoir d'eau :


1 Chaque fois que l'eau atteint son niveau bas (%I0.1 est clos), la pompe eau dmarre
(%Q0.0 est clos). Remarque : %I0.0 reste normalement clos.
2 Chaque fois que l'eau atteint le niveau haut (%I0.0 est ouvert), la pompe eau s'arrte (la
bobine %Q0.0 est active et le contact %Q0.0 est clos). Remarque : grce au contact
%Q0.0, la pompe continue de fonctionner jusqu' ce que l'eau atteigne le niveau haut.

Nombre de cycles d'irrigation


Ajoutez une section au programme, crez le programme suivant (permettant de
compter le nombre de cycles d'irrigation) et enregistrez votre projet. (Remarque : Si
vous ne l'avez pas dj fait au cours de l'tape de configuration des objets donnes,
cliquez deux fois sur l'lment %C0 et dfinissez la valeur de prslection sur 100
cycles dans la table des compteurs.)

35013826 06/2006

45

Cration/Edition de programme

Franais

Description du processus de comptage du nombre de cycles d'irrigation :


1 Chaque fois que la vanne de contrle de l'irrigation est active (%Q0.1 est clos) par la
fonction RTC (horodateur 0), le compteur %C0 est incrment.
2
Lorsque la valeur courante du compteur atteint 100, le bit mmoire %M0 est dfini sur 1.
Le bit mmoire %M0 peut tre utilis pour contrler le voyant indiquant d'une maintenance
est ncessaire, une fois les 100 cycles d'irrigation effectus. Remarque : Vous pouvez
associer un bouton l'entre R afin de rinitialiser manuellement le compteur des cycles
de maintenance.

46

35013826 06/2006

Cration/Edition de programme

Introduction

Cette section vous explique comment enregistrer votre travail et transfrer le


programme l'automate Twido. Un programme doit tre enregistr avant de
pouvoir tre transfr l'automate.
Note : Il vous est recommand d'enregistrer souvent le projet sur le disque dur du
PC lorsque vous crivez des programmes en langage schma contacts ou liste
d'instructions, afin d'empcher toute perte de travail suite une coupure de
courant ou tout autre problme informatique.

Enregistrement
du programme

Il existe 2 faons d'enregistrer votre programme :


z Si vous ayez dj donn un nom votre application et spcifi le rpertoire du
projet (voir Etape 1 : Cration d'un projet, p. 25), cliquez sur le raccourci
Sauvegarder le projet courant
z

dans la barre d'accs rapide.

Slectionnez
Projet Sauvegarder le projet courant et cliquez sur le
bouton Enregistrer.

Rsultat : Les fichiers du projet contenant le programme de l'application sont


enregistrs sur le disque dans le rpertoire du projet. L'emplacement de ce
rpertoire est spcifi dans la fentre d'informations des fichiers du projet.

35013826 06/2006

47

Franais

Etape 6 : Enregistrement, transfert et excution du programme

Cration/Edition de programme

Transfert du
programme

Pour mettre au point votre application, vous devez d'abord la transfrer dans la
mmoire vive de l'automate.

Franais

Suivez les tapes ci-aprs pour tlcharger le programme de votre application dans
l'automate :
1. Si l'ordinateur n'est pas encore connect l'automate, slectionnez une
connexion de la table des connexions dans la tche Programme Mise au
point Connecter puis cliquez sur Excuter.
Connexion pour mise au point
Cette mthode de connexion permet
de se connecter directement
l'automate ou de transfrer une
application du PC vers l'automate.

Slectionner une connexion


Type

Nom

Projet

Ma connexion 1

Mthode de connexion

Projet

Ma connexion 2

Projet

Ma connexion 3

Modem

555554443333,

Projet

Ma connexion 4

USB

USB 8

PC

USB

Srie

USB, P-Unit

Ethernet

IP/Tlphone
13.1.2.3.direct

Srie

P-Unit

Etablir la communication

OK

Rsultat : TwidoSuite tente d'tablir une connexion avec l'automate et procde


des contrles de synchronisation entre les applications de l'ordinateur et de
l'automate.
z Le tableau de test de connexion affiche les rsultats de 3 des contrles.
Connexion pour mise au point
Cette mthode de connexion permet
de se connecter directement
l'automate ou de transfrer une
application du PC vers l'automate.

Slectionner une connexion


Type

Nom

Mthode de connexion

IP/Tlphone

Projet

USB directe

USB

USB

Projet

Ethernet directe

TCP/IP

192.168.0.1

Projet

MODEM

+33 2 23 45 67 89

Projet

COM1 P2P

Srie

COM1,@

PC

USB P2P

Modem directe

USB

USB 1
Communication tablie :

Tests de connexion
Les applications du PC et de l'automate ne correspondent pas. Connexion immdiate impossible !
Les configurations matrielles correspondent : Le transfert PC => Automate est possible
Application automate non protge : Le transfert Automate => PC est autoris
Comparaison des applications

Projet

Automate

Nom de l'application
Base automate

ViewEx
TWDLCAA16DRF

ViewEx
TWDLCAA16DRF

Slectionner une mthode de connexion

Connexion immdiate

Transfert
PC => Automate

Transfert
Automate => PC
Annuler

48

Connecter

Ligne 1 : Comparaison entre les applications de l'ordinateur et de l'automate


Ligne 2 : Contrle de la compatibilit matrielle
Ligne 3 : Contrle de scurit (si l'application de l'automate est valide), sinon
indique que l'application est non valide.
La table de comparaison des applications s'affiche seulement si les
applications de l'ordinateur et de l'automate diffrent.

35013826 06/2006

Cration/Edition de programme

3. Si l'application de l'automate est protge par un mot de passe, vous tes invit
saisir ce mot de passe. Saisissez le mot de passe, puis cliquez sur OK pour
continuer le transfert.
4. Si l'automate est en cours d'excution, une bote de dialogue d'avertissement
apparat et indique que vous devez arrter l'automate pour continuer le transfert.
Si l'automate est arrt, le transfert commence. Si l'automate est en cours
d'excution, cliquez sur OK pour l'arrter et poursuivre le transfert. Cliquez sur
Annuler pour fermer la bote de dialogue et annuler le transfert.
Une bote de dialogue d'avertissement apparat et indique que le contenu de
l'application de l'automate sera cras.
5. Cliquez sur OK pour continuer le transfert.
Une option permet de protger l'application (voir Fonctions de scurit dans
l'Aide en ligne du Guide d'exploitation TwidoSuite).
Note : Les commentaires relatifs aux symboles et au programme ne sont pas
transfrs vers l'automate.

35013826 06/2006

49

Franais

2. Si les applications de l'ordinateur et de l'automate diffrent, slectionnez


Transfert PC => Automate.

Cration/Edition de programme

Excution du
programme

Utilisez le panneau de contrle de l'automate pour excuter, arrter ou initialiser


un programme qui a t tlcharg dans l'automate (voir Transfert du programme,
p. 48).

Franais

Pour excuter le programme que vous avez transfr vers l'automate, procdez
comme suit :
1. Si la connexion entre TwidoSuite et l'automate n'est pas active, slectionnez une
connexion de la table des connexions dans Programme Mise au point
Connecter, puis cliquez sur OK pour tablir la connexion.
2. Une fois la connexion tablie entre TwidoSuite et l'automate, la bote de dialogue
du panneau de contrle de l'automate s'affiche toujours en haut de l'espace de
travail de TwidoSuite, sous la forme d'un panneau de commande.
TWDLC-A24DRF
RUN
Error
Stat

TwidoSuite

Celui-ci comporte les boutons de commande suivants :


z

RUN

ARRETER

INITIALISER

3. Cliquez sur EXECUTER pour excuter le programme d'application TwidoSuite


prsent dans la mmoire vive de l'automate.
Remarque : Chaque commande ncessite d'tre confirme avant de pouvoir
tre excute.
Rsultat : 3 voyants sur le panneau (RUN, Error, Stat) fournissent des
diagnostics en direct. (Pour plus de dtails, consultez l'Aide en ligne du Guide
d'exploitation TwidoSuite.)

50

35013826 06/2006

Cration/Edition de programme

Pour fermer le panneau de commande du panneau de contrle :


TWDLC-A24DRF
RUN
Error
Stat

Franais

Fermeture et
rouverture du
panneau de
commande du
panneau de
contrle

TwidoSuite

Pour rouvrir le panneau de commande, cliquez sur le bouton situ dans l'angle
suprieur droit de la fentre, tel qu'illustr ci-dessous :
Telemecanique

Mon projet

?
Arrter

35013826 06/2006

51

Cration/Edition de programme

Dveloppement
du panneau de
commande

Pour dvelopper/rduire le panneau de commande du panneau de contrle, cliquez


tel qu'illustr ci-dessous :
TWDLC-A24DRF
RUN

Franais

Error
Stat

TwidoSuite

Le panneau de commande se dveloppe vers le bas (voir figure ci-dessous). Vous


pouvez le rduire en cliquant sur le mme bouton de dveloppement/rduction.
Nom de l'application :

Mon Twido

Etat Twido :

Arrt

Rfrence :

TWDLC-A24DRF

Version du microprogramme :

3.40

Heure courante :
Echec d'E/S

VRAI

E/S forces :
Priode de scrutation de l'automate :0
Repre utilis :

Punit

COM2
L Ac :

NA

L St :

TWDLC-A24DRF
RUN
Error
Stat

TwidoSuite

52

35013826 06/2006

Cration/Edition de programme

Etape 7 : Mise au point du programme


TwidoSuite dispose de plusieurs options vous permettant de mettre au point et de
rgler votre programme :
z
z
z
z

Attribution de
rfrences
croises votre
programme

Navigateur de rfrences croises


Tables d'animation
Forage d'E/S
Animation de programme

Franais

Vue d'ensemble

Introduction
L'attribution de rfrences croises permet de trouver facilement dans une
application plusieurs occurrences d'un mme lment de programme, des fins de
mise au point.
Elle consiste slectionner des lments d'un programme, comme une adresse,
que vous souhaitez pouvoir retrouver ensuite dans une application. Lorsque les
lments sont slectionns, une liste affichant l'endroit o les lments sont utiliss
dans l'application est gnre. L'attribution de rfrences croises fournit une liste
utile des oprandes, symboles, lignes et oprateurs utiliss dans toute l'application
ou une partie de celle-ci.
Navigateur de rfrences croises
0 10
01
10
10

Slectionnez Programme
tapes TwidoSuite.

100

0
0 01 1
010

Programme

10
010 0
01 0 1 0 0 0
01 0 1 0 0 0
11 1 0 0 1 0
01 1 0 0
0
01

dans la barre des

Cliquez sur Navigateur de rfrences croises


dans la barre des fonctions
pour afficher le navigateur de rfrences croises. Le navigateur de rfrences
croises s'affiche droite de la fentre du programme.
Oprande : %I0.0.0

Configurer

Symbole : TEST
Section

35013826 06/2006

Emplacement

Section 1

Rseau 1

Section 1

Rseau 1

Oprateur

53

Cration/Edition de programme

Comment attribuer des rfrences croises votre application

Franais

La procdure se divise en quatre tapes :


1. Cliquez sur l'lment de programme spcifique auquel vous souhaitez attribuer
une rfrence croise.
Rsultat : La table des rfrences croises est mise jour.
2. Si vous souhaitez modifier la configuration de l'objet auquel une rfrence
croise est attribue, cliquez sur le raccourci Configurer dans le navigateur de
rfrences croises.
Rsultat : L'cran de configuration matrielle ou logicielle des objets s'affiche et
le curseur pointe sur l'objet auquel une rfrence croise est attribue.
3. Configurez l'objet souhait dans la table de configuration matrielle ou logicielle
des objets.
4. Cliquez sur le bouton
Utilisation des
tables
d'animation

54

pour revenir au navigateur de rfrences croises.

Utilisez une table d'animation pour afficher et ajuster en ligne les variables de
programme, lorsque l'automate est en mode Run ou Stop.
Une table d'animation vous permet d'excuter les tches suivantes :
z lorsque le programme est en cours d'excution, surveiller la valeur courante de
n'importe quelle variable dans l'automate et tablir une comparaison avec la
valeur prvue ;
z modifier la valeur de variables indpendantes des valeurs calcules, jusqu' leur
mise jour suivante ;
z sauvegarder les valeurs courantes de toutes les variables d'une table d'animation
;
z restaurer dans l'automate les valeurs mmorises de toutes les variables d'une
table d'animation ;
z forcer des entres et sorties.

35013826 06/2006

Cration/Edition de programme

Elments d'une table d'animation


Tches de gestion de la
table d'animation

Titres de colonne

Barre d'outils

Grer les tables d'animation

Copier la table courante


Renommer la table courante

Repre
%I0.0

Utilis

Symbole

Courant Mmoris
0
0

Format
Dcimal

%I0.1

Dcimal

Supprimer la table courante

%I0.2

Dcimal

Importer une table

%I0.3

Dcimal

Exporter une table

%I0.4

Dcimal

%I0.5

Dcimal

%I0.6

Dcimal

%I0.7

Dcimal

%I0.8

Dcimal

10

%I0.9

Dcimal

11

%Q0.1

Dcimal

12

%Q0.2

Dcimal

13

%Q0.3

Dcimal

14

%Q0.4

Dcimal

15

%Q0.5

Dcimal

16

%IW1.0

Dcimal

17

%IW1.1

Dcimal

18

%IW1.2

Dcimal

19

%IW1.3

Dcimal

20

%IW1.4

Dcimal

Tables danimation
Nom
Ma table d'animation 1
Ma table d'animation 2
Ma table d'animation 3
Ma table d'animation 4
Ma table d'animation 5

Repre

Franais

Crer une table

Table d'animation

Pour plus d'informations, reportez-vous au Dboguage en mode connect via la


table d'animation du programme dans l'Aide en ligne du Guide d'exploitation
TwidoSuite.

35013826 06/2006

55

Cration/Edition de programme

Forage d'E/S

Le forage d'E/S signifie que vous dfinissez de force les valeurs d'un ou plusieurs
bits d'entre ou de sortie sur 0 ou 1.

Franais

Note : Vous pouvez forcer des E/S lorsque TwidoSuite est en mode connect et
lorsque l'automate est en mode Run ou Stop.
Comment forcer des E/S dans une table d'animation
La barre d'outils de la table d'animation dispose de commandes de forage :
1

z
0

Forcer 1
Forcer 0

Annuler forage

Annuler tout forage

Pour forcer une valeur 0 ou 1, ou pour annuler une valeur force :


1. Mettez une variable en surbrillance dans la table d'animation.
2. Cliquez sur la commande Forcer 0, Forcer 1 ou Annuler forage dans la
barre d'outils de la table d'animation.
Rsultat : Dans la colonne intitule Courante de la table d'animation, la variable
force est indique par un prfixe "F" et porte l'tat forc "0" ou "1" : "F 0" ou "F 1".
Animation d'un
programme

Vous pouvez animer des programmes en langage schma contacts et liste


d'instructions. Cette section dcrit l'animation d'un programme en langage schma
contacts. Pour plus d'informations, reportez-vous l'Animation d'un programme
dans l'Aide en ligne du Guide d'exploitation TwidoSuite.
Comment animer un programme en langage schma contacts
1. Slectionnez Programme Mise au point Animer le programme pour
ouvrir l'Editeur de programme en mode anim.
Rsultat : L'Editeur de programme affiche les lments anims du schma
contacts.
2. Visualisez les lments anims du schma contacts lors de l'excution du
programme.
Comment fonctionne l'animation en langage schma contacts
Vous pouvez visualiser le rtroclairage des objets logiques, comme par
exemple les contacts, les bobines et les objets spciaux, lorsque leur valeur
logique passe 1.
z Vous pouvez retrouver les variables de donnes des blocs fonction, des blocs
comparaison et des blocs opration, y compris les valeurs courantes et de
prslection.
z

56

35013826 06/2006

Cration/Edition de programme

Note : Les oprandes binaires ont la valeur 0 ou 1, tandis que toutes les autres
valeurs s'affichent sous forme hexadcimale ou dcimale, en fonction du format
slectionn dans la fentre Prfrences (voir Dfinition des prfrences, p. 22).

Franais

Afficher/masquer les tables d'animation


Cliquez sur l'icne
dans la barre des fonctions pour afficher/masquer les
tables d'animation dans la partie infrieure de la fentre.
Copier des objets de rseau dans une table d'animation
Pour copier des objets de rseau dans la table d'animation slectionne, cliquez sur

(bouton le plus gauche dans la barre d'outils de la table d'animation)


comme indiqu ci-dessous.
Telemecanique

0 10
01
10
10

Projet

Description

10 0

Mon projet

0
101
0 100 1 0 00
0
010100 0
11 0 0 1 0
0 110 1 0 0
01

0
101
010 1 0 0 0
010 1 0 0 0
110 0 0 1 0
011 0 0 0
1
010

10
0 00
1
01

Programme

Rapport
Configurer

Ladder

SR

Hex
Dc

100 %

Programme

10
10 0
0 100 1 0 0 0
01 0 1 0 0 0
11 1 0 0 1 0
01 1 0 0
010

Mise au point
Connecter

abc

%TM %C

?
Arrter

LD

Animer
le programme
Grer les
tables
d'animation
Contrler
l'automate

Rseau 0
%I0.0

%I0.1

%Q0.0

Surveiller
la configuration
matrielle
Surveiller
la configuration
logicielle

%I0.3

Surveiller
la configuration
dcrite

Repre
%M0

%Q0.1

%I0.0

Utilis

Ma table d'animation 1

Symbole

Courant

Mmoris

Surveiller
le comportement

Format
Dcimal

Dcimal

Dcimal

Dconnecter

<AVERTISSEMENT EXECUTION> : PAS DE DEMARRAGE


EN RUN AUTOMATIQUE SELECTIONNE
TwidoSuite

35013826 06/2006

57

Cration/Edition de programme

Franais

Etape 8 : Gestion du rapport du programme


Introduction

Le rapport TwidoSuite vous permet de crer des impressions personnalises et des


exportations HTML (vers un fichier .htm) en slectionnant des lments de rapport
partir du navigateur Gestionnaire de rapport.

Gestionnaire de
rapport

Utilisez le Gestionnaire de rapport pour slectionner les composants du rapport,


configurer les options d'impression et exporter le rapport de l'application au format
HTML.
Pour accder la fentre Gestionnaire de rapport, cliquez sur l'icne Rapport
dans la barre des tapes TwidoSuite.

Comment
configurer le
rapport

Le Gestionnaire de rapport permet de visualiser les lments et sous-lments de


rapport sous la forme d'une arborescence, lesquels lments peuvent tre inclus
dans le rapport en cochant les cases appropries.
Sommaire
Repagination

Dossier
Nom du dossier

Station

Dossier
Projet Mon Projet
Premire page (2)
Historique (1)
Sommaire (1)
Description (1)
Description graphique (5)
Proprits (1)
Nomenclature (1)
Twido
Configuration
Matriel (1)
Objets mmoire (1)
Bilan mmoire (1)
Configuration du comportement (1)
Programme
Sommaire (1)
Symboles (1)
Rfrences croises (1)
Tables d'animation (1)
Prfrences (1)
A propos de (1)

Pour configurer le rapport, slectionnez un lment partir du navigateur de rapport


et dfinissez les options qui s'affichent dans la fentre de configuration. Pour plus
d'informations sur les options lies au rapport, reportez-vous l'Aide en ligne du
Guide d'exploitation TwidoSuite.

58

35013826 06/2006

Cration/Edition de programme

Mise en page

Slectionnez Rapport Mise en page pour dfinir les marges et les informations
que vous souhaitez afficher dans les en-ttes et les pieds de page.

Vous pouvez configurer votre page de rapport pour afficher jusqu' trois types
d'informations diffrents, dans trois champs distincts, par ligne d'en-tte et de pied
de page, notamment :
z date d'impression,
z date de cration,
z date de modification,
z nom du projet,
z texte prsent,
z aucun texte,
z numro de page/nombre total de pages,
z numro de page,
z version TwidoSuite.
Impression du
rapport

Slectionnez Rapport Imprimer pour prparer le rapport et l'envoyer


l'imprimante et/ou l'exporter au format HTML.
La fentre d'impression vous permet :
d'afficher le rapport selon diffrentes options de format de page et de zoom ;
z de choisir l'imprimante de destination et d'accder ses proprits ;
z de repaginer votre rapport selon des options d'impression spcifiques ;
z d'envoyer votre rapport pour impression au priphrique appropri ;
z d'exporter votre rapport dans un fichier HTML.
z

35013826 06/2006

59

Franais

Vous pouvez configurer vos pages de rapport pour afficher jusqu' neuf types
d'informations diffrents, dans trois champs distincts, par ligne d'en-tte et de pied
de page, notamment :

Franais

Cration/Edition de programme

60

35013826 06/2006

6
Franais

Surveillance d'une application

Surveillance d'une application


Comment
dmarrer
l'utilitaire de
surveillance

Pour dmarrer l'utilitaire de surveillance TwidoSuite :


1. Ouvrez le Lanceur d'applications en cliquant sur l'icne
situe sur le bureau de votre PC.

TwidoSuite

Rsultat : La bote de dialogue Lanceur d'applications s'affiche, comme illustr


ci-dessous :
NouNouveau

Mode de programmation
Mode de surveillance

English
Franais

Mise jour du Firmware


de l'automate
Dmarrer TwidoSoft

2. A partir du Lanceur d'applications TwidoSuite, cliquez sur Mode de surveillance.

35013826 06/2006

61

Surveillance

Fonctions de
surveillance

Slectionnez Contrler l'automate :


Slectionner une action
Voir les informations de mmoire

Etat de l'automate

Rglage de l'horodateur

RAM excutable

Configurer horodateur

Franais

Date et heure du dernier arrt

RAM protge

Voir statistiques Ethernet

E/S forces

Modifier la configuration modem

Potentiomtre

Point de rglage du potentiomtre 0


Point de rglage du potentiomtre 1
Temps de scrutation

Maximum (ms)

Modifier la configuration modem


Dans l'automate, la configuration de votre
connexion est remplace par la
configuration dfinie par l'application.
Modem :

...

TD-33/V90

Commande Hayes d'initialisation :


ATEOQ1&B1&DO&HO&IO&R
1&SOSO

Courant (ms)

Minimum (ms)

Dpassement chien
garde
Horodateur automate

Date (jj/mm/aa)

Heure (hh:mm:ss)

Correction RTC

Modem connect

Nom
Commande

Appliquer

1.
2.
3.
4.
5.

Annuler

L'utilitaire de surveillance vous permet d'effectuer les tches suivantes :


Voir les informations de mmoire
Dfinir l'heure de l'horodateur (RTC)
Configurer le coefficient de correction du RTC
Voir les statistiques Ethernet
Modifier la configuration modem

Pour plus d'informations sur l'utilisation des diffrentes fonctions de surveillance,


reportez-vous la section Surveillance du matriel dans l'Aide en ligne du Guide
d'exploitation TwidoSuite.

62

35013826 06/2006

*3501382601*
You can download this technical publication and other technical information from our website at
http://www.telemecanique.com.
Vous pouvez tlcharger cette publication et d'autres informations techniques depuis notre site web l'adresse :
http://www.telemecanique.com.
Visit http://www.schneider-electric.com for your nearest Schneider Electric affiliate.
Pour connatre votre filiale Schneider Electric la plus proche, consultez le site http://www.schneider-electric.com.
06/2006

You might also like