Omron SYSMAC CS Series Operation Manual

Profibus master units
Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Cat. No. W409-E2-04
SYSMAC CS/CJ-series
CS1W-PRM21
CJ1W-PRM21
PROFIBUS Master Units
OPERATION MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Omron SYSMAC CS Series

  • Page 1 Cat. No. W409-E2-04 SYSMAC CS/CJ-series CS1W-PRM21 CJ1W-PRM21 PROFIBUS Master Units OPERATION MANUAL...
  • Page 2 SYSMAC CS/CJ-series CS1W-PRM21 CJ1W-PRM21 PROFIBUS Master Units Operation Manual Revised May 29, 2006...
  • Page 4 OMRON Product References All OMRON products are capitalized in this manual. The first letter of the word Unit is also capitalized when it refers to an OMRON product, regardless of whether it appears in the proper name of the prod- uct.
  • Page 5 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.
  • Page 6: Table Of Contents

    TABLE OF CONTENTS About this Manual ....... . . PRECAUTIONS ........Intended Audience .
  • Page 7 TABLE OF CONTENTS SECTION 5 FINS Commands and Responses..... . 125 FINS Commands and Responses..........Command / Response Reference .
  • Page 10: About This Manual

    About this Manual This manual describes the CS1W-PRM21 and CJ1W-PRM21 PROFIBUS DP and PROFIBUS DP-V1 Master Units. The Unit version number on the side case of the housing indicates supported functional- ity. If no version number is shown, the version number is 1.0. The following table lists the functions sup- ported per version number.
  • Page 11 Manual Products Contents Cat. No. CS-series SYSMAC CS-series Describes the installation and operation of W339-E1-@ Programmable Controllers CS1G/H-CPU@@-E the CS-series PLCs. Operation Manual CJ-series SYSMAC CJ-series Describes the installation and operation of W393-E1-@ Programmable controllers CJ1G-CPU@@ the CJ-series PLCs. operation Manual CS/CJ-series SYSMAC CS/CJ-series Describes the ladder diagram programming...
  • Page 12 WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY. In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted. IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS...
  • Page 13 Application Considerations SUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the combination of products in the customer's application or use of the products. At the customer's request, OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products.
  • Page 14 Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
  • Page 16: Precautions

    PRECAUTIONS This section provides general precautions for using the PROFIBUS Master Units, Programmable Controllers and related devices. The information contained in this section is important for the safe and reliable operation of the PROFIBUS Master Units. You must read this section and understand the information contained before attempting to set up or operate a PROFIBUS Master Unit and PLC system.
  • Page 17: Intended Audience

    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.
  • Page 18: Operating Environment Precautions

    Operating Environment Precautions !WARNING The CPU Unit refreshes I/O even when the program is stopped (i.e., even in PROGRAM mode). Confirm safety thoroughly in advance before changing the status of any part of memory allocated to I/O Units, Special I/O Units, or CPU Bus Units.
  • Page 19: Application Precautions

    Application Precautions Application Precautions Observe the following precautions when using the PROFIBUS Master Unit. !WARNING Failure to abide by the following precautions could lead to serious or possibly fatal injury. Always heed these precautions. Ω • Always connect to a class-3 ground (100 or less) when installing the Units.
  • Page 20 Application Precautions • 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 cables. • Do not pull on the communications cables. •...
  • Page 21: Conformance To Ec Directives

    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 confirm that units and the overall sys- tem conforms to EMC standards.
  • Page 22: Features And Specifications

    SECTION 1 Features and Specifications This section provides an introductory overview of PROFIBUS, its functions and how to setup and configure a network. It also addresses the PROFIBUS Master Units and the configurator, their features and specifications. Overview of PROFIBUS ......... 1-1-1 Introduction.
  • Page 23: Overview Of Profibus

    Overview of PROFIBUS Section 1-1 Overview of PROFIBUS 1-1-1 Introduction Standard EN50170 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 which PROFIBUS adheres, guarantees vendor independence and transparency of operation.
  • Page 24 Overview of PROFIBUS Section 1-1 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 RS485 / Fibre Optics PROFIBUS DP In the rest of this manual, only PROFIBUS DP is considered.
  • Page 25: Device Types

    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).
  • Page 26: Diagnostic Functions

    Overview of PROFIBUS Section 1-1 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.
  • Page 27: Protection Mechanisms

    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.
  • Page 28: Setting Up A Profibus Dp Network

    Setting up a PROFIBUS DP Network Section 1-2 Setting up a PROFIBUS DP Network 1-2-1 Configuring the PROFIBUS Master In order to operate a PROFIBUS network, each master in the network needs to be configured. This process of configuration involves •...
  • Page 29: Gsd File Technology

    CX-Profibus CX-Profibus is a FDT container application. Together with this container appli- cation, OMRON provides five DTMs: • A DTM to facilitate configuration and operation of the CS1/CJ1W-PRM21 PROFIBUS DP-V1 Master Units (As of Unit version 2.0).
  • Page 30 Setting up a PROFIBUS DP Network Section 1-2 GSD File Language The language used in the GSD file is indicated by the last letter of the file extension, *.GS?: Default = GSD English = GSE German = GSG Italian = GSI Portuguese = GSP Spanish...
  • Page 31: Profibus Master Unit

    As of Unit version 3.0, a FINS command containing CIP data can be sent to other OMRON devices on the PROFIBUS network, using PROFIBUS DP-V1 Class 2 services. CIP or Common Industrial Protocol is protocol defined by ODVA, the Open Devicenet Vendor Association.
  • Page 32 PROFIBUS Master Unit Section 1-3 For diagnostics purposes the PROFIBUS Master Unit collects all Slave Diag- nostics messages, which it can transfer to the PLC memory, using FINS com- mands. From every allocated slave device it can receive up to 244 bytes of diagnostics data.
  • Page 33: Specifications

    PROFIBUS Master Unit Section 1-3 1-3-2 Specifications The CS1W-PRM21 and CJ1W-PRM21 are remote I/O Communication units providing PROFIBUS DP and PROFIBUS DP-V1 Master capabilities. The Unit version number on the side case of the housing indicates supported func- tionality. If no version number is shown, the version number is 1.0. The follow- ing table lists the functions supported per version number.
  • Page 34 PROFIBUS Master Unit Section 1-3 Item Specification Ambient temperatures Operating temperature: 0 to 55° C Storage temperature: –20 to 75° C Ambient operating humidity 10% to 90% (with no condensation) Vibration resistance Conforms to IEC60068-2-6, test Fc. 10 to 54.8Hz, 0.25-mm amplitude, 54.8 to 300Hz, acceleration: 29.4 m/s in X, Y, and Z directions for 120 minutes each.
  • Page 35 Explicit messages The EXPLICIT MESSAGE SEND (2801) FINS command can be used (See Note 3) to send CIP based messages to OMRON slave devices using PROFI- BUS DP-V1 Class 2 messages. Error history size and storage The PROFIBUS Master Unit supports storage of up to 80 error events, including time stamps in volatile memory.
  • Page 36 PROFIBUS Master Unit Section 1-3 Item Specification PROFIBUS DP Master Class 1 - Slave • Set_Prm cyclic services • Chk_Cfg • Data_Exchange • Slave_Diag • Global-Control - CLEAR Global-Control, initiated from CIO Word. Can be addressed to all or a specified group of slave devices. Supported commands: •...
  • Page 37 PROFIBUS Master Unit Section 1-3 External Dimensions (mm) CS1W-PRM21 PRM21 COMM COMM ISOM ISOM UNIT CJ1W-PRM21 PRM21 COMM UNIT...
  • Page 38: Comparison With Previous Model

    • PROFIBUS MESSAGE SEND to send messages over PROFIBUS network (Implemented as of Unit version 2.0). • EXPLICIT MESSAGE SEND to send CIP- based messages over the PROFIBUS network to OMRON slave devices (imple- mented as of Unit version 3.0)
  • Page 39 PROFIBUS Master Unit Section 1-3 Item C200HW-PRM21 CS1/CJ1W-PRM21 (Unit version 3.0) Configuration connection Serial connection (RS232) directly to con- Serial connection directly via PLC CPU, or method nector on the front of the Unit via other I/O Units. No separate connector on the front of the Unit PROFIBUS Media type RS-485, galvanically isolated from the PLC...
  • Page 40: Cx-Profibus Configurator

    CX-Profibus The PROFIBUS Master Unit requires a configuration before it can exchange I/O data with the slave devices. For this purpose OMRON provides the CX- Profibus Configuration program, which runs under Microsoft Windows™ NT 4.0, Windows™ 2000 or Windows™ XP Together with CX-Profibus, OMRON provides five DTM COM Objects: •...
  • Page 41 CX-Profibus Configurator Section 1-4 CS1/CJ1W-PRM21 In addition to the PROFIBUS DP functions, the CS1/CJ1W-PRM21 PROFI- PROFIBUS DP-V1 DTM BUS DP-V1 DTM provides: • A communication channel to the user to change a remote slave device address. This channel has its own user interface. •...
  • Page 42 COM Port on PC COM Port on PC CS/CJ-series C200H-series Peripheral Bus or PROFIBUS DP PROFIBUS DP Host LINK Master Unit Master Unit OMRON OMRON SYSMAC CS1G SYSMAC CS1G PROGRAMMABLE PROGRAMMABLE CONTROLLER CONTROLLER Configuration Port on Peripheral or RS232C PROFIBUS DP...
  • Page 43: Specifications

    CX-Profibus Configurator Section 1-4 1-4-2 Specifications Functional Specifications Item Specification Model number WS02-9094G Hardware platform • Personal computer: IBM PC/AT or compatible • Processor: Pentium 500 MHz or higher • Memory: 256 Mbytes • Hard disk: A minimum of 256 Mbytes •...
  • Page 44 CX-Profibus Configurator Section 1-4 Item Specification Device setup Device setup allows the user to: • Select the PROFIBUS Master Unit’s unit number. • Configure the communication link between the PC and the Unit. This function invokes the user interface of CX-Server. •...
  • Page 45: Basic Operating Procedure

    Basic Operating Procedure Section 1-5 Basic Operating Procedure 1-5-1 Overview The following diagram provides an overview of the installation procedures. For experienced installation engineers, this may provide sufficient informa- tion. For others, cross-references are made to various sections of this manual where more explicit information is given.
  • Page 46: Preparations For Communications

    Basic Operating Procedure Section 1-5 1-5-2 Preparations for Communications 1. Mount the Master Unit on the PLC system (refer to 2-2 Installing the CS1/ 1,2,3... CJ1W-PRM21 Units). • Treat the Unit as a CPU Bus Unit. • It can be mounted to a CPU Rack or Expansion Rack. •...
  • Page 47 Basic Operating Procedure Section 1-5...
  • Page 48: Installation And Wiring

    SECTION 2 Installation and Wiring This section shows the PROFIBUS device and identifies its controls and indicators. It contains the procedures for installing the CS1/CJ1W-PRM21 PROFIBUS Master Unit on the PLC System and setting up the PROFIBUS network. Unit Components ..........2-1-1 Nomenclature .
  • Page 49: Unit Components

    Unit Components Section 2-1 Unit Components 2-1-1 Nomenclature The illustration below shows the Status LED indicators, the Unit number selector switch, and a 9-pin female sub-D connector on the front side of the CS1W-PRM21 and the CJ1W-PRM21 Units. Each of these components are explained in the following sections CS1W-PRM21 PRM21...
  • Page 50: Indicators

    Unit Components Section 2-1 2-1-2 Indicators The CS1/CJ1W-PRM21 PROFIBUS Master Units are each fitted with seven LEDs to indicate the operational mode and status of the Unit and the PROFI- BUS network CS1W-PRM21 CJ1W-PRM21 PRM21 COMM PRM21 COMM COMM Indicator Specifications Indicator Colour Status...
  • Page 51: Switch Settings

    Unit Components Section 2-1 2-1-3 Switch Settings Setting the Unit Number The unit number is used to identify individual CPU Bus Units when more than one CPU Bus Unit is mounted to the same PLC. The unit number must be unique for each CPU Bus Unit.
  • Page 52: Profibus Connector

    Unit Components Section 2-1 DM Area Allocations Unit No. Allocated words Unit No. Allocated words (decimal) (decimal) 0 (0) D30000 to D30099 8 (8) D30800 to D30899 1 (1) D30100 to D30199 9 (9) D30900 to D30999 2 (2) D30200 to D30299 A (10) D31000 to D31099 3 (3)
  • Page 53: Installing The Cs1/Cj1W-Prm21 Units

    Installing the CS1/CJ1W-PRM21 Units Section 2-2 Installing the CS1/CJ1W-PRM21 Units 2-2-1 Handling Precautions When installing the PROFIBUS Master Unit on the PLC system, observe the following handling precautions • Always turn OFF the power supply to the PLC before mounting or dis- mounting a Unit or connecting or disconnecting cables.
  • Page 54 Installing the CS1/CJ1W-PRM21 Units Section 2-2 Mounting Procedure Mount the CS1W-PRM21 PROFIBUS Master Unit to the Backplane using the following procedure. !Caution Always turn OFF the power supply to the PC before mounting or dismounting a Unit or connecting or disconnecting cables. 1,2,3...
  • Page 55: Mounting The Cj1W-Prm21

    Installing the CS1/CJ1W-PRM21 Units Section 2-2 2-2-3 Mounting the CJ1W-PRM21 The PROFIBUS Master Unit can be mounted to any slot in either a CJ-series CPU Rack, or a CJ-series Expansion CPU Rack. The CJ-series PLC supports up to 4 Expansion CPU Racks, in addition to the CPU rack. The number of slots to which PROFIBUS Master Unit can be mounted in any of the positions shown below using the sliders on the top and bottom of the Unit.
  • Page 56: Initial Setup Procedure

    Initial Setup Procedure Section 2-3 Mounting Procedure Mount the CJ1W-PRM21 PROFIBUS Master Unit to the PLC using the follow- ing procedure. 1. Carefully align the connectors to mount the PROFIBUS Master Unit. Connector PA20 5R POWE R SYSMA C ERR/ALM CJ1G-C PU44 COMM PROGRAMM ABLE...
  • Page 57: Selecting A Unit Number

    Initial Setup Procedure Section 2-3 2-3-1 Selecting a unit number 1. Make sure that the PLC Power Supply is turned OFF before setting the Unit number. 2. Set the switch to the desired unit number. Use a small screwdriver to make the setting, taking care not to damage the rotary switch.
  • Page 58: Setting Up A Network

    Setting up a Network Section 2-4 Initial screen SHIFT 000000 I/O TBL ? 000000 I/O TBL WRIT ???? WRITE Password 000000CPU BU ST? 0:CLR 1:KEEP (Save or clear the CPU Bus Unit System Setup.) 000000 I/O TBL WRIT OK After creating the I/O table, the Unit is ready to be configured for first use on the PROFIBUS network.
  • Page 59 4 segments. The maximum number of PROFIBUS devices in such a network is then 122. The figure below shows an example of a two-segment network. OMRON SYSMAC CS1G P R O G R A MMA B LE...
  • Page 60: Bus Termination

    Setting up a Network Section 2-4 Cable Type The PROFIBUS standard EN 50170 specifies Type A shielded, twisted- pair cable as the recommended cable type for use in an RS-485 based PROFI- BUS network. This cable type has the following characteristics: Characteristic Value Impedance...
  • Page 61: Profibus Cable Connector

    Setting up a Network Section 2-4 intermittent data transfer errors, particularly if the bus segment is operated close to the specified limits for maximum numbers of devices, maximum bus segment length and maximum data transfer rate. Inductors In addition to the bus termination, additional precautions must be taken to ensure proper operation at high baud rates, i.e.
  • Page 62: Defining Profibus Dp In The Software

    Defining the Configuration After making the physical connections of the network, the configuration then has to be defined in the software. OMRON provides a dedicated PC-based configuration program, called CX-Profibus, as well as the required DTMs for this purpose. It can be used to: •...
  • Page 64: Configuration Software

    SECTION 3 Configuration Software This section contains the procedures for installing the configuration software. It also presents an overview of the Configuration software and discusses the main aspects of defining a PROFIBUS configuration. A more detailed description of the use of the Configuration software can be found in SECTION 6 Operation. Installation.
  • Page 65: Installation

    • CX-Server, to allow communication between the PC and the PLC. • C200HW-PRM21 Configuration DTM. • Generic Slave Device DTM, to allow slave configuration using GSD files. • Additional GSD files for several OMRON slave devices. Note 1. Any older version of CX-Profibus installed on the system, must be unin- stalled, prior to installing the newer version.
  • Page 66 Installation Section 3-1 6. The operations and displays shown in the following procedure may differ slightly depending on the version of Windows software being used. The displays for Windows 2000 are shown here. 1,2,3... 1. Exit all other Windows-based programs. 2.
  • Page 67 Installation Section 3-1 5. After starting the Microsoft .NET framework installation process, a window will be displayed showing the progress of this installation. 6. Completion of the Microsoft .NET framework installation is indicated by displaying the message window below. 7. After installing the Microsoft .NET framework, CX-Profibus and its compo- nents will be installed.
  • Page 68 Installation Section 3-1 License. If the License is not accepted - by selecting the No button -, the installation will be terminated. 9. After accepting the License statement, the window below is displayed to allow you to enter your name, your Company name and the 16-digit Li- cense key provided on the back side of the CD-ROM case.
  • Page 69 Installation Section 3-1 mation is correct, select the Yes button. Selecting the No button will revert you to the previous window. 11. After entering the correct License code, the installation process will first re- quire you to select the language to be installed for CX-Profibus and its components.
  • Page 70 Section 3-1 13. Specify a Program Folder to which a shortcut to the program will be added. The default Program Folder is OMRON\CX-Profibus. You can specify any one of the other available Program Folders listed in the Existing Folders frame. After making the desired selection, select the Next button. The in- stallation will now be performed, the files will be copied to the destination folder and the necessary registry entries will be made...
  • Page 71 Installation Section 3-1 will be displayed, prompting the user for a selection of language to be used with CX-Server. 17. After selecting the language and pressing the OK button, the welcome window shown below will be displayed. Please take note of the recommen- dations, and make sure all other windows programs are closed before con- tinuing.
  • Page 72 Installation Section 3-1 stall additional components, depends on hardware installed on your PC. Press the Next button to continue. The installation will now be performed. 20. After completing the installation, a notification will be displayed, providing access to CX-Server release notes. Press the Finish button when done. 21.
  • Page 73: Installing The C200Hw-Prm21 Dtm

    Installation Section 3-1 22. In order to be ensured of OMRON support for the program as well as in- formation on updates, please register the program via the OMRON web- site http://softwaredownload.europe.omron.com. Alternatively, fill out the registration card enclosed with the software pack- age and return it to the OMRON regional sales office or to your local OM- RON representative.
  • Page 74: Cx-Profibus

    3-2-1 Starting CX-Profibus Starting CX-Profibus Select Program, OMRON, and CX-Profibus, from the Start Menu if the default program folder name is used. At startup, the CX-Profibus splash screen will appear, on top of which a login window as shown below will be displayed.
  • Page 75: Cx-Profibus Main Window

    CX-Profibus Section 3-2 3-2-2 CX-Profibus Main Window The main application window of CX-Profibus will open with a New Project. After the first start up, the Device Catalogue will be opened automatically. If not, the Device Catalogue may be opened from the menu. The figure below shows the opened CX-Profibus application window with a Project already containing a network, and the Device Catalogue window opened.
  • Page 76 CX-Profibus Section 3-2 The highest level of the tree is the project. The next level is the PROFIBUS Master level. On this level one or more PROFIBUS Master devices can be allocated. The third level contains the slave DTMs. The PROFIBUS network must be assembled in the Network view, i.e. the var- ious DTMs are added to the network via this window.
  • Page 77 CX-Profibus Section 3-2 Menu Command Short Key Description View Network view Hides or un-hides the Network view. Device Catalogue Opens or closes the Device Catalogue. Tool Bar Hides or un-hides the Tool Bar. Status Bar Hides or un-hides the Status Bar. Error Logging Hides or un-hides the Error Logging window.
  • Page 78: Device Catalogue

    CX-Profibus Section 3-2 3-2-3 Device Catalogue Device Catalogue Main The Device Catalogue is one of the main components in CX-Profibus. Its Components main functions are • to maintain a list of installed DTM and GSD files. • to provide convenient sorting and categorizing of the list. •...
  • Page 79 CX-Profibus Section 3-2 DTM List Window The list items in the right view are described in the following table. Column Description Device The Device column contains the names of the DTMs, as provided by the DTM or the GSD file. If the device is defined by a GSD file, the Generic Slave Device DTM reads out the GSD file entry “Model Name”.
  • Page 80: Updating The Device Catalogue

    CX-Profibus Section 3-2 window with additional DTM information. The figure below provides an exam- ple for the CJ1W-PRM21 PROFIBUS Master DTM. 3-2-4 Updating the Device Catalogue If a new DTM has been installed, it will not automatically be included in the Device Catalogue.
  • Page 81: Adding Devices To The Network

    CX-Profibus Section 3-2 3-2-5 Adding Devices to the Network Setting up a network in CX-Profibus involves adding and configuring single device DTMs. The device DTMs as listed in the Device Catalogue can be added to the network in three ways: •...
  • Page 82: Error Logging And Fdt Monitoring

    CX-Profibus Section 3-2 • select Export to HTML option from the context menu First select the project level in the Network view, then right click the mouse to display the context menu. A window will pop up displaying the progress of the export process. After exporting the information, the default browser is launched, showing the result of the export process.
  • Page 83 CX-Profibus Section 3-2 Error Log view Context Menu Menu item Description Equivalent menu command Clear all entries Clears the entire Error Log view. Copy to clipboard Copies the entire contents of the Error Log view to the clipboard. Hide Hides the Error Log view. View - Error Logging FDT Monitoring view The FDT Monitoring view displays the communication between the FDT Con-...
  • Page 84: Access Control And User Management

    CX-Profibus Section 3-2 3-2-9 Access Control and User Management The FDT Standard defines four access levels and two attributes for FDT Con- tainer applications, which can be used to restrict access to the program or certain features thereof for unauthorized personnel. The actual use of the restrictions also depends on the application.
  • Page 85 CX-Profibus Section 3-2 User Management To change access rights or to change the passwords for the various access levels, first login into the Administrator level. This allows you to select the Tools - User Management option from the main menu in CX-Profibus. Other access levels do not have access to this menu option.
  • Page 86: Cs1/Cj1W-Prm21 Profibus Master Dtm

    CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Planning Engineer. You can now enter the new password, confirm it by re-typ- ing the password and select the OK button to activate the new password. Note If access protection is not important for the application, you can define an empty string as a password, i.e.
  • Page 87 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Note The Configuration User Interface for each of the two CS1/CJ1 PROFIBUS Master DTMs contains the same views and setting options. Master DTM Configuration The Master DTM Configuration User Interface contains four tabs: User Interface •...
  • Page 88 The Configure button invokes the CX-Server communications settings dia- log. CX-Server is the driver software, providing the communication functional- ity between a PC and the PLC CPU. It is the basis for the OMRON’s CX-One programs. CX-Server is provided with CX-Profibus, but it may already be installed on the PC, if other programs, for example CX-Programmer have been installed.
  • Page 89 The Device Information Box contains information obtained from the PROFI- BUS Master Unit, through the communication. Item Description OMRON Corporation This is fixed text, indicating the Manufacturer of the PROFIBUS Master Unit. Description This string will contain the name of the Unit, i.e. CJ1W-PRM21 or CS1W-PRM21.
  • Page 90 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Change PLC to PROGRAM The table below defines the behaviour in case the PLC changes to PRO- Mode GRAM mode. Control Description Keep Current Mode Unit keeps the current mode if the PLC goes to PRO- GRAM modem (e.g.
  • Page 91 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 !Caution Changing the calculated Bus Parameters manually is not recommended, and should only be performed if this is really necessary. Changing the Bus Param- eters to an invalid combination, may result in Unit malfunctioning and unex- pected behaviour.
  • Page 92 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Item Description Unit Editable by User Optimize The Optimize setting defines whether parameters can be changed by the user. • By Standard Forces the user to use the default (optimized) settings. • By User Makes selected fields editable.
  • Page 93 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Slave Area Tab The Slave Area tab displays the mapping of the I/O data from/to the allocated slave devices on to the PLC memory areas. The mapping can be made auto- matically, but can also be changed by the user, before downloading. The Slave Area tab is shown below.
  • Page 94 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 2. When adding/removing slaves/modules, and Auto Addressing has been enabled, the modules in the Areas will be remapped. This usually results in I/O data being re-mapped. Therefore it is recommended to select all slaves and modules, before setting up the PLC memory mapping configuration.
  • Page 95 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Changing Mapped Data By default, the data is mapped to Area 1 in both the Output and Input Alloca- Allocations tion tabs. It is however possible to map a part of the data to the second area in the same tab.
  • Page 96 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 The Acyclic Connection/Abort status box contains the following information. Control Description Area Selects the PLC memory area to which the Acyclic Con- nection/Abort status bits will be mapped. Possible options are (See Note): • Not Used (Default setting, Start Address and Length will be set to 0).
  • Page 97 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Acyclic Connection Abort The 8 word Acyclic Abort bit flags are shown below. Status Flags 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word n+8 Slave station 00 ~ 15 Word n+9 Slave station 16 ~ 31 Word n+10...
  • Page 98 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Slave DTM Address Selecting the Slave DTM Address Assignment displays a list of DTMs Assignment assigned to the PROFIBUS Master DTM, together with their Station address: When assembling the network, the PROFIBUS Master DTM will automatically assign a station address to each new slave DTM.
  • Page 99: Diagnostics User Interface

    CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 In order to change the address of a slave device perform the following steps (Make sure that the DTM is on-line with the CS1/CJ1W-PRM21 Unit): 1,2,3... 1. Enter the device’s current address and its PROFIBUS Ident Number. The PROFIBUS Ident Number can be found in the Generic Slave DTM or through the device’s documentation.
  • Page 100 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 The figure below shows an example of the DTM Diagnostics User Interface. The DTM Diagnostics User Interface contains two tabs: • The Monitor tab This tab displays all Master Unit status and error information as well the overall slave status information, which resides in the Master Unit.
  • Page 101 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 LED Indicator Description OPERATE Master Unit is in OPERATE mode. STOP Master Unit is in STOP mode. CLEAR Master Unit is in CLEAR mode. OFFLINE Master Unit is in OFFLINE mode. Data Exchange When set to ON, it indicates that the Master Unit is in Data Exchange with all its allocated and enabled slave devices.
  • Page 102 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Slave Status Tab The Slave Status tab displays a comprehensive overview of the status of the allocated slaves. An example of the Slave Status tab is shown below. LED Indicator Colours The LED indicators in the Slave Status Flags box, indicate per slave its status, using colours.
  • Page 103 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 arrow pointer to a hand. Left clicking the mouse will then transmit FINS mes- sages to retrieve the diagnostics data of the specified slave device. The retrieved information is displayed in the Slave Diagnostics Data area. The data displayed is the same as displayed with in the Diagnostics User Interface of the Generic Slave DTM.
  • Page 104 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 Online Operations The Online Operations tab is the second main tab in the DTM Diagnostics User Interface. It contains the necessary controls to • Switch the Master Unit to PROFIBUS Operational modes • Select one or more groups, and Global-Control Commands and transmit Global-Control message over the PROFIBUS network.
  • Page 105: Connecting To The Cs1/Cj1W-Prm21

    CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 All commands can be transmitted independent from each other, i.e. all can be send at the same time. However, their effects are not independent, as for example sending Freeze and Unfreeze at the same time results in an Unfreeze command at the slaves.
  • Page 106 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 2. Press the Settings button next to the PLC type selected. The PLC settings window (see figure below) is displayed. 3. In this window make the proper adjustments if necessary. The selections made, must match the physical configuration of the PLC system. When done, press the OK button.
  • Page 107 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 3-3 face. This will initiate a FINS command to read the Unit’s profile, i.e. the name of the Unit and the firmware version. If the communication has been setup correctly, the response of the FINS command will yield the required information, which will be displayed in the Device Information box, in the Description and Firmware Version fields.
  • Page 108: C200Hw-Prm21 Profibus Dp Master Dtm

    C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 C200HW-PRM21 PROFIBUS DP Master DTM C200HW-PRM21 Master To allow configuration and data monitoring for a C200HW-PRM21 from within CX-Profibus a C200HW-PRM21 PROFIBUS DP Master DTM is available, which can be operated from CX-Profibus. The C200HW-PRM21 PROFIBUS DP Master DTM has two main user inter- face components.
  • Page 109 C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 Configuration Interface The Master DTM Configuration User Interface contains four general buttons. Buttons They are listed in the table below, together with the action taken when press- ing them. Button Action Evaluate, and save the changes made (if any) and close the user interface.
  • Page 110 C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 The required combination of Bus Parameters is calculated by the program, based on the dependencies mentioned above. However, the user can change selected Bus Parameter manually if the application requires this. !Caution Changing the calculated Bus Parameters manually is not recommended, and should only be performed if this is really necessary.
  • Page 111 C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 Item Description Unit Editable by User Max Retry Limit Maximum number of request transmission retries by this master if a device does not reply to a request. Highest Station The HSA defines the Highest Station Address of Master devices on the network, Address of which the Master device will request the FDL status, when updating the active device list (See GAP Update Factor).
  • Page 112 C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 Note The mapping in the Address Table tab does not define the mapping on to the PLC memory areas. This is done by making the appropriate settings in the unit’s DM areas (see Appendix G-2 Word allocations). Address Table Tab The Address Table tab contains an overall module list, showing all input and output data per slave, along with the Module names, sizes, data types and...
  • Page 113: Diagnostics User Interface

    C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 Address Table Tab The Address Table Tab contains three controls, related to the I/O mapping. Controls The controls are discussed below. Enable Auto Addressing The C200HW-PRM21 DTM provides Auto Addressing to facilitate easy map- ping of I/O Modules.
  • Page 114 C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 • Select the Device - Go Online option from the main menu, or from the DTM context menu, or • Select the button from the Tool Bar. 2. A communication channel will be opened through the CIF driver, provided this driver has been assigned to the DTM.
  • Page 115 C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 LED Indicator / Description Information Field Timeout This indicator will be set to ON, when due to the number of rejected PROFIBUS messages, the Master supervisory timeout has expired. This usually indicates a short-circuit in the PROFIBUS network.
  • Page 116: Connecting To The C200Hw-Prm21

    C200HW-PRM21 PROFIBUS DP Master DTM Section 3-4 3-4-3 Connecting to the C200HW-PRM21 Configuring For the purpose of downloading a configuration as well as monitoring the Communication C200HW-PRM21 PROFIBUS DP Master DTM uses a dedicated serial driver to connect to the Unit through one of the serial ports on the PC. To setup this driver for communication to the Unit, perform the following procedure.
  • Page 117: Generic Slave Device Dtm

    Most of the current PROFIBUS DP slave devices are supplied with a GSD file in order to allow a configurator to setup a configuration for that particular slave device. OMRON’s Generic Slave Device DTM is provided to allow integration of the GSD file based configuration options into an FDT Container application, like CX-Profibus.
  • Page 118: Configuration User Interface

    The slave DTM Configuration User Interface, which is displayed in the CX- Profibus DTM view is shown below. The figure shows the user interface for an OMRON CJ1W-PRT21 PROFIBUS DP Slave Unit. By default the Configura- tion tab is opened.
  • Page 119 Generic Slave Device DTM Section 3-5 Note In case a changed address is invalid, for example if there is already another slave device with the same new address, the Master DTM will set the number back to its old value. The Watchdog value is the value used by the slave device to monitor commu- nication from the Master Unit.
  • Page 120 The Parameter tab lists all settings to be made for the Parameter message. The Parameter tab is shown below (Example shown is the Parameter tab for an OMRON CJ1W-PRT21 PROFIBUS DP Slave Unit). Common Parameters The PROFIBUS DP parameter message contains a number of settings for the slave device.
  • Page 121 Generic Slave Device DTM Section 3-5 Group Tab In the Group tab the user can define to which group the slave device will belong. This group definition is used to define multi-cast groups of slave device to which a Global-Control message can be transmitted. The window is shown below.
  • Page 122 Generic Slave Device DTM Section 3-5 Auto-Clear Processing The Auto-Clear processing box defines whether or not the PROFIBUS Master Unit should ignore a failure of this particular slave, when Auto-CLEAR has been enabled in the Master Unit (See Auto-CLEAR Box on page 69 in section 3-3-1 Configuration User Interface).
  • Page 123: Section 4

    Generic Slave Device DTM Section 3-5 Control Description DPV1 Compliant The Check I/O configuration message will contain PROFI- BUS DP-V1 Data type definitions in the special identifier format data parts and the slave device will perform the check on this assumption. EN50170 Compliant The Check I/O configuration message will contain stan- dard PROFIBUS DP Data type definitions as well as ven-...
  • Page 124 Generic Slave Device DTM Section 3-5 returned from the slave containing the Prm_Req flag. This flag indicates that the Master Unit should re-parameterize the slave, but in the case of reduced performance slave devices, the returned flag also indicates that the slave device is still processing the last received parameter message and has as yet not approved nor rejected that message.
  • Page 125 Generic Slave Device DTM Section 3-5 Max. Channel Data Length This parameter defines the maximum size in bytes of the acyclic message exchanged with the PROFIBUS DP-V1 Master Unit. The size ranges from 4 bytes to 244 bytes. The actual upper limit of the number is defined by the buffer capacity of the slave device.
  • Page 126: Diagnostics User Interface

    Generic Slave Device DTM Section 3-5 For efficiency reasons however, acknowledgement of alarms, can be per- formed using a different, dedicated SAP or message identifier, SAP50. This will allow other acyclic communication (e.g. re-parameterization of the slave device) to continue without interference. Control Description Alarm acknowledge via...
  • Page 127 as red and green LED indicators. Red LED indicators refer to error events. Green LED indicator refer to status situations. The LED indicators are listed in the table below. Name Description Master lock The slave device has been parameterized by another master. Parameter fault The last received parameter data from the Master Unit have been rejected.
  • Page 128 Generic Slave Device DTM Section 3-5 Extended Diagnostics The Extended Diagnostic tab contains any extended diagnostics reported by the slave device. The figure below shows an example of Extended diagnos- tics. The first row of the Extended diagnostics window contains the raw data as received from the slave device.
  • Page 130: Allocated Cio And Dm Words

    SECTION 4 Allocated CIO and DM Words This section describes the words allocated to the CS1/CJ1W-PRM21 PROFIBUS Master Unit in the CIO and DM Areas. These words facilitate controlling the Unit and accessing the Unit and network statuses. Overview of Word Allocations ........4-1-1 CIO Area Word Allocations .
  • Page 131: Overview Of Word Allocations

    Overview of Word Allocations Section 4-1 Overview of Word Allocations The words shown in the following diagram are allocated according to the unit number setting. For each CPU Bus Unit, there are 25 words allocated in the CIO Area and 100 words allocated in the DM Area. First word allocated in the CIO Area: n = CIO 1,500 + (25 x unit number) First word allocated in the DM Area: m = D30,000 + (100 x unit number) PLC CPU Unit...
  • Page 132: Cio Area Word Allocations

    Overview of Word Allocations Section 4-1 4-1-1 CIO Area Word Allocations Software switches, PROFIBUS Master Unit status, and Slave Status data are allocated in the CIO Area according to the unit number, as shown below. Soft- ware switches are bits used as commands from the PLC CPU to the PROFI- BUS Master Unit to enable executing Unit functions.
  • Page 133: Allocated Cio Area Words

    Allocated CIO Area Words Section 4-2 Allocated CIO Area Words For each CPU Bus Unit, the CS/CJ-series PLC allocates up to 25 words in the CIO area. Data is stored in the offset position defined by the unit number and shown in the following figure, starting from the first allocated word to the Unit in the CIO Area.
  • Page 134: Software Switches 1 (Word N)

    Allocated CIO Area Words Section 4-2 4-2-1 Software Switches 1 (Word n) All the switches of Software Switch 1 execute a function when turned ON by the user (in any PLC mode). The Unit will turn the switch to OFF, after the command has been executed.
  • Page 135: Global-Control Message (Word N+2)

    Allocated CIO Area Words Section 4-2 Name Status Controlled Unit operation Transmit Global- OFF→ User Upon setting this switch the Unit will transmit one Global-Control mes- Control message sage over the network. The contents of the message is defined in CIO Word n+2, see 4-2-2 Global-Control Message (Word n+2).
  • Page 136 Allocated CIO Area Words Section 4-2 Transmitting the message is done by setting the Transmit Global-Control mes- sage switch, bit 04 in CIO Word n, see 4-2-1 Software Switches 1 (Word n). 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word n+2 Group select: Group 1...
  • Page 137 Allocated CIO Area Words Section 4-2 Name Status Controlled Unit operation Unsync User If the Unsync bit is set, the Unsync command will be send to the tar- geted slave devices. The Unsync command releases the targeted slave devices from the Sync mode (see below).
  • Page 138: Unit Status (Word N+4)

    Allocated CIO Area Words Section 4-2 4-2-3 Unit Status (Word n+4) The Unit status word contains all the status and error flags concerning the Unit itself, as well as error flags, which indicate the presence of error flags in the Master and Slave Status Words. All bits are controlled by the Unit. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word n+4 Unit error flag...
  • Page 139: Master Status 1 (Word N+5)

    Allocated CIO Area Words Section 4-2 Name Status Controlled Unit operation Local parameter Unit The local parameter storage error flag will be turned ON if an error storage error occurred during an attempt to write the Configuration and setup data to internal non-volatile memory.
  • Page 140 Allocated CIO Area Words Section 4-2 Word n+5 [n = CIO 1,500 + (25 x unit number)] Name Status Controlled Unit operation Unit in OPERATE Unit Indicates that the Unit is in OPERATE mode. mode In OPERATE mode the PROFIBUS Master Unit will parameterize all allocated slave devices, and commence I/O Data-Exchange.
  • Page 141: Master Status 2 (Word N+6)

    Allocated CIO Area Words Section 4-2 4-2-5 Master Status 2 (Word n+6) The Master Status 2 word collects all error information on the Unit master function. The status information is collected in the Master Status 1 word. The contents of the Master Status 2 word (Word n+6) are: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word n+6 Disturbed bus error...
  • Page 142: Slave Status (Word N+7)

    Allocated CIO Area Words Section 4-2 Name Status Controlled Unit operation Mode command Unit This bit will be turned ON, if error • more than one command mode switch has been set, i.e. Bit 00 to Bit 03 in Word n has been set, or •...
  • Page 143: Actual Bus Cycle Time (Word N+8)

    Allocated CIO Area Words Section 4-2 Name Status Controlled Unit operation New slave diag- Unit At least one of the slave devices, allocated to the PROFIBUS Master nostics received Unit indicates that new Diagnostics data is available. The slaves which indicates this data are indicated in CIO Word n+17 to n+19, see 4-2-9 Slave New Diagnostics Flags (Word n+17 to Word n+24).
  • Page 144: Slave New Diagnostics Flags (Word N+17 To Word N+24)

    Allocated CIO Area Words Section 4-2 Word n+9 to n+16 [n = CIO 1,500 + (25 x unit number)]] Name Status Controlled Unit operation – Slave Unit If the bit corresponding to a slave device address is ON, it indicates that Data_Exchange this slave device Active flags...
  • Page 145 Allocated CIO Area Words Section 4-2 Word n+17 to n+24 [n = CIO 1,500 + (25 x unit number)] Name Status Controlled Unit operation – Slave New Diag- Unit If the bit corresponding to a slave device address is ON, it indicates that nostics flags this slave device •...
  • Page 146: Fins Commands And Responses

    SECTION 5 FINS Commands and Responses This section describes the FINS message service communications commands concept as well as the commands supported by the CS1/CJ1W-PRM21 PROFIBUS Master Units. FINS Commands and Responses ........5-1-1 FINS Message Service Communications .
  • Page 147: Fins Commands And Responses

    PROFIBUS Master Unit. 3. FINS commands containing a CIP-defined explicit message, targeted at a specific OMRON slave device connected to the same PROFIBUS network as the PROFIBUS Master Unit. Note FINS commands of the second type are supported as of Unit version 2.0. The FINS commands of the third type are supported as of Unit version 3.0.
  • Page 148: Command Code List

    FINS Commands and Responses Section 5-1 Command Codes Command codes are represented by a 2-byte hexadecimal code. FINS com- mands always begin with a 2-byte command code; any parameters required follow the command code. Response Codes The response code consists of a 2-byte hexadecimal code indicating the results of command execution.
  • Page 149: Sending Fins Using Cmnd

    FINS Commands and Responses Section 5-1 Read not possible Status error Note If the FINS command was not completed normally, the 2-byte Response code will be unequal 0000. In that case, the Response frame will not contain any further data. Data can only be returned - depending on the command - when the Response code is 0000.
  • Page 150: Command / Response Reference

    Command / Response Reference Section 5-2 number of retries has been set, so be sure to specify a number other than “0” for the number of retries. Command / Response Reference This section describes the FINS commands that can be sent to the PROFI- BUS Master Units and the responses to each command.
  • Page 151: Run (0401)

    Command / Response Reference Section 5-2 Response Codes The following end codes can be returned by the Unit in response to the RUN command: Response code Description 0000 Normal completion. 0203 Slave device not allocated to the PROFIBUS Master. 0402 Service not supported by Unit model / version.
  • Page 152: Stop (0402)

    Command / Response Reference Section 5-2 Response code Description 1002 Command too short. 110C • Mode code setting not supported (code exceeds 01). • Invalid device code (High byte not equal to 81) • Invalid target slave address (exceeds 125). 5-2-3 STOP (0402) Initiates a state change within the PROFIBUS Master Unit.
  • Page 153: Controller Data Read (0501)

    Command / Response Reference Section 5-2 5-2-4 CONTROLLER DATA READ (0501) Reads the model name and version number data from the PROFIBUS Master Unit. Command Format Command code Response Format 20 bytes 20 bytes Command Response Model Version code code Parameters Model, Version (Response) The PROFIBUS Master Unit model and version are returned as ASCII charac-...
  • Page 154 Command / Response Reference Section 5-2 Number of Records (Command, Response) The number of records to read is specified between 0001 and 0050 (1 to 80 decimal) in the command. The response returns the actual number of records read. Maximum Number of Stored Records (Response) The maximum number of records that can be stored in the error log.
  • Page 155: Explicit Message Send (2801)

    Cannot Clear the Error Log. The error cause still exists. 5-2-7 EXPLICIT MESSAGE SEND (2801) Sends an explicit message over the PROFIBUS network to an OMRON slave device and receives a response. Explanation The Explicit Message Send command sends a CIP-defined explicit message to an OMRON PROFIBUS Slave device supporting CIP messages.
  • Page 156 Command / Response Reference Section 5-2 Response Format If a normal response has been returned by the targeted device, the response format for the executed explicit message is as follows: 996 bytes max. Command Response No. of bytes Service data code code received...
  • Page 157: Profibus Message Send (2809)

    Command / Response Reference Section 5-2 Class ID (Command) Specifies the class ID for the explicit message destination. The supported Class ID values are specified in the Operation manual of the targeted slave device. Instance ID (Command) Specifies the instance ID for the explicit message destination. The supported Instance ID values are specified in the Operation manual of the targeted slave device.
  • Page 158 Command / Response Reference Section 5-2 Destination Address (Command) The address of the device on the PROFIBUS network, to which the PROFI- BUS message will be sent. The valid address range is 0 to 7E (Hex). Device Service Access Point (Command) The Device Service Access Point is a 1 byte number, identifying the PROFI- BUS service to the slave device, as defined by the PROFIBUS standard.
  • Page 159 Command / Response Reference Section 5-2 PROFIBUS Ident Number (Command) The PROFIBUS Ident Number is a 1 word identifier, issued by PROFIBUS International, which identifies the slave device type and model. The number can be obtained form the slave device GSD file or from the slave documenta- tion.
  • Page 160 Command / Response Reference Section 5-2 Rd_Inp Service The PROFIBUS DP Rd_Inp service allows a PROFIBUS Master Unit to read the current input data of any slave device, even if it is not allocated to the Mas- ter Unit. The figures below show the command and response message formats. Command Format Command code...
  • Page 161 Command / Response Reference Section 5-2 Rd_Outp Service The PROFIBUS DP Rd_Outp service allows a PROFIBUS Master Unit to read the current output data of any slave device, even if it is not allocated to the Master Unit. The figures below show the command and response message formats. Command Format Command code...
  • Page 162 Command / Response Reference Section 5-2 Get_Cfg Service The PROFIBUS DP Get_Cfg service allows a PROFIBUS Master Unit to read the I/O Configuration data of any slave device, even if it is not allocated to the Master Unit. The figures below show the command and response message formats. Command Format Command code...
  • Page 163 Command / Response Reference Section 5-2 MSAC1_Read Service The PROFIBUS DP-V1 MSAC1_Read service allows a PROFIBUS DP-V1 Master Unit to read (parameter) data acyclically from a PROFIBUS DP-V1 slave device, which is allocated to that Master unit. The figures below show the command and response message formats. Command Format Function Data length...
  • Page 164 Command / Response Reference Section 5-2 Slot number (Command) The parameter Slot_Number is used in the destination device for addressing the desired data slot (typically an I/O module). The number ranges from 0 to 254. Index number (Command) The parameter Index is used in the destination device for addressing the desired data block within a specified slot.
  • Page 165 MSAC1_Write Service The PROFIBUS DP-V1 MSAC1_Write service allows a PROFIBUS DP-V1 Master Unit to write (parameter) data acyclically to a PROFIBUS DP-V1 slave device, which is allocated to that Master unit. The figures below show the command and response message formats. Command Format Function Data length...
  • Page 166 Command / Response Reference Section 5-2 Slot number (Command) The parameter Slot number is used in the destination device for addressing the desired data slot (typically an I/O module). The number ranges from 0 to 254. Index number (Command) The parameter Index is used in the destination device for addressing the data block within a specified slot to which the data must be written.
  • Page 167 Command / Response Reference Section 5-2...
  • Page 168: Operation

    SECTION 6 Operation This section describes how to operate the CS1/CJ1W-PRM21 PROFIBUS Master Unit in a Network. It will discuss setting up a network, configuring all the connected devices and starting the network. Furthermore, it provides information the I/O data exchange performance and it also provides information on how to monitor a network, using the Unit and CX-Profibus. Introduction .
  • Page 169: Introduction

    Setting up a network involves setting up a configuration in CX-Profibus and downloading it to the PROFIBUS Master Unit. To start CX-Profibus, select Program, OMRON, and CX-Profibus, from the Start Menu if the default pro- gram folder name is used.
  • Page 170 Setting up a network Section 6-2 Before starting the assembly of the network in CX-Profibus, make the follow- ing preparation steps. 1,2,3... 1. Open the Device Catalogue: Either select the View - Device Catalogue menu option, or press the button in the Tool Bar. The opened Device Catalogue is shown below.
  • Page 171: Adding Devices To The Network

    Setting up a network Section 6-2 window. The GSD file(s) will be copied to a sub-directory of the CX-Profi- bus directory. 3. After completing the copy, a window will be displayed, asking the user per- mission for an update of the Device Catalogue (see figure below). If more GSD files need to be installed, select the No button and continue with in- stallation of GSD file.
  • Page 172 Setting up a network Section 6-2 Using Drag & Drop 1,2,3... 1. Open the Device Catalogue: Either select the View - Device Catalogue menu option, or press the button in the Tool Bar. 2. Select a device DTM in the Device Catalogue. 3.
  • Page 173: Changing Device And Dtm Addresses

    Section 6-2 Example The figure below shows an example network consisting of a CJ1W-PRM21 PROFIBUS Master and three OMRON slave devices. Note that the slave DTMs all have the automatically assigned network addresses, displayed to the left of the device name.
  • Page 174 Setting up a network Section 6-2 In order to change the address of a slave device perform the following steps: 1,2,3... 1. Enter the device’s current address and its PROFIBUS Ident Number. The PROFIBUS Ident Number can be found in the Generic Slave DTM or through the device’s documentation.
  • Page 175 Setting up a network Section 6-2 3. Select the OK or Apply button at the bottom of the window. The OK button will close the DTM Configuration User Interface. Note If, when pressing the Apply or OK button, no I/O modules have been selected as yet, a warning message will be displayed.
  • Page 176: Configuring The Slave Devices

    Configuring the Slave Devices Section 6-3 The window as shown below will be displayed. In order to change the slave DTM address perform the following steps. 1,2,3... 1. Select the slave device in the list. 2. Enter the new address in the field Address in the lower right corner of the window.
  • Page 177 If an incorrect sequence is sent, the I/O configuration is rejected. This is for example the case with the OMRON PRT1-COM Multiple I/O PROFIBUS DP Interface. 3. A mandatory I/O module sequence is sometimes indicated in the GSD file, by using non-PROFIBUS standard GSD file keywords (i.e.
  • Page 178 Configuring the Slave Devices Section 6-3 4. Also in this window are the maximum values, which can be set, and the to- tals of I/O data that actually have been set. If - while selecting I/O modules - one of the maximum values is exceeded, a warning message will be dis- played.
  • Page 179: Setting Parameters

    Configuring the Slave Devices Section 6-3 • request re-parameterization from the Master, before resuming I/O data exchange. If disabled, the slave will remain in data exchange, even if the Master is not communicating, thus maintaining its outputs in the latest known state, based on the last I/O data exchange message.
  • Page 180: Selecting The Group Assignment

    Configuring the Slave Devices Section 6-3 Example The Parameter tab of the CJ1W-PRT21 is shown in the figure below. It lists the common parameters for the CJ1W-PRT21. In the figure above, the parameter captions are listed in the left column and the options can be set in the right column.
  • Page 181 Configuring the Slave Devices Section 6-3 Example Assigning slave devices to groups is application dependent. The figure below shows the Group selection tab for the CJ1W-PRT21, which has been assigned to groups 1, 2 and 4. After making the group assignment, press the OK button to save the changes and close the DTM Configuration User Interface.
  • Page 182: Configuring The Master

    Configuring the Master Section 6-4 Configuring the Master Opening the Master DTM After configuring all the slave DTMs, the CS1/CJ1W-PRM21 Master DTM Configuration Interface must be configured. In order to open the Master DTM Configuration Interface do either one of the following. •...
  • Page 183 Configuring the Master Section 6-4 • The behaviour of the Master Unit in case an error occurs in one of the slave devices allocated to the Master Unit. • The method of I/O data mapping. The figure below shows the Master Setup tab. Unit Behaviour upon PLC The user can select the way the Unit will behave if the PLC mode is changed.
  • Page 184: Setting The Bus Parameters

    Configuring the Master Section 6-4 state. Refer to section 6-6-4 Using Auto-CLEAR, for a description of how to use the Auto-CLEAR function. Auto-Addressing Auto-Addressing defines whether or not the CS1/CJ1W-PRM21 Master DTM will automatically map the I/O data in such a way that no gaps exist in the I/O data.
  • Page 185: Defining And Changing I/O Mapping

    Configuring the Master Section 6-4 6-4-3 Defining and Changing I/O Mapping The I/O data of all slaves can be mapped on to the PLC memory areas. through two Output Ares and two Input Areas. The Output data can be distrib- uted over two Output Areas, each of which can be mapped on to PLC mem- ory.
  • Page 186: Configuring Cx-Server

    Configuring the Master Section 6-4 6-4-4 Configuring CX-Server Configuring The CS1/CJ1W-PRM21 Master DTM uses CX-Server to connect to the Unit Communication for downloading a configuration as well as monitoring the Master Unit. To setup the communication to the Unit, perform the following procedure. 1,2,3...
  • Page 187 Configuring the Master Section 6-4 4. Select the Network Type to be used as connection between the PC and the Unit. The available options may include other PLC systems or Commu- nication Units, which are setup to act as a gateway. Refer to CX-Server Runtime user Manual (W391) for details on configuring CX-Server.
  • Page 188: Downloading The Configuration

    Configuring the Master Section 6-4 6-4-5 Downloading the Configuration Downloading Parameters In order to download the parameter sets to the CS1/CJ1W-PRM21 PROFI- BUS Master Unit, the following sequence must be performed. 1,2,3... 1. Select the CS1/CJ1W-PRM21 Master DTM in the Network view and right- click the mouse to display the context menu.
  • Page 189: I/O Communication Characteristics

    I/O Communication Characteristics Section 6-5 I/O Communication Characteristics 6-5-1 I/O Data Configuration I/O Data Configuration Each slave device defines its I/O data size, sequence and format by means of I/O modules, each of which consists of one or more bytes, containing a PROFIBUS defined coding scheme.
  • Page 190 I/O Communication Characteristics Section 6-5 Example The default mapping algorithm is illustrated in the figure below, with the fol- lowing configuration: • Slave device 1: One input/output module, one output modules. • Slave device 2: One input module. • Slave device 3: One output module. •...
  • Page 191 The figure below shows an example of the effects of Auto Addressing on (re)allocation of I/O modules. In the original I/O configuration on the left, the first slave - an OMRON CJ1W-PRT21 - consisted of two I/O modules. In new configuration one I/O module was inserted, and subsequent modules were re- allocated in the process.
  • Page 192 I/O Communication Characteristics Section 6-5 from which modules can be selected. The allocated I/O modules are listed in area 1, the column on the left of the lower half of the window. Note The I/O modules in the pick list, all remain there. The allocated I/O modules are copies of the modules selected from the pick list.
  • Page 193 I/O Communication Characteristics Section 6-5 The example shows that the sequence of slave addresses is maintained, the sequence of I/O modules selected is maintained and the I/O modules are allo- cated to the lowest address of the area. Enable/Disable Auto The Auto Addressing feature can be disabled in the CS1/CJ1W-PRM21 Mas- Addressing ter DTM.
  • Page 194 I/O Communication Characteristics Section 6-5 Example The figure below illustrates the effects of re-allocating I/O modules, when Auto Addressing has been disabled. Initial I/O Configuration Note: Auto-addressing is disabled Output module 2 of slave device #2 was moved to Output area 2, location CIO 3401, leaving behind a gap in Output area 1.
  • Page 195 I/O Communication Characteristics Section 6-5 Note Compressing an Input/Output area has no effect on the start address of the area. Example The figure below, shows the effects on the previous example, after pressing the Compress button in both Output areas. Selecting the I/O Area After finalizing the mapping of the I/O modules on to the various I/O areas, the Start Address...
  • Page 196: Supported Data Types

    I/O Communication Characteristics Section 6-5 6-5-3 Supported Data Types The CS1/CJ1W-PRM21 PROFIBUS Master Units perform an interface func- tion between a PROFIBUS network and the CS1/CJ1 PLC CPU. On both sides of the interface different formats for data and data storages are used. To ensure that I/O data transferred through the interface can be used on both sides of the interface without additional formatting, the CS1/CJ1W-PRM21 PROFIBUS Master Units perform the necessary data formatting.
  • Page 197: Exchanging I/O Data Over Profibus

    I/O Communication Characteristics Section 6-5 6-5-4 Exchanging I/O Data over PROFIBUS The cyclic refresh cycles of the PLC CPU and the I/O data exchange cycles of the PROFIBUS network are two asynchronous processes, for which the CS1/ CJ1W-PRM21 PROFIBUS Master Unit performs the interface function. PLC Cyclic Refresh vs.
  • Page 198 I/O Communication Characteristics Section 6-5 PROFIBUS DP I/O data exchange cycle > PLC cyclic refresh results in the following I/O transfer characteristics. • Not all output data is guaranteed to be transmitted over the PROFIBUS network (referring to the figure above: Output data marked with “O” is overwritten by “O+1”...
  • Page 199: Plc Cycle Time Performance

    I/O Communication Characteristics Section 6-5 6-5-5 PLC Cycle Time Performance The cyclic refresh time is the time required for I/O data to be exchanged between the PLC CPU Unit and the PROFIBUS Master Unit. The PLC CPU Unit cyclic refresh time is increased when a PROFIBUS Master Unit is mounted, as shown below.
  • Page 200 I/O Communication Characteristics Section 6-5 Slave device Input ON (OFF) delay. PROFIBUS I/O data exchange cycle time PB,Cyc (See Appendix A Bus Parameters) I/O Processing time in the Master Unit. Minimum value is 430 µs, M,Proc but may increase with increasing I/O data size. Master request cyclic refresh until actual start of cyclic refresh.
  • Page 201 I/O Communication Characteristics Section 6-5 Note The calculation assumes the presence of only one Master Unit on the PROFI- BUS network Minimum I/O Response The minimum response time, i.e. the time from an input on a slave device Time being set to the time the output on the same slave device is set is calculated, based on the figure below.
  • Page 202: System Startup Time

    I/O Communication Characteristics Section 6-5 6-5-7 System Startup Time Startup Time Definition The system startup time is the delay from the time the CS1/CJ1W-PRM21 PROFIBUS Master Unit is turned ON, or reset, until I/O data exchange with all slave devices has been established. For this, the following is assumed: •...
  • Page 203: Operating The Network

    Operating the Network Section 6-6 Operating the Network 6-6-1 User Access to the Network There are several ways through which a user can have access to and control over the PROFIBUS network. • Through a PLC user program A PLC user program can set the operational mode of the Unit, send Glo- bal-Control commands, read Master and slave status / diagnostics infor- mation, and access the Unit’s Error Log.
  • Page 204: Changing Profibus Mode Of The Master Unit

    Operating the Network Section 6-6 6-6-2 Changing PROFIBUS Mode of the Master Unit PROFIBUS DP Network The PROFIBUS standard defines four different network modes, in which a Modes Master Unit can operate. The modes are: • OFFLINE The PROFIBUS Master Unit does not access the network, nor does it respond to messages.
  • Page 205 Operating the Network Section 6-6 Example Below is an example ladder program, which changes the operational mode to OPERATE, if the current mode is not OPERATE and non of the other mode switches are set. The unit number for the example Unit is 0. A200.11 000000 (000000)
  • Page 206: Transmitting Global-Control Commands

    Operating the Network Section 6-6 6-6-3 Transmitting Global-Control Commands Global-Control commands The CS1/CJ1W-PRM21 PROFIBUS Master Units support the transmission of Global-Control commands. These messages are unconfirmed broadcast messages (i.e. the slave devices do not send a response message), which can be used to synchronize I/O data related events two more slave devices. I/O Data Synchronization Two types of synchronization can be achieved.
  • Page 207 Operating the Network Section 6-6 cal input data, and continue to transfer this data to the Master Unit with subsequent I/O data exchange messages. • If a Global-Control - Unfreeze command is sent, the slave device will revert back to its original situation, and transfer updated input information to the Master Unit with subsequent I/O data exchange messages.
  • Page 208 Operating the Network Section 6-6 Note If a Global-Control command contains both a Sync and an Unsync command, the Unsync will prevail. The figure shown below illustrates the Sync / Unsync feature as implemented by the CS1/CJ1W-PRM21 PROFIBUS Master Unit. Global-Control Sync command Global-Control Unsync command Instruction...
  • Page 209 Operating the Network Section 6-6 W0.01 1500.00 1500.04 @MOV 000000 (021) (000000) #0002 Send OPERATE Transmit Freeze mode 1500 Set Group Address command @SET 1502.11 Set Freeze cmd bit @SET 1500.04 Transmit GC command @RSET W0.01 Send Freeze CX-Profibus CX-Profibus also provides a means to transmit Global-Control commands from the PC, through the CS1/CJ1W-PRM21 Master DTM Diagnosis User Interface - Online Operations tab.
  • Page 210: Using Auto-Clear

    Operating the Network Section 6-6 6-6-4 Using Auto-CLEAR Auto-CLEAR Feature The CS1/CJ1W-PRM21 PROFIBUS Master Units support the Auto-CLEAR function as defined in the PROFIBUS standard. This feature - when enabled - will switch the PROFIBUS Master Unit to CLEAR mode automatically, in case one of the slave devices fails on the network.
  • Page 211: Monitoring The Network

    Monitoring the Network Section 6-7 Monitoring the Network Monitoring the 6-7-1 Master Unit and the Network Both the CS1/CJ1W-PRM21 Master DTM and the Generic Slave DTM pro- vide special user interfaces to facilitate status debugging and diagnostics determination. This section and the next will discuss the use and the features of these diagnosis user interfaces.
  • Page 212 Monitoring the Network Section 6-7 The Master Status 1 box indicates the Master Unit’s status. The Master Sta- tus 2 box and the Unit Status box all indicate errors. These LED indicators are discussed in section 7-4-2 Troubleshooting the Network using CX-Profibus. The Slave Status box indicates the overall status of the allocated slave devices.
  • Page 213 Monitoring the Network Section 6-7 diagnostics flags. An example is shown in the figure below. For the extended, non-standard diagnostics see section 6-7-2 Monitoring Slave Status. The upper half of the window - the Slave Status Flags box - presents the sta- tus of each slave device using coloured LED indicators.
  • Page 214 Monitoring the Network Section 6-7 The newly received diagnostics can be viewed, by clicking with the left mouse button on the LED indicator, indicating diagnostics. The mouse pointer will change in to a hand icon, when positioned over the LED indicator. Reading Standard Slave Clicking the LED indicator with the left mouse button has the following effects Diagnostics...
  • Page 215: Monitoring Slave Status

    Monitoring the Network Section 6-7 Monitoring 6-7-2 Slave Status The Generic Slave DTM provides a Diagnosis User Interface with two tabs: • Standard diagnostics tab, displaying the same information for the associ- ated slave device as in the Slave Diagnostics Data box in the Master DTM Monitoring User Interface.
  • Page 216: Using The Error Log

    Monitoring the Network Section 6-7 Example The figure below shows an example of the extended diagnostics window, con- taining extended diagnostics data. The first row in the diagnostics window shows the raw data bytes, the second and third row show the actual message contained within the extended diagnostics message.
  • Page 217 Monitoring the Network Section 6-7 Reading the Error Log The Error Log can now be retrieved from the Unit, and displayed through the CS1/CJ1W-PRM21 Master DTM Diagnosis User Interface. To retrieve and view the Unit’s Error Log, 1,2,3... 1. Open the CS1/CJ1W-PRM21 Master DTM Diagnosis User Interface. 2.
  • Page 218: Profibus Dp-V1 Services

    PROFIBUS DP-V1 Services Section 6-8 This will clear not only the Error Log stored in volatile memory, but also the error log events stored in the non-volatile memory. Note Clearing the Error Log is not possible, if an error, which was just added to the Error Log is still active.
  • Page 219 PROFIBUS DP-V1 Services Section 6-8 As an example, the figure below shows the DTM of the GRT1-PRT PROFI- BUS Communication for SmartSlice I/O Units (see Operation Manual W04E- EN-@). The DTM is used to configure and monitor the GRT1-Series Smart- Slice I/O Units.
  • Page 220 PROFIBUS DP-V1 Services Section 6-8 from slot number 1 (first I/O module), and index 0. The service is processed successfully and the device returns 4 data bytes. CIO1530.00 CIO1534 .02 @CMND D00006 FINS command data source address CJ1W-PRM21 Slave #2 in In OPERATE data exchange FINS Response data destination...
  • Page 222: Troubleshooting And Maintenance

    SECTION 7 Troubleshooting and Maintenance This section describes the troubleshooting procedures and maintenance operations for the CS1/CJ1W-PRM21, needed to keep the PROFIBUS network optimally working. Overview ........... . . Troubleshooting Using LED Indicators .
  • Page 223: Overview

    Overview Section 7-1 Overview The CS1/CJ1W-PRM21 PROFIBUS Master Unit and the Configuration soft- ware package provides extensive means for troubleshooting, which can be used to quickly determine errors in the Unit, in the configuration, in the net- work, and/or in remote slave devices, allocated to the Unit. Troubleshooting on the For troubleshooting purposes, the following error indicators can be used: Master Unit...
  • Page 224: Troubleshooting Using Led Indicators

    Troubleshooting Using LED Indicators Section 7-2 Troubleshooting Using LED Indicators 7-2-1 LED Indicators This section presents a number of easy to use procedures to troubleshoot possible errors using the LED indicators on the front of the Unit (see figure below). CS1W-PRM21 CJ1W-PRM21 PRM21...
  • Page 225 Troubleshooting Using LED Indicators Section 7-2 Unit Start up Errors Probable cause Correction Not lit Not lit Not lit Power is not being supplied to the CPU Supply power. Make sure that the correct Unit or the power supply voltage is too low. voltage is being supplied.
  • Page 226: Unit Operational Errors

    Troubleshooting Using LED Indicators Section 7-2 7-2-3 Unit Operational Errors Unit Operational errors are errors which can occur during normal operation, i.e. after normal startup. The error determination procedure uses the table below. To determine the error, first find the status of the RUN LED indicator (left column). Then move one column to the right and find the status of the ERH LED indicator.
  • Page 227: Unit Configuration Errors

    Troubleshooting Using LED Indicators Section 7-2 7-2-4 Unit Configuration Errors Unit configuration errors are errors which occur during download of the new configuration, or after restarting the Unit, following a download. The error can be determined by examining the ERC and the PRM LED indicators. The error determination procedure uses the table below.
  • Page 228: Network Errors

    Troubleshooting Using LED Indicators Section 7-2 7-2-5 Network Errors Network errors are errors which occur when attempting to startup a network, i.e. the PROFIBUS Master Unit has been switched to CLEAR or OPERATE mode. The Unit will parameterize the slave devices and start data exchange. An error in this process can be determined by examining the BST, COMM and BF LED indicators.
  • Page 229 Troubleshooting Using LED Indicators Section 7-2 COMM Probable cause Correction Flashing/ Not lit Not lit Not a valid combination. A Bus disturbance error has been detected. • Switch the Unit to OFFLINE mode. • Terminate the network at the appropriate This indicates a termination error (termina- places (see section 2-4-2 Bus Termina- tion resistors are missing, or inductors are...
  • Page 230: Troubleshooting Using Error Status

    Troubleshooting Using Error Status Section 7-3 Troubleshooting Using Error Status Error status in CIO Words The PROFIBUS Master Unit provides error status indications to the PLC CPU Unit in the Unit Status Word and the Master Status Word 2, which are part of the CIO Words.
  • Page 231: Master Status 2 Word

    Troubleshooting Using Error Status Section 7-3 File read error An error has occurred, when loading the configuration from the non-volatile mem- ory to the volatile memory at start up. Most likely cause is a failure or interruption during the writing process. Most likely causes: •...
  • Page 232 Troubleshooting Using Error Status Section 7-3 PROFIBUS protocol error An error has occurred in the PROFIBUS interface, with distorted messages received by the PROFIBUS Master Unit. Most likely causes: • Lost token messages (the token is not returned). To correct this: •...
  • Page 233: Troubleshooting The Network

    Troubleshooting the Network Section 7-4 Troubleshooting the Network 7-4-1 Troubleshooting Parameter Download The PROFIBUS Master DTM provides clear error messages if downloading of the parameters to the PROFIBUS Master Unit fails. Failure can be due to either • Errors or inconsistencies in the slave parameter sets, which are checked prior to download.
  • Page 234: Troubleshooting The Network Using Cx-Profibus

    Troubleshooting the Network Section 7-4 7-4-2 Troubleshooting the Network using CX-Profibus CX-Profibus CX-Profibus provides several means to troubleshoot either the CS1/CJ1W- Troubleshooting PRM21 PROFIBUS Master Unit, the slave devices or the network. The means all rely on features discussed in the previous section. Troubleshooting the To troubleshoot the Master Unit or the network, the Master DTM Diagnosis Master Unit...
  • Page 235 Troubleshooting the Network Section 7-4 LED Indicators Description / Correction Local Parameter Storage Error An error has occurred, when writing the configuration to the non-volatile memory. (Valid Configuration Indicator will To correct this: be OFF) • Restart the Unit. • Re-download the configuration. •...
  • Page 236 Troubleshooting the Network Section 7-4 LED Indicators Description / Correction PROFIBUS protocol error: ON An error has occurred in the PROFIBUS interface, with distorted messages received by the PROFIBUS Master Unit. (OFFLINE indicator will be ON) Most likely causes: • Lost token messages (the token is not returned). To correct this: •...
  • Page 237 Troubleshooting the Network Section 7-4 The LED indicators in the upper half of the Slave Status tab shown in the fig- ure above, indicates the status of the slave devices, by using different colours (see section 6-7-1 Monitoring the Master Unit and the Network, Slave Status Overview).
  • Page 238 Troubleshooting the Network Section 7-4 LED Indicator Description / Correction Function not supported The Master Unit has sent a message to the slave device, which is not supported by that device. Invalid slave response This bit is set by the Master Unit if the slave has returned an invalid response to a master request message.
  • Page 239: Troubleshooting I/O Communication

    Troubleshooting the Network Section 7-4 7-4-3 Troubleshooting I/O Communication This section deals with troubleshooting the I/O communication on the network from a behaviour point of view. The tables below describe the general per- ceived problem to the user, probable causes and probable remedies. Communication Problems Problem Probable cause...
  • Page 240 Troubleshooting the Network Section 7-4 Problem Probable cause Correction PROFIBUS Master Unit is Network cabling is not correct. Verify that the network installation is correct: configured. Some, but not • BF LED indicator is ON or Flashing. • Verify that all slaves are powered up and all slaves exchange data.
  • Page 241 Troubleshooting the Network Section 7-4 Problem Probable cause Correction PROFIBUS Master Unit is No power is supplied to the system. All LED • Verify that power is supplied to the sys- configured. All slaves were indicators on the system are OFF. tem.
  • Page 242: Troubleshooting Profibus Dp-V1 Communication

    Troubleshooting the Network Section 7-4 Problem Probable cause Correction PROFIBUS Master Unit is The specified slave devices may be in Sync Send a Global-Control Unsync command to configured. All slaves are in the targeted slave or group of slaves. Use mode.
  • Page 243: Troubleshooting Using The Error Log

    Troubleshooting Using the Error Log Section 7-5 Troubleshooting Using the Error Log 7-5-1 Error Log Overview The PROFIBUS Master Unit maintains an Error Log, which contains the reports on specific error events. Logged Errors The following errors are recorded in the error log. •...
  • Page 244: Error Codes

    Troubleshooting Using the Error Log Section 7-5 7-5-2 Error Codes The error codes are described in the following table. The detailed error code will provide detailed information on an error. Error Meaning Detailed error code Correction Non- code volatile 1st byte 2nd byte 0001 Watchdog timer error in CPU...
  • Page 245 Troubleshooting Using the Error Log Section 7-5 Error Meaning Detailed error code Correction Non- code volatile 1st byte 2nd byte 021A Logic error in setting table 03: Routing Recreate the data specified by the Saved tables 2nd byte of the detailed error code.
  • Page 246: Troubleshooting Fins Commands

    Troubleshooting FINS Commands Section 7-6 Troubleshooting FINS Commands Any problems in FINS communications can be determined using the response codes when the CMND(490) instruction has been used. The table below lists response codes returned by the PROFIBUS Master Unit, after exe- cution of FINS commands, the probable cause of errors, and recommended remedies.
  • Page 247: Maintenance

    Maintenance Section 7-7 Maintenance This section describes the routine cleaning and inspection recommended as regular maintenance. 7-7-1 Cleaning Clean the PROFIBUS Master Unit regularly as described below in order to keep it in an optimum operating condition. • Regularly wipe the Unit with a dry, soft cloth. •...
  • Page 248: Replacing The Unit

    Unit. • When returning a faulty Unit for repair, always attach a detailed fault report to the Unit and return it to the nearest OMRON dealer. Note 1. In order to prevent faulty operation be sure to turn off the power to all mas- ter and slave devices before replacing the Unit.
  • Page 249 Replacing the Unit Section 7-8...
  • Page 250: Bus Parameters

    Appendix A Bus Parameters Bus Parameters The PROFIBUS Bus Parameters define both the baud rate and the bus timing settings, necessary to perform the exchange of messages over PROFIBUS. The Bus Parameters settings must be determined for each and every Master device on the bus, and usually depend on •...
  • Page 251 Appendix A Bus Parameters The table below defines the bus parameter settings options, shown in the figure. The Unit t is defined as the transmission time for one bit at the selected baud rate. Item Symbol Description Unit Editable by User Baud rate Defines the transmission rate on the PROFIBUS DP Net- kBits/s Yes...
  • Page 252 Appendix A Bus Parameters Item Symbol Description Unit Editable by User Highest Station Address The HSA defines the Highest Master device address on the network, of which the Master device will request the FDL status, when updating the active device list (See GAP Update Factor).
  • Page 253 Appendix A Bus Parameters The parameters to calculate are: • Min. Slave Interval ( • Target Rotation Time ( • Watchdog timeout (ms) • Data Control Time (ms) These four values depend on the number of slave devices allocated to the PROFIBUS Master Unit, the number of I/O bytes each of the slave devices will exchange with the Master Unit, and how many other Master Units are on the PROFIBUS network at the same time.
  • Page 254: Slave Diagnostics Message

    Appendix B Slave Diagnostics Message Slave Diagnostics Data Message Every PROFIBUS DP slave device has to support the transfer of a-cyclic diagnostics message. The contents of these messages allow a PROFIBUS Master Unit to assess the status of the slave device in every state of the communication.
  • Page 255 Appendix B Slave Diagnostics Message Byte 1 Byte 2 D + 1 Byte 3 Byte 4 D + 2 Byte 5 Byte 6 D + 3 Byte 7 Byte 8 D + 4 Byte 9 Byte 10 The first 6 bytes or 3 words - Word D ~ Word D+2 - are mandatory bytes, which will always be sent by the slave device.
  • Page 256 Appendix B Slave Diagnostics Message Name Description Diag.Invalid_Slave_Response This bit is set by the Master Unit if the slave has returned an invalid response to a Master request message. The slave device will set this bit to 0. Diag.Prm_Fault Set by the slave device, this bit indicates that the last received parameter data from the Master Unit have been rejected.
  • Page 257 Appendix B Slave Diagnostics Message Name Description Reserved These bits are reserved and always set to 0 by the slave device. Diag.Ext_Diag_Overflow If set, this bit indicates that there exists more diagnostic information than speci- fied in Ext_Diag_Data. This bit will - for example - be set if the slave device has more diagnostics available than it can enter in its send buffer.
  • Page 258 Appendix B Slave Diagnostics Message Name Description Block length These bits contain the length of the Device related diagnostics data block, includ- ing the header byte. The Device diagnostics will follow this header byte. Maximum length of the block, including the header is 63 bytes. Interpretation of the diagnostics bytes in this block is device dependent.
  • Page 259 Appendix B Slave Diagnostics Message Module Diagnostics byte Name Description Module 0 Diagnostics When set, this bit indicates that there is Diagnostics information pending related to configuration module 0, i.e. the first configuration module. Module 1 Diagnostics When set, this bit indicates that there is Diagnostics information pending related to configuration module 1.
  • Page 260 Appendix B Slave Diagnostics Message Channel Identifier byte Name Description Channel number These bits contain the number of the channel, which reports the diagnostics. The channel number ranges from 0 to 63. I/O type Bit 6 and 7 indicate the type of I/O channel, from which the diagnostics data is sent.
  • Page 261 Appendix B Slave Diagnostics Message Example of Extended Diagnostics Below an example of Extended diagnostics data is given, using the definitions above. The 6 mandatory bytes preceding them are not shown. 7 6 5 4 3 2 1 0 0 0 0 0 0 1 0 0 Header byte Device specific Device related diagnostics:...
  • Page 262 Appendix B Slave Diagnostics Message Error decode byte Name Description Error decode The code determines the protocol type of the slave which returned the error code. Since this error scheme can also be used in network applications contain- ing protocol converters (i.e. gateways), non-PROFIBUS protocols are also defined in this list.
  • Page 264: I/O Data Conversions

    Appendix C I/O Data Conversions I/O Data type definitions Standard PROFIBUS DP defines two types of I/O data. • 8-bit bytes sized data. • 16-bit word sized data. The standard for PROFIBUS extension, also referred to as PROFIBUS DP-V1, defines the following additional data types: •...
  • Page 265 Appendix C I/O Data Conversions • Odd byte numbers are copied to the Least Significant byte of a PLC memory word. • Even byte numbers are copied to the Most Significant Byte of a PLC memory word. • If the total number of bytes is an odd number, the Most Significant Byte of the last word is filled with 0. 16-bit Word Data 16-bit word data is transferred over the PROFIBUS network with the Most Significant Byte first.
  • Page 266 Appendix C I/O Data Conversions Text String Data Conversion PROFIBUS defines ASCII text strings data type. It is transferred over the network as a string of characters. In order to maintain a readable string in the PLC memory, the data is converted to fit the odd character in the Most Significant Byte of the words, and the even characters in the Least Significant Byte of the words.
  • Page 267 Appendix C I/O Data Conversions Word Bits Type Description Range 00 ~ 15 Time Milliseconds 0 ~ 59999 00 ~ 04 Hours 0 ~ 23 Daylight saving time indication 0: Standard time 1: Daylight saving time 08 ~ 13 Minutes 0 ~ 59 00 ~ 05 Date...
  • Page 268: Configurator Error And Warning Messages

    Appendix D Configurator Error and Warning Messages Warning Messages The table below lists the Warning messages which can be displayed by the PROFIBUS Master Unit DTM. These messages usually indicate that the user is about to perform an action, which will have significant impact, or an action which is only partly supported by the Unit.
  • Page 269 Appendix D Configurator Error and Warning Messages Number Message Description When occurring [IO area] must be empty. Move all “Not used” item in the start address combo box in When selecting the “Not modules into other area output/input allocation tabs can only be selected Used”...
  • Page 270 Appendix D Configurator Error and Warning Messages Error Messages - Configuration The table below lists the Error messages which can be displayed by the PROFIBUS Master Unit DTM in case there are configuration errors. Usually, these are detected either when entering, or up on download. The table suggests corrections to the problems in the right most column.
  • Page 271 Appendix D Configurator Error and Warning Messages Number Message Description Correction PROFIBUS Master is not in cor- The Set Device Station Address Set the PROFIBUS Master into one rect mode. Please set the PROFI- command can not be executed of the following modes: STOP, BUS Master in one of the following because the PROFIBUS Master is CLEAR or OPERATE.
  • Page 272 Appendix D Configurator Error and Warning Messages Number Message Description Correction Communication Failure with PLC The communication between the PC • Ensure there are no problems and the PLC could not be achieved. with the connection between the Personal Computer and the PLC. •...
  • Page 273 Appendix D Configurator Error and Warning Messages Number Message Description Correction [Name of the function] called with Container called a function with There must be problem in the con- improper parameters NULL pointer. tainer. Reinstall CX-Profibus, if prob- lem persists contact supplier. Received XML Document does Container called a function with an There must be a problem in con-...
  • Page 274: Memory Card Backup Functions

    Appendix E Memory Card Backup Functions Outline of Functions The PROFIBUS Master Unit stores the following setup data in the internal non-volatile memory (Flash ROM). • Bus Parameters set • Allocated slave parameter sets. All these parameter sets can be backed up to and restored from a Memory Card mounted to the CPU Unit. If the parameter data of a good functioning PROFIBUS Master Unit has been saved on a Memory Card, this saved data can be used to perform a quick configuration, when replacing the PROFIBUS Master Unit, without the direct use of the Configuration software.
  • Page 275 Appendix E Memory Card Backup Functions Memory Card Pin 7: ON LED indicators Press and hold the Memory Card Power MCPWR BUSY Switch for three seconds. (This example shows a CS-series CPU Unit.) Memory Card Restoring Unit Setup Files In order to restore the Unit’s parameter sets from the Memory Card mounted to the CPU Unit, perform the fol- lowing procedure.
  • Page 276: Application Notes

    Appendix F Application Notes Introduction This appendix contains an application note regarding the use of a special ladder program to detect any CS1/ CJ1W-PRM21 PROFIBUS Master Unit failures. This programs specifically covers failures due to faulty bus parameters, set by the user. Application Note Background The CS1/CJ1W-PRM21 Master DTM allows the user to change certain bus parameter, in order to further opti- mize the PROFIBUS network performance.
  • Page 277 Appendix F Application Notes 1500.15 000000 (590) (000000) CIOn_bit15 Number of PLC cycles without refresh Refresh Counter TestFlag >= FALS 000001 (325) (007) (000002) Refresh Counter &40 #0000 1500.15 @MOV 000002 (021) (000004) CIOn_bit15 TestFlag Number of PLC cycles without refresh Refresh Counter CF113...
  • Page 278: C200Hw-Prm21 Notes

    Appendix G C200HW-PRM21 Notes Introduction This appendix contains notes on the use of the C200HW-PRM21 PROFIBUS DP Master unit on a CS1 PLC System. The C200HW-PRM21 is a special I/O Unit, originally designed for the C200H-series PLC, but can also be used on the CS1-series PLC systems.
  • Page 279 Appendix G C200HW-PRM21 Notes Word m [m = DM 20000 + (100 x Machine number)] Function Value Description word Number of output data areas 0000 Default mapping. PLC addresses CIO0050 to CIO0099 are mapped to Unit output buffer bytes 000 to 099 0001 One user-defined output data area.
  • Page 280 Appendix G C200HW-PRM21 Notes Function Value Description word m+13 Input Area 2: See m+10 Size m+14 Slave status data mapping 0001 User-defined mapping. Area defined by DM m+15. Other Default mapping to CIO0200 to CIO0215 m+15 Start address in user-defined 0000 to 5984 D00000 ~ D05984 mapping mode...
  • Page 281 Appendix G C200HW-PRM21 Notes Control Words The control words for the C200HW-PRM21 PROFIBUS DP Master Unit to allow the PLC CPU program to ini- tiate actions with respect to the PROFIBUS network. In general the following features are provided: • Change the state of the Unit with respect to transfer of I/O data. •...
  • Page 282 Appendix G C200HW-PRM21 Notes Name Value Description Word 00~06 Station address 00~ 7D Selected slave device address. Target Global_Control message to all slave devices, which com- ply with the selected group bits (See bit 08 ~ 15) Not Used Group 1 Select individual groups of slave devices, by setting bits associ- ated with the group.
  • Page 283 Appendix G C200HW-PRM21 Notes Name Value Description Word DM setting error (out- No error put area mapping) (cont’d) There is an error in the output area mapping. The mapping contains an incorrect value for either: • the start address in the output buffer in the Master, •...
  • Page 284 Appendix G C200HW-PRM21 Notes G-3 CIF Driver error messages This section lists the most common error messages encountered with the serial communication driver for the C200HW-PRM21. Extended error messages are available through the Help files of the C200HW-PRM21 DTM. Error Number Description No COM port found or COM port already in use COM port already opened...
  • Page 286: Index

    Index CIF error messages CIO Control words CIO status words About Configuration user interface Manual Configuring communication Acyclic Connection Connecting Configuration Diagnostics user interface Connection Abort status flags Downloading parameters Connection status flags Installation Adding Devices to the Network Memory layout Application Monitoring Auto addressing...
  • Page 287 Index Unit firmware version Module Related Unit number Diagnostics Update Delay Unit PLC behaviour DM Area CX-Profibus See I/O Allocations, DM Area CD-ROM Downloading the configuration Default password Device Catalogue non-GSD based See Device Catalogue PROFIBUS DP-V1 services DTM view Set device station address Error Log view Slave DTM address assignment...
  • Page 288 Index User interface Global Control XML based data transfer Broadcast message Commands FINS communication Freeze/Unfreeze Command codes I/O synchronization Command reference Multicast message CONTROLLER AREA READ (0501) Selecting groups ERROR LOG CLEAR (0203) in CIO words ERROR LOG READ (2102) in CX-Profibus EXPLICIT MESSAGE SEND (2801) Sync/Unsync...
  • Page 289 Network structure Time of day Linear bus topology I/O table Repeaters Creating Tree topology Installation Handling precautions Mounting OMRON CJ1W-PRM21 Copyright notice CS1W-PRM21 Operation modes Installing new GSD files SeeNetwork Operation modes OSI reference model ISO-7498 LED indicators Layer 1, Physical Layer...
  • Page 290 Index MSAC1_Read Logged errors MSAC1_Write Reading Error log Error status CIO words Unit status word RS-485 FINS Commands Cable length LED indicators, using Cable Type Network Transmission medium CS1/CJ1W-PRM21 DTM Transmission speed CX-Profibus, using See also Wiring I/O communication LED indicators, using Slave devices Overview Safety Precautions...
  • Page 291 Index...
  • Page 292: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W409-E2-04 Revision code The following table outlines the changes made to the manual during each revision. The page numbers of a revision refer to the previous version.
  • Page 293 Revision History Revision Code Date Revised Content July, 2005 Changed title of document. Corrected PROFIBUS DP naming to comply with PROFIBUS standards. Corrected terminology regarding views, tabs and windows. Changed Unit naming from PROFIBUS DP Master to PROFIBUS Master. Page vi: Added HART Trademark. Page ix: Added function/version number table and description.
  • Page 294 Revision History Revision Code Date Revised Content May 2006 Changed Manual title. Page ix: Changed/Updated version table and note on versions. Page ix: Added note on terminology. Page x: Updated Manual reference list with new manuals. Page xi: Added Warranty section. Page xvii: Added precaution on slave configuration via PROFIBUS DP-V1.
  • Page 295 Revision Code Date Revised Content Page 165: Updated GUI image (new tab). May 2006 Page 167: Updated GUI image (new tab). (Continued) Page 168: Updated GUI image (new tab). Page 184: Moved contents of section 6.6.5 to section 6.8.2. Page 192: Added section 6.8. Page 196: Updated table for troubleshooting routing tables.
  • Page 296 Buyer indemnifies Omron against all related costs or expenses. rights of another party. 10. Force Majeure. Omron shall not be liable for any delay or failure in delivery 16. Property; Confidentiality. Any intellectual property in the Products is the exclu-...
  • Page 297 OMRON ON-LINE Global - www.omron.com USA - www.omron247.com Canada - www.omron.ca Brazil - www.omron.com.br Latin America - www.espanol.omron.com UNITED STATES To locate a Regional Sales Office, local Distributor or to obtain product information, call: 847.843.7900 MEXICO SALES OFFICES Mexico, D.F.

This manual is also suitable for:

Sysmac cj-seriesSysmac cj1w-prm21Sysmac cs1w-prm21

Table of Contents