OMRON products are manufactured for use by a trained operator and only for the purposes described
in this manual.
The following conventions are used to classify and explain the precautions in this manual. Always
heed the information provided with them.
!DANGERIndicates information that, if not heeded, is likely to result in serious injury or loss of life.
!WARNINGIndicates information that, if not heeded, could possibly result in serious injury or loss of
life.
!CautionIndicates information that, if not heeded, could possibly result in minor or relatively serious
injury, damage to the product or faulty operation.
OMRON Product References
All OMRON products are capitalized in this manual. The first letter of the word Unit is also capitalized
when it refers to an OMRON product, regardless of whether it appears in the proper name of the product.
The abbreviation Ch appears in some displays and on some OMRON products. It often means word
and is abbreviated as Wd in the documentation.
The abbreviation PLC means Programmable Logic Controller.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
Note Indicates information of particular interest for efficient and convenient opera-
tion of the product.
1, 2, 3...Indicates various lists such as procedures, checklists etc.
iii
Trademarks and Copyrights
r
f
PROFIBUS, PROFIBUS FMS, PROFIBUS DP, PROFIBUS DP-V1, and PROFIBUS PA are trademarks of PROFIBUS International.
Microsoft, Windows, Windows NT, Windows 2000, Windows XP, Windows Explorer and ActiveX are
trademarks of Microsoft Corporation.
Sycon and CIF are trademarks of Hilscher GmbH.
®
HART
Other product names and company names in this manual are trademarks or registered trademarks of
their respective companies.
The copyright of the PROFIBUS Master Unit belongs to OMRON Corporation.
is a registered trademark of HART Communication Foundation.
OMRON, 2006
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, o
by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission o
OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without
notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility
for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in
this publication.
This manual describes the CS1W-PRM21 and CJ1W-PRM21 PROFIBUS DP and PROFIBUS DP-V1
Master Units. The Unit version number on the side case of the housing indicates supported functionality. If no version number is shown, the version number is 1.0. The following table lists the functions supported per version number.
Unit nameUnit VersionSupporting
CJ1W-PRM21
CS1W-PRM21
Unit version 3.0 includes the same functions as Unit version 1.0 and 2.0, in addition to PROFIBUS DPV1 Class 2 related functions. Unit version 3.0 will eventually replace Unit version 1.0 and 2.0.
The DTM versions are downward compatible. Newer versions also support features of previous Unit
versions.
NoteUnless stated otherwise, specifications, descriptions and images in this manual apply to all
Unit versions of the CS1W-PRM21 and CJ1W-PRM21 Units. The indication PROFIBUS Master Unit(s) will be used when referring to both unit types.
PROFIBUS DP-V1 (Class 1 and Class 2) Master
Additional PROFIBUS DP acyclic services
NoteThe basic functionality of PROFIBUS DP is sometimes referred to as PROFIBUS DP-V0. In
this document the term PROFIBUS DP will be used to indicate the basic functionality.
This manual describes how to install and operate the CS1W-PRM21 and CJ1W-PRM21 Units. Both
Units serve the same purpose: enable devices of various manufacturers to intercommunicate without
making any special interface adaptations. They are technically the same; they differ only in their physical dimensions and weight and the way they are connected to the backplane.
This manual also describes - to a lesser extent - how to configure the C200HW-PRM21 PROFIBUS
DP Master Unit using the CX-Profibus Configurator. For more information on the C200HW-PRM21
PROFIBUS DP Master Unit, refer to the C200H-series PROFIBUS DP Master Units Operation Manual
(W349-E2-@).
Please read this manual carefully so that you understand the information provided before installing or
using the PROFIBUS Master Unit. Start with the precautions in the following section. They describe
the operating environment and application safety measures which must be observed prior to and when
using the PROFIBUS Master Unit.
The sections of this manual are as follows:
Section 1 introduces the PROFIBUS Master Units and CX-Profibus.
Section 2 describes the installation and setup of the PROFIBUS Master Units.
Section 3 describes the installation of CX-Profibus and provides a overview.
Section 4 describes how the Units interface to the PLC CPU.
Section 5 describes the FINS commands supported by the PROFIBUS Master Units.
Section 6 describes the operational aspects of the PROFIBUS Master Units.
Section 7 provides procedures for troubleshooting the PROFIBUS network and the Units.
The Appendices contain information supplementary to the information in the main body of the manual. They are referred to in the various sections as required.
PRT1-COM & GT1-series Describes the Installation and Operation of
the PROFIBUS DP PRT1-COM and GT1series I/O Units.
SYSMAC C200H-series
C200HW-PRT21 PROFIBUS DP Slave unit
F150-C15E-3-PRT21
PROFIBUS DP Vision Sensor
Describes the Installation and Operation of
the C200HW-PRT21 PROFIBUS DP Slave
Units.
Describes the Installation and Operation of
the F150 PROFIBUS Vision Sensor.
W900-E2-@
W901-E2-@
Z143-E1-@
!WARNING Failure to read and understand the information provided in this manual may result in per-
sonal injury or death, damage to the product, or product failure. Please read each section
in its entirety and be sure you understand the information provided in the section and
related sections before attempting any of the procedures or operations given.
x
Read and Understand this Manual
Please read and understand this manual before using the product. Please consult your OMRON
representative if you have any questions or comments.
Warranty and Limitations of Liability
WARRANTY
OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for a
period of one year (or other period if specified) from date of sale by OMRON.
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE
PRODUCTS. ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS
DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR
INTENDED USE. OMRON DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED.
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES,
LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS,
WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT
LIABILITY.
In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which
liability is asser ted.
IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS
REGARDING THE PRODUCTS UNLESS OMRON'S ANALYSIS CONFIRMS THAT THE PRODUCTS
WERE PROPERLY HANDLED, STORED, INSTALLED, AND MAINTAINED AND NOT SUBJECT TO
CONTAMINATION, ABUSE, MISUSE, OR INAPPROPRIATE MODIFICATION OR REPAIR.
xi
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the
combination of products in the customer's application or use of the products.
At the customer's request, OMRON will provide applicable third party certification documents identifying
ratings and limitations of use that apply to the products. This information by itself is not sufficient for a
complete determination of the suitability of the products in combination with the end product, machine,
system, or other application or use.
The following are some examples of applications for which particular attention must be given. This is not
intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses
listed may be suitable for the products:
• Outdoor use, uses involving potential chemical contamination or electrical interference, or conditions or
uses not described in this manual.
• Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical
equipment, amusement machines, vehicles, safety equipment, and installations subject to separate
industry or government regulations.
• Systems, machines, and equipment that could present a risk to life or property.
Please know and observe all prohibitions of use applicable to the products.
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO
ADDRESS THE RISKS, AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED
FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable product, or any
consequence thereof.
xii
Disclaimers
CHANGE IN SPECIFICATIONS
Product specifications and accessories may be changed at any time based on improvements and other
reasons.
It is our practice to change model numbers when published ratings or features are changed, or when
significant construction changes are made. However, some specifications of the products may be changed
without any notice. When in doubt, special model numbers may be assigned to fix or establish key
specifications for your application on your request. Please consult with your OMRON representative at any
time to confirm actual specifications of purchased products.
DIMENSIONS AND WEIGHTS
Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when
tolerances are shown.
PERFORMANCE DATA
Performance data given in this manual is provided as a guide for the user in determining suitability and does
not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must
correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and
Limitations of Liability.
ERRORS AND OMISSIONS
The information in this manual has been carefully checked and is believed to be accurate; however, no
responsibility is assumed for clerical, typographical, or proofreading errors, or omissions.
xiii
PRECAUTIONS
This section provides general precautions for using the PROFIBUS Master Units, Programmable Controllers and related
devices.
The information contained in this section is important for the safe and reliable operation of the PROFIBUS Master
Units. You must read this section and understand the information contained before attempting to set up or operate
a PROFIBUS Master Unit and PLC system.
This manual is intended for the following personnel, who must also have a
knowledge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems.
• Personnel in charge of designing FA systems.
• Personnel in charge of managing FA systems and facilities.
2General Precautions
The user must operate the product according to the performance specifications described in the operation manuals.
Before using the product under conditions which are not described in the
manual or applying the product to nuclear control systems, railroad systems,
aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used
improperly, consult your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide
the systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating OMRON
PROFIBUS Master Units. Be sure to read this manual before attempting to
use the Unit and keep this manual close at hand for reference during operation.
1
!WARNING It is extremely important that all PLC Units be used for their specified pur-
poses and under the specified conditions, especially in applications that can
directly or indirectly affect human life. You must consult your OMRON representative before using a PLC System in the above-mentioned applications.
3Safety Precautions
!WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing
so may result in electric shock.
!WARNING Never touch any of the terminals while power is being supplied. Doing so may
result in serious electrical shock or electrocution.
!WARNING Do not attempt to disassemble, repair, or modify any Units. Any attempt to do
so may result in malfunction, fire, or electric shock.
!WARNING Do not touch the Power Supply Unit while power is being supplied or immedi-
ately after power has been turned OFF. Doing so may result in electric shock.
!Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the
torque specified in the operation manual. Loose screws may result in burning
or malfunction.
xvi
Operating Environment Precautions
!WARNING The CPU Unit refreshes I/O even when the program is stopped (i.e., even in
PROGRAM mode). Confirm safety thoroughly in advance before changing the
status of any part of memory allocated to I/O Units, Special I/O Units, or CPU
Bus Units. Any changes to the data allocated to any Unit may result in unexpected operation of the loads connected to the Unit. Any of the following operation may result in changes to memory status.
• Transferring I/O memory data to the CPU Unit from a Programming
Device.
• Changing present values in memory from a Programming Device.
• Force-setting/-resetting bits from a Programming Device.
• Transferring I/O memory files from a Memory Card or EM file memory to
the CPU Unit.
• Transferring I/O memory from a host computer or from another PC on a
network.
!WARNING Execute online edits only after confirming that no adverse effects will be
caused by extending the cycle time. Otherwise, the input signals may not be
readable.
4
4Operating Environment Precautions
!Caution Do not operate the Unit in the following places:
• Locations subject to direct sunlight.
• Locations subject to temperatures or humidities outside the range specified in the specifications.
• Locations subject to condensation as the result of severe changes in temperature.
• Locations subject to corrosive or flammable gases.
• Locations subject to dust (especially iron dust) or salt.
• Locations subject to exposure to water, oil, or chemicals.
• Locations subject to shock or vibration.
Provide proper shielding when installing in the following locations:
• Locations subject to static electricity or other sources of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radiation.
• Locations near to power supply lines.
!Caution The operating environment of the PLC system can have a large effect on the
longevity and reliability of the system. Unsuitable operating environments can
lead to malfunction, failure and other unforeseeable problems with the PLC
system. Ensure that the operating environment is within the specified conditions at installation time and remains that way during the life of the system.
Follow all installation instructions and precautions provided in the operation
manuals.
xvii
Application Precautions
5Application Precautions
Observe the following precautions when using the PROFIBUS Master Unit.
!WARNING Failure to abide by the following precautions could lead to serious or possibly
fatal injury. Always heed these precautions.
5
• Always connect to a class-3 ground (100
Units.
!Caution Failure to abide by the following precautions could lead to faulty operation or
the PLC or the system or could damage the PLC or PLC Units. Always heed
these precautions.
• Install double safety mechanisms to ensure safety against incorrect signals that may be produced by broken signal lines or momentary power
interruptions.
• When adding a new device to the network, make sure that the baud rate
is the same as other nodes.
• When adding a new slave device to the network, make sure that the
PROFIBUS Master Unit is in the OFFLINE state, to prevent unexpected
results when starting up the slave device.
• Use specified communications cables.
• Do not extend connection distances beyond the ranges given in the specifications.
• Always turn OFF the power supply to the personal computer, Slaves, and
Communications Units before attempting any of the following.
• Mounting or dismounting the PROFIBUS Master Unit, Power Supply
Units, I/O Units, CPU Units, or any other Units.
• Assembling a Unit.
• Setting DIP switches or rotary switches.
• Connecting or wiring the cables.
• Connecting or disconnecting connectors.
• Be sure that the terminal blocks, connectors, Memory Units, expansion
cables, and other items with locking devices are properly locked into
place. Improper locking may result in malfunction.
• Be sure that all the mounting screws, terminal screws, Unit mounting
screws, and cable connector screws are tightened to the torque specified
in the relevant manuals. Incorrect tightening torque may result in malfunction.
• Leave the label attached to the Unit when wiring. Removing the label may
result in malfunction if foreign matter enters the Unit.
• Remove the label after the completion of wiring to ensure proper heat dissipation. Leaving the label attached may result in malfunction.
• Always use the power supply voltage specified in this manual.
• Double-check all the wiring and connection of terminal blocks and connectors before mounting the Units.
• Use crimp terminals for wiring. Do not connect bare stranded wires
directly to terminals.
Ω or less) when installing the
xviii
Application Precautions
5
• Observe the following precautions when wiring the communications
cable.
• Separate the communications cables from the power lines or high-tension lines.
• Do not bend the communications cables.
• Do not pull on the communications cables.
• Do not place heavy objects on top of the communications cables.
• Be sure to wire communications cable inside ducts.
• Use appropriate communications cables.
• Take appropriate measures to ensure that the specified power with the
rated voltage and frequency is supplied in places where the power supply
is unstable. An incorrect power supply may result in malfunction.
• Install external breakers and take other safety measures against short-circuits in external wiring. Insufficient safety measures against short-circuits
may result in burning.
• Double-check all the wiring and switch settings before turning ON the
power supply.
• Check the user program for proper execution before actually running it on
the Unit. Not checking the program may result in an unexpected operation.
• When configuring a slave device on the network using PROFIBUS DP-V1
messaging services via the PROFIBUS Master Unit, make sure that the
PROFIBUS Master Unit is in the CLEAR state, to prevent unexpected
results when.
• Confirm that no adverse effect will occur in the system before attempting
any of the following. Not doing so may result in an unexpected operation.
• Changing the operating mode of the PC.
• Force-setting/force-resetting any bit in memory.
• Changing the present value of any word or any set value in memory.
• After replacing Units, resume operation only after transferring to the new
CPU Unit and/or Special I/O Units the contents of the DM Area, HR Area,
and other data required for resuming operation. Not doing so may result in
an unexpected operation.
• When transporting or storing the product, cover the PCBs with electrically
conductive materials to prevent LSIs and ICs from being damaged by
static electricity, and also keep the product within the specified storage
temperature range.
• When transporting the Unit, use special packing boxes and protect it from
being exposed to excessive vibration or impacts during transportation.
• Do not attempt to disassemble, repair, or modify any Units.
• Do not attempt to remove the cover over the non-used connector hole on
the front of the CS1W-PRM21 Unit.
xix
Conformance to EC Directives
6Conformance to EC Directives
6-1Applicable Directives
•EMC Directives
• Low voltage directive EN 61131-2:1994+A12:2000
6-2Concepts
EMC Directives
OMRON Units complying with EC Directives also conform to related EMC
standards making them easier to incorporate in other Units or machines. The
actual products have been checked for conformity to EMC standards. (See
the following note.) Whether the products conform to the standards in the system used by the customer, however, must be checked by the customer.
EMC-related performance of OMRON Units complying with EC Directives will
vary depending on the configuration, wiring, and other conditions of the equipment or control panel in which OMRON devices are installed. The customer
must, therefore, perform final checks to confirm that units and the overall system conforms to EMC standards.
Note Applicable EMS (Electromagnetic Susceptibility) and EMI (Electromagnetic
Interference standards in the EMC (Electromagnetic Compatibility) standards
are as follows:
Units that meet EC directives also meet the common emission standard
(EN50081-2). The measures necessary to ensure that the standard is met will
vary with the overall configuration. You must therefore confirm that EC directives are met for the overall configuration, particularly any radiated emission
requirement (10 m).
xx
SECTION 1
Features and Specifications
This section provides an introductory overview of PROFIBUS, its functions and how to setup and configure a network. It
also addresses the PROFIBUS Master Units and the configurator, their features and specifications.
Standard EN50170PROFIBUS (PROcess FIeldBUS) is an open fieldbus standard for a wide
range of applications in manufacturing, processing and building automation.
The Standard, EN 50170 (the Euronorm for field communications), to which
PROFIBUS adheres, guarantees vendor independence and transparency of
operation. It enables devices of various manufacturers to intercommunicate
without having to make any special interface adaptations.
The PROFIBUS family comprises three mutually compatible versions: PROFIBUS FMS, PROFIBUS DP and PROFIBUS PA.
PROFIBUS FMSFMS means Fieldbus Message Specification. This version is the general-pur-
pose solution for high-level extensive and complex communication tasks.
Powerful services open up a wide range of applications and provide great flexibility.
PROFIBUS DPDP means Decentralized Periphery. PROFIBUS DP is optimized for high
speed and low-cost interfacing. It is specially designed for communication
between automation control systems and distributed I/O at the device level.
PROFIBUS PAPA means Process Automation. It permits sensors and actuators to be con-
nected to one common bus even in areas where intrinsically safe products are
required. It also permits data and power to be supplied over the bus using
2-wire technology according the international standard IEC 1158-2.
Uniform Bus Access
Protocol
!Caution It is not possible to exchange one of these family members by another family
PROFIBUS DP and PROFIBUS FMS use the same transmission technology
and uniform bus access protocol. Consequently, both versions can be operated simultaneously on the same bus. FMS field devices, however, cannot be
controlled by DP masters and vice versa.
member. This will cause faulty operation.
The rest of this section describes the PROFIBUS DP Protocol architecture.
1-1-2PROFIBUS Communication Protocol
OSI reference model
ISO-7498
In general, the PROFIBUS communication protocol is based on the Open
System Interconnection (OSI) reference model in accordance with the international standard ISO-7498 (see the following illustration). The model defines
7 layers of communication functions, three of which - layers 1, 2, and 7 - are
used in PROFIBUS.
• Layer 1, the Physical Layer of this model, defines the physical transmission characteristics.
• Layer 2, the Data Link Layer of this model, defines the bus access protocol. This protocol also includes data security and the handling of transmission protocols and telegrams.
• Layer 7, the Application Layer of this model, defines the application functions. This Layer is only applicable to PROFIBUS FMS.
2
Overview of PROFIBUS
.
DP-Profiles
DP-Extensions
User Interface LayerDP Basic Functions
(7) Application Layer
(6) Presentation Layer
(5) Session LayerNOT DEFINED
(4) Transport Layer
(3) Network Layer
(2) Data Link LayerFieldbus Data Link (FDL)
(1) Physical LayerRS485 / Fibre Optics
PROFIBUS DPIn the rest of this manual, only PROFIBUS DP is considered.
Section 1-1
OSI Layer 1, 2 and User
Interface
PROFIBUS DP uses layers 1 and 2, and the user interface. Layers 3 to 7 are
not defined for PROFIBUS DP. The user interface Layer defines the interface
functions for specific application areas, i.e. the PROFIBUS DP basic functions
and communication profiles.This streamlined architecture ensures fast and
efficient data transmission. The application functions which are available to
the user, as well as the system and device behaviour of the various PROFIBUS DP device types, are specified in the user interface.
OSI Layer 1: Transmission
Medium
RS-485 transmission technology or fibre optics are available for transmission.
RS-485 transmission is the most frequently used transmission technology. Its
application area includes all areas in which high transmission speed and simple inexpensive installation are required. PROFIBUS modules are interconnected by single twisted-pair shielded copper wires.
RS-485 TechnologyThe RS-485 transmission technology is very easy to handle. Installation of the
twisted pair cable does not require expert knowledge. The bus structure permits addition and removal of devices or step-by-step commissioning of the
system without influencing the other devices. Later expansions have no effect
on devices which are already in operation.
RS-485 Transmission
Speed
Transmission speeds between 9.6 kbit/s and 12 Mbit/s can be selected as
shown in the table below. One unique transmission speed must selected for
all devices on the bus when the system is commissioned.
Baud rate (kbit/s)Distance / segment (m)
9.61200
19.21200
45.451200
93.751200
187.51000
500400
1500200
3000100
6000100
12000100
Cable lengthThe maximum cable length values depend on the transmission speed and are
based on type-A cable (see Cable Type on page 39). The length can be
increased by the use of repeaters.However, it is not recommended to use
more than three repeaters in series in a PROFIBUS network.
3
Overview of PROFIBUS
Section 1-1
1-1-3Device Types
PROFIBUS distinguishes between master devices and slave devices.
Master DevicesMaster devices determine the data communication on the bus. A Master can
send messages without an external request, as long as it holds the bus
access right (the token). Masters are also referred to as active devices in the
PROFIBUS standard.
There are two types of master devices:
Class 1 Master (DPM1)A PROFIBUS DP Class 1 Master (DPM1) device is a central controller, which
exchanges information with the decentralized devices (i.e. DP slaves) within a
specified message cycle.
Class 2 Master (DPM2)PROFIBUS DP class 2 Master (DPM2) devices are programmers, configura-
tion devices or operator panels. They are used during commissioning, for configuration of the DP system, or for operation and monitoring purposes.
As of Unit Version 3.0 the CS1W-PRM21 and the CJ1W-PRM21 are PROFIBUS DP Class 1 as well as Class 2 Master devices.
Slave DevicesSlave devices are peripheral devices. Typical slave devices include input/out-
put devices, valves, drives, and measuring transmitters. They do not have bus
access rights and they can only acknowledge received messages or send
messages to the master when requested to do so. Slave devices are also
called passive devices
Device ProfileTo enable the exchange of devices from different vendors, the user data has
to have the same format. The PROFIBUS DP protocol does not define the format of user data, it is only responsible for the transmission of this data. The
format of user data may be defined in so called profiles. Profiles can reduce
engineering costs since the meaning of application-related parameters is
specified precisely. Profiles have been defined for specific areas like drive
technology, encoders, and for sensors / actuators.
PROFIBUS DP-V1PROFIBUS DP-V1 is an extension to the PROFIBUS DP protocol standard. It
defines acyclic message services between a PROFIBUS DP-V1 Master and a
PROFIBUS DP-V1 slave device. These acyclic message services allow
exchange of extended parameter settings as well as extended diagnostics
and alarm information, during regular I/O data exchange. PROFIBUS DP-V1
devices must at least support PROFIBUS DP.
PROFIBUS DP-V1 services are designated as MSACn services (M
S
lave Acyclic, Class n), in which n designates the Master Class (i.e. 1 or 2).
The CS1W-PRM21 and the CJ1W-PRM21 both support PROFIBUS DP-V1
Class 1 and Class 2 Master functions as of Unit version 3.0.
aster-
1-1-4Bus Access Protocol
OSI Layer 2: Bus Access
Protocol
The PROFIBUS bus access protocol is implemented by OSI layer 2. This protocol also includes data security and the handling of the transmission protocols and messages.
Medium Access ControlThe Medium Access Control (MAC) specifies the procedures which determine
when a device is permitted to transmit data. A token passing procedure is
used to handle the bus access between master devices, and a polling procedure is used to handle the communication between a master device and its
assigned slave device(s).
4
Overview of PROFIBUS
Section 1-1
Token PassingThe token passing procedure guarantees that the bus access right (the token)
is assigned to each master within a precisely defined time frame. The token
message, a special message for passing access rights from one master to the
next master, must be passed around the logical token ring - once to each
master - within a specified target rotation time. Each master executes this procedure automatically.
Polling Procedure The polling or master-slave procedure permits the master, currently in pos-
session of the token, to access its assigned slaves. The figure below shows a
possible configuration The configuration shows three active devices (masters)
and six passive devices (slaves).
Token Passing
DPM1DPM2DPM1
Active stations
Master devices
Passive stations
Slave devices
Polling
PROFIBUS
The three masters form a logical token ring. When an active device receives
the token message, it can perform its master role for a certain period of time.
During this time it can communicate with all assigned slave devices in a master-slave communication relationship, and a DPM2 master can take the initiative to communicate with DPM1 master devices in a master-master
communication relationship.
Multi-peer CommunicationIn addition to logical peer-to-peer data transmission, PROFIBUS DP provides
multi-peer communication (broadcast and multicast).
Broadcast
Communication
In the case of broadcast communication a master device sends an unacknowledged message to all other devices (masters and slaves).
Multicast CommunicationIn the case of multicast communication a master device sends an un-
acknowledged message to a predetermined group of slave devices.
1-1-5Diagnostic functions
Extended DiagnosticsExtended diagnostic functions defined in PROFIBUS DP enable the fast loca-
tion of error at slave devices. Diagnostic messages are transmitted over the
bus and collected at the master. Three diagnostic message types are defined:
Device Related
Diagnostics
• Messages concerning the general operational status of the whole device,
e.g. over temperature, low voltage.
Module Related
Diagnostics
Channel Related
Diagnostics
• Messages indicating that an error is present in a specific I/O range of a
device, e.g. an 8-bit output module.
• Messages indicating an error at a given input or output, e.g. short circuit
on Output 5.
5
Overview of PROFIBUS
Section 1-1
1-1-6Protection Mechanisms
Monitoring TimePROFIBUS DP provides effective protection functions against parameteriza-
tion errors or failure of the transmission equipment. Time monitoring is provided both at the master and the slave devices. The monitoring interval is
specified when the system is configured.
Monitoring at the MasterThe PROFIBUS Master monitors data transmission of the slaves with the
Data-Control-Timer. A separate control timer is used for each slave. This timer
expires if response data is not correctly transmitted by the slave within the
monitoring interval. The user is informed when this happens. If the automatic
error reaction (Auto-CLEAR) has been enabled, the PROFIBUS Master exits
its OPERATE state, switches the outputs of all assigned slaves to the fail-safe
status and changes to the CLEAR state.
Monitoring at the SlaveSlave devices use a watchdog to detect failures of the master or the bus. If
data communication with the master does not occur within the set watchdog
time interval, a slave automatically switches its outputs to the fail-safe mode.
Also, access protection is provided for the inputs and outputs of the slaves
operating in multi-master systems. Only authorized masters can access their
slaves.
1-1-7Network Operation Modes
PROFIBUS DP distinguishes four different network operation modes:
OFFLINE• Communication with all PROFIBUS DP participants (masters and slaves)
is stopped. The Master ceases to access the PROFIBUS network.
STOP• Cyclic communication as well as PROFIBUS DP-V1 Class 1 communica-
tion between the master and its slaves is stopped. Only PROFIBUS DPV1 Class 2 communication and communication between the master and
other masters is still possible.
CLEAR• The master tries to set parameters, check the configuration, and perform
data exchange with its associated slaves. Data exchange involves reading
the inputs of the PROFIBUS DP slaves and writing zeros to the outputs of
the slaves.
OPERATE• The master exchanges data with its assigned slaves, inputs are read and
outputs are written. Also, the master cyclically sends its local status to all
its assigned PROFIBUS DP slaves (using a broadcast message).
The PROFIBUS Master Unit will always be in one of these four modes. Mode
transitions from one mode to another will be performed via intermediate
modes. For example, a mode transition from OFFLINE to OPERATE, will be
Auto-CLEAR
Fail-safe State
performed as OFFLINE
If an error occurs during the data exchange phase of the master, the ‘AutoCLEAR’ function determines the subsequent actions. If this function has been
disabled, the master remains in the OPERATE mode. If the function has been
enabled, the master automatically changes the network to the CLEAR mode,
in which the outputs of the assigned PROFIBUS DP slaves are switched to
zero, i.e. the ‘fail-safe’ state. The master continues to read the inputs of the
slaves.
→ STOP → CLEAR → OPERATE.
6
Setting up a PROFIBUS DP Network
Section 1-2
1-2Setting up a PROFIBUS DP Network
1-2-1Configuring the PROFIBUS Master
In order to operate a PROFIBUS network, each master in the network needs
to be configured. This process of configuration involves
• setting up the network topology, i.e. assigning the slave devices with
which the master will be exchanging data,
• defining the parameterization data, which the master will send to each of
the slave devices, before process data exchange can commence
• defining the configuration data, i.e. defining the process data, which will
be exchanged,
• setting up the bus parameters, which define the baud rate and the bus
timing parameters.
• downloading the configuration setup to the master device.
Configuration TechnologyThe configuration process is usually facilitated by a special Computer based
program, often referred to as a configurator. The configurator requires special
configuration files, defining the configuration options for each device, which is
to participate in data exchange. The files must be provided by the manufacturer of the device.
Two types of configuration technology exist:
• Configuration technology based on FDT/DTM technology
• Configuration technology based on GSD-files
1-2-2FDT/DTM Technology
FDT/DTM TechnologyThe newer configuration tools are based on FDT/DTM technology.
FDT/DTM ConceptThe FDT/DTM concept specifies the interfaces between the engineering sys-
tems called Field Device Tools (FDT), and the device-specific software components called Device Type Managers (DTM).
The FDT/DTM concept separates the device dependent functionality (which is
in the DTM) from the application. It provides separate interfaces for device
configuration, monitoring and maintenance solutions, which before largely
depended on the manufacturer of the application. Because of this concept,
FDT/DTM technology is not limited to PROFIBUS applications. In concept,
any type of network can be configured and accessed, provided the appropriate DTMs are available.
FDT Container ApplicationA FDT container application facilitates configuration of network devices and
parameterizing and/or manipulating their operational modes. All device
dependent functionality is concentrated in the DTM.
FDT container applications can be stand-alone tools, or can be part of other
engineering tools such web browsers providing FDT interfaces.Since FDT
standardizes the interfaces, it allows devices from different manufacturers to
be integrated in any automation system, regardless of the fieldbus system.
CX-Profibus is an example of a FDT container application. It is described in
detail in the following sections.
Device DTMDTMs are provided by the manufacturer of the device. A DTM is comparable
to a printer driver, which allows interactive configuration and diagnostics.
7
Setting up a PROFIBUS DP Network
The DTM provides not only the configuration, manipulation and monitoring
functions for a device including the user interface functions, it also provides
the connection technology to the device.
DTM PropertiesIn general, a DTM is a Microsoft COM-component, which can be executed
from within a FDT container application. A DTM is not a stand-alone tool, it
requires a FDT container application to be executed. The DTM provides a
number of interface functions, through which it can be controlled and
accessed in order to transfer data to or from the DTM.
A DTM provides all the options for configuration and monitoring of a device,
which it can present to the user through its own user interface.
ActiveX User InterfaceThe user interface for a DTM is provided using ActiveX windows. Control of
these windows is done by the DTM, but the FDT container application can
request specific user input from the DTM, based on which the DTM will provide the necessary ActiveX windows. In general multi-language user interface
windows, including DTM specific Help files are supported by the DTM.
XML based Data TransferData transfer to and from a DTM is provided using XML-documents. The
XML-documents are standardized for the communication between the FDT
container application and for communication between DTMs.
An additional specification covers the definition of XML-data formats for the
transfer of application specific data, such as PROFIBUS data.
Section 1-2
Communication DTMIn general, a device configuration DTM is accompanied by a communication
DTM. This specific DTM facilitates device specific communication, e.g. for
downloading a configuration to a PROFIBUS Master Unit and/or for retrieving
monitoring information from PROFIBUS Master Unit. It may incorporate the
specific communication protocol, or rely on other available drivers.
CX-Profibus CX-Profibus is a FDT container application. Together with this container appli-
cation, OMRON provides five DTMs:
• A DTM to facilitate configuration and operation of the CS1/CJ1W-PRM21
PROFIBUS DP-V1 Master Units (As of Unit version 2.0).
• A DTM to facilitate configuration of the CS1/CJ1W-PRM21 PROFIBUS
DP Master Units (Unit version 1.0).
• A DTM to facilitate configuration of the C200HW-PRM21 PROFIBUS DP
Master Unit.
• A DTM to facilitate configuration of the SmartSlice GRT1-series
GRT1-PRT PROFIBUS Communication Unit.
• A DTM to facilitate integration of GSD file based devices into CX-Profibus
(see section 1-2-3 GSD file Technology for more information).
1-2-3GSD file Technology
GSD file TechnologyThe older and most commonly used configuration technology is the based on
GSD files (General Slave Data file). A GSD file is a text file, containing the
characteristic features and configuration options of a device. The device data
base file of each device is loaded in the configurator and downloaded to the
master device.
GSD files are usually supplied with a Unit, or can be downloaded from the
Internet, either from the manufacturer's site, or from the GSD library of the
PROFIBUS International at http://www.profibus.com.
8
Setting up a PROFIBUS DP Network
GSD File LanguageThe language used in the GSD file is indicated by the last letter of the file
extension, *.GS?:
Default= GSD
English= GSE
German= GSG
Italian= GSI
Portuguese= GSP
Spanish= GSS
The GSD files are prepared individually by the vendor for each type of device,
according to a fixed format. Some parameters are mandatory, some have a
default value and some are optional. The device data base file is divided into
three parts:
General Section• General specifications
This section contains the vendor name, the device name, hardware- and software release versions, device type and identification number, protocol specification and supported baud rates.
This section contains all parameters which only apply to DP master devices
(e.g. maximum memory size for the master parameter set, maximum number
of entries in the list of active devices, or the maximum number of slaves the
master can handle).
Section 1-2
DP-slave Section• DP slave-related specifications
This section contains all specification related to slaves (e.g. minimum time
between two slave poll cycles, specification of the inputs and outputs, and
consistency of the I/O data).
For PROFIBUS DP-V1 devices this section also specifies what services for
PROFIBUS DP-V1 are supported.
DTM versus GSD FileWhen comparing the two configuration technologies, a GSD file only provides
information on the device characteristics and configuration options. It has no
GUI of its own, nor can it connect to the device itself. A GSD file always
requires a separate configurator program to interpret the data. In the FDT/
DTM concept all these device related functions are included in the DTM. The
DTM can be executed from any program, which provides FDT interfaces.
Sending PROFIBUS DP-V1 commands to a device from the configuration tool
is only possible using DTM technology. The GSD file does not provide this
means.
9
Loading...
+ 267 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.