Omron CS1W-PRM21, CJ1W-PRM21 Operation Manual

SYSMAC CS/CJ-series CS1W-PRM21 CJ1W-PRM21
PROFIBUS-DP Master Units
Operation Manual (Draft)
Produced November 17, 2003
iv
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.
!DANGER Indicates information that, if not heeded, is likely to result in serious injury or loss of life.
!WARNING Indicates information that, if not heeded, c ould possibly result in serious injur y or loss of
life.
!Caution Indicates 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 when it refers to an OMRON product, regardless of whether it appears in the proper name of the prod­uct.
The abbreviation and is abbreviated as Wd in the documentation.
The abbreviation
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of information.
Unit
is also cap italiz ed
Ch
appears in som e displays and on some OM RON products. It often means
PLC
means Programmable Logic Controller.
Note Indicates information of par ticular interest for efficient and convenient opera-
tion of the product.
1, 2, 3...Indicates various lists such as procedures, checklists etc.
word
v
Trademarks and Copyrights
f
Profibus is a registered trademark of the Profibus International Organization. Microsoft Windows, Windows 95, Windows 98, Windows NT, Windows 2000, and Windows XP are
registered trademarks of the Microsoft Corporation. AnyBus is a registered trademark of the Hjassber MicroSystems Sweden Sycon and CIF are registered trademarks of Hilscher GmbH Other product names and company names in this manual are trademarks or registered trademark s of
their respective companies. The copyright of the Profibus Master Unit belongs to OMRON Corporation.
OMRON, 2003
All rights reserv ed. No part of this publica tion may be reproduced, stored in a retrieval system, or transmitted, in any form, or 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 con­stantly 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.
vi
TABLE OF CONTENTS
About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
2 General Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
5 Application Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiii
6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
SECTION 1
Features and Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1-1 Overview of PROFIBUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-2 Setting up a PROFIBUS-DP Network. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1-3 PROFIBUS-DP Master Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1-4 CX-Profibus Configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
1-5 Basic Operating Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
SECTION 2
Installation and Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2-1 Unit Components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2-2 Installing the PROFIBUS-DP Master Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2-3 Initial Setup Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2-4 Setting up a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2-5 Defining PROFIBUS-DP in the Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
SECTION 3
Configuration Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3-1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3-2 CX-Profibus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3-3 PROFIBUS-DP Master DTM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3-4 Generic Slave Device DTM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
SECTION 4
Allocated CIO and DM Words . . . . . . . . . . . . . . . . . . . . . . . 83
4-1 Overview of Word Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
4-2 Allocated CIO Area Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
SECTION 5
Fins Commands and Responses. . . . . . . . . . . . . . . . . . . . . . . 99
5-1 FINS Commands and Responses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
vii
TABLE OF CONTENTS
5-2 Command / Response Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
SECTION 6
Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
6-2 Setting up a network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 0
6-3 Configuring the Slave Stations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
6-4 Configuring the Master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
SECTION 7
Troubleshooting and Maintenance . . . . . . . . . . . . . . . . . . . . 127
7-1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
7-2 Troubleshooting Using LED Indicators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
7-3 Troubleshooting I/O Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
7-4 Troubleshooting Using Error Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
7-5 Troubleshooting using the Error Log. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
7-6 Troubleshooting FINS Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
7-7 Maintenance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
7-8 Replacing the Unit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Appendices
A Bus Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
B Slave Diagnostics Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
C Memory Card Backup Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
D I/O Data Conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
E Configurator Error and Warning Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
viii

About this Manual

This manual describes the CS1W-PRM21 and CJ1W-PRM21 PROFIBUS-DP Master Units. It also describes how to install and operate them. Both Units ser ve the sam e purpose: enable devices of var­ious 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 con­nected to the backplane.
Please read this manual carefully so that you understand the i nformation provided before installing or using the PROFIBUS-DP 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-DP Master Unit.
The sections of this manual are as follows:
Section 1 Section 2 Section 3 Section 4 Section 5 Section 6 Section 7
The
introduces the PROFIBUS-DP Master Units and CX-Profibus. describes the installation and setup of the PROFIBUS-DP Master Units. describes the installation of CX-Profibus and provides a overview. describes how the Units interface to the PLC CPU. describes the FINS commands suppor t ed by the PROFIBUS Master Units. describes the operational aspects of the PROFIBUS Master Units. provides procedures for troubleshooting the PROFIBUS-DP network and the Units.
Appendices
contain information supplementar y to the information in the main body of the man-
ual. They are referred to in the various sections as required.
Manual Products Contents Cat. No.
CS-series Programmab le Controllers Operation Manual
CJ-series Programmab le controllers operation Manual
CS/CJ-series Programmab le Controllers Programming Manual
CS/CJ-series Programmab le Controllers Instructions Reference Manual
CS/CJ Series Communication Commands Reference Manual
CX-Programmer Operation Manual
CX-Server Run Time User Manual
SYSMAC CS-series CS1G/H-CPU@@-E
SYSMAC CJ-series CJ1G-CPU@@
SYSMAC CS/CJ-series CS1G/H-CPU@@-E, CJ1G­CPU@@
SYSMAC CS/CJ-series CS1G/H-CPU@@-E, CJ1G­CPU@@
SYMAC CS1G/H-CPU@@-E CPU Units
SYSMAC WS02-CXP@@-E CX-Programmer
CX-Server Provides inf ormation on ho w to use the
Describes the installation and opera­tion of the CS-series PLCs.
Describes the installation and opera­tion of the CJ-series PLCs.
Describes the ladder diagram pro­gramming instruc tions supported by CS/CJ-series PLCs.
Describes the ladder diagram pro­gramming instruc tions supported by CS-series and CJ-series PLCs.
Describes the C-serie s (Host Li nk) and FINS communications comman ds used with CS/CJ-series PLCs.
Provides inf ormation on how to use th e CX-Programmer, programming soft­ware which supports CS1/CJ1-series PLCs.
CX- S e rver c ommun icati on dri ver soft ­ware which supports CS1/CJ1-series PLCs.
W339-E1-@
W393-E1-@
W394-E1-@
W340-E1-@
W342-E1-@
W414-E1-@
W391-E2-@
ix
Manual Products Contents Cat. No.
C200H-series PROFIBUS-DP Master Units Operation Manual
CJ-series PROFIBUS-DP Slave unit Operation Manual
GT1-series PROFIBUS-DP Multiple I/O Terminal Operation Manual
C200H-series PROFIBUS-DP Slave unit Operation Manual
F150-series PROFIBUS-DP Vision Sensor Operation Manual
CS/CJ-seri es Ethernet Units Operation Manual
CS/CJ-series Serial Communi ­cations Boards and Serial Communications Units Operation Manual
CS/CJ1-seri es D evicenet Units Operation Manual
SYSMAC C200H-series C200HW-PRM21
SYSMAC CJ1-series CJ1W-PRT21
PRT1-COM & GT1-series Describes the Installation and Opera-
SYSMAC C200H-series C200HW-PR T21 PROFIBUS-DP Slave unit
F150-C15E-3-PRT21 PROFI­BUS-DP Vision Sensor
SYSMAC CS/CJ-series CS1W-ETN01/ETN11 CJ1W-ETN11 Ethernet Units
SYSMAC CS/CJ-series CS1W-SCB21/41, CS1W­SCU21, CJ1W-CSU41
SYSMAC CS/CJ1-series CS1W-DRM21/CJ1W-DRM21
Describes the Installation and Opera­tion of the C200HW-PRM 21 PROFI­BUS-DP Master Units.
Describes the Installation and Opera­tion of the CJ1W-P RT21 PROFIBUS­DP Slave Units.
tion of the PROFIBUS-DP PRT1-CO M and GT1-series I/O Units.
Describes the Installation and Opera­tion of the C200HW-PRT21 PROFI­BUS-DP Slave Units.
Describes the Installation and Opera­tion of the F150 PROFIB US Vision Sensor.
Describes the installation and opera­tion of the CS1W- ETN01 (10Base-5), CS1W-ETN11 (10Ba se-T), and CJ1W­ETN11 Ethernet Units.
Describes the use of Serial Communi ­cations Units and Boards to perform serial communicat ions with external devices.
Describes the Installation and Opera­tion of the CS1W-DRM2 1/CJ1W­DRM21 Devicenet units.
W349-E2-@
W408-E2-@
W900-E2-@
W901-E2-@
Z143-E1-@
W343-E1-@
W336-E1-@
W380-E2-@
!WARNING Failure to read and understand the information provided in this manual may result in per-
sonal injury or d eath, 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

PRECAUTIONS

This section provides general precautions for using the PROFIBUS-DP Master Units, Programmable Controllers and related de vices.
The information contained in this section is important for the safe and reliable operation of the PROFIBUS-DP Master Units. You must read this section and understand the information contained before attempting to set up or operate a PROFIB US -DP Mast er Unit and PLC system.
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
3 Safety Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
6-1 Applicable Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
6-2 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
6-3 Conformance to EC Directives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
xi
Intended Audience

1 Intended Audience

This manual is intended for the following personnel, who must a lso 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.

2 General Precautions

The user must operate the prod uct according to the performance specifica­tions 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, amuse­ment machines, safety equipment, and other systems, machines, and equip­ment 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 opera­tion.
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 repre­sentative before using a PLC System in the above-mentioned applications.

3 Safety 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 disass em ble, 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 imme di-
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.
xii
Operating Environment Precautions
!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 Operating Environment Precautions

!Caution Do not operate the Unit in the following places:
• Locations subject to direct sunlight.
• Locations subje ct to temperatures or humidities o utside the range speci­fied in the specifications.
• Locations subject to condensation as the result of severe changes in tem­perature.
• 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.
4
!Caution The operating environment of the PLC system can have a large effect on the
longevity and reliability of the system. Unsuitable operating e nvironments c an lead to malfunction, failure and other unforeseeable problems with the PLC system. Ensure that the operating environment is within the specified condi­tions at installation time and remains that way during the life of the system. Follow all installation instructions and precautions provided in the operation manuals.

5 Appli c a tion Precautions

Observe the following precautions when using the PROFIBUS-DP Master Unit.
!WARNING Failure to abide by the following precautions could lead to serious or possibly
fatal injury. Always heed these precautions.
• 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.
or less) when installing the
xiii
Application Precautions
5
• Install double safety mechanisms to ensure safety against incorrect sig­nals that may be produced by broken signal lines or momentary power interruptions.
• When addin g a new station to th e network, make sure t hat the baud rate is the same as other nodes.
• Use specified communications cables.
• Do not extend connection distances beyond the ranges given in the spec­ifications.
• Always turn OFF the power supp ly to the personal c omp uter, Slaves, and Communications Units before attempting any of the following.
• Mounting or dismounting the PROFIBUS-DP Master Unit, Power Sup­ply 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 disconnect ing connect ors.
• Be sure that the ter minal blocks, connectors, Memory Un its, 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 malfunc­tion.
• 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 dis­sipation. 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 o f terminal blocks and con­nectors before mounting the Units.
• Use crimp terminals for wiring. Do not connect bare stranded wires directly to terminals.
• Observe the following precautions when wiring the communications cable.
• Separate the communications cables from the power lines or high-ten­sion lines.
• Do not bend the communications c ables.
• 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-cir­cuits in external wiring. Ins ufficient safety measures against short-circuits may result in burning.
• Double-check all the wiring and switch settings before turning ON the power supply.
xiv
Conformance to EC Directives
6
• Check the user program for proper execution before actually running it on the Unit. Not checking the program may result in an unexpected opera­tion.
• Confir m that no a dverse effect will occur in the s ystem before attempting any of the following. Not doing so may result in an unexpected operation.
• Changing the ope rating 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 ma y 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 transpor tation.
• Do not attempt to disassemble, repair, or modify any Units.

6 Conformance to EC Directives

6-1 Applicable Directives

•EMC Directives
• Low voltage directive EN 61131-2:1994+A12:2000

6-2 Concepts

EMC Directives OMRON Units complying with EC Directives also conform to related EMC standards making them eas ie r t o i ncorporate in other Un its 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 sys­tem 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 equip­ment or control panel in which OMRON devices are installed. The customer must, therefore, perform final checks to confir m th at units a nd th e overall sys­tem conforms to EMC standards.
Note Applicable EMS (Electromagnetic Susceptibility) and EMI (Electromagnetic
Interference standards in the EMC (Electromagnetic Compatibility) standards are as follows:
Unit EMS EMI
CS1W-PRM21 EN 61000-6-2:2001 EN 61000-6-2:2001 CJ1W-PRM21

6-3 Conformance to EC Directives

PROFIBUS-DP Units that meet EC directives must be installed as follows:
xv
Conformance to EC Directives
6
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 direc­tives are met for the overall configuration, par ticularly any radiated emission requirement (10 m).
xvi
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-DP Master Units and the Configurator, their features and specifications.
1-1 Overview of PROFIBUS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-2 PROFIBUS Communication Protocol . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-3 Device Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1-1-4 Bus Access Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1-1-5 Diagnostic functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1-1-6 Protection Mechanisms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1-1-7 Network States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1-2 Setting up a PROFIBUS-DP Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1-2-1 Configuring the PROFIBUS-DP Master . . . . . . . . . . . . . . . . . . . . . 7
1-2-2 FDT/DTM Technology. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1-2-3 GSD file Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1-3 PROFIBUS-DP Master Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1-3-1 PROFIBUS-DP Master Unit Features . . . . . . . . . . . . . . . . . . . . . . . 9
1-3-2 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1-3-3 Comparison with Previous Model . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1-4 CX-Profibus Configurator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1-4-1 CX-Profibus Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1-4-2 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1-5 Basic Operating Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1-5-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1-5-2 Preparations for Communications . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1-5-3 Procedures Prior to Starting Communications . . . . . . . . . . . . . . . . . 21
1
Overview of PROFIBUS
Section 1-1

1-1 Overview of PROFIBUS

1-1-1 Introduction

Standard EN50170r PROFIBUS (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 wh ich PROFIBUS adheres, guarantees vendor independence and transparen cy 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 a nd PROFIBUS -PA.
PROFIBUS-FMS FMS 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-DP DP 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-PA PA 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 oper­ated simultaneously on the s am e 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-2 PROFIBUS Communication Protocol

OSI reference model ISO-7498
In general, the PROFIBUS communication protocol is based on the Open System Interconnection (O SI) reference model in accordance with the inter­national standard ISO-7498 (see the following illustration). It defines c ommu­nication layers 1, 2, and 7.
• Layer 1, the Physical Layer o f this model, defines the physical transmis­sion characteristics.
• Layer 2, the Data Link Layer of this model, defines the bus access proto­col. This protocol also includ es data security and the handling of trans­mission protocols and telegrams.
2
Overview of PROFIBUS
Section 1-1
• Layer 7, the Application Layer of this model, defines the application func­tions. This Layer is only applic able to PROFIBUS-FMS.
DP-Profiles
DP-Extensions User Interface Layer DP Basic Functions (7) Applicati on Layer (6) Presentation Layer (5) Session Layer NOT DEFINED (4) Transport Layer (3) Network La yer (2) Data Link Layer Fiel dbus Data Link (FDL) (1) Physi cal Layer RS485 / Fibre Optics
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 appl ication functions whi ch are available to the user, as well as the system and device behaviour of the various PROFI­BUS-DP device types, are specified in the user interface.
OSI Layer 1: T ransmission 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 h igh transmiss ion spee d and s im­ple inexpensive installation are required. PROFIBUS modules are intercon­nected by single twisted-pair shielded copper wires.
RS-485 tech n olo g y The RS-485 transmission technology is very easy to handle. Installation of the
twisted pair cable does not require expert knowledge. The bus structure per­mits addition and removal of stations or step-by-step commissioning of the system without influencing the other stations. Later expansions have no effect on stations 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 sel ected for all devices on the bus (master and slave devices) when the system is com­missioned
Baud rate (kbit/s) Distance / segment (m)
9.6 1200
19.2 1200
45.45 1200
93.75 1200
187.5 1000 500 400
1500 200 3000 100 6000 100
12000 100
Cable length The maximum cable length values depend on the transmission speed and are
based on type-A cable (see
Cable Type
). 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-3 Device Types

PROFIBUS distinguishes between master devices and slave devices.
Master devices Master 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 stations 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 stations (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 con­figuration of the DP system, or for operation and monitoring pur poses.
The CS1W-PRM21 and the CJ1W-PRM21 are bot h PROFIBUS-DP Class 1 Master devices.
Slave devices Slave 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. Slaves are also called pas­sive stations
Device profile To 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 def ined in so called pro files. 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.

1-1-4 Bus Access Protocol

OSI Layer 2: Bus access protocol
Medium Access Control The Medium Access Control (MAC) specifies the procedures which determine
Token passing The token passing procedure guarantees that the bus access right (the token)
The PROFIBUS bus access protocol is implemented by OSI layer 2. This pro­tocol also includes data security and the ha ndling of the transmission proto­cols and messages.
when a station is permitted to transmit data. A token passing procedure is used to handle the bus access between master devices, and a polling proce­dure is used to h andle the communication b etween a master device and its assigned slave device(s).
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 pro­cedure automatically. A user can only change the target rotation time, but is not recommended.
Polling procedure The po lling or m aster-slave proce dure perm its the m aster, currently in pos-
session of the token, to access its assigned slaves. The figure below shows a possible configuration The configuration shows three active stations (mas­ters) and six passive stations (slaves).
4
Overview of PROFIBUS
Section 1-1
To ke n P a ssin g
DPM1 DPM2 DPM1
Active statio n s Master devices
Polling
PROFIBUS
Passive stations
Slave devices
The three masters form a logical token ring. When an active station 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 stations in a mas­ter-slave communication relationship, and a DPM 2 master can take th e i nitia­tive to communicate with DPM1 master stations in a master-master communication relationship.
Multi-peer communication In 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 station sends an unac-
knowledged message to all other stations (masters and slaves).
Multicast communication In the case of multicast comm unication a master station s ends an unacknow-
ledged message to a predetermined group of stations (masters and slaves).

1-1-5 Diagnostic functions

Extensive Diagnostics Extensive 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 levels of diagnostic messages are defined:
Device Related Diagnostics
Module Related Diagnostics
Channel Related Diagnostics
• Messag es conc erning the general operat ional s tatus of the whole device, e.g. over temperature, low voltage.
• Messages indicating that an error is present in a specific I/O range of a station, 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-6 Protection Mechanisms

Monitoring Time PROFIBUS-DP provides effective protection functions against parameteriza-
tion errors or failure of the transmission equipment. Time monitoring is pro­vided both at the master and the slave devices. The monitoring interval is specified when the system is configured.
Monitoring at the Master The PROFIBUS-DP 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 inter val. The user is informed when this happens. If the auto­matic error reaction (Auto-CLEAR) has been enabled, the PROFIBUS-DP 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 Slave Slave devices use a watchdog to detect failures of the master or the bus. If
data communication with the master does not occur wi thin 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-7 Network States

PROFIBUS-DP distinguishes four different network states:
OFF-LINE • Communi cation with al l PROFIBUS-DP participants (masters and slaves)
is stopped. The Master ceases to access the PROFIBUS network.
STOP • Communica tion bet ween the master and its slaves is stopped. O nly com -
munication between the master and other masters is still possible.
CLEAR • The ma ster tries to s et parameters, check the configuration, and perform
data exchange with its associated slaves. Data exchange involves read­ing the inputs of the PROFIBUS-DP slaves and writing zeros to the out­puts of the slaves.
OPERATE • The master exchanges data with its as signe d s laves, inputs are read a nd
outputs are written. Also, the master cyclically sends its local status to all its assigned PROFIBUS-DP slaves (using a broadcast message).
Auto-CLEAR
Fail-safe State
If an error occurs during the data exchange phase of the master, the ‘Auto­CLEAR’ function determines the subsequent actions. If this function has been disabled, the master remains in the OPERATE state. If the function has been enabled, the master automat ically changes the network to the CLEAR state, in which the outputs of the assigned P ROFIBUS-DP slaves are switched to zero, i.e. the ‘fail-safe’ state. The master continues to read the inputs of the slaves.
6
Setting up a PROFIBUS-DP Network
Section 1-2

1-2 Setting up a PROFIBUS-DP Network

1-2- 1 Configuring the PROFIBUS-DP Master

In order to operate a PROFIBUS network, each m aster in the ne twork needs to be configured. This process of PROFIBUS master configuration involves
• setting up the network topology, i.e. assigning the slave stations with which the master will be exchanging data,
• def ining the para meter iz atio n dat a, w hich t he m ast er w ill se nd to each of the slave devices, before process data exchange can commence
• defining the c onfiguration 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 technology The configuration process is usually facilitated by a special Com puter based
program, often referred to as a Configurator. The Configurator requires spe­cial 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-2 FDT/DTM Technology

FDT/DTM technology The newer configuration tools are based on FDT/DTM technology. FDT/DTM Concept The FDT/DTM concept specifies the interfaces between the enginee ring sys-
tems called Field Device Tools (FDT), and the device-specific software com­ponents called Device Type Managers (DTM).
The FDT/DTM concept separates the device dependent functionality (which is in the DTM) from the application. It opens up interfaces for device configura­tion, monitoring and maintenanc e solutions, which before were largely manu­facturer-specific interfaces. 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 application A 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 appl ication. It is described in detail in the following sections.
Device DTM DTMs are provided by the manufac turer of the device. A DTM is comparable
to a printer driver, which allows interactive configuration and diagnostics. 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.
7
Setting up a PROFIBUS-DP Network
DTM properties In 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 tr ansfer 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 interface The User Interface for a DTM is provided using ActiveX windows. Control of
these windows is done by the DTM, but the FDT containe r application can request specific user input f rom the DT M, based on which the DTM will pro­vide the necessary ActiveX windows. In general multi-language user interface windows, including DTM specific Help files are supported by the DTM.
XML based data transfer Data 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 X ML-data formats for the transfer of application specific data, such as PROFIBUS data.
Communication DTM In 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-DP Master Unit and/or for retrieving monitoring information from PROFIBUS-DP Master Unit. It may incorporate the specific communication protocol, or rely on other available drivers.
Section 1-2
CX-Profibus CX-Profibus is a FDT container application. Together with this container appli-
cation, OMRON provides two DTMs:
• A DTM to facilitate configuration of the CS1W-PRM21/CJ1W-PRM21 PROFIBUS Master Units
• A DTM to facilitate integration of GSD file based devices in to CX-Profibus (see section

1-2-3 GSD file Technology

for more information)
1-2-3 GSD file Technology
GSD file technol ogy The older and most com mon ly us ed co nfiguration tech nology is the bas ed on
GSD files (Gerätestammdaten 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 configurato r and downloaded to the master device.
GSD files are usually sup plied with e ach unit. Alter natively, GSD files can be downloaded from the Inter net , either f rom the manufacturer's site, or from the GSD library of the PROFIBUS Nutzer Organisation at http://www.profi­bus.com.
GSD file language The language used in the GS D file is indicated by the last letter of the file
extension, *.GS?: Default = GSD
English = GSE German = GSG Itali a n = GSI Portuguese = GSP Spanish = GSS
8
PROFIBUS-DP Master Unit
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 divide d into three parts:
General section • General specifications
This section contains the vendor name, the device name, hardware- and soft­ware release versions, station type and identification number, protocol specifi­cation and supported baud rates.
DP-master section • DP master-related specifications
This section contains all parameters which onl y apply to DP master devices (e.g. maximum memory size for the master parameter set, maximum number of entries in the li st of active stations, or the maximum number of slaves the master can handle).
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).
DTM versus GSD file When comparing the two configuration technologies, a GSD file only provides
information on the device characteristics and conf iguration options. It has no GUI of its own, nor can it connect to the device itself. A GSD file always requires a separate configu rator program to interpret t he 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.
Section 1-3

1-3 PROFIBUS-DP Master Unit

1-3-1 PROFIBUS-DP Master Unit Features

PROFIBUS-DP Master Unit The PROFIBUS-DP Master Unit is a CPU Bus Unit, which can be installed on
a CS1/CJ1 PLC System. Th ere are two available models of the PROFIBUS­DP Master unit: the CS1W-PRM21 for connection to a CS1 PLC System and the CJ1W-PRM21 for connection to a CJ1 PLC System . Both mode ls provide identical functionality.
CPU Bus Unit A total of up to 16 CPU Bus Units can be mounted on t he CPU Rack or an
Expansion Rack. The total of 16 must include all PROFIBUS-DP Master units and all other CPU Bus Units
Unit Control and status Up to 25 words of control and status words are exchanged between the
PROFIBUS-DP Master Unit and a dedicated CI O memor y area, of whi ch the location is related to the Unit Number. Control bits, allow the PLC program to switch the Unit between OFF-LINE, STOP, CLEAR and OPERATE mode, which represent the main PROFIBUS-DP modes of operation. The control words also allow for user initiated transmission of a Global_Con trol messa ge over the PROFIBUS network to any group of Slave stations.
The remaining CIO words provide status and di agnostics information on the Unit itself, the PROFIBUS network and the Slave stations allocated to the PROFIBUS-DP Master unit.
I/O dat a The total size of I/O data however, must not exceed the maximum I/O size of
up to 7168 words, whic h i t ca n exchange wi th th e PLC memor y. The I/O data
9
PROFIBUS-DP Master Unit
can be distributed over up to two input areas and 2 output areas. Each of the input and output areas can be mapped to any location in the DM Area, CIO Area, WR Area, HR Area, or the EM banks.
FINS messages The PROFIBUS-DP Master Uni t suppor ts FINS message exchange with the
PLC CPU to allow the transfer of Slave diagnostics data, or the Error log. Also, the user can enable or disable communication with specific allocated slave stations, so that they can temporarily be taken out of the network for maintenance, without the PROFIBUS-DP Master Unit reporting an error.
PROFIBUS-DP functions The PROFIBUS-DP Master Unit suppor ts all mandatory ser vices defined in
the PROFIBUS-DP standard EN50170, Volume 2 for Master - Slave Commu­nication. These functions includes the following services:
• Set_Prm
• Chk_Cfg
• Slave_Diag
• Data_Exchange
• Global_Contr o l (FREEZE, UNFREEZE, SYNC, UNSYNC , C LE AR)
The PROFIBUS-DP Master Unit suppor ts cyclic Master - Slave communica­tions for networks with up to 125 Slave stations. With each Slave station it can exchange up to 244 bytes of input data and up to 244 bytes of output data.
For diagnostics purposes t he PROFIBUS-DP Master Unit collects all Slave Diagnostics messages, which i t ca n be transferred to the P LC memory, using FINS commands. From every allocated Slave station it can receive up to 244 bytes of diagnostics data.
Section 1-3
Configuration Before t he P ROFIBUS-DP Ma ster Unit can control the PROFIBUS networ k, it
must be configured, using the dedicated configuration program CX-Profibus. Without this configuration, the Unit will not be able to achieve data exc hange.
Troubleshooting Functions
The Configurator is explained in section The PROFIBUS-DP Master Unit is provided with a variety of troubleshooting
functions for prompt recovery in case of errors:
• Extensive self-diagnostic function at start up
• Data exchange flags, indicating if I/O data is being exchanged with the slave stations
• Diagnos tics flags, indicating if new Slave diagnostics data is available
• Extensive status and error flags, indicating the status of the Unit and the PROFIBUS network
• Error log for recording error history data
1-4 CX-Profibus Configurator

1-3-2 Specifications

PROFIBUS-DP Master Unit Model
Applicable PLC Unit classi fication Ty pes of communications Model number
CS Series CPU Bus Unit • Remote I/O communications mast er CS1W-P RM21
CJ Series CJ1W-PRM21
General Specifications General specifications of the CS/CJ-series P ROFIBUS-DP Master Units con-
form to the general specificati o n s for the SYSMAC CS/CJ-series CPU Units.
10
PROFIBUS-DP Master Unit
Functional Specifications
Item Specification
PROFIBUS-DP Master Unit types CS1W-PRM21 CJ1W-PRM21 Applicable PLC seri es CS-series CJ-series Mounting position • CPU Rack,
Unit classification CPU Bus Unit Applicabl e unit numbers 0 to F (Hex ) Maximum number of Units that can be
mounted per PLC Current consumpt ion 400 mA max at 5 Vdc
PLC types
Ambient temperat ure Operating: 0 to 55°C
Humidity 10% to 90% (with no condensati on) Dimensions (W x H x D) 35 x 130 x 101 mm 31 x 90 x 65 mm Weight 187g (typical) 100g (typical) Conformance to EMC and environmental
standards
Environment
Settings Unit Number rotary swit ch, range: 0 ~ F (Hex) Indicators 7 LEDs, indicating Unit status and PROFIBUS status:
PROFIBUS Connector 9-pin sub-D female connector (#4/40 UNC thread)
Front case
CIO Area words allocated for the CPU Bus Unit
DM Area words allocated for the CPU Bus Unit.
I/O Data allocations Maximum total size: 7168 words
Memory area allocation
Section 1-3
•CPU Rack,
• CS Expansion Rack (Not in­cluding a C200H Expansio n I/O Rack or SYSMAC BUS Slave Rack.)
•CS1D Duplex
16
Storage: –20 to 75°C
EN 61000-6-2:2001 EN61131-2:1994+a12:2000
Unit status: RUN (Green LED)
ERC (Red LED) Host PLC status: ERH (Red LED) Configuration st atus: PRM (Green LED) PROFIBUS status: BST (Green LED)
COMM (Green LED)
BF (Red LED)
Fixed all ocation of 25 words per Unit. CIO 1500 + (25 x Unit number) CIO words provide:
• 2 words f or software switches
• 1 word for the Global_Control
• 21 words f or the Unit and Slave stat uses Fixed all ocation of 100 words per Unit. DM 30000 + (100 x Unit number) DM Area allocated to the Unit is reserv ed for future use.
I/O Data words can be allocated to up to 2 input areas and 2 output areas
Input areas and output areas can be mapped to
•CIO Areas
• DM Areas
• WR Areas
• HR Areas
• EM banks Mapping must be defined through Configurator
• CJ1 Expansion Rack
11
PROFIBUS-DP Master Unit
Item Specification
Reading Slav e station diagnostics The MEMOR Y AREA READ (0101) FINS command can be used to
Reading and controlling the error log The internal error log records the history of error events. The Unit
Station state changes Allocated Slave stations can be disabled and enabled in order to
FINS messaging
Error history siz e and stor age The PROFIBUS Master unit supports st orage of up to 80 error
Error lo g
Protocol Specification
Item Specification
Applicabl e standards EN50170, Vol um e 2 Protocol type suppor ted PROFIBUS-DP PROFIBUS Unit types PROFIBUS-DP Class 1 Master PROFIBUS Media type RS-485, galvanically i solated from the PLC PROFIBUS Connector 9-pin sub-D female connector (#4/40 UNC thread)
Unit station address range Number of slave stations supported baud rates supported Selectable through Configurator:
Bus timing definitions Calculated by Configurator
PROFIBUS interface
Master Class 1 - Slave cyclic services • Set_Prm
Master Class 1 - Slave acyclic services Not supported Master Class 1 - Slave services availabl e t o the PLC
Master - Master services Not supported
PROFIBUS-DP Services
Section 1-3
obtain the last received Slave Diagnostics message.
supports the follo w ing Error Log related FINS commands:
• ERROR LOG READ
• ERROR LOG CLEAR
temporarily rem ov e t hem from dat a e xchan ge servi ces. The int ernal error log records the history of error ev ents. The Unit supports the following FINS commands to implement this:
•RUN
•STOP
events, including time stamps in vol atile memory. 16 error events can be logged in non-volatile memory
Termination to be provided by the cable connector according to EN50170
0 ~ 125, set through Configurator
125 max, address range
• 9.6 kbi t/s
• 19.2 kbit/s
• 45.45 kbit/s
• 93.75 kbit/s
• 187 kbit/s
• 500 kbit/s
• 1.5 Mbit/s
•3 Mbit/s
•6 Mbit/s
• 12 Mbit/s
• Chk_Cfg
• Data_Exchange
• Slave_Diag
• Global_Control - CLEAR
Global_Control, initiated from CIO Word: Can be addressed to all slave stations or a specified group of
slaves stations Supported commands:
• SYNC
• UNSYNC
• FREEZE
• UNFREEZE
0 ~ 125
12
PROFIBUS-DP Master Unit
RUN ERC
BST
BF
ISOM
CS
F
E
D
C
B
A
9
8
7
6
5
4
3
2
1
0
RUN ERC
BST
BF
ERH PRM COMM
Item Specification
Number of I/O module definitions 4000 max. ove r al l configured Slave stations Number of I/O data supported by Master Up to 244 bytes input and 244 bytes output max. per Slave station
Number of diagnostics data supported by Master
I/O Data
External Dimensions
(defined by Slave station) Total sum of all I/O Data must not exceed 7168 words Up to 244 bytes of diagnostics max. per Slave station Diagnostic data is collected at the Unit, and can be obtained from
the Unit using FINS messaging
CS1W-PRM21
35
Section 1-3
3
101
PRM21
RUN ERC
BST
BF
UNIT No.
ERH PRM COMM
CS
RUN ERC
ISOM
BST
BF
94
130
BUS
25
11
(UNIT: mm)
CJ1W-PRM21
PRM21
RUN
31
ERC
COMM
PRM
BST
BF
ERH
UNIT
5
4
6
3
7
2
8
1
9
0
A
NO.
F
B
E
C
D
3
65
54
90
BUS
25
11
(UNIT: mm)
13
PROFIBUS-DP Master Unit

1-3-3 Comparison with Previous Model

The following table provides a comparison between the CS1W-PRM21/ CJ1W-PRM21 PROFIBUS-DP Master Units and their predecessor, the C200HW-PRM21 PROFIBUS-DP Master used in a CS-series PLC
Item C200HW-PRM21 CS1W-PRM21/CJ1W-PRM21
Unit classificati on C200H Special I/O Unit CPU Bus Unit Mounting position • CPU Rack,
• C200H I/O Expansion Rack,
• CS-series Expan sion Rack
• Can not be mounted on a CS1D PLC Applicable Unit numbers 0 to F (Hex) 0 to F (Hex) Maximum number of Units
per PLC Allocated CIO Area words 2,000 to 2,004 + (10 x unit number)
Allocated DM Area words D20000 to D20017 + (100 x unit number)
I/O Data allocatio ns Maximum total si ze: 300 words per Unit
16 16
Up to 4 CIO words contain:
• Command settings
• Unit Status and err or flags
• Error reporting f rom the PROFIBUS inter-
face
The area contains user defined memory mapping of I/O data
At start up this area is transferred to the Unit
I/O Da ta words can be allo cate d to up to 2 input areas and 2 output areas
I/O size per are a: up to 200 words Mapping / area siz e set i n DM words:
• CIO: CIO 0000 to CIO 0235
• CIO: CIO 0300 to CIO 0511
• CIO: CIO 1000 to CIO 1063
• HR: HR000 to HR099
• DM: D00000 to D05999
• CPU Rack,
• CS/CJ-series Expansion Rack
• CS1W -PRM21 can be mounted on CS1D
1,500 to 1,524 + (25 x unit number) Up to 25 CIO words contain:
• Command settings
• Unit Status and error flags
• PROFIBUS st atus and error flags
• Slave status flags D30000 to D30099 + (100 x unit n umber) Not used on the Unit. Reserve d for future
use
Maximum tota l si ze: 7168 words per Unit I/O Data words can be al located to up to 2
input areas and 2 out put areas I/O size per area: up to 7168 words Mapping and area size set by Configurator:
• CIO: CIO 0000 to CIO 6143
• WR: W000 to W511
• HR: HR000 to HR511
• DM: D00000 to D32767
• EM: E00000 to E32767 (Banks 0 to C)
Section 1-3
Default mapping (DM words contain 0000 ):
• Output area: CIO 0050 to CIO 0099
• Input area: CIO 0350 to CIO 0399
• Diagnostic fl ags: CIO 0200 to CIO 0215 Message communications Message communicati on using IOWR and
IORD PLC instructions:
• IOWR to send Global-Control command
• IORD to read slave diagnostics
FINS message communication not sup­ported
Configuration connection method
PROFIBUS Media type RS-485, galvanically isolated from the PLC RS-485, galvanically isolated from the PLC
Serial connection (RS232) directly to con­nector on the front of the Unit
Default mapping: Not supported Note Diagnostics flags: available in allo-
cated CIO Area words
FINS message communi cation. Commands supported:
• MEMORY AREA READ to read Slave sta­tion diagnost ics message
• ERROR LOG READ, to read the Unit’ s error log
• ERROR LOG CLEAR to clear the Unit’s error log
• RUN to enable communicati on wit h a slave station
• STO P to di sable communication with a slave station
Serial connection directly via PLC CPU, or via other I/O Units .
No separate connector on the front of the Unit
14
PROFIBUS-DP Master Unit
Item C200HW-PRM21 CS1W-PRM21/CJ1W-PRM21
PROFIBUS Connector 9-pin sub- D female connector (#4/40 UNC
thread) Termination provided through a switch on
the unit according t o EN50170 Unit station address range Number of Slave stations
supported on the network baud rates supported Selectable through Confi gurator:
Bus timing definit ions Calculated by Configurator Calculated b y Configurator Master Class 1 - Sla v e cyc lic
services
Master Class 1 - Sla ve acy­clic services
Master Class 1 - Slave ser­vices available to the PLC
Master - Master services Not supported Not supported Error reporting Error numbers are transferred to CIO word
0 ~ 125, set through Configurator 0 ~ 125, set through Configurator
125 max, address range
• 9.6 kbit/s
• 19.2 kbit/s
• 93.75 kbit/s
• 187 kbit/s
• 500 kbit/s
• 1.5 Mbit/s
• 3 Mbit/s
• 6 Mbit/s
• 12 Mbit/s
• Set_Prm
•Chk_Cfg
• Data_Exchange
• Slave_Diag
• Global_Control - CLEAR
• Get_Cfg
• Set_Slave_Addr
• Rd_In
•Rd-Out
Global_Contro l, initiated from CIO Word:
Can be addressed to one or all slave sta-
tions or a specified group of slaves stations
Supported commands:
• SYNC
• UNSYNC
• FREEZE
• UNFREEZE
• CLEAR
Internal logging not supported
0 ~ 125 125 max, address range 0 ~ 125
9-pin sub-D femal e connector (#4/40 UNC thread)
Termination must be provided by the cable connector according to EN50170
Selectable through Configurator:
• 9.6 kbit/s
• 19.2 kbit /s
• 45.45 kbit/s
• 93.75 kbit/s
• 187 kbit/s
• 500 kbit/s
• 1.5 Mbit/s
•3 Mbit/s
•6 Mbit/s
•12 Mbit/s
•Set_Prm
• Chk_Cfg
• Data_Exchange
•Slave_Diag
• Global_Control - CLEAR Not supported
Global_Contr ol, initiated from CIO Word : Can be addressed to all slave stations or a
specified group of slaves stations Supported commands:
• SYNC
• UNSYNC
• FREEZE
• UNFREEZE
80 error events can be logged in volatile memory.
16 error e v ents can be logged i n non-v o lati le memory
Errors can be retrieved through FINS mes­sages
Section 1-3
15
CX-Profibus Configurator
Section 1-4

1-4 CX-Profibus Configurator

1-4-1 CX-Profibus Fe atu r es

CX-Profibus The PROFIBUS-DP Master Unit requires a configuration before it can
exchange I/O data with the Slave stations. For this purpose OMRON provides the CX-Profibus Configuration program, which runs under Microsoft Win­dows™ NT 4.0, Windows™ 2000 or Windows™ XP
Together with the CX-Profibus Container applicat ion, OMRON provides two DTM COM Objects:
• A DTM to configure the CS1W-PRM21 / CJ1W-PRM21
• A DTM to allow the handling of classic GSD files in CX-Profibus
The following presents a quick overview of the functions.
CX-Profibus FDT Container application
CS1W-PRM21/CJ1-PRM21 DTM
CX-Profibus provides an FDT environment in which DTMs can be executed. The main function of CX-Profibus is to facilitate the DTMs and the data exchange between them. It provides:
• Network setup functions: A tree view shows the relations between the DTMs, i.e. the relation between the Master and Slave devices.
• Device Catalogue functions: A Device Catalogue con taining the installed DTMs is maintained, to which the user can add new DTMs or delete them. Device DTMs can be added to the network from this Catalogue.
• Project maintenance func tions: CX-Profibus provides the functions to cre­ate, save and open project files. It also facilitates user access control, allowing the limitation of use to authorized personnel only, using pass­word protection.
• Additional func tions: CX-Profibus provides additional functions like print­ing, error logging, FDT Communication logging and help files.
The CS1W-PRM21/CJ1W-PRM21 DTM consists of three parts:
• The Setting s DTM, which handles the configuration for the PROFIBUS­DP Master Unit. This includes the bus parameters settings, the I/O data mappings and Master specific settings. The Settings DTM provides its own User Interface.
• The Monitoring DTM, which handles the status monitoring and control over the PROFIBUS-DP Master unit, when it is on-line and communicat­ing over the PROFIBUS network. It provides its own User interface to read out Master status flags and Error log, as well as Slave status flags and the Slave diagnostics messages received by the Unit. It also allows the user to send Global_Control messages over the network and to change the PROFIBUS-DP Master Unit’s mode on the PROFIBUS net­work.
• The com munication DTM, which provides the interface between the t wo DTMs mentioned above and CX-Server. Cox-Server, which is provided with the CX-Profibus packages is the driver providing communication between the PC and the PLC CPU.
Generic Slave DTM The Generic Slave DTM allows the handling of classic GSD files of up to GSD
revision 3 within CX-Profibus. Upon allocating a Slave station, for which only a GSD file is available to a Master Unit in the network, this DTM will be invoked. This DTM also consists of two parts:
• The Settings D TM will provide the user interface to display the device’s information and the selectable values, as defined in the GSD. After mak­ing the neces sary confi guration settin gs, these will be trans ferred to t he Master DTM automatically.
16
Loading...
+ 160 hidden pages