Fieldbus: Profibus Driver
Fieldbus: Profibus Driver
Fieldbus
Profibus Driver
03/2014
EIO0000001219.00
www.schneider-electric.com
2 EIO0000001219 03/2014
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1 Profibus Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
System Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Cable Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Supported Device Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Consecutive Equipment Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Environment Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
I/O Manager Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Driver Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Device Address Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
EIO0000001219 03/2014 3
4 EIO0000001219 03/2014
Safety Information
§
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with
the device before trying to install, operate, or maintain it. The following special
messages may appear throughout this documentation or on the equipment to warn
of potential hazards or to call attention to information that clarifies or simplifies a
procedure.
EIO0000001219 03/2014 5
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by
qualified personnel. No responsibility is assumed by Schneider Electric for any
consequences arising out of the use of this material.
A qualified person is one who has skills and knowledge related to the construction
and operation of electrical equipment and its installation, and has received safety
training to recognize and avoid the hazards involved.
6 EIO0000001219 03/2014
About the Book
At a Glance
Document Scope
This manual describes the device driver communication settings in the Vijeo
Designer screen editing software. Vijeo Designer enables you to design Magelis
target machines that communicate with PLCs, drives, field devices, and other
equipment.
For more information about Vijeo Designer and Magelis target machines, please
refer to Vijeo Designer user documentation.
Validity Note
The data and illustrations found in this book are not binding. We reserve the right to
modify our products in line with our policy of continuous product development. The
information in this document is subject to change without notice and should not be
construed as a commitment by Schneider Electric.
Documentation Conventions
Target Machine: Human-Machine Interface (HMI) that runs user applications
designed in Vijeo Designer screen editing software. A target machine is also known
as a terminal.
EIO0000001219 03/2014 7
Product Related Information
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.*
Each implementation of a Magelis XBTGT, HMISTO, HMISTU, HMIGTO,
HMIGTU, XBTGH, XBTGK, XBTGC, iPC, and XBTGTW must be individually
and thoroughly tested for proper operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
* For additional information, refer to NEMA ICS 1.1 (latest edition), “Safety
Guidelines for the Application, Installation, and Maintenance of Solid State Control.“
User Comments
We welcome your comments about this document. You can reach us by e-mail at
[email protected].
8 EIO0000001219 03/2014
Profibus Driver
EIO0000001219 04/2013
Profibus Driver
1
Subject of this Chapter
This chapter explains the Profibus Driver.
EIO0000001219 03/2014 9
Profibus Driver
System Structure
Overview
The following table describes the basic system setup for connecting a Siemens
Series PLC to a Profibus network.
To view a cable connection diagram for a particular communication format, see
Cable Diagrams.
Connection
Note:
To enable communication between the target machine and Profibus master
PLC, please copy the GSD files from the Vijeo-Designer installer (disk 2:
\\Tools\Fieldbus) to your PLC configuration software. For details on how to
install the GSD files into the configuration software, please refer to the Readme
file located in the same folder as the GSD files, and also refer to the
configuration software user documentation.
10 EIO0000001219 03/2014
Profibus Driver
Cable Diagrams
Diagram 1 - Profibus
To connect the target machine and the PLC, use the recommended cables and
accessories.
.
Note:
The first and last stations on the network should be terminated. For example,
using the built-in termination switches in the Siemens Profibus bus connector
(6ES7 972-0BA11-0XA0).
Target Machine
Profibus DP Profibus Bus PLC
Slave Unit Connector
Profibus Cable
EIO0000001219 03/2014 11
Profibus Driver
Overview
WARNING
UNINTENDED EQUIPMENT OPERATION
Incorrect values will result if conflicting writes to the same register are requested
simultaneously by the target and PLC program.
Design your system to avoid conflicting write processes between the target
machine and PLC program.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
The following tables list the device address ranges you can enter from the Device
Address keypad.
For actual device address ranges supported by the PLC, refer to the corresponding
PLC manual.
Note:
Output is read-only for Direct I/O; Input is read-only for Packet Transfer. In other
words, the viewpoint for Direct I/O is from slave to master, and for Packet
Transfer is from master to slave.
Direct I/O
Direct I/O is process data that is exchanged between the Profibus stack, the
Profibus DP Slave Unit (target machine), and the Profibus master. This data is
continuously updated and always available to the application.
*1
Device Bit Address Word Address 16 bit 32 bit
*2
Input PI0.0 - PI223.7 PIW0 - PIW222
H/L*7 H/L*7
Output PQ0.0 - PQ223.7*3 PQW0 - PQW222 *2*3
Packet Transfer
12 EIO0000001219 03/2014
Profibus Driver
Use the following addressing format when Packet Transfer is selected in the Driver
Configuration menu.
*1
Device Bit Address Word Address 16 bit 32 bit
*3 *2*3*4
%I0:X0 - %I65535:X7 %IW0 - %IW65534
Input
%E0:X0 - %E65535:X7*3 %EW0 - %EW65534*2*3*5
*2*4
%Q0:X0 - %Q65535:X7 %QW0 - %QW65534
Output *2*5 *7 *7
%A0:X0 - %A65535:X7 %AW0 - %AW65534 H/L H/L
*2*6
Memory %M0:X0 - %M65535:X7 %MW0 - %MW65534
%DB1.DBW0:X0 - %DB1.DBW0 -
Data Block *2*6
%DB255.DBW65535:X7 %DB255.DBW65534
*1 Read-modify-write. When you write to one of these bit addresses, the target
machine reads the entire word address, sets the defined bit, then returns the new
value to the PLC. If the ladder program writes data to this word address during
the bit read/write process, the resulting data may be incorrect.
*2 Word addresses must be even-numbered.
*3 Read-only.
*4 English device name.
*5 German device name.
*6 Device name applies to both English and German.
*7 16-bit and 32-bit data, High and Low, refer to data as defined in the following
examples.
16 bit 32 bit
Byte Word
0 7 ... 0 L (Low) 0 15 . .. 0 L (Low)
1 15 ... 8 H (High) 1 31 . .. 16 H (High)
EIO0000001219 03/2014 13
Profibus Driver
Overview
The following table lists the maximum number of consecutive addresses that can be
read by each PLC. Refer to this table when using block transfers.
Note:
Consecutive addresses and gap span are applicable when Packet Transfer is
selected in the Driver Configuration dialog box. When using Direct I/O, the
Profibus DP Slave interface module transfers all the data back and forth and
stores it in memory.
To speed up data communication, use consecutive variable addresses on the
same panel screen.
The following situations increase the number of times that the equipment is
read, which reduces the data communication speed between the target
machine and the equipment:
when the number of consecutive addresses exceeds the maximum
when different register/device types are used.
Max. Consecutive
Device Gap Span
Addresses
Input (I)
Output (Q)
6 words 4 words
Internal Bit (M)
Data Block (DB)
14 EIO0000001219 03/2014
Profibus Driver
Environment Setup
Overview
WARNING
UNINTENDED EQUIPMENT OPERATION
Read and understand the instructions in this section to ensure data is properly
transferred. If you do not follow these instructions, incorrect data could be written
to the PLC and the target machine.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
EIO0000001219 03/2014 15
Profibus Driver
Overview
Select the following driver and equipment to enable communication with the target
machine.
Note:
For information on how to display the [New Driver] dialog box, see the Vijeo
Designer help.
16 EIO0000001219 03/2014
Profibus Driver
Driver Configuration
Overview
WARNING
UNINTENDED EQUIPMENT OPERATION
Read and understand the instructions in this section to ensure data is properly
transferred. If you do not follow these instructions, incorrect data could be written
to the PLC and the target machine.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
To configure the communication settings of the driver in the target machine, use the
Driver Configuration dialog box. Make sure the settings match those of the PLC.
You can add up to two Profibus DP Slave Unit device drivers to an user application:
one for the internal Profibus DP Slave Unit and one for an external Profibus DP
Slave Unit.
For an overview of the driver and device settings, see Environment Setup.
Note:
For information on how to display the [Driver Configuration] dialog box, see the
Vijeo Designer help.
EIO0000001219 03/2014 17
Profibus Driver
Screen Description
Area Description
Manufacturer Displays the name of the equipment manufacturer.
Driver Displays the type of serial connection used to connect the target
machine to the PLC.
Slave Address Defines the address of the target machine’s Profibus DP Slave interface
module.
Profibus Port Select Internal, External, or Auto. You can mount the Profibus DP Slave
Unit internally inside the target machine, or externally. Auto will find the
location of the card for you.
For details about the supported connections, see Cable Diagrams.
Input Size Defines the number of words input to the Profibus master.
Output Size Defines the number of words output from the Profibus master.
Packet Transfer Select this checkbox to use Packet Transfer, which does not interfere
with Direct I/O communication.
18 EIO0000001219 03/2014
Profibus Driver
Area Description
Timeout Defines the length of time the target machine waits for a response before
it outputs a timeout error or sends another communication.
Retry Count Defines the number of times the driver tries to send or receive data when
an error has been detected.
Total I/O These properties display the total I/O (Direct I/O + Packet Transfer)
occupied on the Profibus GMU interface module. When Packet Transfer
is selected, it adds 8 words to the input and output size.
EIO0000001219 03/2014 19
Profibus Driver
Overview
WARNING
UNINTENDED EQUIPMENT OPERATION
Read and understand the instructions in this section to ensure data is properly
transferred. If you do not follow these instructions, incorrect data could be written
to the PLC and the target machine.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
To set up a PLC variable in the Variable List, use the Device Address Keypad from
the variable properties.
20 EIO0000001219 03/2014
Profibus Driver
Screen Description
Area Description
Memory Area Lists the PLC devices.
Data Block Available when the Memory Area is %DB (Data Block).
Click the ellipsis [...] to display the [Data Block Selector] keypad,
which assists you in entering a valid data block number.
EIO0000001219 03/2014 21
Profibus Driver
22 EIO0000001219 03/2014