02a55
02a55
02a55
machines
Startup Guide
07/2007
1606369_02
www.telemecanique.com
2
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Technical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Required hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3
Part III Add a Lexium 05 servo drive . . . . . . . . . . . . . . . . . . . . . . 51
At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
4
Part V Add an Advantys FTB I/O splitter . . . . . . . . . . . . . . . . . 103
At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Appendices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
5
6
Safety Information
§
Important Information
NOTICE Read these instructions carefully, and look at the equipment to become familiar with
the device before trying to install, operate, or maintain it. The following special
messages may appear throughout this documentation or on the equipment to warn
of potential hazards or to call attention to information that clarifies or simplifies a
procedure.
The addition of this symbol to a Danger or Warning safety label indicates
that an electrical hazard exists, which will result in personal injury if the
instructions are not followed.
This is the safety alert symbol. It is used to alert you to potential personal
injury hazards. Obey all safety messages that follow this symbol to avoid
possible injury or death.
DANGER
DANGER indicates an imminently hazardous situation, which, if not avoided, will
result in death or serious injury.
WARNING
WARNING indicates a potentially hazardous situation, which, if not avoided, can result
in death, serious injury, or equipment damage.
CAUTION
CAUTION indicates a potentially hazardous situation, which, if not avoided, can result
in injury or equipment damage.
1606369_02 07/2007 7
Safety Information
PLEASE NOTE Electrical equipment should be installed, operated, serviced, and maintained only by
qualified personnel. No responsibility is assumed by Schneider Electric for any
consequences arising out of the use of this material.
© 2007 Schneider Electric. All Rights Reserved.
User Comments We welcome your comments about this document. You can reach us by e-mail at
[email protected]
8 1606369_02 07/2007
Presentation of the automation
solution for simple machines
I
At a Glance
Overview This document presents installation of an automation solution for simple machines.
1606369_02 07/2007 9
Presentation of the automation solution for simple machines
10 1606369_02 07/2007
Introduction
1
At a Glance
Overview This chapter presents the automation system described in this document.
1606369_02 07/2007 11
Introduction
General
Introduction Dedicated to simple installations and small compact machines, the programmable
controller Twido, the Altivar 31 variable speed controller, the Lexium 05 servo drive,
the Magelis XBTN displayer and the new Advantys OTB and FTB distributed I/O are
already renowned for their ability to benefit you in terms of capacity, simplicity and
competitiveness.
Today their association is a real solution, that guarantees the ease and speed of
implementation as well as the prefect functioning of the whole, thanks to a package
complete with cabling and well-integrated software (functional blocks integrated in
TwidoSuite).
CAUTION
This document does not replace in any manner the individual documentation
of each product.
It describes in simplified manner the installation, setup and implementation
presented.
Descriptions and functional specifications of a specific application are not part of
this document.
Nonetheless, this document presents a typical automated solution that can be used.
To facilitate system implementation, the setup files and applications necessary for
the presented solution are delivered with the products.
Failure to follow these instructions can result in injury or equipment damage.
12 1606369_02 07/2007
Introduction
Abbreviations / Here are the abbreviations and terms used in this document:
Terminology
Abbreviation Description
PC Personal
XBTN Displayer with alphanumeric screen
ATV31 Altivar 31 family variable speed controller
Lexium 05 Lexium 05 family servo drive
TAP Shunt box
OTB Advantys OTB IP 20 I/O module
FTB Advantys FTB IP67 I/O splitters
HMI Human/Machine Interface
AC AC power
DC DC power
I/O Input/Output.
Altivar Name of the family that includes the Schneider variable speed controllers
Lexium Name of the family that includes part of the Schneider servo drive
Magelis Name of the family that includes part of the Schneider HMI
Twido Name of the family that includes part of the Schneider controllers
1606369_02 07/2007 13
Introduction
Technical specifications
The procedure for automating a simple machine of this type is shown in the following
table:
For Use
Monitor the operation, coordinate, configure Twido controller
and control the different sensors actuators
View and/or configure the different parameters A Magelis Human/Machine Interface
of the application
Operate the belt An Altivar variable speed controller
Position the roller A Lexium servo drive
Detect and control the products Advantys remote inputs/outputs linked to
sensors/actuators
14 1606369_02 07/2007
Introduction
Objective The automation solution presented in this document shows how to control one or
several motors. To do this, we propose to link an ATV31 variable speed controller
and a Lexium 05 servo drive with a Twido controller on the CANopen bus. The Twido
controller includes the Macro Drives developed for the ATV31 controllers and the
Lexium 05 drives (Macro: ready-to-use function blocks integrated in the TwidoSuite
library). These Macro Drives include micro applications that simplify the
development of a control application for an ATV31 or a Lexium 05 connected to the
CANopen open fieldbus network.
It is possible to assign a name to each of the variables used in the Twido application,
called SYMBOL.
To display and possibly modify the parameters of the system (example: motor
speed), you add an XBTN operator display. The XBTN and the TwidoSuite
application can use the same list of symbols (exported from TwidoSuite to XBT-
L1000). This link facilitates the development of the operator display application.
To control the system and give different kinds of information, we shall next add an
Advantys OTB IP20 I/O module to the system as well as an Advantys FTB IP67 I/O
splitter.
1606369_02 07/2007 15
Introduction
Diagram of the Here is the general diagram of the automation solution presented:
Principal
1
3 4 2
The present guide is divided into several sections depending on the modifications in
the automation solution:
Steps Description
1 Main system
2 Adding a servo drive: Lexium 05 and a BSH servo motor
3 Addition of a remote IP20 I/O module: Advantys OTB
4 Addition of a remote IP67 I/O splitter: Advantys FTB
16 1606369_02 07/2007
Introduction
Description
8 5
1 32
14
4 15 3
B
16
110-240 VAC 12 + 13
3 4 2
12 + 13 6
10
9 18
17
A
24 VDC
A 7
11
B
24 VDC
220 / 240 VAC
19
1606369_02 07/2007 17
Introduction
Required hardware
18 1606369_02 07/2007
Introduction
* : If the PC is not Bluetooth equipped, obtain the USB key adaptor reference
VW3A8115.
1606369_02 07/2007 19
Introduction
Configuration The present guide describes installation and implementation of the system, focusing
on the main elements:
A Twido TWDLCAA24DRF controller,
An XBTN400 display,
An ATV31H018Mxx variable speed controller,
An LXM05AD10M2 Servo drive,
A BSH0551T11A2A servo motor,
An Advantys OTB1C0DM9LP I/O module,
An Advantys FTB1CN08E08SP0 I/O splitter.
Application This Quick start guide is divided into several sections. The sections describing the
projects installation of the main system, then the integration of other products.
Application projects for the controller are also provided with this guide. Each
application project corresponds to a configuration described in a section of this
guide.
The table below shows, for each section, the initial application project and the
project resulting from the actions described in the section:
Sections in Initial project Description Resulting
this guide project
II - Main system Section II
III Section II Adding a Lexium 05 and a BSH05 Section III
IV Section III Adding an OTB Section IV
V Section IV Adding an FTB Section V
20 1606369_02 07/2007
Main System
II
At a Glance
Overview This section of the document presents the installation of the main system. In this
chapter, references to the Lexium 05 servo drive and the BSH servo motor do not
apply unless you want to add a Lexium 05 servo drive (see Add a Lexium 05 servo
drive, p. 51).
Objective The objective is to control an ATV31 variable speed controller via the CANopen bus
using a Twido CANopen master. The XTBN allows to display / change the speed
instruction of the controller and the I/O status information.
Application files On the CD-ROM BUNDLE (DIA3CD3050101F), there are files for this configuration
in the "Applicative files\Partie_II" folder for the Twido controller application and in the
"Applicative files\XBTN_XBTR" folder for the XBTN operator display application.
1606369_02 07/2007 21
Main System
22 1606369_02 07/2007
Hardware implementation of the
main system
2
At a Glance
Overview This chapter describes hardware implementation of the main system of the
automation solution.
1606369_02 07/2007 23
Hardware implementation of the main system
Main cabling
110-240 VAC
24 1606369_02 07/2007
Hardware implementation of the main system
HMI cabling
XBTN-Twido Connect the XBTN to the Twido controller using the XBTZ9780 cable:
cabling
XBTZ9780 (RS 485)
RJ45 MiniDin
According to the protocol used, the display of "?????" instead of values or the
persistence of the connection popup indicates a communication problem. This can
be caused by the cable used.
The table below shows which cable to use according to the version of the XBTN (can
be determined by the front panel) and the version of the XBT L1000 software:
XBT Front panel Cable
Version of XBT L1000 ≤ V4.30
+
Cable XBT Z978
Version of XBT L1000 ≥ V4.40
+
Cable XBT Z978
+
XBT ZN999 Adapter
Version of XBT L1000 ≥ V4.40
+
Cable XBT Z9780
For further information, see the Magelis XBTN / XBTR Operation Guide reference
1681028.
1606369_02 07/2007 25
Hardware implementation of the main system
ATV31-TAP To connect the ATV31 to the TAP, use the type RJ45 - RJ45 cable so that:
Cabling
2
ATV
AT V
1 VW3CANCARR1
er Suit
P ow
26 1606369_02 07/2007
Hardware implementation of the main system
TAP-Twido Cable To connect the TAP to the Twido controller, connect a SUB-D 9 TSXCANKCDF90T
Preparation connector with the TSXCANCA50 cable in the following manner:
22 mm (0.86 inch)
7 mm (0.27 inch) 5 mm (0.19 inch)
Shielding
1 2
3 4
5 6
78
OFF
ON
1606369_02 07/2007 27
Hardware implementation of the main system
TAP-Twido The SUB-D 9 end of the previously prepared cable is connected to the Twido
cabling controller. The "bare wire" end of the cable is connected in the TAP in the following
manner:
54 mm (2.12 inch)
8 mm (0.31 inch) 8 mm (0.31 inch)
Shielding
S1 S2
S3
ON OFF
1 2
3 4
5
D
GN AN_L LD
C SH N_H +)
CA (V
Cable pin assignment in the TAP terminal:
No. Signal Wire color Description
1 GND Black Weight
2 CAN_L Blue CAN_L polarity
3 SHLD (CAN-GND) (Bare cable shielding) Optional shielding
4 CAN_H White CAN_H polarity
5 V+ Red Optional power supply
28 1606369_02 07/2007
Hardware implementation of the main system
I/O cabling
+24V 0V DC IN
0 1 ... 8 9 10 11 ... 13
DC OUT COM
I0 I1 ... I8 I9 I10 I11 ... I13
1606369_02 07/2007 29
Hardware implementation of the main system
Q0 Q1 Q2 Q3 Q4 ... Q7 Q8 Q9
100-240VAC Ry.OUT Ry.OUT Ry.OUT Ry.OUT
0 1 2 3 4 ... 7 8 9
L N COM0 COM1 COM2 COM3
30 1606369_02 07/2007
Hardware implementation of the main system
Power supply
Diagram
110-240 VAC
Power on the To power on the Twido controller, follow the recommendations provided in the
Twido "Hardware implementation guide."
Power on the To power on the CANopen master, follow the recommendations in the service
CAN Master instructions provided with the product.
Cabling Diagram:
24 VDC
NC
0V
1606369_02 07/2007 31
Hardware implementation of the main system
P0 PA/+ PB PC/- U/T1 V/T2 W/T3 P0 PA/+ PB PC/- U/T1 V/T2 W/T3
32 1606369_02 07/2007
Hardware implementation of the main system
Connection diagrams:
31xxxxM3X/N4/S6X Three- ATV 31xxxxM2 One-phase
phase Network Network
R / L1
S / L2
T / L3
S / L2
R / L1
W / T3
U / T1
V / T2
W1
U1
V1
M
3a
DANGER
RISK OF ELECTROCUTION.
To power on the ATV31 variable speed controller, follow the recommendations
provided in the installation guide ref. VVDED303043.
Failure to follow these instructions will result in death or serious injury.
1606369_02 07/2007 33
Hardware implementation of the main system
34 1606369_02 07/2007
Software implementation of the
main system
3
At a Glance
Overview This chapter describes software implementation of the main system of the
automation solution.
1606369_02 07/2007 35
Software implementation of the main system
36 1606369_02 07/2007
Software implementation of the main system
Twido The following method allows to load the application provided for the Twido controller:
Application
Step Action
1 Connect the Twido controller to a PC in the following manner:
Bluetooth
VW3A8115 VW3A8114
TwidoSuite Twido
Click OK.
6 Wait until the program is finished loading.
In the TwidoSuite main window, select the taskProgram → Debut → Disconnect
and click OK.
Note: If the Bluetooth communication link is lost, disconnect the reconnect the
Bluetooth VW3A8114 gateway (Twido side) to reset the communication.
1606369_02 07/2007 37
Software implementation of the main system
2 3
No. Description
1 XBTZ945 2/2 RJ45/MiniDIN cable
2 XBTZ945 1/2 RJ45/SUB-D 9 cable
3 Mouse Port MiniDIN
4 COM port
1 2 3
No. Description
1 Cable XBTZ925(A) RJ45/RJ45
2 Adapter TSXCUSB485 RJ45/USB
3 USB port
For further information, see the Magelis XBTN / XBTR Operation Guide reference
1681028.
38 1606369_02 07/2007
Software implementation of the main system
The following method allows to load the program provided for the XBTN:
Step Action
1 From the CD-ROM BUNDLE (DIA3CD3050101F), COPY the file
"XBTN_XBTR\QS_XBT_N400.DOP"
2 PASTE this file into the directory "C:\Program Files\Schneider Electric\XBT-
L1000\appli"
3 Open the file using the XBT-L1000 software.
4 Connect the XBTN operator display to the PC (see above diagram). The XBTN
operator display must be powered on (for more information, see the operation guide
of the operator display.
The XBTN displays "WAITING FOR TRANSFER".
5 From the XBT-L1000 software menu bar, select "Transfer/Export".
6 Wait until the program is finished loading to disconnect the XTBN from the PC.
1606369_02 07/2007 39
Software implementation of the main system
Principle The system products must be configured according to the Twido application
controller as follows:
Address 1: ATV31
Transmission Speed: 125 kBits/s
Altivar 31 1 Altivar 31 7
RUN RUN
CAN
2 CAN
ERR ERR
ESC ESC
3
ENT ENT
6
STOP
4 RUN 5
RESET
ATV31xxxxx ATV31xxxxxxA
No. Description
1 The red LED on indicates that the direct bus is powered on.
2 4-digit "7 segments" operations display.
3 Central programming terminal.
4 "RUN" key, for starting motor in forward mode.
5 To lock/unlock the front panel of the speed controller, a flat or cross-slot screwdriver
is needed.
6 "STOP/RESET" key, for stopping the motor and resetting the current defaults.
7 These two LEDs indicate the status of communications ("RUN") and the presence of
a possible fault ("ERR") on the CANopen bus.
40 1606369_02 07/2007
Software implementation of the main system
Note: The configuration may be modified only when the motor is stopped and when
the variable speed controller is locked (cover closed). Any modification entered will
become effective after an "Off/On" cycle of the speed controller.
For more information, see the reference document VVDED303042.
1606369_02 07/2007 41
Software implementation of the main system
Indicators The two indicator LEDs, located on the right side of the 4-digit 7 segment display on
the front panel of the Altivar 31, indicate the status of CANopen communications::
42 1606369_02 07/2007
Software implementation of the main system
1606369_02 07/2007 43
Software implementation of the main system
Special Note In the event of use WITHOUT MOTOR (simulation mode), the ATV31 variable
speed controller will display an error message: "OPF". Change the configuration in
the "FLt / OPL" submenu and send the value "YES" to "OAC".
44 1606369_02 07/2007
Presentation of the application
4
At a Glance
1606369_02 07/2007 45
Presentation of the application
Operating mode
Commands When installation of the main system is complete, the system may be controlled
using four push buttons and one two-position button.
Input Function Description Output
Corresponding symbol Corresponding symbol
%I0.8 Motor forward The corresponding LED turns on when %Q0.0
PB_START_FORWARD start the selected speed is reached. SD_RUN_FORW
%I0.9 Motor reverse The corresponding LED turns on when %Q0.1
PB_START_REVERSE start the selected speed is reached. SD_RUN_REV
%I0.10 Stop motor The corresponding LED turns on when %Q0.2
PB_STOP the motor stops. SD_STOPPED
%I0.11 Predefined motor Apply a predefined speed when changing No output to match input
PB_SLOW_FAST speeds position:
%I0.11 is set to 0: 3,300 rpm
%I0.11 is set to 1: 88 rpm
%I0.13 Acknowledge an Reset an error (the cause of the error No output to match input
RESET_ERROR ATV31 error must be eliminated):
Note: In our sample application, the push button for %I0.10 must be pushed (Stop
motor) in order to change the direction of motor rotation.
Note: In the sample program, the speed configured manually with the XBTN is not
memorized after a motor stop. The speed of 3,300 rpm depends on the
configuration of the variable speed controller.
46 1606369_02 07/2007
Presentation of the application
HMI
Main page
Organigram of
pages
MAIN PAGE
ATV DRIVE
Twido I/O
1606369_02 07/2007 47
Presentation of the application
"ATV DRIVE"
page
The "ATV DRIVE" page displays the speed instruction sent to the ATV31 by the
Twido controller.
To modify speed, do the following:
Step Action
1
Press on the MOD key.
2
Use the and arrows to change the speed (immediate write).
3
Press on the ENTER key to confirm.
"I/O" page
The "I/O" screen provides access to 3 screens that display the status of:
I/O of the Twido controller,
I/O of the Advantys OTB I/O module (see Add an Advantys OTB I/O module,
p. 77),
I/O of the Advantys FTB I/O splitter (see Add an Advantys FTB I/O splitter,
p. 103).
48 1606369_02 07/2007
Presentation of the application
Simplified chart The operation of the ATV31 may be represented in the following manner:
of ATV31
operation
0 Default speed
PB_START_FORWARD PB_START_REVERSE
Forward Reverse
=1
PB_SLOW_FAST = 0 PB_SLOW_FAST = 1
=1
PB_STOP = 0 PB_STOP = 1
Speed
controller stop
1606369_02 07/2007 49
Presentation of the application
RESET_ERROR
Communication error
Note: In the event of a communication error, the motor state depends on the
ATV31 configuration (fallback modes)
50 1606369_02 07/2007
Add a Lexium 05 servo drive
III
At a Glance
Overview This section of the document presents a possible evolution of the main system, that
is the addition of a Lexium 05 servo drive.
Application files Files for this configuration may be found on the CD-ROM BUNDLE
(DIA3CD3050101F) in the "Applicative files\Partie_III" folder for the Twido controller
application.
1606369_02 07/2007 51
Add a Lexium 05 servo drive
52 1606369_02 07/2007
Hardware implementation of a
Lexium 05 servo drive
5
At a Glance
1606369_02 07/2007 53
Hardware implementation of a Lexium 05 servo drive
110-240 VAC
54 1606369_02 07/2007
Hardware implementation of a Lexium 05 servo drive
Wiring the To connect the Lexium 05 to the TAP, use the type RJ45 - RJ45 cable so that:
Lexium 05-TAP
ATV31 Lexium 05
VW3CANCARR1
2
ATV
1
ATV
er Suit
P ow
e
Su it
1606369_02 07/2007 55
Hardware implementation of a Lexium 05 servo drive
Power supply
R/L1 S/L2
DANGER
RISK OF ELECTROCUTION.
To power on the Lexium 05 servo drive, follow the recommendations provided in
its installation guide reference 0198441113233.
Failure to follow these instructions will result in death or serious injury.
BSH servo motor Connect the BSH 0551T11A2A servo motor to the Lexium 05 using cable
power supply VW3M5101R50:
R/L1 S/L2
L1 L2 L3 PE
L1
L2
L3
60 mm (2.36 in)
70 mm (2.76 in)
Note: The terms L1, L2 and L3 appear on each of the 3 black wires.
56 1606369_02 07/2007
Hardware implementation of a Lexium 05 servo drive
CN3 0V
+24 VDC
Lexium 05 digital
I/Os wiring
CN1
11 12 13 14 21 22 23 31 32 33 34 35 36 37 38 39
+24 VDC
1606369_02 07/2007 57
Hardware implementation of a Lexium 05 servo drive
Servo motor Connect the BSH servo motor to the Lexium 05 with cable VW3M8101R50 as
command follows:
SHLD 1
12
6
11
5
8
CN2 2
9
4
3
A NC
10
NC
12 11 10 9 8 7
6 5 4 3 2 1
58 1606369_02 07/2007
Software implementation of a
Lexium 05 servo drive
6
At a Glance
1606369_02 07/2007 59
Software implementation of a Lexium 05 servo drive
Principle The system products must be configured according to the Twido application
controller as follows:
Address 1: ATV31
Address 10: Lexium 05
Transmission Speed: 125 kBits/s
1 Lexium 05 8
RUN
2 BUS
ERR
3 ESC
7
ENT
4 6
No. Description
1 The red LED on indicates that the direct bus is powered on.
2 4-digit "7 segments" operations display.
3 Up arrow button:
Return to the menu or the previous parameter
Increase the value displayed
4 Down arrow button:
Go to the menu or the next parameter
Lower the value displayed
5 To lock/unlock the front panel of the speed controller, a flat or cross-slot screwdriver is
needed.
6 ENT:
Call a menu or a parameter
Store the values displayed in the EEPROM
7 ESC:
Exit a menu or a parameter
Return to the last value stored.
8 These two LEDs indicate the status of communications ("RUN") and the presence of a
possible fault ("ERR") on the CANopen bus.
60 1606369_02 07/2007
Software implementation of a Lexium 05 servo drive
Note: The configuration may be modified only when the motor is stopped and when
the servo drive is locked (cover closed). Any modification entered will become
effective after an "Off/On" cycle of the servo drive.
For more information, see the reference document 0198441113233.
Communication Use the "COM" communication menu to access configuration of the CANopen
Parameters communication functions of the Lexium 05 connected to a Twido controller:
Parameter Possible values for Display on the Values to input for
the Lexium Lexium terminal the application
CANopen CoAd address 1 to 127 1 to 127 10
CANopen Cobd speed 125 kBits/s 125.0 125 kBits/s
250 kBits/s 250.0
500 kBits/s 500.0
1606369_02 07/2007 61
Software implementation of a Lexium 05 servo drive
Principle The objective is to modify the existing application in order to be able to control the
Lexium 05 servo drive.
Declare the The following method allows declaration of the Lexium 05 in the Twido controller and
Lexium 05 in the CANopen master.
Step Action
1 Open the project "BUNDLE\Partie_II\BUNDLE_CAN_Part_II.xpr" using the TwidoSuite software
(TwidoSuite must be in disconnected mode).
In the TwidoSuite main window, select the task Program → Configure → Configure hardware.
Select the CANopen network TWDNCO1M:
Telemecanique
1 0 00 My project
i 010
01
10
10
0
0 011 10 0
10
10
?
010 1 0 10 010 1 0 0 0 010 0
0101 0 00 0 100 1 0 01 0 01 0 1 0 0 0
0101 0 00 11 1 0 0 0 01 01 0 0 0
110 0 10 01 1 0 0 11 1 0 0 1 0
0110 0 00 010 01 01 0 0
1 01
010
Project Describe Program Document
Configure Program Debug
@1
Configure the
hardware
Configure the
data
Configure the
RS232
behavior
Define the
protections
TWDLCAA24DRF TWDNCO1M
@1 Address 1
Configure
TwidoSuite
Click Configure.
62 1606369_02 07/2007
Software implementation of a Lexium 05 servo drive
Step Action
2 Expand the tree of the Drives and Motion Control (DS-402) profile:
Catalog Network
00 00 00(DS-402)
00 ATV31_V1.2 Drives and Motion Control
(V1.2)
1 BASIC_ATV311 BASIC_ATV31 (V.. HeartBeat
00 00 00 00 0 ATV61_V1.2
2
(V1.1) 3
00 00 00Lexium05
00
ATV71_V1.1 (V1.1) 4
(V1.12)
5
BASIC_LXM05 (V1.0)
6
7
8
9
10
11
12
13
Properties Value
14
Vendor Telemecanique
15
Description EDS file for Altivar 31 CANopen..
Author S.T.I.E. 16
OK Cancel Apply
3
Select "BASIC_LXM05 (V1.0)" in the "Catalog" area and click on and click to add the Lexium 05 servo
drive in the "Network" area:
CANopen Configuration Tool
Network Mapping Linking Symbol
Catalog Network
00 0 0 (DS-401)
00 0 0
I/O Modules # Slave Type Supervision
00 0 0 0 ATV31_V1.2 (V1.2)
(DS-402) Drives and Motion Control 1 BASIC_ATV311 BASIC_ATV31 (V.. HeartBeat
2 BASIC_LXM051 BASIC_LXM05 (V.. None
00 00 00 00 0 ATV61_V1.2 (V1.1)
ATV71_V1.1 (V1.1)
3
0 0 0 Lexium05
0 BASIC_LXM05
4
(V1.12)
5
(V1.0)
6
7
8
9
10
11
12
13
Properties Value
14
Vendor Telemecanique
15
Description EDS file for Altivar 31 CANopen..
Author S.T.I.E. 16
OK Cancel Apply
1606369_02 07/2007 63
Software implementation of a Lexium 05 servo drive
Step Action
4 For better visibility, the network address of the servo drive will be address 10.
Click on to declare the new speed controller at the network address 10:
Catalog Network
00 00 00 (DS-402)
00 ATV31_V1.2Drives and Motion Control
(V1.2)
1
2
BASIC_ATV311 BASIC_ATV31 (V.. HeartBeat
00 0 0 0 ATV61_V1.2 (V1.1) 3
0 0 0 00 0 0Lexium05
ATV71_V1.1
0
(V1.1)
(V1.12)
4
5
BASIC_LXM05 (V1.0)
6
7
8
9
10 BASIC_LXM051 BASIC_LXM051 (V.. HeartBeat
11
12
13
Properties Value
14
Vendor Telemecanique
15
Description LXM05 CANopen..
Author Telemecanique 16
OK Cancel Apply
Important note: When the Supervision type stays on "None", the motor will continue to turn even if the
communication between the CANopen bus and the Lexium 05 is interrupted. Change the Heartbeat value.
Management of the error mode is as follows:
Nodeguarding: The Master monitors the Slave.
Heartbeat: The Slave monitors the Master. If the RJ45 or the SUB-D 9 cable of the TWIDO is
disconnected, the servo drive stops.
None: There is no monitoring, even if one of the cable is disconnected, the servo motor continues
operating.
64 1606369_02 07/2007
Software implementation of a Lexium 05 servo drive
Step Action
5 Select the "Linking" tab.
Use to assign the Lexium 05 to PDO number 10 in "Send" and to PDO 10 and 11 in "Receive":
OK Cancel Apply
It is recommended to maintain consistency with the CANopen Slave address and the associated PDOs. To
do this, the devices added subsequently in our example will obey the following rule:
slave address = number of the first PDO
6 Click on the "OK" button to confirm. The Lexium 05 is then declared in the Twido controller and in the
CANopen master.
1606369_02 07/2007 65
Software implementation of a Lexium 05 servo drive
Macro Drive of The following method allows configuration of the Lexium 05 in the Macro Drive of the
Lexium 05 application in order to be able to control it.
Step Action
1 In the TwidoSuite main window, select the task Program → Configure → Configure the data.
In the left side of the window, select Advanced objects → Drive Macros.
The first ATV31 speed controller is declared in the Macro Drive "Drive 0". It can be seen that its CANopen
network address is indeed 1.
Telemecanique
0
100
i 010
01
10
10
0
0 01 1 10 0
10
10
?
010 10 1
0 0 1 00 1 0 0 0 010 0
010 1 0 00 0 1 0 1 0 01 0 01 01 0 0 0
010 0 00
1 11 10 0 0 0 1 0 1 0 01 0
110 0 0 10 01 0 1 0 0 11 1 0 0 0
011 0 00 01 01 0 1 0 0
010 1 01
Project Describe Program Document
Configure Program Debug
1
0
TwidoSuite
66 1606369_02 07/2007
Software implementation of a Lexium 05 servo drive
Step Action
2 1 – Select Drive 1.
2 - Check the Configure box.
3 - Select the CANopen network.
4 - Enter the network address 10 of the servo drive.
5 - Click in the white area (Beginning address) and enter the value 500.
6 - Check the Symbols box.
Apply Cancel
All 2
Used Macro Config. Help on Drive macros
Drive 0
1 Drive 1 General
Drive 2 Rung CANopen 3
Drive 3 Network address 10
Drive 4 4
Drive 5 Functions
Drive 6 Function PRE Function POST
Drive 7 Function name Start address Number of words Symbols
Drive 8 M_GEAR_OUT 500 50
Drive 9 M_MANAGER 500 50
Drive 10 M_POWER 500
5 50 6
Drive 11 M_STOP_AXIS 500 50
Drive 12 M_HALT_AXIS 500 50
Drive 13 M_HOME 500 50
Drive 14 M_RESET 500 50
Drive 15 M_MOVE_VEL 500 50
Drive 16 M_MOVE_ABS 500 50
Drive 17
M_MOVE_REL 500 50
Drive 18 M_SET_TORQUE 500 50
Drive 19 M_GEAR_IN 500 50
Note: Macro Drive 0 integrated in part I (ATV31) uses 30 words starting at address 0; i.e. words %MW0 to
%MW29. Macro Drive 1 (Lexium 05) must have a different address range. In our example, Macro Drive 1
will use words %MW500 to %MW549.
3 Click on the "Apply" button to confirm.
1606369_02 07/2007 67
Software implementation of a Lexium 05 servo drive
Programming The following method allows modification of the application to control the Lexium 05.
The Macro Drive is used to control the servo drive transparently for the user using
the Drive com status chart.
Step Action
1 In the TwidoSuite main window, select the task Program → Program → Edit Program.
Telemecanique
10 0
0 My project
i 010
01
10
10
0 011
0 1 0 10
0101 0 00 0 10
?
0 10 010 0 00 101 0 10 0
1 0 1 00 1 0 00 0 0 1 00 1 0 0 0
1100 0 10 01 0 1 0 0 0 1 0 1 0 01 0
011 0 00 11 1 0 0 1 0 11 1 0 0 0
0101 01 0 1 0 0 01 1 0 0
01 010
Project Describe Program Document
Configure Program Debug
00 0 0 00 0 0 0
Hex Edit Program
1 2 3 Ladder S
S Number 100 %
Dec abc
00 00 00 00
Program
1 - - LADDER R
R %TM %C P N Define
000
Start [1.1] Symbols
1 LD
End [1.1]
Subroutines
00 00 00 00 00 00 00 00 00 00 00 00 000 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00
%I0.8 %I0.10 %M4 D_RUN_FWD 0
00000000000000
00 00 00 00 00 00 00 00 00 00 00 00 00
FORWARD
%M3
00 0 0 0 0 0 0 0 0 0 0 0 0 0
FORWARD
%M3
10 01
01 10
TwidoSuite
2 Click on the line "RUNG 1" to select the whole line. The selected line turns green:
INIT MACRO - SPEED DRIVE (CAN SLAVE @1) ATV DRIVE COM INITIALISATION 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000
00000000000000000000000000000000000000000000000000000
Rung 1
00 0 0 0 0D_MANAGER
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000
0 0 0 0 0D_MANAGER
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
SHORT 0
68 1606369_02 07/2007
Software implementation of a Lexium 05 servo drive
Step Action
4 Select the new line.
Double click on the function "D_MANAGER_0" and change it to "M_MANAGER_1" in order to match the
Macro no. of the Lexium 05. Confirm this modification with the "Enter" key on the keyboard.
Click on the line header to change the comment. Press the "Enter" key of the keyboard to confirm.
Rung 1 00 0 0 0 D_MANAGER
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000
00 0 0 0 D_MANAGER
0 000000000000000000000000000000000000000000000000
0
SHORT
Rung 2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 M_MANAGER 1
0
SHORT
00 0 0 0 M_MANAGER
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
POWER ON LXM
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Rung 3
00 00 00LXM_POWER
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
0 0 0%I0.0
000000000000000000000000000 00 0 0%MW509:X1
00000000000000000000000
P
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00S00 00 00 00
0 M_POWER 1 0
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 M_POWER 1
1606369_02 07/2007 69
Software implementation of a Lexium 05 servo drive
Step Action
6 Create the following lines:
Send a relative movement command:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0
RUN POSITION LXM 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
Rung 6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 000 0000000000000000000000000000000000000000000000000000000000
00 0 0M_TARGET_VELOCITY_1:=2000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 00 00START_POSITION
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
%I0.1 00 0 0%MW5300 0 0 0 0 0 0 0 0 0 0 0 0 0 :=0 0 0 02000 0000000000000000000000000000000000000
P 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00M_TARGET_POSITION_LO_1:=0
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 0 0 0%MW532
0 0 0 0 0 0 0 0 0 0 0 0 0 0:=0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
00 00 00 M_TARGET_POSITION_HI_1:=16#F
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 0 0 %MW533 := 16#F
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 0 0 0M_MOVE_REL
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 010 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
M_MOVE_REL 1
0
000000000000000000000000000000
STOP MOTOR (CAN SLAVE @10)
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Rung 9
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
Twido_Input Stop Drive
00 00 00M_STOP_AXIS
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 00 00PB_STOP
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 0 0M_STOP_AXIS
%I0.10 1
P
70 1606369_02 07/2007
Software implementation of a Lexium 05 servo drive
Step Action
7 Create the following lines:
Turn on the indicator light when the servo motor is running:
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
PILOT LIGHT IF MOTOR IS GOING TO POINT 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Rung 13 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 MOTOR_IS_GOIN 00
00 00 00M_MODE_
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00=00 00 300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00PB_STOP
DISPLAY_1
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Twido_Input Stop Drive
00 00 00G_TO_POINT
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 0 0 0 0 0 0 0 0 0 0 0 0 0 =0 0 030 0 0 0 0 0 0 0 0 0 0 0 0%MW509:X4
0 0 0%MW506 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0%I0.10 000000000000000000000000000 00 0 0%Q0.3
000000000000000000000000000
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
OPERATIONAL MODE LXM 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Rung 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00M_RESET
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 0 0RESET_ERROR
000000000000000000000000000
%I0.13 00 0 0M_RESET 1
P
Note: While in progress, the variables are represented as addresses and symbols.
8 In the TwidoSuite main window, select the task Project → Save the current project.
9 Load the new application into the Twido controller (see Installing software and loading applications, p. 36).
Note: The command for switching the state from READY to RUN is programmed
permanently: once you are in Power ON mode, you can no longer switch back to
Power OFF (no reset command for the associated bit).
Note: For details on the Macro DRIVE used, refer to the TwidoSuite online help.
1606369_02 07/2007 71
Software implementation of a Lexium 05 servo drive
72 1606369_02 07/2007
Presentation of the Lexium 05
application
7
At a Glance
1606369_02 07/2007 73
Presentation of the Lexium 05 application
Operating mode
Commands When system installation is complete, the system may be controlled using six push
buttons and one two-position button.
Input Function Description Output
Corresponding symbol Corresponding symbol
%I0.0 Switching the The Lexium 05 switches from READY to No output to match input
LXM POWER Lexium 05 from RUN.
the READY to
RUN
%I0.1 Starting the servo The corresponding LED turns on when %Q0.3
START_POSITION_LXM motor the servo motor is running. MOTOR_IS_GOING_TO
_POINT
%I0.8 Motor forward The corresponding LED turns on when %Q0.0
PB_START_FORWARD start the selected speed is reached. SD_RUN_FORW
%I0.9 Motor reverse The corresponding LED turns on when %Q0.1
PB_START_REVERSE start the selected speed is reached. SD_RUN_REV
%I0.10 Stopping the The corresponding LED turns on when %Q0.2
PB_STOP motor and the the motor stops. SD_STOPPED
servo motor
%I0.11 Predefined motor Apply a predefined speed when changing No output to match input
PB_SLOW_FAST speeds position:
%I0.11 is set to 0: 3,300 rpm
%I0.11 is set to 1: 88 rpm
%I0.13 Acknowledgemen Reset an error (the cause of the error No output to match input
RESET_ERROR t of an ATV31 must be eliminated):
and/or Lexium 05
error
Note: In our sample application, the push button for %I0.10 must be pushed (Stop
motor) in order to change the direction of motor rotation.
Note: In the sample program, the speed configured manually with the XBTN is not
memorized after a motor stop. The speed of 3,300 rpm depends on the
configuration of the variable speed controller.
74 1606369_02 07/2007
Presentation of the Lexium 05 application
Simplified chart The operation of the Lexium 05 may be represented in the following manner:
of Lexium 05
operation
0 BSH servo motor movement
LXM POWER
=1
START_POSITION_LXM
Stop
servo-motor
=1 =1
1606369_02 07/2007 75
Presentation of the Lexium 05 application
RESET_ERROR
Communication error
Note: In the event of a communication error, the BSH servo motor state depends
on the Lexium 05 configuration (fallback modes)
76 1606369_02 07/2007
Add an Advantys OTB I/O module
IV
At a Glance
Overview This section of the document presents a possible evolution of the main system, that
is the addition of an Advantys OTB I/O module.
Note: If you are not using a speed controller in your application, erase the
associated elements in the CANopen configuration as well as in the Twido
controller application program.
Application The following example will allow to control outputs of the Advantys OTB I/O module
principle the same as those of the Twido controller.
Files Files for this configuration may be found on the CD-ROM BUNDLE
(DIA3CD3050101F) in the "Applicative files\Partie_IV" folder for the Twido controller
application.
1606369_02 07/2007 77
Add an Advantys OTB I/O module
78 1606369_02 07/2007
Hardware implementation of an
Advantys OTB module
8
At a Glance
Overview This chapter describes hardware implementation of an Advantys OTB I/O module
added to the main system.
1606369_02 07/2007 79
Hardware implementation of an Advantys OTB module
110-240 VAC
3 2
24 VDC
80 1606369_02 07/2007
Hardware implementation of an Advantys OTB module
Principle The objective is to connect the Advantys OTB to the Twido controller using a cable
that first must be prepared.
OTB-Twido cable Connect a SUB-D 9 TSXCANKCDF90T connector with the TSXCANCA50 cable
preparation (see TAP-Twido Cable Preparation, p. 27).
Cable pin assignment in the terminal of the SUB-D 9 connector:
No. Signal Cable Connector Wire color
1 CAN_H OTB/Twido CH1 White
2 CAN_L OTB/Twido CL1 Blue
3 GND OTB/Twido CG1 Black
4 V+ OTB/Twido V+1 Red
Note: Toggle the line end terminator of the connector on the Advantys OTB side to
"On".
OTB side cabling The SUB-D 9 end of the previously prepared cable is connected to the Advantys
OTB.
Twido side The "bare wire" end of the previously prepared cable is connected to the SUB-D 9
cabling connector joined to the Twido controller. This mounting is performed in the same
manner as previously with the following pin assignment:
No. Signal Cable Connector Wire color
5 CAN_H OTB/Twido CH2 White
6 CAN_L OTB/Twido CL2 Blue
7 GND OTB/Twido CG2 Black
8 V+ OTB/Twido V+2 Red
Note: Toggle the line end terminator of the SUB-D 9 connector on the Twido
controller side to "Off".
1606369_02 07/2007 81
Hardware implementation of an Advantys OTB module
OTB inputs Inputs of the Advantys OTB I/O module are not used in this example. For more
cabling information, see the reference guide 160384.
Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7
COM
0 1 -V NC 2 3 4 COM1 NC 5 6 COM2 NC 7 COM3
(+)
Power supply
Power on the To power on the Advantys OTB I/O module, follow the recommendations provided
Advantys OTB in reference guide 1606384.
82 1606369_02 07/2007
Software implementation of an
Advantys OTB module
9
At a Glance
Overview This chapter describes software implementation of an Advantys OTB I/O module
added to the main system.
1606369_02 07/2007 83
Software implementation of an Advantys OTB module
Principle The system products must be configured according to the Twido application
controller as follows:
Address 1: ATV31
Address 2: Advantys OTB
Address 10: Lexium 05
Transmission Speed: 125 kBits/s
No. Function
1 Network address (Node-ID x10) encoder wheel
2 Network address (Node-ID x1) encoder wheel
3 Transmission speed encoder wheel
84 1606369_02 07/2007
Software implementation of an Advantys OTB module
Note: After changing any features of the components of the CANopen network, the
bus should be reinitialized by cycling the Twido controller On/Off.
Note: The value of 8 allows automatic search for the bus transmission speed. The
search starts at a value of 1 Mbps then progressively lowers over successive
searches until communication is established on the bus. The automatic search only
works on an operational CANopen network.
1606369_02 07/2007 85
Software implementation of an Advantys OTB module
Principle The objective is to modify the existing application in order to be able to manage the
I/O of the Advantys OTB module.
Software It is first necessary to install the Advantys Configuration Tool software that allows
Installation configuration of Advantys OTB and FTB I/O modules and splitters.
Declare the The following method allows declaration of the Advantys OTB I/O module in the
Advantys OTB Twido controller application.
module
Step Action
1 Open the application "BUNDLE\Partie_III\BUNDLE_CAN_Part_III.xpr" using the TwidoSuite software
(TwidoSuite must be in disconnected mode).
In the TwidoSuite main window, select the task Program → Configure → Configure hardware.
Select the CANopen network TWDNCO1M:
Telemecanique
100
0 My project
i 010
01
10
10
10
0 00 10 1 0
0
10
?
01
1 10 1
0 0 1 00 1 0 00 0 010 0
0 10 1 0 0 0 01 01 0 0 01 01 0 0 0
0 10 1 0 0 0 11 10 0 1 0 0 1 0 1 0 01 0
1 10 0 1 0 01 0 1 0 0 11 1 0 0 0
0 11 0 0 0 0 01 01 1 0 0
0
1 01
0 10
Project Describe Program Document
Configure Program Debug
@1
Configure the
hardware
Configure the
data
Configure the
RS232
behavior
Define the
protections
TWDLCAA24DRF TWDNCO1M
@1 Address 1
Configure
TwidoSuite
Click Configure.
86 1606369_02 07/2007
Software implementation of an Advantys OTB module
Step Action
2
Expand the tree of the I/O Modules (DS-401) profile, select "Advantys OTB (V1.0)" and click on to
launch configuration and addition of a new element:
Catalog Network
OK Cancel Apply
3 In the "New Island" window, enter "OTB_CAN_01" matching the name of the equipment that will be used in
TwidoSuite. Next click on the "OK" button to confirm and launch the Advantys Configuration Tool
application:
New island
OTB-CAN_01
Catalog selection
OK Cancel
1606369_02 07/2007 87
Software implementation of an Advantys OTB module
Step Action
4 Double click on the module "OTB1C0DM9LP" to add it in the new island.
Advantys
File Edit Display Island. Options Window Help
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 % 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 00 0 OTB_CAN_01
Island browser
0 0 - OTB 1CODM9LP OTB_CAN_01 0 0 0 00 0 0OTBbrowser
Catalog
00 0 Network Modules
Catalog
00 0 0 0 TWD
DDI 8DT
DAI 8DT
00 0 0 00 0 0 TWD
TWD DDI 16DT
DDI 16DK
00 00 00 00Discrete Outputs
TWD DDI 32DK
00 0 0 0 0 Analog Inputs
00 00 00 00 00 Analog Outputs
00 0 0 0 0 Mixed Analog Modules
Thermocouple/RTD
Accessories
88 1606369_02 07/2007
Software implementation of an Advantys OTB module
Step Action
6
Select "OTB_CAN_01 (V1.0)" in the "Catalog" area and click on to add the Advantys OTB in the
"Network" area:
Catalog Network
0 OTB (V1.0)
OTB_CAN_01 (V1.0)
2
3
OTB_CAN_011 OTB_CAN_01 (V.. None
OK Cancel Apply
Note: The Advantys OTB is configured by default to the first free network address, that is the network
address 2 in our example.
1606369_02 07/2007 89
Software implementation of an Advantys OTB module
Step Action
7 Select the "Linking" tab.
CANopen Configuration Tool
Network Mapping Linking Symbol
Slave PDO Master PDO
Type Receive Type Transmit
Slave Name COB-ID # PDO Name COB-ID
OTB_CAN_011 PDO TX 1 182 1 BASIC_ATV311 PDO RX 6
2
3
4
5
6
7
8
9
10 BASIC_LXM051 PDO RX 1
11
12
13
14
15
16
OK Cancel Apply
Use to assign the new Advantys OTB I/O module to the PDO no. 2, in both "Receive" and "Send":
OK Cancel Apply
90 1606369_02 07/2007
Software implementation of an Advantys OTB module
Step Action
8 Select the "Symbol" tab.
Enter, if necessary a "symbol" for the objects associated with the Advantys OTB I/O module:
Double click in the object's "Symbol" field,
Type the name of the "Symbol",
Confirm using the "ENTER" key of the keyboard.
OK Cancel Apply
9 Next click on the "OK" button to confirm the changes. The Advantys OTB I/O module is then declared in the
Twido controller application.
1606369_02 07/2007 91
Software implementation of an Advantys OTB module
Non-reversible The following method allows modification of the application to control outputs of the
Advantys OTB I/O module the same as those of the Twido controller.
The following method consists in changing the lines that manage the outputs of the
Twido controller by adding the outputs of the Advantys OTB.
Step Action
1 In the TwidoSuite main window, select the task Program → Program → Edit Program.
2 Select a program line corresponding to the control of outputs of the Twido controller:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PILOT LIGHT FORWARD IF MOTOR IS AT SELECTED SPEED
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Rung 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00PB_STOP
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FORWARD
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00SD_RUN_FORW
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0%I0.10
0 0 0%IWC1.0.0:X10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 %M3 000000000000000000000000000 0 0 0%Q0.0
0 000000000000000000000000000
Draw a line parallel to the output coil of the Twido controller (output %Q0.0):
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
PILOT LIGHT FORWARD IF MOTOR IS AT SELECTED SPEED 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000
Rung 11
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00PB_STOP
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FORWARD
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00SD_RUN_FORW
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
%IWC1.0.0:X10 %I0.10 %M3 0 0 0%Q0.0
000000000000000000000000000
0
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PILOT LIGHT FORWARD IF MOTOR IS AT SELECTED SPEED 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
Rung 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00PB_STOP
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FORWARD
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0%I0.10
0 0 0%IWC1.0.0:X10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 %M3 000000000000000000000000000 00 0 0SD_RUN_FORW
000000000000000000000000000
%Q0.0
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 0 0OTB_CAN_
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
OUTPUTS_1
00 0 0%QWC1.1.0:X0
000000000000000000000000000
92 1606369_02 07/2007
Software implementation of an Advantys OTB module
Step Action
4 Redo the same changes to be able to control the other outputs X1, X2 and X3:
00 00 00 00 00 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
SHORT
00 00 00 00 00D_SETPOINT_
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00100 00 00:=00 00 00SD_SPEED 00000000000000000000
:= %MW1040 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
00 0 0 0 0%MW34
00 00 00 00 00 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
0 0 0 0 0D_SELECT_SPEED
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 010 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
00 0 0 0 0D_SELECT_SPEED
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 010 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 0 0SD_RUN_FORW
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 0 0 SD_RUN_REV 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 0 0SD_STOPPED
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
0 0 0%Q0.0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 %Q0.1 000000000000000000000000000 00 0 0%Q0.2
00000000000000000000000
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00%QWC1.1.0:X2
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PILOT LIGHT FORWARD IF MOTOR IS AT SELECTED SPEED
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Rung 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 00 00 00PB_STOP
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00FORWARD
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 SD_RUN_FORW 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0%I0.10
0 0 0%IWC1.0.0:X10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0%M3 000000000000000000000000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 %Q0.0
000000000000000000000000000000
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
00 0 0%QWC1.1.0:X0
000000000000000000000000000
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
PILOT LIGHT IF MOTOR IS GOING TO POINT 000000000000000000000000000000
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0=0 0 30 0 0 0 0 0 0 0 00 000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 000 000 00 00PB_STOP
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 0MOTOR_IS_GOIN
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 000
Rung 13
00 0 0M_MODE_ Twido_Input Stop Drive
G_TO_POINT
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 0 0%Q0.3
DISPLAY_1
0 0 0%MW506
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0=0 0 30 0 0 0 0 0 0 0 0 0 0 0 0%MW509:X4
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0%I0.10
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 %QWC1.1.0:X3 0
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1606369_02 07/2007 93
Software implementation of an Advantys OTB module
Step Action
5 Add OTB I/O management by the XBT:
00 00 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
SHORT
00 00XBT_TWIDO_OUTPUTS
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00=00 00 SD_RUN_FORW:10 0000000000000000000000000000000
:= %Q0.0.0:10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
00 0 %MW121
00 00 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
0 0 XBT_OTB_OUTPUTS
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0=0 0 0OTB_CAN_OUTPÜTS_1 0000000000000000000000000000000000
00 0 %MW107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0:=0 0 0 %QWC1.1.0 000000000000000000000000000000000000000000000000000
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 XBT_OTB_INPUTS
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00=00 00 OTB_CAN_INPUTS_1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 0 %MW108
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0:=0 0 0 %IWC1.1.0 000000000000000000000000000000000000000000000000000
6 In the TwidoSuite main window, select the task Project → Save the current project.
7 Load the new application into the Twido controller (see Installing software and loading applications, p. 36).
94 1606369_02 07/2007
Add expansion modules to the
Advantys OTB
10
Principle
Overview This section describes how to add I/O expansion modules to the Advantys OTB.
These expansion modules allow to manage the Discrete and Analog I/O.
1606369_02 07/2007 95
Add expansion modules to the Advantys OTB
Principle The objective is to modify the existing application in order to be able to manage the
I/O of the Advantys OTB I/O module associated with two expansion modules.
96 1606369_02 07/2007
Add expansion modules to the Advantys OTB
Declare the OTB The following method allows declaration of the Advantys OTB I/O module in the
module Twido controller application.
Step Action
1 Open the project "BUNDLE\Partie_III\BUNDLE_CAN_Part_III.xpr" using the TwidoSuite software
(TwidoSuite must be in disconnected mode).
In the TwidoSuite main window, select the task Program → Configure → Configure hardware.
Select the CANopen network TWDNCO1M:
Telemecanique
100
0 My project
i 010
01
10
10
0
0 01 1 10 0
10
10
?
010 101
0 0 100 1 0 0 0 01 0 0
010 1 0 0 0 0 1 1 0 01 0 01 0 1 0 0 0
010 0 0 0
1 1 10 0 0 0 0 1 0 1 0 01 0
110 0 0 1 0 0 110 1 0 0 11 10 0 0
011 0 0 0 01 01 0 1 0 0
010 1 01
Project Describe Program Document
Configure Program Debug
@1
Configure the
hardware
Configure the
data
Configure the
RS232
behavior
Define the
protections
TWDLCAA24DRF TWDNCO1M
@1 Address 1
Configure
TwidoSuite
Click Configure.
1606369_02 07/2007 97
Add expansion modules to the Advantys OTB
Step Action
2
Select the module "OTB_CAN_01" in the "Network" area and click on to delete it:
Catalog Network
00 0 0 (DS-401)
00 00 00 000 Advantys FTB (V1.0)
I/O Modules # Slave Type Supervision
1 BASIC_ATV311 BASIC_ATV31 (V.. HeartBeat
Advantys OTB (V1.0) 2 OTB_CAN_01 OTB_CAN_01 (V.. None
(DS-402) Drives and Motion Control 3
4
5
6
7
8
9
10 BASIC_LXM051 BASIC_LXM05 (V.. None
11
12
13
Properties Value
14
Vendor Telemecanique
15
Description OTB IC0 DM9LP
Author Schneider 16
OK Cancel Apply
3
Expand the tree of the I/O Modules (DS-401) profile, select "Advantys OTB (V1.0)" and click on to
launch configuration and addition of a new element:
CANopen Configuration Tool
Network Mapping Linking Symbol
Catalog Network
00 0 0 (DS-401)
0 0 0 00 Advantys FTB (V1.0)
I/O Modules # Slave Type Supervision
OK Cancel Apply
98 1606369_02 07/2007
Add expansion modules to the Advantys OTB
Step Action
4 In the "New Island" window, enter "OTB_CAN_02" matching the name of the equipment that will be used in
TwidoSuite. Next click on the "OK" button to confirm and launch the Advantys Configuration Tool
application:
New island
OTB-CAN_02
Catalog selection
OK Cancel
Cancel
5 Double click on the "OTB1C0DM9LP" I/O module to add it in the new island:
Do the same with the "TWDDDO8TT" and "TWDDRA8RT" expansion modules to add them to the new
island:
Advantys
File Edit Display Island. Options Window Help
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 % 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 Island
0 0 0 00 0 OTB_CAN_02
browser 0 Catalog
0 0 0 00 browser
0 0 0 - OTB 1CODM9LP
OTB_CAN_02
00 0 0OTB 0 NetworkCatalog
00 00 00 1 - TWD DDO 8TT 0 0 0
00 0 0 0000 0 OTB 1CODM9LP
Modules
0 0 0 0 0 Thermocouple/RTD
Accessories
1606369_02 07/2007 99
Add expansion modules to the Advantys OTB
Step Action
6 It is possible to double click on the image of each module to set the parameters (Mask, polarity,
management of fallback modes, etc.).
Perform a "File / Save".
Perform a "File / Quit".
The new island containing the Advantys OTB I/O module and its expansion modules is then added to the
CANopen catalog under the name "OTB_CAN_02".
7
Select "OTB_CAN_02 (V1.0)" in the "Catalog" area and click on to add the Advantys OTB in the
"Network" area:
Catalog Network
0 0 0 0 00 0 0Advantys
Advantys FTB (V1.0) 1 BASIC_ATV311 BASIC_ATV31 (V.. HeartBeat
0 0 0 00 OTB_CAN_01 (V1.0)
OTB (V1.0) 2 OTB_CAN_021 OTB_CAN_02 (V... None
3
OTB_CAN_02 (V1.0) 4
(DS-402) Drives and Motion Control 5
6
7
8
9
10 BASIC_LXM051 BASIC_LXM05 (V.. HeartBeat
11
12
13
Properties Value
14
Vendor Telemecanique
15
Description OTB IC0 DM9LP
Author Schneider 16
OK Cancel Apply
Note: The Advantys OTB is configured by default to the first free network address, i.e., the network address
2 in our example.
Step Action
8 Select the "Linking" tab.
Use to assign the new Advantys OTB I/O module and its two expansion modules to the PDO no. 2, in
both "Receive" and "Send" modes:
CANopen Configuration Tool
Network Mapping Linking Symbol
Slave PDO Master PDO
Type Transmit Type Receive
Slave Name COB-ID # PDO Name COB-ID
1 BASIC_ATV311 PDO TX 6
2 OTB_CAN_021 PDO TX 1
3
4
5
6
7
8
9
10 BASIC_LXM051 PDO TX 1
11
12
13
14
15
16
OK Cancel Apply
Non-reversible The goal is to modify the application to manage the outputs of the Advantys OTB I/
O module and of its expansion module the same as those of the Twido controller.
The method is identical to that described for the addition of an Advantys OTB by
integrating the new outputs of the new island:
%QWC1.1.0:X0 to X7 for the Advantys OTB "OTB1C0DEM9LP" module,
%QWC1.1.2:X0 to X7 for the "TWDDO8TT" expansion module,
%QWC1.1.4:X0 to X7 for the "TWDRA8RT" expansion module.
Here, for example, the line of the modified application managing the "FOWARD
START" indicator LEDs:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PILOT LIGHT FORWARD IF MOTOR IS AT SELECTED SPEED 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 0 0PB_STOP 0 FORWARD 0 00 00 00SD_RUN_FORW
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Rung 11
In the TwidoSuite main window, select the task Project → Save the current
project.
Load the new application into the Twido controller (see Installing software and
loading applications, p. 36).
V
At a Glance
Overview This section of the document presents a possible evolution of the main system, that
is the addition of an Advantys FTB I/O splitter.
Note: If you are not using a speed controller or Advantys OTB I/O module in your
application, erase the associated elements in the CANopen configuration as well
as in the Twido controller application program.
Application files Files for this configuration may be found in CD-ROM BUNDLE (DIA3CD3050101F)
in the "Applicative files\Partie_V" folder for the Twido controller application.
Overview This chapter describes hardware implementation of an Advantys FTB I/O splitter
added to the main system.
110-240 VAC
3 4 2
24 VDC
24 VDC
Principle The objective is to connect the Advantys FTB to the Advantys OTB using a cable.
Select a cable To connect the Advantys FTB to the Advantys FTB, select one of the following
cables:
Reference Cable length (m)
FTXCN3230 3
FTXCN3250 5
Advantys FTB The M12 end of the cable is connected to the Advantys FTB on the "BUS IN" base.
side cabling
Advantys OTB The "bare wire" end of cable is connected to the SUB-D 9 connector joined to the
side cabling Advantys OTB (see TAP-Twido Cable Preparation, p. 27).
Cable pin assignment in the terminal of the SUB-D 9 connector:
No. Signal Cable Connector Wire color
5 CAN_H FTB/OTB CH2 White
6 CAN_L FTB/OTB CL2 Blue
7 GND FTB/OTB CG2 Black
8 V+ FTB/OTB V+2 Red
Note: Toggle the line end terminator of the SUB-D 9 connector on the Advantys
OTB to "OFF".
Connect the FTXCNTL12 line end terminator to the "BUS OUT" base of the
Advantys FTB.
Power supply
Power on the Power on the Advantys FTB I/O splitter using one of the following cables:
Advantys FTB
Reference Cable length (m)
FTXDP2115 1,5
FTXDP2130 3
FTXDP2150 5
Wiring Diagram:
1 1
2 2
3 5 5 3
4 4
Pin Assignment:
PIN No. Description Wire color Printing on wire
1 0V Black 1
2 0V Black 2
3 PE Green/Yellow -
4 +24 V Black 3
5 +24 V Black 4
Overview This chapter describes software implementation of an Advantys FTB I/O splitter
added to the main system.
Principle The system products must be configured according to the Twido application
controller as follows:
Address 1: ATV31
Address 2: Advantys OTB
Address 3: Advantys FTB
Address 10: Lexium 05
Transmission Speed: 125 kBits/s
2
1 3
No. Function
1 Transmission speed encoder wheel
2 Network address (Node-ID x10) encoder wheel
3 Network address (Node-ID x1) encoder wheel
Principle The objective is to modify the existing application in order to be able to manage the
I/O of the Advantys FTB splitter.
Declare the The following method allows declaration of the Advantys FTB I/O splitter in the
Advantys FTB Twido controller application.
splitter
Step Action
1 Open the project corresponding to your hardware configuration using the TwidoSuite software (TwidoSuite
must be in disconnected mode).
ATV31, LXM05, OTB without the expansion module: BUNDLE\Partie_IV\BUNDLE_CAN_Part_IV.xpr
ATV31, LXM05, OTB + expansion modules: BUNDLE\Partie_IV\BUNDLE_CAN_Part_IVb.xpr
In the TwidoSuite main window, select the task Program → Configure → Configure hardware.
Select the CANopen network TWDNCO1M:
Telemecanique
100
0 My project
i 010
01
10
10
10
0 00 10 0
10
10
?
01
1 10 1
0 0 1 00 1 0 0 0 010 0
0 10 1 0 0 0 0 1 0 1 0 01 0 01 01 0 0 0
0 10 1 0 0 0 11 10 0 0 0 1 0 1 0 01 0
1 10 0 0 1 0 01 0 1 0 0 11 1 0 0 0
0 11 0 0 0 01 01 0 1 0 0
1 01
0 10
Project Describe Program Document
Configure Program Debug
@1
Configure the
hardware
Configure the
data
Configure the
RS232
behavior
Define the
protections
TWDLCAA24DRF TWDNCO1M
@1 Address 1
Configure
TwidoSuite
Click Configure.
Step Action
2
Expand the tree of the I/O Modules (DS-401) profile, select "Advantys FTB (V1.0)" and click on to
launch configuration and addition of a new element:
CANopen Configuration Tool
Network Mapping Linking Symbol
Catalog Network
OK Cancel Apply
3 In the "New Island" window, enter "FTB_CAN_01" matching the name of the equipment that will be used in
TwidoSuite. Next click on the "OK" button to confirm and launch the Advantys Configuration Tool application:
New island
FTB-CAN_01
Catalog selection
OK Cancel
Step Action
4 Double click on the Advantys FTB I/O "FTB1CN08E08SP0" splitter to add it in the new island:
Advantys
File Edit Display Island. Options Window Help
00 Island
000000000 0 0 0 0browser
000000000000000000000000000000000000 100 %
00 0Catalog
0 0 0 0 0 0 0 0 0 0 browser
000000000000000000000000000000000000
00 0 FTB_CAN_01
0 0 - FTB 1CN08E08SP0
FTB_CAN_01
0 0 0 00 0 0FTB
00 0 0NetworkCatalog
Modules
0 0 0 FTB 1CN16EP0
00 00 00 FTB 1CN16EM0
00 00 00 FTB 1CN16CP0
FTB 1CN16CM0
00 00 00 FTB 1CN12E05SP0
FTB
1CN08E08SP0
FTB 1CN08E08CM0
5 It is possible to double click on the image of the splitter to set the parameters (Function, Mask, polarity,
management of fallback modes, etc.).
Perform a "File / Save".
Perform a "File / Quit".
The new island containing the Advantys FTB I/O splitter is then added to the CANopen catalog under the
name "FTB_CAN_01".
Step Action
6
Select "FTB_CAN_01 (V1.0)" in the "Catalog" area and click on to add the Advantys FTB splitter in the
"Network" area.
Catalog Network
0 0 0 0 FTB_CAN_01 (V1.0) 2
3
OTB_CAN_021
FTB_CAN_011
OTB_CAN_02 (V..
FTB_CAN_01 (V...
None
None
Advantys OTB (V1.0)
(DS-402) Drives and Motion Control 4
5
6
7
8
9
10 BASIC_LXM051 BASIC_LXM05 (V.. None
11
12
13
Properties Value
14
Vendor Telemecanique
15
Description FTB
Author Schneider 16
OK Cancel Apply
Note: The Advantys FTB is configured by default to the first free network address, i.e., the network address
3 in our example.
Step Action
7 Select the "Linking" tab.
Use to assign the new Advantys FTB splitter to the PDO no. 3, in both "Receive" and "Send":
OK Cancel Apply
Non-reversible The goal is to change the application to control the I/O of the Advantys FTB splitter
the same as those of the Twido controller.
The method is identical to the one described for adding an Advantys OTB by
integrating to the application the new I/O of the Advantys FTB splitter:
%IWC1.2.0:X0 to X7 for inputs,
%QWC1.2.0:X0 to X7 for the outputs.
In the TwidoSuite main window, select the task Project → Save the current
project.
Load the new application into the Twido controller (see Installing software and
loading applications, p. 36).
At a Glance
List of symbols The following pages contain the list of symbols used in the application described in
part V of this document.
List of symbols In the TwidoSuite main window, select the task Program → Program → Define
Symbols.
Here, for example, is the list of symbols used in the application described in part V
of this document:
Symbol Number Comment
LXM POWER %I0.0
START_POSITION %I0.1
PB_START_FORWARD %I0.8 Twido_input: start drive Forward
PB_START_REVERSE %I0.9 Twido_Input: Start drive Reverse
PB_STOP %I0.10 Twido_Input: Stop drive
PB_SLOW_FAST %I0.11 Twido_Input: select speed drive SLOW or FAST
RESET_ERROR %I0.13
D_STATUS_BASIC_ATV311 %IWC1.0.0
D_CONTROL_BASIC_ATV311 %IWC1.0.1
D_IERROR_BASIC_ATV311 %IWC1.0.2
OTB_CAN_INPUTS_1 %IWC1.1.0
OTB_CAN_INPUTS_2 %IWC1.1.1
FTB_CAN_INPUTS_1 %IWC1.2.0
STATUS_PDO1_BASIC_LXM051 %IWCD1.9.0
STATUS_PDO2_BASIC_LXM051 %IWCD1.9.2
M_POSITION_BASIC_LXM051 %IWCD1.10.0
M_VELOCITY_BASIC_LXM051 %IWCD1.10.2
FORWARD %M3
REVERSE %M4
PB_12_RF %M12