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 damage to property.
!DANGERIndicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.
!WARNINGIndicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.
!CautionIndicates 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 anything 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. 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.
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.
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 personal 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.
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.
2General Precautions
The user must operate the product according to the performance specifications described in the operation manuals.
Before using the product under conditions which are not described in the
manual or applying the product to nuclear control systems, railroad systems,
aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used
improperly, consult your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide
the systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the Unit. Be
sure to read this manual before attempting to use the Unit and keep this manual 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 applications.
3Safety Precautions
!WARNING The CPU Unit refreshes I/O even when the program is stopped (i.e., even in
PROGRAM mode). Confirm safety thoroughly in advance before changing the
status of any part of memory allocated to I/O Units, Special I/O Units, or CPU
Bus Units. Any changes to the data allocated to any Unit may result in unexpected operation of the loads connected to the Unit. Any of the following operation may result in changes to memory status.
• Transferring I/O memory data to the CPU Unit from a Programming
Device.
• Changing present values in memory from a Programming Device.
• Force-setting/-resetting bits from a Programming Device.
• Transferring I/O memory files from a Memory Card or EM file memory to
the CPU Unit.
• Transferring I/O memory from a host computer or from another PC on a
network.
!WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing
so may result in electric shock.
x
Safety Precautions3
!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 countermeasure 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 malfunction 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 Precautions4
4Operating 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 temperature.
• 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 conditions at installation and remains within the specified conditions during the life
of the system.
xii
Application Precautions5
5Application 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 circuits (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 shortcircuiting in external wiring. Insufficient safety measures against shortcircuiting 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 Output 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 Precautions5
!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 dissipation. 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 completely.
• 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 preparations before starting operation. Starting operation without the proper settings 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 operation.
• 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 contents of the DM Area, H Area, and other data required for resuming operation 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 malfunction 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 Directives6
6Conformance to EC Directives
6-1Applicable Directives
•EMC Directives
• Low Voltage Directive
6-2Concepts
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 Directives 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:
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-3Conformance 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 supplies.
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 conditions. You must therefore confirm that the overall machine or equipment
complies with EC Directives.
(Radiated emission: 10-m regulations)
6-4Relay 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 connected to the load side or other appropriate countermeasures must be provided external to the PC.
xv
Conformance to EC Directives6
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.
CircuitCurrentCharacteristicRequired element
ACDC
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 experiments, and take into consideration that
the capacitance suppresses spark discharge when the contacts are separated 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
YesYesIf the load is a relay or solenoid, there is
a time lag between the moment the circuit 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
NoYesThe diode connected in parallel with
Inductive
load
YesYesThe 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 contacts by using the constant voltage
characteristic of the varistor. There is
time lag between the moment the circuit 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 contacts.
xvi
Conformance to EC Directives6
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 Directives6
xviii
This section provides a brief description of PROFIBUS-DP
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 speedPROFIBUS-DP
Process AutomationPROFIBUS-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 lowcost 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 levelPROFIBUS-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-2Protocol architecture
OSIThe PROFIBUS protocol architecture is oriented on the OSI (Open System
Interconnection) reference model in accordance with the international standard 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 architectureSection 1-2
DP-Profiles
DP-Extensions
User Interface LayerDP Basic Functions
(7) Application Layer
(6) Presentation Layer
(5) Session LayerNOT DEFINED
(4) Transport Layer
(3) Network Layer
(2) Data Link LayerFieldbus Data Link (FDL)
(1) Physical LayerRS-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 installationThe RS-485 transmission technology is very easy to handle. Installation of the
twisted pair cable does not require expert knowledge. The bus structure permits addition and removal of 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 lengthThe 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 typesSection 1-3
1-3Device types
PROFIBUS distinguishes between master devices and slave devices.
Master devicesMaster devices determine the data communication on the bus. A master can
send messages without an external request, as long as it holds the bus
access right (the token). Masters are also called active stations in the PROFIBUS standard.
DPM1, DPM2There 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 devicesSlave devices are peripheral devices. Typical slave devices include input/out-
put devices, valves, drives, and measuring transmitters. They do not have bus
access rights and they can only acknowledge received messages or send
messages to the master when requested to do so. Slaves are also called passive stations.
The CJ1W-PRT21 is a PROFIBUS-DP slave device.
4
PROFIBUS-DP characteristicsSection 1-4
1-4PROFIBUS-DP characteristics
1-4-1Bus 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 ControlThe 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 procedure 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 procedure 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 (masters) and six passive stations (slaves).
.
Token Passing
DPM1DPM2DPM1
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 master-slave communication relationship, and a DPM2 master can take the initiative to communicate with DPM1 master stations in a master-master
communication relationship.
Polling
PROFIBUS
5
PROFIBUS-DP characteristicsSection 1-4
Multi-peer communicationIn 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-2Data 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 depending on the number of stations and the transmission speed. The data throughput will decrease when more than one master is used.
Baud Rate
(kbit/s)
500
1500
3000
12000
048121620242832
Slaves
Bus cycle time [ms]
25.0
20.0
15.0
10.0
5.0
0.0
1-4-3Diagnostic 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 characteristicsSection 1-4
1-4-4Protection mechanisms
Time monitoringPROFIBUS-DP provides effective protection functions against parameterisa-
tion errors or failure of the transmission equipment. Time monitoring is provided at the DP master and at the DP slaves. The monitoring interval is specified 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 monitoring 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 individual 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-5Network 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 communication between DPM1 and DPM2 is possible.
Clear• Clear
DPM1 master attempts to set parameters, check the configuration, and subsequently 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_ClearWhen 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 filesSection 1-5
1-5Device Data Base files
GSD-fileTo 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?:
The GSD files are prepared individually by the vendor for each type of device,
according to a fixed format. Some parameters are mandatory, some have a
default value and some are optional. The device data base file is divided into
three parts:
General section• General specifications
This section contains the vendor name, the device name, hardware- and software release versions, station type and identification number, protocol specification and supported baud rates.
This section contains all parameters which only apply to DP master devices
(e.g. maximum memory size for the master parameter set, maximum number
of entries in the list of active 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).
ConfiguratorThe 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 configuration 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-6Profiles
Exchanging devicesTo 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
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 mastersData_Exchange
to DPM2 master onlyRD_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