LUFP1 v1, Fipio-Modbus RTU Gateway PDF
LUFP1 v1, Fipio-Modbus RTU Gateway PDF
LUFP1 v1, Fipio-Modbus RTU Gateway PDF
1743315
03/2009
www.schneider-electric.com
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.
All pertinent state, regional, and local safety regulations must be observed when installing and using this
product. For reasons of safety and to help ensure compliance with documented system data, only the
manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant instructions must be
followed.
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 information can result in injury or equipment damage.
2009 Schneider Electric. All rights reserved.
1743315 03/2009
Table of Contents
3. Signaling ............................................................. 25
4.1. Introduction........................................................................... 26
4.1.1. System Architecture ....................................................... 26
4.1.2. Configuring the Motor Starters ....................................... 27
4.1.3. Modbus Cycle Time ....................................................... 27
4.1.4. Managing Degraded Modes With the Gateway Default
Configuration .................................................................. 27
4.2. Gateway Configuration under PL7 PRO .............................. 31
4.2.1. WorldFIP Mode .............................................................. 31
4.2.2. Adding the LUFP1 Gateway under PL7 PRO ................ 31
4.2.3. Configuring and Adjusting the LUFP1 Gateway ............ 33
4.2.4. Selecting and Adding the Profibus-DP Master Station .. 34
4.2.5. Adjustment Parameter Values, Standard Configuration 35
4.2.6. Deleting One or More TeSys U Motor Starters from the
Configuration .................................................................. 36
4.2.7. Configuring Gateway Inputs / Outputs ........................... 38
4.2.8. Description of Services Assigned to Gateway I / O ....... 40
4.2.9. Validating and Saving the FIPIO Network
Configuration .................................................................. 41
4.2.10. Assigning Symbols to the Gateways FIPIO Objects ... 41
4.2.11. Checking the Operational Status of the Gateway ........ 42
4.2.12. Modifying the Gateway Parameters in ONLINE Mode. 43
4.2.13. Debugging and Using the Gateway Configuration....... 43
4.2.14. Developing a FIPIO Application ................................... 43
1743315 03/2009
Safety 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.
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 or serious injury.
CAUTION
CAUTION indicates a potentially hazardous situation which, if not avoided, can result
in minor or moderate injury.
CAUTION
CAUTION, used without the safety alert symbol, indicates a potentially hazardous
situation which, if not avoided, can result in equipment damage.
PLEASE NOTE
1743315 03/2009
Related
Documents
Title of Documentation
Reference Number
Installation,
ABC_User_Manual.pdf
(SDN-7061-059)
and NEMA ICS 1.1
(latest edition)
Safety Standards for Construction and Guide for Selection, NEMA ICS 7.1
Installation and Operation of Adjustable-Speed Drive Systems
(latest edition)
Modbus User Guide
TSX DG MDB E
Modicon Modbus Protocol Reference Guide
PI-MBUS-300 Rev. J
You can download these technical publications and other technical information from our
website at www.schneider-electric.com.
User Comments
1743315 03/2009
We welcome your comments about this document. You can reach us by e-mail at
[email protected]
1. Introduction
1.1. Introduction to the Users Manual
The LUFP1 Gateway Users Manual is organised into a series of chapters, which can in turn be grouped
together into three parts as follows:
Part I:
Chapter 1:
Chapter 2:
Chapter 3:
Chapter 4:
Chapter 5:
Part II:
Chapter 6:
Chapter 7:
Part III:
Appendix A:
Appendix B:
Appendix C:
Appendix D:
Appendix E:
covers all the elements required in order to set up the gateway and operate it on a FIPIO
network.
describes the gateway, the user manual that comes with it and the terms used in it.
gives an introduction to the gateway and describes all the items used when setting it up, both
inside the gateway (coding wheels) and outside (cables and connectors).
describes the six LEDs on the front of the gateway.
describes the successive steps for setting the gateway up with a PLC using FIPIO. You need
to use PL7 PRO to configure the gateway and thus interface a FIPIO master with Modbus
slaves. The example used in this implementation enables the FIPIO master to dialog with 8
TeSys U motor starters.
describes all the FIPIO objects associated with the LUFP1 gateway and which you can use
with PL7 PRO.
is dedicated to a third-party application, ABC-LUFP Config Tool, which enables the gateway
to be configured in greater detail than as set out in Part I. This part therefore supersedes
chapt. 4.
describes an alternative method for configuring the LUFP1 gateway. Rather than using PL7
PRO, the gateway is configured with third-party software known as ABC-LUFP Config Tool,
allowing for more detailed configuration of the LUFP1 gateway. The example used in this
implementation is the same as in Chapter 4.
describes how to use ABC-LUFP Config Tool to create or modify a configuration for the
gateway, but only in the context of an Advanced Implementation of the Gateway. It also
presents the various software functions (add or delete a Modbus slave, add or modify a
Modbus command, etc.) and the changes to be made regarding advanced gateway
implementation operations with PL7 PRO (Chapter 6).
contains the full set of Appendices which supplement the first two parts.
Technical Characteristics describes the technical aspects of both the gateway and the
networks it is interfaced with, namely the FIPIO and Modbus RTU networks.
describes the configuration and adjustment parameters for the LUFP1 gateway.
Standard Configuration describes the main features of the configuration used in the Advanced
Implementation of the Gateway (Chapter 6). However, it does not go into ABC-LUFP Config
Tool in detail.
Sample Use under PL7 PRO provides an example of how the LUFP1 gateway is used, based
on the configuration described in the Software Implementation of the Gateway (Chapter 4).
This example employs the command and control registers for 8 TeSys U motor starters and
uses the gateways indexed periodic variables (PKW) service and list of active slaves (LAS)
service.
Modbus Commands describes the contents of the Modbus command frames supported by the
LUFP1 gateway.
1743315 03/2009
1. Introduction
Quick Access to Critical Information
using
(1)
User of
Presentation
of
Hardware
and
Connections
the predefined
(2b) configuration, the nb of
modifying
slaves (< 8)
using
(3)
User of
other Products
the predefined
(2a) configuration
(with 8 slaves)
using
via ABC-LUFP
Config Tool
(4)
- powering,
- mounting,
- Modbus connecting,
- Profibus connecting,
- Transmission speed and address selecting
Select between:
- adapting the predefined configuration
provided with the gateway, if close
enough to that you wish (1 register to
read and 1 to write, 1 register address
to change), or
- building up your own configuration
from scratch (see ABC User Manual)
1743315 03/2009
1. Introduction
1.2. Introduction to the LUFP1 Gateway
The LUFP1 gateway allows a master located on a FIPIO network to enter into a dialogue with the slaves on a
Modbus RTU network. This is a generic protocol converter operating in a way which is transparent to the user.
This gateway allows you to interface many products marketed by Schneider Electric with a FIPIO network.
These include TeSys U motor starters, Altivar drivers and Altistart soft start- soft stop units.
1.3. Terminology
Throughout this document, the term user refers to any person or persons who may need to handle or use the
gateway.
The term RTU, which refers to the Modbus RTU communication protocol, will be omitted most of the time. As a
result, the simple term Modbus will be used to refer to the Modbus RTU communication protocol.
As it is still the case with all communication systems, the terms input and output are somewhat ambiguous.
To avoid any confusion, we use a single convention throughout this document. So the notions of input and
output are always as seen from the PLC, or the FIPIO master.
Hence, an output is a command signal sent to a Modbus slave, whereas an input is a monitoring signal
generated by this same Modbus slave.
The diagram below shows the flows of inputs and outputs exchanged between a FIPIO master and Modbus
RTU slaves via the LUFP1 gateway:
NOTE: For more explanation about specific terms, refer to the Glossary at the end of this guide.
1743315 03/2009
1. Introduction
1.4. Introduction to the Communication System Architecture
Each LUFP1 FIPIO / Modbus RTU gateway allows one PLC on the FIPIO network to command, control and
configure up to 8 Modbus slaves. If there are more than 8 Modbus slaves, you will need to use an appropriate
number of LUFP1 gateways. Likewise, if the gateway needs to exchange more than 26 words with the Modbus
slaves (sum of the read and write operations); the Modbus slaves will have to be shared over more than one
gateway.
1743315 03/2009
1. Introduction
The LUFP1 gateway behaves both as a FIPIO slave on the upstream network and as a Modbus RTU master on
the downstream network.
Config Tool
In the context of the Software Implementation of the Gateway, the data exchanges (input and output words)
between the gateway and the Modbus slaves are all periodic. Collectively, these Modbus exchanges form the
gateways Modbus scanner; they are configured using PL7 PRO (by configuring and adjusting the standard
profile FED C32 P). Every item of data exchanged in this way is made available to the FIPIO master, which can
access it periodically and implicitly. The only aperiodic exchanges that can be performed with the
LUFP1gateway on the FIPIO network are explicit exchanges relating to the adjustment parameters and gateway
status parameters.
The gateway has a configuration and adjustment service called PKW, which offers read-write access to any
Modbus slave parameter via the periodic input and output of the LUFP1 gateways. This service is aperiodic on
the Modbus network and periodic on the FIPIO network. It can be used for the following tasks:
Reading the value of one or more data for which a low refresh rate is sufficient;
Reading the value of a data item when an event is signalled by a periodic variable.
One of the gateway input words informs the FIPIO master of the presence or absence of each Modbus slave.
The input word in question is the LAS service.
The diagram illustrates the distribution of several slaves throughout three Modbus RTU downstream networks,
each one being interfaced with the FIPIO master PLC using a LUFP1 gateway.
10
1743315 03/2009
1. Introduction
The FIPIO network is totally separate from the Modbus network. The frames on a network are not directly
translated by the gateway to generate frames on the other network. Instead, the exchanges between the
contents of the gateways memory and the Modbus slaves make up a system independent of the one entrusted
with managing the exchanges between the gateway memory and the FIPIO master.
The example which follows illustrates the independent management of each of the two networks:
(1)
The sum of Input Data and Output Data is limited to 26 words max.
1743315 03/2009
11
Legend:
12
1743315 03/2009
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths and, for
certain critical control functions, provide a means to achieve a safe state during and after a path failure.
Examples of critical control functions are emergency stop and overtravel stop.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the implications of
unanticipated transmission delays or failures of the link. a
Each implementation of an LUFP Gateway must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
a
For additional information, refer to NEMA ICS 1.1 (latest edition), Safety Guidelines for the Application, Installation, and Maintenance of Solid
State Control and to NEMA ICS 7.1 (latest edition), Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems.
NOTE: The spring is also used to ground the gateway (Protective Earth).
1743315 03/2009
13
+
Power supply
24V isolated (10%)
95 mA max.
WARNING
RISK OF UNINTENDED EQUIPMENT OPERATION
Do not use the 24 VDC power available from the FIPIO network cabling to operate the LUFP Gateways, as
the negative terminal () of this power is not necessarily at the installation earth ground potential. Use of an
ungrounded power supply may cause the LUFP devices to operate in an unexpected manner.
To ensure reliable operation, the LUFP Gateways require a separate power supply where the negative
terminal () is connected to the installation earth ground.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
Recommendations:
14
1743315 03/2009
1743315 03/2009
15
16
1743315 03/2009
TSXSCA62
Modbus
LUFP1 Gateway
TSXCSA00
Male RJ45
1
2
D(B)
D(B)
14 D(B)
D(A)
D(A)
0V
1743315 03/2009
0V
D(A)
15 0V
17
WARNING
RISK OF UNINTENDED EQUIPMENT OPERATION
Do not connect more than 9 stations to the Modbus fieldbus (gateway and 8 slaves). While the gateway
may appear to operate correctly with more than 9 devices, it is likely one or more devices will only
communicate intermittently, leading to unpredictable system behavior.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
cable routing: keep the bus cable away from power cables (at least 30 cm (0.98 ft)), make crossings at
right angles if necessary, and connect the cable shielding to the earth on each unit,
adapt the line at both ends using a line terminator (see diagram and VW3 A8 306 RC termination below).
D(B)
D(A)
120
1 nF
WARNING
MODBUS TERMINATION USING THE RESISTANCE-ONLY METHOD
Use only RC (Resistance-Capacitance) Modbus cable terminations with the LUFP1 Gateway. The LUFP
gateways are designed to support client equipment that will not function correctly without using RC-type
Modbus cable termination.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
18
1743315 03/2009
1743315 03/2009
19
7
8
9
Grounding / Shielding
FIP cables
(TSX FP CA )
Incoming main cable
Signal (+)
7 Signal (-)
8
9
Shielding / Grounding
NOTE: If the two main cables are replaced by a TSX FP CC tap-off cable, the red and orange wires
correspond to the signal (+), while the green and black wires correspondent to the signal ().
20
1743315 03/2009
Use TSX FP ACC 12 connectors (or TSX FP ACC 2 in the case of TSX 17-20 micro-PLCs) to connect the
gateway to the FIPIO network.
Use a TSX FP CA main FIPIO cable to link up the connectors and a TSX FP CC FIPIO tap-off cable
if you need to connect up to a tap box (TSX FP ACC 14, TSX FP ACC 3, TSX FP ACC 4 or TSX FP ACC
10). Both of these shielded cables are available in lengths of 100, 200 or 500 meters.
Use two line terminations to close off the FIPIO network at both ends of each electrical segment. The TSX
FP ACC 7 kit includes two FIP terminations.
Connect the reference potentials to one another.
The transmission rate is fixed at 1 Mbit / s.
Use TSX FP ACC 6 repeaters to connect up two electrical segments on the same FIPIO network. The
maximum length of an electrical segment is 1,000 m. Follow this rule:
[ (Number of repeaters 2) + Sum of lengths (in km) ] < 22
The longest FIPIO network that can be implemented under this rule would be 15 km long and would
require 14 repeaters (14 2 + 15 = 22).
Do not connect more than 32 master or slave stations per segment (not counting repeaters).
Cable routing: keep the bus away from power cables (at least 30 cm), make crossings at right angles if
necessary and connect the cable shielding to the earth on each unit.
For more details about connections, see the FIPIO Bus / FIPWAY Network Reference Manual
(ref. TSX DR FIP F for the French version, TSX DR FIP E for the English version, TSX DR FIP G for the German
version and TSX DR FIP S for the Spanish version). This manual also contains details on the operating
characteristics and implementation of a FIPIO field bus.
In addition, the manual Electromagnetic Compatibility of Industrial Field Buses and Networks
(ref. TSX DGKBL F for the French version, ref. TSX DGKBL E for the English version and ref. TSX DGKBL G for
the German version) contains valuable rules and precautionary measures for wiring up a FIPIO field bus.
A number of accessories are available from the Schneider Electric catalogue to facilitate the connection of
stations on a FIPIO network:
1) Connectors, tap boxes and line terminations:
TSX FP ACC 12 connector ....... Isolating connector for equipment with a 9-pin female SUB-D connector.Used
for daisy-chain or parallel cabling (see illustration on next page).
TSX FP ACC 2 connector ......... Female connector for the TSX FPG 10 coupler (TSX 17-20 micro-PLCs).
Used for daisy-chain or parallel cabling.
TSX FP ACC 14 box ................. Isolating tap box for bus connections to the main cable.
TSX FP ACC 4 box ...................
TSX FP ACC 10 box
Watertight tap boxes for bus connections to the main cable. They alsosupport
one 9-pin female SUB-D connector (for the PCMCIA card cable TSX FP CG
010 / 030).
TSX FP ACC 3 box ................... Isolated tap box for bus connections to the main cable. Also supports two 9pin female SUB-D connectors (as above).
TSX FP ACC 7 terminations ..... Set of two line terminations for adapting the impedance of both ends of an
electrical segment. You will need one set per electrical segment.
TSX FP ACC 6 repeater............ Electrical repeater for joining two segments, each with a maximum length of
1,000 m.
1743315 03/2009
21
22
1743315 03/2009
CAUTION
OPENING LUFP COVER WITH POWER ON
The power supply of the gateway must be turned off before opening the cover. Once the cover has been
removed, make sure you touch neither the electrical circuits nor the electronic components, as this may
damage the device.
Failure to follow this instruction can result in injury or equipment damage.
This task is limited to configuring the gateway's FIPIO address, as the communication speed on the FIPIO
network is fixed at 1 Mbit/s.
The two coding wheels used for configuring the gateways address are hidden behind the gateway cover g (see
illustration in chapter 2.2). To remove this cover, insert the end of a small flat screwdriver between the top of the
hood and the gateway box and pull it out.
Units
Tens
1743315 03/2009
The gateway's FIPIO address depends on the position of the two coding
wheels represented on the left, in their factory-setting positions (default
address = 2).
This address is the sum of the decimal values given by the angular
positions of the bottom coding wheel (tens) and the top coding wheel
(units).
23
continuing flashing of LEDs n, o, pand qmeans that the device cannot connect to the FIPIO bus
because the address is already used by another device.
This flashing signal also occurs when address 00 is configured using the gateways coding wheels.
Examples:
Address = 19
Units
Tens
24
Address = 73
Units
Tens
1743315 03/2009
3. Signaling
The gateways 6 LEDs and the descriptive label on the removable cover which hides its two coding wheels
(gateway address) allow you to diagnose the status of the gateway:
NOTE:
all flash at the same time at a
If LED does not flash from red to green and if LEDs
frequency of 2 Hz, this means that the physical gateway address is already used by another FIPIO
device, or that it has been set at 0 with the gateways coding wheels.
Try to resolve this address conflict by viewing the FIPIO network configuration in PL7 PRO. If necessary,
modify the addresses in the configuration. Also check the physical address configured on the gateway
using the coding wheels (see Section 2.7.1).
If both identically-addressed devices are reconnected to FIPIO network simultaneously, then the four
will flash, and then only discontinuously
LEDs mentioned above will not flash. In this case, only LED
and in an irregular manner. This happens, for example, when you disconnect and then reconnect the
bus arbitrator.
1743315 03/2009
25
See Chapter 2 for details on implementing the hardware for the standard configuration.
26
1743315 03/2009
Start bits
Parity
Parity bit
Stop bits
1
None
0
1
When using a TeSys U motor starter with a Modbus communication module (LULC03 module), the
configuration parameters for the RS485 connection are automatically detected, only the Modbus address of the
motor starter needs to be configured.
NOTE: The gateways Modbus slaves cannot be configured with PL7 PRO; the configuration and adjustment of
the LUFP1 gateway are limited to the gateway and to the management of generic Modbus exchanges.
4.1.3. Modbus Cycle Time
The LUFP1 gateways default configuration sets a cycle time of 300 ms on Modbus commands for each of the
8 TeSys U motor starters.
(1) The desired behavior with regard to outputs should be directly configured on each TeSys U motor starter.
(2) Use the List of Active Slaves (LAS) Service described in Section 5.2.
(3) Use the FIPIO Diagnostic Objects (Section 5.4) to detect the underlying event.
Please refer to Appendix B if you would like to change the way that degraded modes for all Modbus commands
are managed.
This parameter affects the data sent to all Modbus slaves if there is no communication from the FIPIO master.
1743315 03/2009
27
This parameter defines the time the gateway will wait for a response before it either retries sending the same
request, or it disconnects the slave and declares it missing.
The same Modbus timeout time is applied to all Modbus commands.
In the gateways standard configuration, described here, this time is equal to 300 ms (3 100 ms).
%MW\p.2.c\0.0.21 (bits 8-15): Retries
This parameter determines the number of re-transmissions carried out by the gateway if there is no response
from a Modbus slave.
The same number of retries is used for all Modbus commands.
In the gateways standard configuration, described here, this parameter is set to 3.
%MW\p.2.c\0.0.22 (bits 0-7): Reconnection time (unit: 1 s)
This parameter defines the amount of time the gateway will wait before it again tries to communicate with a
Modbus slave that was previously declared missing.
The same reconnection time is applied to all Modbus slaves.
In the gateways standard configuration, described here, this time is equal to 10 s (10 1 s).
! WARNING
RISK OF UNINTENDED EQUIPMENT OPERATION
During the reconnect time, you cannot control a slave (read/write) via the bus. Depending on the slave
characteristics and the watchdog configuration, the slave can keep the same status or take a fallback position.
To avoid an unintended equipment operation, you must know the possible status of a slave and adapt the timeout
and reconnect time values according to the request sending rate.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
%MW\p.2.c\0.0.23 (bits 8-15): Effects on FIPIO exchanges
This parameter affects the data sent to the FIPIO master if there is no response from a slave or if a slave is absent.
It is defined for all Modbus slaves, but only the data related to an absent slave is affected.
28
1743315 03/2009
1743315 03/2009
29
30
1743315 03/2009
Add the FIPIO device corresponding to the LUFP1 gateway by double-clicking the first free connection point. In
the window that appears, select the family STD_P and the basic module for that family, FED C32 P.
You also need to enter the physical address of the gateway on the FIPIO bus in the field Connection point
number. Entering a Comment is optional, but it does make it easier to pick out the gateway from among the
other devices on the same FIPIO bus.
1743315 03/2009
31
32
1743315 03/2009
NOTE: Make sure you configure the Bus Length correctly (see Section 2.6.2).
NOTE: The FED C32 P [FIPIO2 MODULE 0] windows shown above present Symbols which have been
added manually using the PL7 PRO variables editor. By default, no symbol is attributed to the gateways
configuration parameters (%KW) or adjustment parameters (%MW).
1743315 03/2009
33
34
1743315 03/2009
Syntax:
Syntax:
1743315 03/2009
35
4.2.6. Deleting One or More TeSys U Motor Starters from the Configuration
We will just look at one modification operation on the standard 8 TeSys U motor starter configuration: the
deletion of one or more motor starters. The 8 motor starters were configured to represent the typical maximal
configuration (a maximum of 8 Modbus slaves).
It is best to delete any slaves absent from your configuration in order to avoid any degradation in performance
that might be caused by the physical absence of motor starters declared in the LUFP1 gateway configuration.
Make the following changes to the Configuration Parameter Values, Standard Config (Section 4.2.4) and to the
Adjustment Parameter Values, Standard Configuration (Section 4.2.5):
For each absent TeSys U motor starter, reset to zero the number of periodic command words
(%KW\p.2.c\0.0.0 and %KW\p.2.c\0.0.1) and the number of periodic control words (%KW\p.2.c\0.0.2 and
%KW\p.2.c\0.0.3) on a single slave, starting with slave n8 and working back towards slave n1.
For each absent TeSys U motor starter, two of the addresses of periodic words n1 to 16
(%KW\p.2.c\0.0.4 to %KW\p.2.c\0.0.19) will become Not used parameters, starting with n16 and
working back towards n1. These two words comprise a command word / control word pair, which
means that you have to delete the last command word, shift the control words along by one parameter,
and then delete the last control word.
Check the mappings between Modbus slaves n1 to 8 and the addresses of the TeSys U motor starters
in your configuration (%MW\p.2.c\0.0.31 to %MW\p.2.c\0.0.34). For each absent motor starter, one of
the slaves will take the value 0x00 as its Modbus address, starting with slave n8 and working back to
n1.
36
1743315 03/2009
1743315 03/2009
37
38
1743315 03/2009
1743315 03/2009
39
40
1743315 03/2009
1743315 03/2009
41
NOTE: Neither of these configuration errors will be signaled by the gateway (its LEDs will indicate normal
operation). It is therefore essential that you perform the foregoing checks.
42
1743315 03/2009
While in
.
This window displays the gateway diagnostics (see previous page), and the values of the gateway inputs or
outputs (selected using the scroll bar in the Variables pane).
The display mode for the selected value can be modified (in the Base pane) to make it easier to read if, for
example, it consists of two independent bytes or a register of 16 independent bits.
The values of the outputs can also be modified, so that you can check in the absence of a PLC program that
updates the values periodicallythat the periodic commands have been transmitted to the gateway, first of all,
and subsequently to the TeSys U motor starters.
1743315 03/2009
43
(1) IMPLICIT exchanges are performed by the PLC without any additional programming; these are the periodic
FIPIO exchanges. EXPLICIT exchanges call for the programming of communication functions like
READ_PARAM, READ_STS, etc; these are aperiodic FIPIO exchanges for passing diagnostic variables,
downloading complete configurations, and so on.
(2) If the gateway is configured using ABC-LUFP Config Tool (see Chapter 6), the profile FED C32 must be
used. The configuration and adjustment parameters then become internal to the gateway and no longer
need to be transmitted by the FIPIO PLC, and the associated %MW and %KW objects cease to exist.
44
1743315 03/2009
1743315 03/2009
45
(1)
You can only configure a total of 26 periodic words. If you configure 20 periodic control words, for example, you
can then only configure a maximum of 6 periodic command words.
Periodic words (control and command) are organized in increasing order of the Modbus slaves (from n1 to n8).
Within this schema, the words assigned to each slave are, in turn, organized in increasing order.
Example: In the next example, the gateway is configured to control and command 4 Modbus slaves. This
example exploits the fact that the number of words is not necessarily the same for each slave.
46
1743315 03/2009
5.1.3. Configuration under ABC-LUFP Config Tool with Profile FED C32
The actual contents of the periodic command and control words described below will depend entirely on the
Modbus data / gateway memory associations you configured in ABC-LUFP Config Tool. These associations
involve the Data or Preset Data elements in the Modbus query and response frames. See Chapter 7, for the
various possibilities offered by this gateway configuration tool, especially in conjunction with profile FED C32.
NOTE: Unlike with profile FED C32 P, you are not restricted to a maximum total of 26 periodic words. You can
use all 26 input words and all 26 output words in the two tables above, organizing them in the gateway memory
as you see fit, within the limit of the addresses shown.
You are still limited to 26 Modbus commands, however, but you can read or write more than one word with each
of these commands.
1743315 03/2009
47
In the event of no response, or an invalid response, from a Modbus slave (after the timeout and subsequent
retransmissions of the Modbus command) the corresponding bit switches to 0. It will return to 1 as soon as the
gateway receives a valid response from the slave.
If several periodic words (or several Modbus commands) are configured for the same Modbus slave, then it only
requires one of the words to generate valid communications for the corresponding LAS bit to be set to 1.
NOTE:
You must configure at least one periodic command or control word per slave (profile FED C32 P) or at
least one Modbus command per slave (ABC-LUFP Config Tool and profile FED C32). If not, the slave
will be considered permanently absent (bit at 0).
If you want to communicate with a Modbus slave using the PKW service only, be aware that the LAS
and PKW services are totally disassociated: a PKW response from a Modbus slave will not set to 1 the
corresponding bit in word %IW\p.2.c\0.0.27.
Standard configuration (8 TeSys U devices): If you delete any motor starters from the configuration (see
Section 4.2.6), you will need to adapt the above table accordingly. If, for example, you delete 3 motor starters (it
has to be the last 3, whichever Modbus addresses are used), the bits corresponding to TeSys U motor starters
n6, 7 and 8 namely bits X5-X7will take on the value Not used (bits at 0).
48
1743315 03/2009
In the absence of any response from the queried Modbus slave using this service, the gateway retransmits the
samecommand 3 times in succession, waiting for 1 second between transmissions. If you wish, you can modify
the values of these two parameters (number of retransmissions and timeout) using ABC-LUFP Config Tool (see
Section 7.13.3).
1743315 03/2009
49
50
1743315 03/2009
1st Modbus slave. This is TeSys U motor starter n1, or Modbus slave n1 when profile FED
C32 P is used. When profile FED C32 is used, it stands for the first node configured in the
Sub-Network element under ABC-LUFP Config Tool. In either case, the gateway will use the
true physical Modbus address every time to query the 1st slave.
DN = 1 to 247
Physical address of the queried Modbus slave. The queried slave must be one of the Modbus
slaves configured under PL7 PRO (profile FED C32 P) or under ABC-LUFP Config Tool
(profile FED C32). By querying one or more of the slaves episodically via the PKW service, you
can avoid having to configure periodic words (under PL7 PRO) or Modbus commands (under
ABC-LUFP Config Tool).
DN = 254
LUFP1 gateway. With this reserved address you can read the values of certain registers on the
gateway (see Section 5.3.5). All the registers on the gateway are in 8-bit format and their
values will be returned to bits 0-7 of word %IW\p.2.c\0.0.30.
Some of these registers cannot be written using the PKW service; they are noted as being
Read Only, or RO, and only the 16-bit word read command (R/W = 0x52) can be used with
them. All the other gateway's internal registers can be read and written using the PKW service;
they are noted as being Read/Write, or R/W, and the 16-bit word read and write commands
(R/W = 0x52 or 0x57) can be used with them.
1743315 03/2009
51
Broadcast to all Modbus slaves. This DN value must only be used for write operations (R/W/N
= 0x4E in the event of a read operation). On the Modbus network, the command generated
uses the address 0: this means that all the Modbus slaves must accept the command,
although none of them will acknowledge it.
The drawback with the broadcast command is that the gateway has no way of checking
whether the Modbus slaves have received the command. Even if there are no slaves present
on the Modbus network, the gateway will still return a valid PKW response (R/W/N = OK).
NOTE: This feature can be particularly useful if you need to perform an urgent command on all
the slaves at the same time.
DN = ...........
Incorrect address. Any value other than those indicated above will elicit an error code from the
gateway (R/W/N = 0x4E).
52
1743315 03/2009
Copies the value of the R/W command register (see above), thereby also acknowledging
the command.
Sample reading of the value of two consecutive motor starter registers (16-bit words)
The operating duration (addresses = 119 for the MSB and 120 for the LSB) is read on TeSys U motor
starter n8 (address = 8).
The result of the read operation (value of the register at 119 and value of the register at 120) is 0x000D
and 0xC9C4 (total operating duration = 0x000DC9C4 = 903,620 seconds, or 251.0055 hours). Both of
the response PWE words are therefore used.
1743315 03/2009
53
54
Sample writing of the value of two consecutive motor starter registers (16-bit words)
The timeout and threshold for the thermal reset (addresses = 607 and 608) are written to TeSys U motor
starter n2 (address = 2) with the following values: 90 s (0x005A) and 60% (0x003C).
The result of the write operation is a simple acknowledgement, as no value is returned in the PWE of the
response; instead of inserting one or two values, the gateway forces both words of the PWE to 0x0000.
Sample erroneous reading of the value of a motor starter register (16-bit word)
An attempt is made to read the status register value (address = 455 for a TeSys U motor starter) on a
slave whose physical address corresponds to none of the addresses configured for the gateways
Modbus slaves (address = 32 = 0x20).
The response is an error code (R/W/N = 0x4E) and is immediate: the gateway signals to the FIPIO
master that the queried slave does not exist (1st word of PWE = error code = 0x0002).
Sample erroneous writing of the value of a motor starter register (16-bit word)
An attempt is made to write the status register value (address = 455) to TeSys U motor starter n2
(address = 2) with the value 0x0001, but the register is in read-only mode.
The response is an error code (R/W/N = 0x4E): the motor starter returns an exception response (1st
word of PWE = error code = Modbus exception code = 0x0002 = Illegal Data Address).
1743315 03/2009
Sample writing of the value of a register (16-bit word) on all the motor starters (broadcast)
The command register (address = 704) is written to all the TeSys U motor starters (address = broadcast
= 255) with the value 0x2000 (Stop and Pause).
NOTE: This simultaneously switches off all the TeSys U motor starters, but you still need to insert the
value 0x2000 in the periodic output words sent to the motor starters, otherwise they will return to their
previous status at the next Modbus polling cycle.
The result of the write operation is a simple acknowledgement, as no value is returned in the PWE of the
response; instead of inserting a value, the gateway forces both words of the PWE to 0x0000.
Sample reading of the value of a register (8-bit byte) on the LUFP1 gateway
The last error code from Modbus slave n1 is read on the gateway (address = 300 and DN = 0xFE).
If Modbus slave n1 (TeSys U motor starter n1 in the case of the standard configuration) has already
been disconnected from the Modbus network, the gateway will have assigned it the error code 0x04. In
this case, the result of the read operation is 0x04. As the value of the register read is contained in the
LSB of the 1st word in the response PWE, the corresponding MSB is forced to 0x00 by the gateway;
likewise, the 2nd word is forced to 0x0000.
1743315 03/2009
55
The adjustment and configuration parameters will only be present when the gateway is configured using PL7
PRO, i.e. in accordance with the standard profile FED C32 P. You should therefore not use addresses 0 to 119 if
you configure the gateway with ABC-LUFP Config Tool (profile FED C32 cannot be configured under PL7 PRO).
These parameters are shown below with the sole purpose of listing their addresses and access rights to the
PKW service. For more details about them, see Appendix B. To make it easier to read, the table below is based
on the FIPIO objects that correspond to the gateways configuration and adjustment parameters:
56
1743315 03/2009
CAUTION
RISK OF UNPROPER COMMUNICATION
Be careful while modifying the register values at addresses 68 to 119. The FIPIO master can alter the very
nature of the information exchanged between the gateway and the slaves.
Failure to follow this instruction can result in injury or equipment damage.
Slave error codes: Each of the registers at addresses 300 to 307 contains the code of the last error declared by
the gateway for the Modbus slave concerned. If the gateway receives an exception response from a Modbus
slave (see Modbus Protocol Exception responses in Appendix E) during periodic exchanges, it puts the
exception code in the corresponding register (300-307). The value of each of these registers remains the same
until either a new error is signaled for the slave concerned, or you reset it to zero using the PKW service (the
gateway only accepts write commands where PWE = 0x0000).
1743315 03/2009
57
See also the PL7 PRO documentation or on-line help (Working with communications > FIPIO bus
communications > Programming a FIPIO communication > Managing FIPIO faults) to learn more about the
procedures for managing FIPIO faults.
58
1743315 03/2009
1743315 03/2009
59
Before carrying out an exchange, check that the relevant bit (%MW\p.2.c\0.0:X) is at 0 (exchange inactive).
The bit will switch to 1 for the duration of the exchange.
When the exchange is complete (the bit switches back to 0), you can check the bit at the other end
(%MW\p.2.c\0.0.1:X) to determine whether the exchange succeeded (bit at 0) or failed (bit at 1).
60
1743315 03/2009
NOTE: The values of the initial adjustment parameters are those defined using the PL7 PRO configuration editor
or, alternatively, the most recently saved values.
These parameters are described in Appendix B.
1743315 03/2009
61
The main advantage of ABC-LUFP Config Tool lies in the possibility of configuring the gateways Modbus
scanner more precisely than under PL7 PRO, in that each Modbus command has its own configuration.
However, using this implementation method for the LUFP1 gateway substantially modifies the operating principle
described and illustrated in Chapter 7. The differences are set out below:
62
1743315 03/2009
1743315 03/2009
63
64
1743315 03/2009
NOTE: The Byte swap field must always have the value No swapping if you wish to avoid inverting the LSB
and MSB bytes of the data read or written using the Modbus commands.
Description of Services Assigned to Gateway I / O.................................................................Section 4.2.8
In the example provided, these services are identical to the ones in the standard configuration, for the
following reasons:
The periodic communications (inputs / outputs) are configured so that the gateway input / output
configuration (see above) is identical to the one in the standard configuration.
The aperiodic communications corresponding to the gateways PKW service must be active, whether the
gateway is configured according to profile FED C32 (in PL7 PRO) or profile FED C32 P (in ABC-LUFP
Config Tool).
The list of active slaves (LAS) must also be active on the gateway.
Validating and Saving the FIPIO Network Configuration........................................................Section 4.2.9
These operations have no equivalent under ABC-LUFP Config Tool, as ABC-LUFP Config Tool can configure
only one gateway at a time. The operations you can perform on a configuration are: Open and Save.
Under PL7 PRO, by contrast, you must always validate FED C32 P profile configuration and setting.
Assigning Symbols to the Gateways FIPIO Objects ............................................................Section 4.2.10
The FIPIO objects remain the same, except for the 30 configuration parameters (%KW\p.2.c\0.0 to
%KW\p.2.c\0.0.29) and the 30 adjustment parameters (%MW\p.2.c\0.0.20 to %KW\p.2.c\0.0.49), which
disappear, as their function is now taken over by ABC-LUFP Config Tool.
Checking the Operational Status of the Gateway..................................................................Section 4.2.11
If you want to use the example LUFP1_FEDC32_Example.cfg, run ABC-LUFP Config Tool, open the
configuration file (Open command in the File menu), transfer it to the gateway (Download configuration to
ABC-LUFP command in the File menu) and close ABC-LUFP Config Tool.
Once the configuration has been downloaded to the gateway, and the PL7 PRO application transferred to the
FIPIO
master
PLC,
use
PL7
PRO,
in
mode,
to
check
that
the
basic
module
1743315 03/2009
65
66
1743315 03/2009
In each case, the first two steps are required, as they allow you to establish the dialogue between the gateway and
the PC software that enables you to configure it, i.e. ABC-LUFP Config Tool.
We strongly recommend that you read Chapter 4, and, above all, Chapter 6, as all the ABC-LUFP Config Tool
operations described here assume that we are using the standard configuration (with 8 TeSys U motor starters)
presented in the context of the two LUFP1 gateway implementation methods.
Once the gateway has been connected to a PC with the PowerSuite cable and the RS232/RS485 converter, you
can change its configuration using "ABC-LUFP Config Tool". This configuration tool also allows you to carry out a
few diagnostics on the gateway.
7.1.1. Pin-Outs
67
1743315 03/2009
NOTE: The inversion of the Rx and Tx signals between the gateway and the PC is shown on the 9-pin Sub-D
connectors, as beyond this junction, the RS-232 signals are replaced by the D(A) and D(B) polarizations of the RS485 signals.
7.1.2. RS-232 Link Protocol
There is no need to configure the PCs COM port, as ABC-LUFP Config Tool uses a specific setup which replaces
the one for the port being used. This replacement is temporary and is cancelled as soon as ABC-LUFP Config Tool
stops using this serial port, i.e. when ABC-LUFP Config Tool is closed.
68
1743315 03/2009
button.
Once connected, you can disconnect ABC-LUFP Config Tool from the gateway by:
right-clicking on the ABC-LUFP element and clicking on Disconnect in the popup menu that appears, or
selecting the ABC-LUFP element and choosing Disconnect in the ABC-LUFP menu, or
clicking on the
button.
The rightmost part of the status bar of ABC-LUFP Config Tool displays its current connection mode:
In On-line mode, ABC-LUFP Config Tool periodically polls the gateway in order to detect if the gateway has been
disconnected.
1743315 03/2009
69
70
1743315 03/2009
71
The sample window above displays the contents of the memory exchanged, under the standard configuration, with
TeSys U motor starter n1.
In the upper pane you can choose a Modbus command, edit its contents, and send it to the Modbus network
(Command menu). The response will then be displayed in the same pane. See Section 2.10 in the ABC-LUFP
Config Tool user manual, entitled AnyBus Communicator User Manual, for further information about how to
use this window. The manual can be found on the http:///www.schneider-electric.com website under
ABC_User_Manual.pdf.
The lower pane allows you to view the contents of the gateways memory, but only the bytes used in the query and
response frames of the commands configured for the selected node.
In the window shown above, the data displayed correspond to the values at the memory locations designated by
the Data fields in the commands configured for the node TeSys U n1, namely: Read Holding Registers and
Preset Multiple Registers.
NOTE: The data exchanged with the previously selected Modbus slave are displayed MSB-first, i.e. in the order
MSB /LSB (from left to right, in ascending order of memory address), provided that the Byte Swap option in the
Data or Preset Data element of the corresponding Modbus command was set to No swapping (see Section
7.12.2.4).
A brief description of the toolbar buttons in this window is given below:
72
1743315 03/2009
The creation of new configurations is performed entirely under PL7 PRO. Only transfer a new
configuration to the gateway if it signals a Hardware configuration fault (see Section 7.5.1).
1743315 03/2009
73
Select the node corresponding to the Modbus slave you wish to delete from the configuration. If this is the only
node remaining in the configuration, you will not be able to delete it, as the downstream Modbus network must
include at least one slave.
2)
Right click on the icon or the name of this Modbus slave. A menu pops up underneath the mouse cursor.
or
In the ABC-LUFP Config Tool main menu, pull down the menu with the same name as the previously selected
node.
3)
In this menu, click Delete. The following confirmation window then appears, asking you to either confirm that
you want to delete the selected node (TeSys U n2 in this example) or cancel the operation.
4) If you confirm that you want to delete the node, the menu
disappears, along with the previously selected node.
Otherwise, the node will still be there when the window
closes.
Keyboard shortcut: Del key.
74
1743315 03/2009
Select Sub-Network, then choose Add Node from the Sub-Network menu. A new node is added after all
the other configured nodes. By default, its name is New Node.
b)
Select one of the nodes located under the Sub-Network element, then choose Insert New Node from the
menu with the same name as the selected node. A new node is added just before the selected node. By
default, its name is New Node.
All of the steps in configuring the new node are described in Section 7.11.
Copying a previously configured Modbus slave
Select the node corresponding to the slave whose configuration you want to copy, then choose Copy from the
menu with the same name as the selected node. Keyboard shortcut: Ctrl C.
Then use one of the two methods described below:
a)
Select Sub-Network, then choose Paste from the Sub-Network menu. A new node is added after all the
other configured nodes. Its name and its whole configuration are identical to that of the node you copied.
Keyboard shortcut: Ctrl V.
b)
Select one of the Sub-Network nodes, then choose Insert from the menu with the same name as the
selected node. A new node is added just before the one which is selected. Its name and its whole
configuration are identical to that of the node you copied.
As the new node and the original node are identical in every way, you will need to change (1) the name of the
node, (2) the address of the corresponding Modbus slave and (3) the location of the data exchanged between the
gateway memory and the Modbus slave. All these operations are described in Section 7.11 and Section 7.12.
WARNING
DUPLICATE MODBUS ADDRESSES OR GATEWAY MEMORY RANGES
If you choose to add a Modbus slave by copying the configuration of an existing Modbus slave, you must
change the added devices Modbus address and the memory locations it uses to exchange data with the
gateway.
Duplicated Modbus addresses or gateway memory locations may result in communications errors, incorrect
information being written to a slaves registers, or in writing the registers of an unintended device. Any of
these errors may result in unintended equipment operation.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
Importing/exporting a Modbus slave configuration
With ABC-LUFP Config Tool you can independently save and load a node configuration on the downstream SubNetwork. This allows you, for example, to build up a library of Modbus slave templates, so that you can use them
in any configuration.
To save the configuration of a Modbus slave, select the node it corresponds to, then choose Save Node from the
menu with the same name as the selected node. A dialog box will then appear asking you to save the configuration
(export in XML format).
1743315 03/2009
75
Select Sub-Network, then choose Load Node from the Sub-Network menu. A dialog box asks you to
choose a file containing a Modbus slave configuration (import in XML format). A new node is added after all
the other configured nodes. Its name and its whole configuration are identical to those of the Modbus slave as
configured when last saved.
b)
Select one of the Sub-Network nodes, then choose Insert from File from the menu with the same name as
the selected node. A new node is added just before the selected node. Its name and its whole configuration
are identical to those of the Modbus slave as configured when last saved.
You will then need to change (1) the name of the node, (2) the address of the corresponding Modbus slave and (3)
the location of the data exchanged between the gateway memory and the Modbus slave. All these operations are
described in Section 7.11 and Section 7.12.
WARNING
DUPLICATE MODBUS ADDRESSES OR GATEWAY MEMORY RANGES
If you choose to add a Modbus slave by copying the configuration of an existing Modbus slave, you must
change the added devices Modbus address and the memory locations it uses to exchange data with the
gateway.
Duplicated Modbus addresses or gateway memory locations may result in communications errors, incorrect
information being written to a slaves registers, or in writing the registers of an unintended device. Any of
these errors may result in unintended equipment operation.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
76
1743315 03/2009
This operation in no way alters the contents of the gateway memory, as we do not need to change the values of the
Data length and Data location fields in the Data element of the Response to the aforementioned command;
so no additional operations are required in ABC-LUFP Config Tool.
However, the FIPIO master PLC application will have to take account of the change in the nature of the
corresponding input. In Input Data Memory, Appendix C, the description of the word located at address 0x0004
becomes Value of the 1st fault register of motor starter . This word corresponds to PLC input word
%IW\p.2.c\0.0.2 (see Section 4.2.7, Section 5.1.1, and Section 5.1.3).
1743315 03/2009
77
This operation in no way alters the contents of the gateway memory, as we do not need to change the values of the
Data length and Data location fields in the Data element of the Query. No additional operations are required
in ABC-LUFP Config Tool.
However, the FIPIO master PLC application will have to take account of the change in the nature of the
corresponding output. In Output Data Memory, Appendix C, the description of the word located at address 0x020A
becomes Value of the 2nd command register of motor starter . This word corresponds to the PLC output word
%QW\p.2.c\0.0.5 (see Section 4.2.7, Section 5.1.1, and Section 5.1.3).
7.10.3. Increasing the Number of Periodic Inputs
E.g. TeSys U motor starter n2: we want to extend the controls on this motor starter, starting with the currently
controlled registerTeSys U Status Register (address 455 = 0x01C7)and expanding as far as the Reserved:
nd
2 Warning Register (address 462 = 0x01CE). This will bring the number of registers controlled from 1 up to 8.
The necessary operations are described below:
78
1743315 03/2009
Change the number of registers controlled: This step consists in modifying the value of the element Number
of Registers in the Query of the Read Holding Registers command (Modbus command for reading the
values of multiple registers). Select this element, then change its value as shown at the top of the next page.
ABC-LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal.
2)
Change the number of data bytes in the Modbus response: The number of bytes read from the memory of
TeSys U motor starter n2 increases from 2 to 16, as the number of registers controlled has increased from 1
to 8. Select the Byte count element in the Response and change its value as shown below. ABC-LUFP
Config Tool will automatically convert any value entered in decimal to hexadecimal.
3) Change the location of the Modbus data received in the gateway memory: As the number of bytes read
(see previous step) has increased from 2 to 16, the Modbus data received must be placed at a different
location in the gateway memory.
If you are unsure how much of the gateways memory is currently in use, select Sub-Network and choose
Monitor from the Sub-Network menu. The following window appears, allowing you to see how much of the
gateways memory is occupied.
1743315 03/2009
79
To see which memory locations are occupied by data from the command we are interested in, simply uncheck the
box corresponding to the Read Holding Registers command in the TeSys U n2 node, as shown above. This
reveals that the Modbus data received in response to this command occupy 2 bytes, starting at 0x0002.
NOTE: Only memory locations 0x0000 to 0x0033 can be used (max.size of input data = 52 bytes).
Using any other address in the gateways input data memory area (0x0034 to 0x01FF) will throw the gateway into
GATEWAY. LEDs
non-operational mode, signaled by the sudden red-green flashing of LED
will also flash, at a frequency of 2 Hz.
You can ignore the size indications on the graphics in this window (In Area 16 bytes and Out Area 16 bytes), as
the gateway has a fixed size for inputs and outputs alike.
If you want to memories the 16 bytes of Modbus data which will be received by the gateway for this command,
oncethe changes have been made, you will have to either shift all the other input data by 14 bytesa painstaking
operationor else change the memory location of the block of data received. In the example described here, we
will be using the second solution, although the first solution is actually preferable, in principle, as it avoids leaving
any holes in the gateways memory. This has no impact on the FIPIO exchanges; however, as the size of
transfers over the gateway is set at 32 input words and 32 output words by the use of the standard profile FED C32
(P).
We will be placing the 16 bytes of data starting at address 0x0010 (16 in decimal), i.e. directly after the input data
from the standard configuration. The 2 bytes at 0x0002 and 0x0003 become free memory locations.
Close the Sub-network Monitor window, then, once you are back in the main ABC-LUFP Config Tool window,
select the Data length and Data location fields respectively in the Data element of the Response and change
their values as shown at the top of the next page. ABC-LUFP Config Tool will automatically convert any value
entered in decimal to hexadecimal.
80
1743315 03/2009
4)
Download this configuration to the gateway: See Section 7.5. Check that the configuration is valid (LED
GATEWAY flashing green).
5)
6)
Use the FIPIO master PLC inputs: It only remains to assign symbols and use the inputs corresponding to the
new Modbus data read on motor starter n2.
This gives us the mapping shown on the next page, derived from the one used for the standard gateway
configuration. Changes in relation to the standard configuration are flagged by a grey background (except for the
reserved word %IW\p.2.c\0.0.26).
1743315 03/2009
81
Change the number of registers commanded: This step consists in modifying the value of the element No. of
Registers in both the Query and Response of the Preset Multiple Registers command (Modbus
command for writing values to multiple registers). Start by selecting the element Starting Register Address in
the Query: change its value as shown at the top of the next page. ABC-LUFP Config Tool will automatically
convert any value entered in decimal to h exadecimal. Do the same for the Starting Address element of
the Response, because the gateway checks the value of this field when it receives each Modbus response.
If the value does not correspond to that of the query, the gateway will ignore the response.
82
1743315 03/2009
2)
Change the number of data bytes in the Modbus query: The number of bytes written to the memory of TeSys
U motor starter n4 increases from 2 to 4, as the number of registers commanded has increased from 1 to 2.
Select the Byte count element in the Query and change its value as shown below. ABC-LUFP Config Tool
will automatically convert any value entered in decimal to hexadecimal.
3) Change the location of the Modbus data transmitted to the gateway memory: As the number of bytes
transmitted (see previous step) has increased from 2 to 4, the Modbus data to be sent to TeSys U motor
starter n4 must be placed at a different location in the gateway memory.
If you are unsure how much of the gateways memory is currently in use, select Sub-Network and choose
Monitor from the Sub-Network menu. The following window appears, allowing you to see how much of the
gateways memory is occupied.
1743315 03/2009
83
To see which memory locations are occupied by data from the command we are interested in, simply uncheck the
box corresponding to the Preset Multiple Registers command in the TeSys U n4 node, as shown above. This
reveals that the Modbus data transmitted with the query for the command occupy 2 bytes, starting at 0x0206.
NOTE: Only memory locations 0x0200 to 0x0233 can be used (max. size of input data = 52 bytes).
Using any other address in the gateways output data memory area (0x0234 to 0x03FF) will throw the gateway into
GATEWAY. LEDs
non-operational mode, signaled by the sudden red-green flashing of LED
will also flash, at a frequency of 2 Hz.
You can ignore the size indications on the graphics in this window (In Area 16 bytes and Out Area 16 bytes), as
the gateway has a fixed size for inputs and outputs alike.
If you want to memories the 4 bytes of Modbus data which will be transmitted by the gateway for this command,
once the changes have been made, you will have to either shift all the other transmitted data by 2 bytesa
painstaking operationor else change the memory location of the block of data transmitted. In the example
described here, we will be using the second solution, although the first solution is actually preferable, in principle,
as it avoids leaving any holes in the gateways memory. This has no impact on the FIPIO exchanges; however, as
the size of transfers over the gateway is set at 32 input words and 32 output words by the use of the standard
profile FED C32 (P).
We will be placing the 4 bytes of data starting at address 0x0210 (528 in decimal), i.e. directly after the output data
for the standard configuration. The 2 bytes at 0x0206 and 0x0207 become free memory locations.
Close the Sub-network Monitor window, then, once you are back in the main ABC-LUFP Config Tool window,
select the Data length and Data location fields respectively in the Data element of the Query and change
their values as shown at the top of the next page. ABC-LUFP Config Tool will automatically convert any value
entered in decimal to hexadecimal.
84
1743315 03/2009
4)
Download this configuration to the gateway: See Section 7.5. Check that the configuration is valid (LED
GATEWAY flashing green).
5)
6)
Use the FIPIO master PLC outputs: It only remains to assign symbols and use the outputs corresponding to
the new Modbus data sent to motor starter n4.
This gives us the mapping shown on the next page, derived from the one used for the standard gateway
configuration. Changes in relation to the standard configuration are flagged by a grey background (except for
the two reserved words %QW\p.2.c\0.0.26 and %QW\p.2.c\0.0.27).
1743315 03/2009
85
86
1743315 03/2009
WARNING
USE OF RESERVED MODBUS ADDRESSES
Do not use Modbus addresses 65, 126, or 127 if a gateways Modbus slaves will include a Schneider Electric
Adjustable-Speed Drive System device such as an Altistart soft-starter or an Altivar motor drive. The Altistart
and Altivar devices reserve these addresses for other communications, and the use of these addresses in
such a system can have unintended consequences.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
When you confirm the new address (Enter key or click outside the Modbus slave address input field), it
becomeseffective in ABC-LUFP Config Tool, and the values of the Slave Address elements in the queries and
responses of the Modbus commands for the selected node are automatically updated. In the example that follows,
a single Slave Address element is updated:
1743315 03/2009
87
Select the node corresponding to the Modbus slave you want to add the command to (e.g. TeSys U n4),
then choose Paste from the menu with the same name as the selected node. A new command is added after
88
1743315 03/2009
NOTE: In all cases, the Query / Slave Address and Response / Slave Address elements are automatically
updated by ABC-LUFP Config Tool according to the node in which the command is located. Their values are not
usermodifiable. Likewise, the Query / Function code and Response / Function code fields depend on the nature
of the Modbus command and cannot be changed by you.
The operations to be carried out are much the same as those used for changing the default commands. For the
Read Holding Registers command, see Section 7.10.1 and Section 7.10.3. For the Preset Multiple Regs
command, see Section 7.10.2 and Section 7.10.4.
1743315 03/2009
89
90
1743315 03/2009
These elements can be configured using ABC-LUFP Config Tool. There is a description of them in the following
sections. We will then return to the example of the ATS48 to illustrate how to use these elements.
7.12.2.1. Managing Degraded Modes
Due to the number of hardware elements and software tools used, the following table shows a summary of the
various degraded modes available to a FIPIO application. In this instance, the application is running on a LUFP1
gateway and a Premium PLC with a FIPIO master coupler on its processor card.
(1) The Offline options for fieldbus and Offline options for sub-network are described in the next section.
(2) The desired behavior with regard to outputs should be directly configured on each of the Modbus slaves. In
the case of drives marketed by Schneider Electric, for instance, the outputs are reset by setting the NTO bit to
0 (command with communication control), and held by setting NTO to 1 (command without communication
control).
(3) As regards inputs, we strongly recommend that you use the List of Active Slaves (LAS) Service (see Section
5.2) to detect the underlying event.
(4) Use the gateways FIPIO Diagnostic Objects (Section 5.4) to detect the underlying event.
1743315 03/2009
91
92
1743315 03/2009
1743315 03/2009
93
94
1743315 03/2009
Each of these elements is described, in order, in the table below. When a unit is assigned to an element, it is
shown in brackets after the name of that element.
Configuration
element
Offline options for
fieldbus
Reconnect time
(10ms)
Default value:
10ms x 1000 =
10s
Retries
Default value: 3
Timeout time
(10ms)
Default value:
10ms x 100 = 1s
1743315 03/2009
Description
This element affects the data sent to the Modbus slave, only for the command to which
the element belongs, whenever the gateway is disconnected from the FIPIO network. It
takes one of the following three values:
- Clear .............All data sent to the Modbus slave using this command is now set to 0x0000
(resetting the output data in the gateways memory).
- Freeze...........All data sent to the Modbus slave using this command retains its current
value (freezing the output data in the gateways memory).
- NoScanning ..The command is no longer transmitted to the Modbus slave by the
gateway.
If there is no response from the Modbus slave to a query, or following the receipt of an
incorrect response, the gateway uses the Retries and Timeout time (10ms) elements to
carry out retransmissions. If the Modbus slave has still not responded correctly after these
retransmissions, the gateway stops sending it the corresponding query for a period of time
which can be adjusted using Reconnect time (10ms).
When this period is over, the gateway attempts to restore communication with the Modbus
slave.
This element indicates the number of retransmissions carried out by the gateway if there is
no response from the Modbus slave to a query, or if the response is incorrect. This
retransmission process ceases as soon as the gateway gets a correct response within a
given time. If none of the retransmissions elicits a correct response, the Modbus slave is
deemed to be off-line, but only as regards the command in question. The gateway then
uses the Offline options for sub-network and Reconnect time (10ms) elements, and LED
MODBUS becomes red. It will only revert to green when the Modbus command receives a
correct response, following reconnection (see the element Reconnect time (10ms)).
If the number of retransmissions is set to 0, this process will not be executed.
This element represents the time that the Modbus slave will wait for a response. If a
response has not reached the gateway within the given time, as defined by this element,
the gateway tries retransmitting. This process continues until it reaches the last
retransmission allowed (see Retries), then the gateway declares the Modbus slave offline,
but only for the command to which the element timeout time (10ms) belongs.
95
Description
This element is only used by the gateway if Update mode is set to Change of state on
trigger. In this case, it specifies the address, in the gateways output memory (0x0200 to
0x0233), of an 8-bit counter managed by the FIPIO master. The FIPIO master updates this
counter in the same way as the other gateway outputs (see Section 5.1.3).
When the value located at this address is changed by the FIPIO master to any value other
than zero, the query configured with a Change of state on trigger for that address is
transmitted to the Modbus slave by the gateway.
Unlike the On data change and Change of state or Cyclically modes, this mode enables
you to send a command on a specific order from the FIPIO master if, for example, the latter
is unable to update all the data for any given query at the same time.
Update mode
NOTE: The trigger byte does not have to be an output updated by the FIPIO master. It is
quite possible for it to be an input between 0x0000 and 0x0033, in which case
theexchanges of the command currently being configured will be conditioned by the
Modbus slave that upd ates the byte.
This element is used to specify the transmission mode for the query on the Modbus
network. It takes one of the following four values:
- Cyclically.................................Default communication mode. The query is transmitted
periodically over the Modbus network (see Update time).
This is the communication mode used systematically for all
Modbus commands generated by the periodic control words configured by the user
under PL7 PRO.
- On data change ...................... The gateway transmits the query over the Modbus network
when at least one data item in the query is modified by the FIPIO master. This is
therefore an aperiodic communication mode that works in a similar way to the
indexed periodic variables (PKW) service described in Section 5.3. All the data from a
single query must therefore be updated at the same time by the FIPIO master. If you
are uncertain as to whether your software is able to update all the output data from a
query at the same time, we recommend using Change of State on trigger mode
rather than On data change.
- Single Shot ............................. This transmission mode only allows a single Modbus
exchange for the whole of the time that the gateway is operating. This exchange takes
place just after the initialization of the gateway.
- Change of state on trigger ...... With this aperiodic communication mode, the Modbus
query is sent every time that the FIPIO master changes the value of an 8-bit counter
designated by the Trigger byte address element. See the description of this element
for further information about how to use this communication mode.
- Change of state or Cyclically .... In this communication modea combination of the
Cyclically and On data change modesthe query is transmitted periodically over
the Modbus network (see Update time), and also whenever one of the outputs in the
query is modified by the FIPIO master.
Update time
(10ms)
Default value:
10ms x 100 = 1s
96
1743315 03/2009
1743315 03/2009
97
Slave n
Word n
(MSB / LSB)
Fu n ct ion n
Edit the values which are not grayed out, one after the other. There is a description of them below.
The nature of a frames fields depends on the Modbus command to which it corresponds. However, a certain
number of these fields are common to all frames, whereas others are common to a number of them. The
description of those shown above is given on the next page, as a part of the example described at the beginning of
Section 7.12.2.
Field in the
frame
Slave Address
Size in
the frame
1 byte
Description
This field is not user-modifiable and its value is grayed out accordingly. ABCLUFP Config Tool updates the value of this field automatically using the address
of the Modbus slave corresponding to the current node.
NOTE: This field is common to all Modbus command queries.
Function Code
1 byte
Example: The value of this field is set to the address of the Modbus slave
corresponding to the ATS48 node, namely 0x0A.
This field is not user-modifiable and its value is grayed out accordingly. ABCLUFP Config Tool updates the value of this field automatically using the function
code of the corresponding Modbus command.
NOTE: This field is common to all Modbus command queries.
Register
Address
2 bytes
E.g. The value of this field is set to the code for the Preset Single Register
command (write the value of an output word), namely 0x06.
Address of an output word, or of a register, in the Modbus slaves memory. This
field designates the memory object to which the command relates.
NOTE: This field is common to all Modbus command queries which seek to
access one or more locations in the memory of a Modbus slave. When accessing
several memory locations, the Register field designates the address of the first
word affected by the command.
E.g. The value of this field should be changed by entering the address of the
CMD command register, namely 400 (0x0190). This value will be automatically
converted to hexadecimal if the user enters it in decimal.
Preset Data
2 bytes,
or more for a
data block
98
1743315 03/2009
1743315 03/2009
99
Size in
the frame
2 bytes
Description
Error check type: Type of error check for the frame.
- CRC.....................Default method.
This is the method adopted for the Modbus RTU protocol. It cannot be changed.
-----------------------------------------------------------------------------------------------------------Error check start byte: Indicates the number of the byte, in the frame, from which
the checksum calculation should begin. The first byte in each frame carries the
number 0.
NOTE: The calculation of a frames checksum should always begin with the first
byte. Do not change the error check start byte from its default of zero. A non-zero
value will result in an incorrect CRC, and all Modbus communications
will return an error.
Slave n
Fu n ct ion n
Word n
(MSB / LSB)
Edit the values which are not grayed out, one after the other.
There is a description of them below, but also see the previous section, as the nature of the content of response
frames is very similar to that of the fields in Modbus query frames.
NOTE: If the value of one of the fields in the response from a Modbus slave is different from that configured via
ABCLUFP Config Tool, the response will be rejected by the gateway. It will then proceed to retransmit the query,
provided that at least one retransmission has been configured for this command (see 7.12.2.2 Configuring the
Query).
100
1743315 03/2009
Size in
the frame
1 byte
1 byte
2 bytes
Preset Data
2 bytes,
or more
for a data
block
Description
Identical to the querys Slave Address field.
Identical to the querys Function field
Identical to the querys Register field, since the Modbus response of any
Preset Single Register command is an echo to the corresponding query. Here
you should also enter the address of the memory object to which the command
relates.
If receiving an exception code, see (*).
Data Location: Address, in the gateways input data memory (0x0000 to
0x0033), of the datum received in the Preset Data field of the response frame.
NOTE: As far as possible, ensure that the data is located at even-numbered
addresses in order to align the Modbus data (in 16-bit format) with the
%IW\p.2.c\0.0. inputs of the FIPIO master.
E.g. The value sent back as an echo to the command must be placed in the
gateways input data memory area. We shall use the first two free bytes
following the standard configuration input data, i.e. 0x0020-0x0021.
* If receiving an exception code, the gateway re-transmits the request according to the number of retries that has
been defined. Then, it will disconnect the slave.
WARNING
RISK OF UNINTENDED EQUIPMENT OPERATION
You must use even values for the Data Location field (i.e. 0, 2, 4, 6, etc.). The selection of odd data
locations complicates application programming and increases the likelihood of improper Modbus values being
written to
or read from the slave devices. Depending on the users configuration, unintended equipment operation may
result
Failure to follow this instruction can result in death, serious injury, or equipment damage.
Field in the
frame
Size in the
frame
Description
Data length: Length of the block of input data received in the Preset Data field
of the response frame. It is expressed in number of bytes.
E.g. The value of the Data length field must be set to 2.
---------------------------------------------------------------------------------------------------------Byte swap: Identical to the querys Byte swap field.
Checksum
2 bytes
E.g. We will also be using the No swapping value, for the same reasons as
with the query.
Error check type: Identical to the querys Error check type field.
Error check start byte: Identical to the querys Error check start byte field.
However, these two fields are not user-modifiable and their values are grayed
out accordingly. ABC-LUFP Config Tool updates the values of these fields
automatically using the values in the querys Error check type and Error check
start byte fields.
1743315 03/2009
101
102
1743315 03/2009
These seven properties allow you to configure some of the gateways system aspects:
Control/Status Word: The three possibilities available for this property are not described in the LUFP1
Gateway User Manual, as the option is reserved for other devices in the same product family. This option
must keep its existing value, i.e. Disabled.
Module Reset: By default, this property prevents the gateway from reinitializing itself when there is an
internal operation problem. Changing this option is mainly intended for laboratory type use.
Physical Interface: The only possibility offered by this property indicates that the physical interface of the
downstream network of the gateway (Modbus) is a serial link.
1743315 03/2009
103
Protocol Mode: This property should not be changed, because it indicates the type of protocol used on the
downstream network of the gateway. With the LUFP1 gateway, FIPIO-MB Gateway must not be
deselected. The other possibilities available are reserved for other products from the same family as this
gateway.
NOTE: Be careful not to modify the Protocol Mode property, as it would reset the entire configuration. If, by any
chance, this should happen, start again with a clean basic configuration (see Section 7.6) or load a previously
saved configuration.
Statistics: This property dictates the presence or absence of the two Receive and Transmit Counters in the
input memory of the gateway (see below). The four possibilities are:
Disabled
The two Receive Counter Location and Transmit Counter
Location properties are ignored.
Enable Receive Counter
Only the Receive Counter Location property is used by the
gateway.
Enable Transmit Counter
Only the Transmit Counter Location property is used by the
gateway.
Enable Transmit/Receive Counter
Both the Receive Counter Location and Transmit Counter
Location properties are used by the gateway.
Receive Counter Location: This property is only used by the gateway if Statistics = Enable Receive
Counter or Statistics = Enable Transmit/Receive Counter. It represents the 1-byte input memory address
(from 0x0000 to 0x0033) where the Modbus Responses counter is copied into. This is a modulo 256
counter (i.e. it starts over at 0 once it goes past 255) which is updated each time a Modbus frame is
received by the gateway.
Transmit Counter Location: This property is only used by the gateway if Statistics = Enable Transmit
Counteror Statistics = Enable Transmit/Receive Counter. It represents the 1-byte input memory address
(from 0x0000 to 0x0033) where the Modbus Queries counter is copied into. This is a modulo 256 counter
(i.e. it starts over at 0 once it goes past 255) which is updated each time a Modbus frame is emitted by the
gateway, retries included.
Finally, a useful command from the Help menu will allow you to check the software versions of the LUFP1
gateway (the ABC-LUFP element), but only in on-line mode; of course, it also shows the version of the ABCLUFP Config Tool.
To obtain this information, execute the About
command of the Help menu. An example in
online mode is given here:
In off-line mode, all versions and information from
the Sub-Network and Fieldbus categories are
replaced with Unknown since they could not be
obtained from an existing and connected gateway.
The http://www.hms.se/abc_lufp.shtml text is a
hypertext link. By clicking on it, you are directly
redirected to the Schneider Electric's Web page
dedicated to the ABC-LUFP gateways.
This page features many downloadable items
related to the family of LUFP gateways, including
the latest version of ABC-LUFP Config Tool.
104
1743315 03/2009
NOTE: The Sub Network Status window may be useful to detect problems on the Modbus sub-network. So, if the
number of retransmission errors increases upon using the Update button, this denotes the absence of one or
more slaves, Modbus cabling or speed problems, or invalid Commands. Since retransmission errors tend to lower
the general performances of the Modbus communications, you should undertake actions to prevent these
retransmission errors from increasing.
1743315 03/2009
105
Parity:
Choose
the
parity
according to the format chosen
for communications on your
Modbus network.
Physical
(required).
PKW Retries: Number of retransmissions attempted by the gateway when no response, or an erroneous
response, is received from a queried Modbus slave using the PKW service. The retries stop as soon as the
gateway receives a correct response.
PKW Timeout time (10ms): Waiting time for a response from a Modbus slave using the PKW service. When the
timeout elapses, the gateway starts a number of retries (see previous option).
106
standard:
RS485
1743315 03/2009
The list of standard Modbus commands which can be used in broadcast is smaller. Only functions 0x06
and 0x10 can be used (see list in chapter 7.11.2).
The command is made up of a query, but does not include any response. The query bears the name of
thecommand itself, instead of the name Query.
The value of the query frames Slave Address field is set to 0x00.
Please see chapter 7.12.2.2, for further details on how to configure a Modbus query
1743315 03/2009
107
Environment
Communication Characteristics
108
1743315 03/2009
1743315 03/2009
109
110
1743315 03/2009
(1) Mode of communication (Update mode) for which the ABC-LUFP Config Tool equivalent is called Change of
state or Cyclically. The query for the command thus configured is transmitted periodically, but this periodicity
is overridden if any of the data to be sent are modified. This command mode prioritizes write commands,
ensuring that they are sent as soon as possible.
1743315 03/2009
111
112
1743315 03/2009
1743315 03/2009
113
Appendix B:
The settings described here correspond to the configuration and adjustment parameters for the LUFP1 gateway.
They only exist when the gateway is used according to standard profile FED C32 P. The exchange modes
for the corresponding FIPIO objects are described in Section 5.6. Once they have been downloaded to the
gateway, the values of these parameters can be read and / or replaced using the gateways PKW service (see
Section 5.3.5).
NOTE: Some of the configuration and adjustment parameters cannot be modified after the initial setup of the
gateway using the PLC. See the Configuration Parameters and Adjustment Parameters tables in Chapter 4.2.
Configuration Parameters
The configuration parameters enable the gateway to configure the Modbus commands that it exchanges with the
Modbus slaves. The configuration comprises:
1) The number of periodic write commands (periodic command words) for each slave (0 to 15);
2) The number of periodic read commands (periodic control words) for each slave (0 to 15);
3) The address of each periodic command or control word.
The total number of periodic words (command words + control words) is limited to 26.
Each periodic command word corresponds to a Modbus write command to a single register (function 0x06
Preset Single Register). This command is cyclical, with advance transmission of the write query if the new
value for the register is modified. This exchange mode is equivalent to Update mode = Change of state or
cyclically.
Each periodic control word corresponds to a Modbus read command for several registers (function 0x03
Read Holding Registers), even though the command is used to read a single register. This command is strictly
cyclical. This exchange mode is equivalent to Update mode = Cyclically.
The configuration parameter values for the standard 8 TeSys U motor starter configuration are listed in Section
4.2.4.
114
1743315 03/2009
In the above table, the mapping between the addresses of periodic words n1 to 26 and the command and
control words of the various Modbus slaves is not given, because it depends entirely on the numbers of periodic
command and control words for the Modbus slaves as a whole. These periodic words are organized as follows:
(1) If you do not use all of the 26 periodic words available, you must reset the addresses of the unused periodic
words.
Adjustment Parameters
The adjustment parameters enable the gateway to configure the general features of its exchanges with the
Modbus slaves.
The adjustment parameters values for the standard 8 TeSys U motor starter configuration are listed in Section
4.2.5.
1743315 03/2009
115
116
1743315 03/2009
Periodicity of Modbus exchanges and Cycle time of periodic Modbus commands / controls: The
parameters %MW\p.2.c\0.0.25 to %MW\p.2.c\0.0.30 set the cycle time of the Modbus commands corresponding
to the periodic command and control words defined by the configuration parameters:
The periodicity of Modbus exchanges parameters (%MW\p.2.c\0.0.25 and %MW\p.2.c\0.0.26) set fast
or slow periodicities for the periodic command and control words.
Each of the bits in the cycle time of periodic Modbus commands (%MW\p.2.c\0.0.27 and
%MW\p.2.c\0.0.28) determines either fast periodicity (bit at 0) or slow periodicity (bit at 1) for the
commands, both defined by the parameter %MW\p.2.c\0.0.25.
Each of the bits in the cycle time of periodic Modbus controls parameters (%MW\p.2.c\0.0.29 and
%MW\p.2.c\0.0.30) determines either fast periodicity (bit at 0) or slow periodicity (bit at 1) for the
controls, both defined by the parameter %MW\p.2.c\0.0.26.
Addresses of Modbus slaves: Remember that you must define the Modbus slaves starting at Modbus slave
n1 and then on in sequence, without leaving any empty slots.
1743315 03/2009
117
(1) See previous page for a description of the adjustment parameter used in this column.
(2) The desired behavior with regard to the outputs should be directly configured on each of the Modbus
slaves. In the case of drives marketed by Schneider Electric, for instance, the outputs are reset by setting
the NTO bit to 0 (command with communication control), and held by setting NTO to 1 (command Without
communication control).
(3) As regards inputs, we strongly recommend that you use the List of Active Slaves (LAS) Service (see
Section 5.2, page 48) to detect the underlying event.
(4) Use the FIPIO Diagnostic Objects (Section 5.4, page 58) to detect the underlying event.
PLC processor stopped or on failure
PLC processor response
Outputs:
Software error, outputs reset to default state or hold their present state depending on configuration.
Hardware error (EEPROM or hardware failure), output state will be undetermined
Inputs: PLC stops responding to inputs in any error state.
FIPIO master response
Depending on the configuration of the FIPIO master:
the FIPIO master stops communicating with the LUFP1 gateway, or
the FIPIO master forces outputs to 0 and refreshes the inputs, or
the FIPIO master holds outputs in their last state and refreshes the inputs.
LUFP1 gateway response
If the FIPIO master stops communicating with the LUFP1 gateway (in the case of a Premium PLC), for each
Modbus Command, the behavior depends on bits 0-7 of the %MW\p.2.c\0.0.23 parameter:
0x00 (Freeze)
The output data sent to the Modbus slave concerned retains its current value and the
input memory continues to be refreshed with the data of the slaves' response.
0x01 (No Scanning) The query of this Modbus Command is no longer transmitted and the input memory is
no longer refreshed with the data of the slaves' response.
0x02 (Clear)
The output data sent to the Modbus slave concerned is reset to 0 and the input
memory continues to be refreshed with the data of the slaves' response.
If the FIPIO master forces outputs to 0 and refreshes the inputs, the periodic Modbus exchanges continue to
run:
all output data are reset to 0 and sent to the Modbus slaves,
118
1743315 03/2009
1743315 03/2009
119
120
1743315 03/2009
(1) In the gateway settings, assigning a null address to a slave means that there is no slave at that location.
Not to be confused with the broadcasting of Modbus commands.
1743315 03/2009
121
122
1743315 03/2009
WARNING
PLANNING OF THE MODBUS EXCHANGES
When you create a new configuration and you want to set up the gateway to handle the Modbus exchanges
for this configuration, it is highly advisable to plot out all such exchanges in advance, as illustrated above.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
NOTE: The configuration of the Modbus slaves themselves is beyond the scope of this guide, and is therefore
not described here. See the user manuals of the corresponding products.
1743315 03/2009
123
124
1743315 03/2009
1743315 03/2009
125
Outputs %QW\p.2.c\0.0 to %QW\p.2.c\0.0.27 correspond to the gateways 26 periodic command words, plus
two reserved words. As only command words n1 to 9 are used, the only useful outputs are %QW\p.2.c\0.0 to
%QW\p.2.c\0.0.8. Outputs %QW\p.2.c\0.0.9 to %QW\p.2.c\0.0.27 must therefore not be used:
NOTE: Only the mapping for the first and last inputs (or outputs) is shown here, as the intervening periodic
words were described in the tables in Modbus Exchanges, Appendix B.
Only the first 5 bits of the input word assigned to the
list of active slaves (LAS) service are actually used. A
Modbus slave is present if the corresponding bit is set
to 1.
See also Section 5.2 for more details on the list of
active slaves service.
126
1743315 03/2009
As a result, on a network operating at 9,600 bits/s, you will need to considerably increase the cycle time for all or
some of the periodic Modbus commands. On the other hand, at a speed of 19,200 bits/s (the default speed), the
available bandwidth is sufficient to support acceptable communications, even with the occasional degraded
mode (retransmission of frames), and to allow the use of aperiodic parameter exchanges (using the PKW service
described in Section 5.3).
127
1743315 03/2009
(1) The data for these services are not actually stored in these gateway memory locations, but the mapping
between the gateway memory and the corresponding FIPIO inputs / outputs (see Section 5.1.3) means that
these locations are not to be used. If they were, the mapping would overwrite the stored data with data from
the services.
128
1743315 03/2009
1743315 03/2009
129
The first file, "LUFP1_FEDC32_Example.cfg, is an ABC-LUFP Config Tool file; its content corresponds
to the system architecture described in Section 4.1.1. The gateway must therefore be configured using
under PL7 PRO (see Chapter 6). This ABC-LUFP Config Tool file
profile
corresponds to the standard configuration used in this guide.
The second file, lufp1 exemple du tutorial fedc32p tsx57252.stx , is a PL7 PRO file and provides the
example for a TSX Premium PLC with a TSX 57252 processor where the LUFP1 is configured under
PL7.
The third file, "lufp1_tutorial_en_fedc32p_tsx57353.stx, is a PL7 PRO file and provides the example for a
TSX Premium PLC with a TSX 57353 processor where the LUFP1 is configured under PL7.
The fourth file, "lufp1_tutorial_en_fedc32_tsx57252.stx, is a PL7 PRO file and provides the example for a
TSX Premium PLC with a TSX 57252 processor where the LUFP1 is configured under ABC-LUFP
Config Tool. The configuration LUFP1 - FED C32 - Exemple.cfg needs to be loaded onto the LUFP1.
The fifth file, "lufp1_tutorial_en_fedc32_tsx57353.stx, is a PL7 PRO file and provides the example for a
TSX Premium PLC with a TSX 57353 processor where the LUFP1 is configured under ABC-LUFP
Config Tool. The configuration LUFP1_FEDC32_Example.cfg needs to be loaded onto the LUFP1.
The content and application of these examples is dealt with in the following sections.
The configuration of the first file corresponds exactly to what is described in the previous sections; its content is
therefore not detailed here. However, the PL7 PRO file is described below, in terms of the structure of the
program sections used and the related operating screens.
130
1743315 03/2009
Hexadecimal display of gateway input data (%IW\0.2.2\0.0 to %IW\0.2.2\0.0.31) in the INPUTS frame.
These inputs are named and grouped in the same way as in this guide (see Section 4.2.7). Of course, the
display of these input data is correct only if the standard gateway configuration is used.
In the case of the standard configuration, these input data comprise the periodic Modbus data (command
and control of TeSys U motor starters), the Modbus aperiodic data (indexed periodic variables / PKW
service) and the input word of the list of active slaves (LAS) service, as well as the free and reserved
memory locations.
1743315 03/2009
131
It runs the Sr0 sub-program calling loop to command and control the 8 TeSys U motor starters. At each
iteration of the loop, the word %MW0 (Module) takes a value from 0 to 7 in order to serve as an index for
words %MW10 to %MW17 (inputs) and %MW20 to %MW27 (outputs).
The Sr0 sub-program is called once per motor starter from the Cmd_mon program. Each of these calls
should be made with a different value in the word %MW0 (between 0 and 7) as it is used to index the status
word and the command word of the same motor starter. The sub-program is used by the screen shown above to
perform the following tasks:
132
1743315 03/2009
Evaluating the value of the motor current, given as a percentage of the IR current value (unit = % FLA).
Bits 8 (LSB) to 13 (MSB) of the motor starter status word are extracted and the appropriate unit, i.e.
3.125% FLA, is then used to evaluate the current. The maximum value is therefore 63, or
196.875% FLA.
The second frame, PKE (Address Register), allows you to set the address of the register to be read /
written. When the SEND command button is clicked, the value currently entered in this frame is copied
into the PKE field (%QW\0.2.2\0.0.28) of the PKW service command.
The third frame, PWE (Value to be written), will only be used for write commands on registers. When
the SEND command button is clicked, the write command is copied into the first word
(%Q\0.2.2\0.0.30) in the PWE field of the PKW service command, providing the Write a register box is
checked.
The fourth frame, R/W (Read / Write), allows you to select the type of command generated by the PKW
service: Read, Write or Reset the response. Only one box can be checked at any given time.
The SEND command button triggers the update of the gateways periodic output data
(%QW\0.2.2\0.0.28 to %QW\0.2.2\0.0.31) so that the gateway generates a command that matches the
settings and values in the frames above. These updates are performed in the Pkw_service program.
Of course, using periodic data means that a new command can only be generated when one of the
values involved changes from one command to the next. This is why the Reset command is useful, for
example, so that the same command can be repeated several times.
E.g. In the above example, the frames are configured to issue a read command (0x52) on the register located at
address 455 (0x01C7) of TeSys U motor starter n3 (0x03).
1743315 03/2009
133
The last frame, beneath and apart from the others, displays the output data transmitted to the gateway in
order to generate the corresponding PKW command, and the input data from the gateways response to
this command.
The following example contains the PKW service output and input data for the instances described at
the bottom of the previous page. The reading value is 0x01C3.
The Pkw_service program includes the ST instructions that use the values entered in the PKW service
frame, described on the previous page, to update the PLC outputs for the PKW service command on the
gateway (%QW\p.2.c\0.0.28 to %QW\p.2.c\0.0.31). The program handles the following tasks:
It tests the checkboxes in the DN (Device Number) and R/W (Read / Write) frames. If, in either frame,
none of the boxes is checked, one of them will be selected by default (DN = 1st Modbus slave; R/W =
Read a register).
It compares the values over two consecutive PLC cycles in order to keep only one box checked at any
given time in each frame.
When it detects a click on the SEND command button, it updates the local variables, followed by the
outputs corresponding to the gateways PKW service. The purpose of this two-stage update procedure is
to isolate the use of the outputs from the rest of the program.
List of active Modbus slaves: Each TeSys U n in this frame indicates that the corresponding TeSys
U motor starter is present. The hexadecimal value in the top right corner is that of the FIPIO input for the
list of active slaves (LAS) service, namely %IW\p.2.c\0.0.27. See Section 5.2 for a detailed description of
the LAS service.
In this example, bits 2 and 4 of
the LAS service input word have
been reset by the gateway.
Modbus slaves n3 and 5 are
therefore absent.
The LUFP1 box uses a system bit on the Premium PLC to indicate whether the gateway is present on,
or absent from, the FIPIO network (colored blue or red accordingly). This system bit (%SW128:X2 in this
example) is described in Section 5.4.1.
134
1743315 03/2009
If these faults arise, the Explicit exchanges, refreshed every 5 seconds (see below), indicate the presence of
an Internal fault (Standard channel status) and Gateway absent (Module status). A sample screen is shown
below.
Diagnostics: Explicit exchanges: Both rows of the table in this frame are refreshed every 5 seconds.
They indicate the nature of any errors detected either by the gateway or by the FIPIO master.
See Sections 5.4.2 and 5.4.3 for a
description of the explicit objects
introduced here.
The example opposite illustrates one
type of error (gateway out of supply).
The Diagnostics program includes all the ST instructions for generating the explicit FIPIO diagnostic
commands. The program handles the following tasks:
A timeout (%TM4) is used to generate two explicit diagnostic commands every 5 seconds. One of these
commands reads the Module status and the other reads the Standard channel status.
A second timeout (%TM5) is used to prolong the Read status in progress alert (%MW\p.2.c\0.0:X0) by
500 ms, so that it can be seen in the Exchange management status line of the FIPIO Diagnostics
screen. This indicates the activity triggered by the two explicit diagnostic commands (see previous
point).
1743315 03/2009
135
The following descriptions of the Modbus frames are mainly intended to help you to configure the gateways
Modbus exchanges using ABC-LUFP Config Tool. See the documentation of each Modbus slave to check for
any restrictions on the use of these frames (number of registers which can be read or written in a single Modbus
command, for example).
It is preferable to get hold of a standard Modbus document, such as the Modicon Modbus Protocol Reference
Guide (ref. PI-MBUS-300 Rev. J), to see how the elements displayed in ABC-LUFP Config Tool map match the
content of the corresponding Modbus frames. Here is a mapping example for a complete frame (including the
start and end of frame fields shown above), based on the Read Holding Registers Command (0x03) section.
Section 7.12 also shows a few examples of mapping between the elements displayed in ABC-LUFP Config Tool
and the corresponding Modbus frame fields.
136
1743315 03/2009
NOTE: Instead of placing the echo of the response to the Preset Single Register Command (0x06) in the
addresses reserved for FIPIO inputs (0x0000-0x0033), you can put it at 0x0400. This is what the gateway does
automatically when you configure periodic command words.
Preset Multiple Registers Command (0x10)
1743315 03/2009
137
WARNING
UNATTENDED OPERATION OF THE SYSTEM
With standard Modbus commands, the LUFP1 gateway considers that all the exception responses it receives
from Modbus slaves are incorrect responses. As a result, it will carry out the re-transmissions configured for
the queries involved.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
The structure of an exception response is independent of the Modbus command associated with the Function
field of the query involved. The complete frame of an exception response is shown below:
(1) See the standard Modbus documentation for further information about these various scenarios.
138
1743315 03/2009
Index
Line termination, 21
LU9GC03 hub, 19
M
Modbus cable, 19
Address, 23
Architecture, 9, 28
P
C
Cable
type A, 20, 22
Communications
aperiodic, 44
periodic, 44
Cycle time, 29
S
SyCon, 28, 34, 35, 37, 73, 76, 116, 121
Data exchanged, 11
Diagnostic LEDs, 12
DIN Rail, 13
T
E
LEDs, 25
Line connector, 22
139
1743315 03/2009
Glossary
0x
2#
Value expressed in binary. The number of digits depends on the size of the item of data
represented. Each nibble (group of 4 bits) is separated from the other nibbles by a space.
Examples: byte 2#0010 0111 = 39, word 2#0110 1001 1101 0001 = 0x69D1 = 27089.
ABC-LUFP
Config Tool
Name of the PC software used to configure and monitor the LUFP7 Profibus-DP/Modbus
Gateway.
ASIC
Integrated circuits specific to a given user and application, covering two major families: precharacterised processes and pre-distributed networks.
ATS
ATV
CRC
LED
Light-Emitting Diode.
DP
Decentralised Periphery (remote I/O). Profibus version or protocol meant for quick
communication with remote I/O. This is the only Profibus protocol supported by the LUFP7
gateway.
DPM1
Class 1 DP master: the central automatic control of a Profibus-DP network. It resets and
controls I/O transfers and slave diagnostics on the network. One can have several DPM1
stations on a given Profibus-DP network, each one steering its own slaves.
DPM2
Fieldbus
FMS
Profibus-FMS messaging system that defines the objects and application services applicable to
these objects. By extension, the Profibus version or protocol dedicated to complex and advanced
communication tasks at the cell level. This protocol is not supported by the LUFP7 gateway.
GSD
Electronic equipment database, also called GSD file. This term designates the format of the
files (.gsd extension) that are used by a Profibus master configuration and adjustment tool to
configure their exchanges according to that same protocol.
Handshake
LRC
An old term referring to the two registers used for initialising and carrying out diagnostics of the
LUFP7 gateway. This term has been replaced by the expression Control/Status Byte.
Longitudinal Redundancy Check.
LSB
140
1743315 03/2009
Glossary
MSB
Node
A term referring to the connection point of a Modbus slave under ABC-LUFP Config Tool.
PA
Profibus version or protocol dedicated to process automation. This protocol is not supported by
the LUFP7 gateway.
PDP
PI
Profibus International. This term designates the international organization for users of the
Profibus protocol. It is responsible for federating Profibus skills centres, scattered throughout
the 20 largest industrial countries. The list of user groups of the Profibus protocol is available
on the Profibus web site, at http://www.profibus.com/. To get general-purpose support on
Profibus, please email to PI, at: [email protected].
PNO
This term designates the national and local associations of Profibus protocol users.
PPO
Parameter Process data Object. This term designates the type and size of the data exchanged
between a Profibus master and slave. In the case of the LUFP7 gateway, PPOs are not used
to configure its exchanges on the Profibus network.
Profibus
PSU
Power supply.
Sub-Network
A term referring to the downstream Modbus network under ABC-LUFP Config Tool.
TSDI
TSDR
XML
EXtensible Markup Language. The language used by ABC-LUFP Config Tool to import/export
the configuration of a Modbus slave.
141