Omron CJ1W-PRT21 Operation Manual

Cat. No. W408-E2-02-X
CJ1W-PRT21
PROFIBUS-DP Slave Unit
OPERATION MANUAL
CJ1W-PRT21
PROFIBUS-DP Slave Unit
Operation Manual
Produced January 2005
ii
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or dam­age to property.
!DANGER Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.
!WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.
!Caution Indicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury, or property damage.
OMRON Product References
All OMRON products are capitalized in this manual. The word “Unit” is also capitalized when it refers to an OMRON product, regardless of whether or not it appears in the proper name of the product.
The abbreviation “Ch”, which appears in some displays and on some OMRON products, often means “word” and is abbreviated “Wd” in documentation in this sense.
The abbreviation “PC” means Programmable Controller and is not used as an abbreviation for any­thing else.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of information.
OMRON, 2004
All rights reserved. No part of this publication 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 of 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. Neverthe­less, 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.
Note Indicates information of particular interest for efficient and convenient opera-
tion of the product.
1,2,3...
Indicates lists of one sort or another, such as procedures, checklists, etc.
iii
iv
TABLE OF CONTENTS
PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiii
6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
SECTION 1
PROFIBUS-DP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-2 Protocol architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-3 Device types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1-4 PROFIBUS-DP characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1-5 Device Data Base files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1-6 Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
SECTION 2
Features and System Configuration . . . . . . . . . . . . . . . . . . . 9
2-1 Overall Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2-2 Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2-3 Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
SECTION 3
Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3-1 Physical layout of the Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3-2 Connecting PC Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3-3 Setting up a network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
SECTION 4
User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4-1 Input and Output Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4-2 I/O Data Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4-3 I/O Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4-4 Data Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
4-5 Control and status area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4-6 Configuration information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
4-7 PLC status information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4-8 LEDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
v
TABLE OF CONTENTS
SECTION 5
Troubleshooting and Maintenance . . . . . . . . . . . . . . . . . . . . 49
5-1 Error Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5-2 Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5-3 Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5-4 Addition/Replacement of Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Appendices
A GSD file for CJ1W-PRT21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
B Device specific parameters and diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
C PLC Status information words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
vi

About this Manual

This manual describes the installation and operation of the CJ1W-PRT21 PROFIBUS-DP Slave Unit and includes the sections described below.
Please read this manual carefully and be sure you understand the information provided before attempting to install or operate the PROFIBUS-DP Slave Unit. Be sure to read the precautions pro-
vided in the following section.
Precautions
related devices.
Section 1 Section 2 Section 3 Section 4 Section 5
provides general precautions for using the MC Unit, Programmable Controller (PC), and
gives a brief description of PROFIBUS-DP. explains the installation of the PROFIBUS-DP. provides the overall specification and the communication performance of the Unit. describes interface with the user. describes the troubleshooting procedures and maintenance operations.
!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.
vii

PRECAUTIONS

This section provides general precautions for using the CJ-series Programmable Controllers (PCs) and related devices.
The information contained in this section is important for the safe and reliable application of Programmable Controllers. You must read this section and understand the information contained before attempting to set up or operate a PC system.
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
3 Safety Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
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
6-4 Relay Output Noise Reduction Methods . . . . . . . . . . . . . . . . . . . . . xv
ix
Intended Audience 1

1 Intended Audience

This manual is intended for the following personnel, who must also have 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 product 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 the Unit. Be sure to read this manual before attempting to use the Unit and keep this man­ual close at hand for reference during operation.
!WARNING It is extremely important that a PC and all PC Units be used for the specified
purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PC System to the above-mentioned applica­tions.

3 Safety 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 unex­pected operation of the loads connected to the Unit. Any of the following oper­ation 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 Do not attempt to take any Unit apart while the power is being supplied. Doing
so may result in electric shock.
x
Safety Precautions 3
!WARNING Do not touch any of the terminals or terminal blocks while the power is being
supplied. Doing so may result in electric shock.
!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.
!WARNING Provide safety measures in external circuits (i.e., not in the Programmable
Controller), including the following items, to ensure safety in the system if an abnormality occurs due to malfunction of the PC or another external factor affecting the PC operation. Not doing so may result in serious accidents.
• Emergency stop circuits, interlock circuits, limit circuits, and similar safety measures must be provided in external control circuits.
• The PC will turn OFF all outputs when its self-diagnosis function detects any error or when a severe failure alarm (FALS) instruction is executed. As a countermeasure for such errors, external safety measures must be provided to ensure safety in the system.
• The PC outputs may remain ON or OFF due to deposition or burning of the output relays or destruction of the output transistors. As a counter­measure for such problems, external safety measures must be provided to ensure safety in the system.
• When the 24-V DC output (service power supply to the PC) is overloaded or short-circuited, the voltage may drop and result in the outputs being turned OFF. As a countermeasure for such problems, external safety measures must be provided to ensure safety in the system.
!Caution Confirm safety before transferring data files stored in the file memory (Mem-
ory Card or EM file memory) to the I/O area (CIO) of the CPU Unit using a peripheral tool. Otherwise, the devices connected to the output unit may mal­function regardless of the operation mode of the CPU Unit.
!Caution Execute online edit only after confirming that no adverse effects will be
caused by extending the cycle time. Otherwise, the input signals may not be readable.
!Caution Confirm safety at the destination node before transferring a program to
another node or changing contents of the I/O memory area. Doing either of these without confirming safety may result in injury.
!Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the
torque specified in the operation manual. The loose screws may result in burning or malfunction.
xi
Operating Environment Precautions 4

4 Operating Environment Precautions

!Caution Do not operate the control system in the following locations:
• Locations subject to direct sunlight.
• Locations subject to temperatures or humidity outside the range specified 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 salts.
• Locations subject to exposure to water, oil, or chemicals.
• Locations subject to shock or vibration.
!Caution Take appropriate and sufficient countermeasures when installing systems in
the following locations:
• Locations subject to static electricity or other forms of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radioactivity.
• Locations close to power supplies.
!Caution The operating environment of the PC System can have a large effect on the
longevity and reliability of the system. Improper operating environments can lead to malfunction, failure, and other unforeseeable problems with the PC System. Be sure that the operating environment is within the specified condi­tions at installation and remains within the specified conditions during the life of the system.
xii
Application Precautions 5

5 Application Precautions

Observe the following precautions when using the PROFIBUS-DP Slave Units or the PLC.
!WARNING Failure to abide by the following precautions could lead to serious or possibly
fatal injury. Always heed these precautions.
• Always ground the system to 100 or less when installing the system to protect against electrical shock.
• Always turn off the power supply to the PLC before attempting any of the following. Performing any of the following with the power supply turned on may lead to electrical shock:
• Mounting or removing any Units (e.g., I/O Units, CPU Units, etc.) or memory cassettes.
• Assembling any devices or racks.
• Connecting or disconnecting any connectors, cables or wiring.
• Setting DIP switches or rotary switches.
!Caution Failure to abide by the following precautions could lead to faulty operation of
the PLC or the system, or could damage the PLC or PLC Units. Always heed these precautions.
• Fail-safe measures must be taken by the customer to ensure safety in the event of incorrect, missing or abnormal signals caused by broken signal lines, momentary power interruptions, or other causes.
• Interlock circuits, limit circuits and similar safety measures in external cir­cuits (i.e., not in the Programmable Controller) must be provided by the customer.
• If the I/O Hold Bit is turned ON, the outputs from the PLC will not be turned OFF, and will maintain their previous status when the PLC is switched from RUN or MONITOR mode to PROGRAM mode. Make sure that the external loads will not procedure dangerous conditions when this occurs (When operation stops for a fatal error, including those produced with the FALS instruction, all outputs from Output Unit will be turned OFF, and only the internal output status will be remained.)
• Use the Units only with the power supplies and voltages specified in the operation manuals. Other power supplies and voltages may damage the Units.
• Take appropriate measures to ensure that the specified power with the rated voltage and frequency is supplied. Be particularly careful 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­circuiting in external wiring. Insufficient safety measures against short­circuiting may result in burning.
• Do not apply voltages exceeding the rated input voltages to Input Units. The Input Units may be destroyed.
• Do not apply voltages exceeding the maximum switching capacity to Out­put Units. The Output Units may be destroyed.
• Always disconnect the LG terminal when performing withstand voltages tests.
• Install the Units properly as specified in the operation manuals. Improper installation of the Units may result in malfunction.
xiii
Application Precautions 5
!Caution Be sure that all mounting screws, terminal screws, and cable connector
screws are tightened to the torque specified in the relevant manuals. Incorrect tightening 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 dis­sipation. Leaving the label attached may result in malfunction.
• Use crimp terminals for wiring. Do not connect bare stranded wires directly to terminals. Connection of bare stranded wires may result in burning.
• Wire all connections correctly. Double-check all wiring and switch settings before turning on the power supply. Incorrect wiring may result in burning.
• Mount Units only after checking terminal blocks and connectors com­pletely.
• Be sure that the terminal blocks, Memory Units, expansion cables, and other items with locking devices are properly locked into place. Improper locking may result in malfunction.
• Check switch settings, the contents of the DM Area, and other prepara­tions before starting operation. Starting operation without the proper set­tings or data may result in an unexpected operation.
• 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.
• Confirm that no adverse effect will occur in the system before attempting any of the following. Not doing so may result in 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.
• Resume operation with a new CPU Unit only after transferring the con­tents of the DM Area, H Area, and other data required for resuming oper­ation to the new Unit. Not doing so may result in an unexpected operation.
• Do not pull on the cables or bend the cables beyond their natural limit. Doing either of these may break the cables.
• Do not place object on top of the cables or other wiring lines. Doing so may break the cables.
• When replacing parts, be sure to confirm that the rating of a new part is correct. Not doing so may result in malfunction or burning.
• Before touching a Unit, be sure to first touch a grounded metallic object in order to discharge any static built-up. Not doing so may result in malfunc­tion or damage.
• Do not touch circuit boards or the components mounted to them with your bare hands. There are sharp leads and other parts on the boards that may cause injury if handed improperly.
• 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 exposure to radiation.
• Locations near power supply lines.
• Do not attempt to take any Units apart, to repair any Units, or to modify any Units in any way.
xiv
Conformance to EC Directives 6

6 Conformance to EC Directives

6-1 Applicable Directives

•EMC Directives
• Low Voltage Directive

6-2 Concepts

EMC Directives
OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine. 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 the OMRON devices that comply with EC Direc­tives will vary depending on the configuration, wiring, and other conditions of the equipment or control panel on which the OMRON devices are installed. The customer must, therefore, perform the final check to confirm that devices and the overall machine conform to EMC standards.
Note Applicable EMC (Electromagnetic Compatibility) standards are as follows:
EMS (Electromagnetic Susceptibility): EN61000-6-2 EMI (Electromagnetic Interference): EN50081-2
Low Voltage Directive
Always ensure that devices operating at voltages of 50 to 1,000 V AC and 75 to 1,500 V DC meet the required safety standards for the PC (EN61131-2).

6-3 Conformance to EC Directives

The CJ-series PCs comply with EC Directives. To ensure that the machine or device in which the CJ-series PC is used complies with EC Directives, the PC must be installed as follows:
1,2,3...
1. The CJ-series PC must be installed within a control panel.
2. You must use reinforced insulation or double insulation for the DC power supplies used for the communications power supply and I/O power sup­plies.
3. CJ-series PCs complying with EC Directives also conform to the Common Emission Standard (EN50081-2). Radiated emission characteristics (10-m regulations) may vary depending on the configuration of the control panel used, other devices connected to the control panel, wiring, and other con­ditions. You must therefore confirm that the overall machine or equipment complies with EC Directives.
(Radiated emission: 10-m regulations)

6-4 Relay Output Noise Reduction Methods

The CJ-series PCs conform to the Common Emission Standards (EN50081-
2) of the EMC Directives. However, noise generated by relay output switching
may not satisfy these Standards. In such a case, a noise filter must be con­nected to the load side or other appropriate countermeasures must be pro­vided external to the PC.
xv
Conformance to EC Directives 6
Countermeasures taken to satisfy the standards vary depending on the devices on the load side, wiring, configuration of machines, etc. Following are examples of countermeasures for reducing the generated noise.
Countermeasures
(Refer to EN50081-2 for more details.)
Countermeasures are not required if the frequency of load switching for the whole system with the PC included is less than 5 times per minute.
Countermeasures are required if the frequency of load switching for the whole system with the PC included is more than 5 times per minute.
Countermeasure Examples
When switching an inductive load, connect an surge protector, diodes, etc., in parallel with the load or contact as shown below.
Circuit Current Characteristic Required element
AC DC
The capacitance of the capacitor must be 1 to 0.5 µF per contact current of 1 A and resistance of the resistor must be 0.5 to 1 Ω per contact voltage of 1 V. These values, however, vary with the load and the characteristics of the relay. Decide these values from experi­ments, and take into consideration that the capacitance suppresses spark dis­charge when the contacts are sepa­rated and the resistance limits the current that flows into the load when the circuit is closed again.
The dielectric strength of the capacitor must be 200 to 300 V. If the circuit is an AC circuit, use a capacitor with no polarity.
The reversed dielectric strength value of the diode must be at least 10 times as large as the circuit voltage value. The forward current of the diode must be the same as or larger than the load current.
The reversed dielectric strength value of the diode may be two to three times larger than the supply voltage if the surge protector is applied to electronic circuits with low circuit voltages.
---
CR method
C Power supply
R
Diode method
Power supply
Varistor method
Powe r supply
Yes Yes If the load is a relay or solenoid, there is
a time lag between the moment the cir­cuit is opened and the moment the load is reset.
If the supply voltage is 24 or 48 V, insert the surge protector in parallel
Inductive
load
No Yes The diode connected in parallel with
Inductive
load
Yes Yes The varistor method prevents the impo-
Inductive
load
with the load. If the supply voltage is 100 to 200 V, insert the surge protector between the contacts.
the load changes energy accumulated by the coil into a current, which then flows into the coil so that the current will be converted into Joule heat by the resistance of the inductive load.
This time lag, between the moment the circuit is opened and the moment the load is reset, caused by this method is longer than that caused by the CR method.
sition of high voltage between the con­tacts by using the constant voltage characteristic of the varistor. There is time lag between the moment the cir­cuit is opened and the moment the load is reset.
If the supply voltage is 24 or 48 V, insert the varistor in parallel with the load. If the supply voltage is 100 to 200 V, insert the varistor between the con­tacts.
xvi
Conformance to EC Directives 6
When switching a load with a high inrush current such as an incandescent lamp, suppress the inrush current as shown below.
Countermeasure 1
OUT
R
COM
Providing a dark current of approx. one-third of the rated value through an incandescent lamp
Countermeasure 2
R
OUT
COM
Providing a limiting resistor
xvii
Conformance to EC Directives 6
xviii
This section provides a brief description of PROFIBUS-DP
1-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-2 Protocol architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-3 Device types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1-4 PROFIBUS-DP characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1-4-1 Bus Access Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1-4-2 Data throughput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1-4-3 Diagnostic functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1-4-4 Protection mechanisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1-4-5 Network states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1-5 Device Data Base files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1-6 Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
SECTION 1
PROFIBUS-DP
1
Introduction Section 1-1

1-1 Introduction

PROFIBUS is a vendor-independent, open fieldbus standard for a wide range of applications in manufacturing, process and building automation. Vendor independence and openness are guaranteed by the PROFIBUS standard EN 50170. With PROFIBUS, devices of different manufacturers can commu-
Standard EN50170
High speed PROFIBUS-DP
Process Automation PROFIBUS-PA
nicate without special interface adjustments.The PROFIBUS family consists of three compatible versions:
DP stands for Decentralised Periphery. It is optimised for high speed and low­cost interfacing, especially designed for communication between automation control systems and distributed I/O at the device level.
PA stands for Process Automation. It permits sensors and actuators to be connected on one common bus line even in intrinsically-safe areas. It permits data communication and power supply over the bus using 2-wire technology according the international standard IEC 1158-2.
Higher level PROFIBUS-FMS
FMS stands for Fieldbus Message Specification. This version is the general-
purpose solution for communication tasks at a higher level. Powerful services open up a wide range of applications and provide great flexibility. It can also be used for extensive and complex communications tasks.
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 a uniform bus access protocol. Thus, both versions can be operated simultaneously on the same cable. However, FMS field devices cannot be controlled by DP masters or vice versa.
member. This will cause faulty operation.
The rest of this section only describes PROFIBUS-DP.Protocol architecture

1-2 Protocol architecture

OSI The PROFIBUS protocol architecture is oriented on the OSI (Open System
Interconnection) reference model in accordance with the international stand­ard ISO 7498. Layer 1 (physical layer) of this model defines the physical transmission characteristics. Layer 2 (data link layer) defines the bus access protocol. Layer 7 (application layer) defines the application functions
2
Protocol architecture Section 1-2
DP-Profiles
DP-Extensions
User Interface Layer DP Basic Functions
(7) Application Layer
(6) Presentation Layer
(5) Session Layer NOT DEFINED
(4) Transport Layer
(3) Network Layer
(2) Data Link Layer Fieldbus Data Link (FDL)
(1) Physical Layer RS-485 / Fibre Optics
Layer 1, 2 and user interface
PROFIBUS-DP uses layers 1 and 2, and the user interface. Layers 3 to 7 are not defined. 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.
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 sim-
High-speed, inexpensive
ple inexpensive installation are required. Twisted pair shielded copper cable with one conductor pair is used.
Easy installation 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. Transmission speeds between 9.6 kbit/s and 12 Mbit/s can be selected. One unique transmission speed is selected for all devices on the bus when the system is commissioned.
Cable length The maximum cable length depends on the transmission speed (see
Fieldbus cabling 3-3-1 Fieldbus cabling
). The specified cable lengths are based on type-A cable (see
). The length can be increased by the use of repeaters.
3-3-1
The use of more than 3 repeaters in series is not recommended.
3
Device types Section 1-3

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 called active stations in the PROFI­BUS standard.
DPM1, DPM2 There are two types of master devices: DP master class 1 (DPM1) and DP
master class 2 (DPM2). A DPM1 is a central controller which exchanges information with the decen-
tralised stations (i.e. DP slaves) within a specified message cycle. DPM2 devices are programmers, configuration devices or operator panels.
They are used during commissioning, for configuration of the DP system, or for operation and monitoring purposes.
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.
The CJ1W-PRT21 is a PROFIBUS-DP slave device.
4
PROFIBUS-DP characteristics Section 1-4

1-4 PROFIBUS-DP characteristics

1-4-1 Bus Access Protocol

Layer 2 The bus access protocol is implemented by layer 2. This protocol also
includes data security and the handling of the transmission protocols and messages.
Medium Access Control The Medium Access Control (MAC) specifies the procedures which determine
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 handle the communication between a master device and its assigned slave device(s).
Token passing The 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 pro­cedure automatically. A user can only change the target rotation time, but is not recommended.
Polling procedure The polling or master-slave procedure permits the master, which currently
owns the token, to access its assigned slaves. The picture below shows a possible configuration The configuration shows three active stations (mas­ters) and six passive stations (slaves).
.
Token Passing
DPM1 DPM2 DPM1
Active stations Master devices
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 DPM2 master can take the initia­tive to communicate with DPM1 master stations in a master-master communication relationship.
Polling
PROFIBUS
5
PROFIBUS-DP characteristics Section 1-4
Multi-peer communication In addition to logical peer-to-peer data transmission, PROFIBUS-DP provides
multi-peer communication (broadcast and multicast). Broadcast communication: an active station sends an unacknowledged
message to all other stations (masters and slaves).
Multicast communication: an active station sends an unacknowledged
message to a predetermined group of stations (masters and slaves).

1-4-2 Data throughput

Transmission time At 12 Mbit/s, PROFIBUS-DP requires only about 1 ms for the transmission of
512 bits of input data and 512 bits of output data distributed over 32 stations. The figure below shows the typical PROFIBUS-DP transmission time depend­ing on the number of stations and the transmission speed. The data through­put will decrease when more than one master is used.
Baud Rate
(kbit/s)
500
1500
3000
12000
0 4 8 12 16 20 24 28 32
Slaves
Bus cycle time [ms]
25.0
20.0
15.0
10.0
5.0
0.0

1-4-3 Diagnostic functions

Extensive diagnostics The extensive diagnostic functions of PROFIBUS-DP enable fast location of
faults. The diagnostic messages are transmitted over the bus and collected at the master. These messages are divided into three levels:
Device related diagnostics Device related diagnostics
These messages concern the general operational status of the whole device (e.g. overtemperature or low voltage).
Module related diagnostics
Module related diagnostics These messages indicate that a fault is present in a specific I/O range (e.g. an
8-bit output module) of a station.
Channel related diagnostics
6
Channel related diagnostics These messages indicate an error at an individual input or output (e.g. short
circuit on output 5).
PROFIBUS-DP characteristics Section 1-4

1-4-4 Protection mechanisms

Time monitoring PROFIBUS-DP provides effective protection functions against parameterisa-
tion errors or failure of the transmission equipment. Time monitoring is pro­vided at the DP master and at the DP slaves. The monitoring interval is spec­ified during the configuration.
At the master • Protection mechanism at the master.
The DPM1 master monitors data transmission of its active slaves with the Data_Control_Timer. A separate control timer is used for each slave. This timer expires when correct data transmission does not occur within the moni­toring interval.
If the master’s Auto_Clear mode is enabled, the DPM1 exits the ’Operate’ state, switches the outputs of all assigned slaves to fail-safe status, and changes to its ’Clear’ state (see also
At the slave • Protection mechanisms at the slave.
The slave uses the watchdog control to detect failures of the master or the transmission line. If no data communication with the master occurs within the watchdog control interval, the slave automatically switches its outputs to the fail-safe status. This mechanism can be enabled or disabled for each individ­ual slave.
Also, access protection is available for the inputs and outputs of the DP slaves operating in multi-master systems. This ensures that direct access can only be performed by the authorised master. For other masters, the slaves offer an image of their inputs and outputs, which can be read by any master, even without access rights.

1-4-5 Network states

).
1-4-5 Network states
PROFIBUS-DP distinguishes four different network states.
Off-line • Off-line
Communication between all DP participants is stopped.
Stop • Stop
Communication between DPM1 and DP slaves is stopped. Only communica­tion between DPM1 and DPM2 is possible.
Clear • Clear
DPM1 master attempts to set parameters, check the configuration, and sub­sequently perform data exchange with its associated DP-slaves. The data exchange comprises reading the inputs of the DP-slaves and writing zero’s to the outputs of the DP-slaves.
Operate • Operate
DPM1 master exchanges data with its assigned slaves, inputs are read and outputs are written. Beside this, the DPM1 cyclically sends its local status to all assigned DP slaves (with a multicast message) at a configurable time interval.
Auto_Clear When an error occurs during the data transfer phase of the DPM1, the
‘Auto_Clear’ configuration setting determines the subsequent actions. If this parameter is set to false, the DPM1 remains in the 'Operate' state. If set to true, the DPM1 switches the outputs of all assigned DP slaves to the fail-safe state and the network state changes to the 'Clear' state.
7
Device Data Base files Section 1-5

1-5 Device Data Base files

GSD-file To achieve straightforward configuration of a PROFIBUS-DP network, the
characteristic features of a device are specified in a file. This file is called a GSD-file (Gerätestammdaten file). The language of the GSD file is expressed with the last letter from the extension, *.GS?:
Default: =GSD English =GSE Deutsch =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 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 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 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).
Configurator The device data base file of each device is loaded in the configurator and
downloaded to the master device. Refer to the Operation Manual of the PROFIBUS-DP Master Unit for usage of the GSD file in the master's configu­ration software.
GSD files are usually supplied with each unit. Alternatively, GSD files can be downloaded from the Internet, either from the manufacturer's site, or from the GSD library of the PROFIBUS Nutzerorganisation at http://www.profibus.com.

1-6 Profiles

Exchanging devices 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 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.
8
SECTION 2
Features and System Configuration
This section describes the overall specification and the communication performance of the PROFIBUS-DP CJ1W-PRT21 Slave Unit
2-1 Overall Specification. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2-2 Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2-3 Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
9
Overall Specification

2-1 Overall Specification

Modal code CJ1W-PRT21
Host PLC System CJ1
Maximum number of Units per PLC system
Current consumption 400 mA (maximum) at 5V DC from PLC power supply
Weight 90 g (typical)
Installation
Storage temperature
Operating temperature
Operating humidity 10 to 90% (non-condensing)
Conformance to EMC­and environmental standards
Environment
Switch settings Special I/O Machine number (00-95) by 2 rotary switch
LED Indicators Unit status: RUN (green LED), ERC (red LED)
User
Interface
No. of CIO words allo­cated
No. of DM words allo­cated
Amount of I/O data per Unit
PLC Interface
Applicable standard EN50170 Vol. 2
Conformance to PROFIBUS standard
Bus connector 9-pin female sub-D connector (RS-485 PROFIBUS connector)
Bus address 0 to 99, Remote setting
Baud rate (auto-detect) 9.6k, 19.2k, 45.45k, 93.75k, 187.5k, 500k, 1.5M, 3M, 6M, 12M bit/s
Supported functions (as responder)
Station type Modular station, max. 32 modules
GSD file OC_0602.GSD, supplied with the unit
Profibus Interface
40
o
C to +70oC
-20
o
0
C to +55oC
EN50081-2 EN61131-2
PROFIBUS-DP node address (00-99) by 2 rotary switches
Network status: COMM (green LED), BF (red LED) CPU status: ERH (red LED)
PLC -> Unit: 1 word control data Unit -> PLC: 1 word status data
Unit -> PLC: 8 words of Unit setup information
Fixed:
2 words CIO area (one in, one out) for Unit status + control bits. 2 words status information from the host PLC, containing operation status and error
code (read from location A400). This information will be sent to the PROFIBUS master:
• as extended diagnostics, only at a change of data content.
• optionally, attached to the I/O data, each PROFIBUS cycle.
Variable :
2 user-defined areas for PROFIBUS I/O data, with the following restrictions:
• Up to 100 words input in one PLC area (CIO, H, D, EM).
• Up to 100 words output in one PLC area (CIO, H, D, EM).
• Inputs+outputs must be 180 words or less
Certificate No. Z01033
to DPM1 + DPM2 masters Data_Exchange
to DPM2 master only RD_Inp
Configurable with In-, Out-, and I/O-modules of 1, 2, 4, 8, and 16 words Total of 0~100 words in + 0~100 words. Sum of Input and Output size can be up to 180 words
Section 2-1
not supported
Slave_Diag Set_Prm Chk_cfg Global_Control (SYNC/FREEZE/CLEAR)
RD_outp Get_cfg
10
Dimensions

2-2 Dimensions

Section 2-2
The following figure shows the dimensions of the Unit. (All dimensions are in mm.)
90 mm
PRT21
RUN ERC
31 mm
COMM
ERH BF
Bus
MACH No. x10
x10
NODE No. x10
x10
1
0
1
0
Indicator LEDs
Rotar y switches
D-SUB 9 connector
5 mm
65 mm
11
Loading...
+ 67 hidden pages