Table of Contents

Advertisement

Quick Links

Cat. No. W05E-EN-01
WS02-9094G
CX-PROFIBUS Ver. 1.0
OPERATION MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Omron WS02-9094G - V1.0

  • Page 1 Cat. No. W05E-EN-01 WS02-9094G CX-PROFIBUS Ver. 1.0 OPERATION MANUAL...
  • Page 2 SYSMAC WS02-9094G CX-PROFIBUS Ver. 1.0 Operation Manual Produced July 5, 2005...
  • 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, 2005 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.
  • Page 6: Table Of Contents

    C200HW-PRM21 PROFIBUS Master DTM........
  • Page 7 Index..........133 Revision History ........137...
  • Page 8: About This Manual

    This manual describes the CX-Profibus Configurator for the CS1W-PRM21 and CJ1W-PRM21 PROFIBUS DP and PROFIBUS DP-V1 Master Units. This manual describes CX-Profibus and the PROFIBUS Master and slave DTM supplied with it. how to operate it. These software components are required to control and operate the CS1/CJ1W-PRM21 PROFIBUS DP and PROFIBUS DP-V1 Master units.
  • Page 9 !WARNING Failure to read and understand the information provided in this manual may result in per- sonal injury or death, damage to the product, or product failure. Please read each section in its entirety and be sure you understand the information provided in the section and...
  • Page 10: Precautions

    Conformance to EC Directives ........
  • Page 11: Intended Audience

    OFF. Doing so may result in electric shock. !Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the torque specified in the operation manual. Loose screws may result in burning...
  • Page 12: Operating Environment Precautions

    PROGRAM mode). Confirm safety thoroughly in advance before changing the status of any part of memory allocated to I/O Units, Special I/O Units, or CPU Bus Units. Any changes to the data allocated to any Unit may result in unex- pected operation of the loads connected to the Unit.
  • Page 13: Application Precautions

    Units. !Caution Failure to abide by the following precautions could lead to faulty operation or the PLC or the system or could damage the PLC or PLC Units. Always heed these precautions. • Install double safety mechanisms to ensure safety against incorrect sig- nals that may be produced by broken signal lines or momentary power interruptions.
  • Page 14 • Changing the operating mode of the PC. • Force-setting/force-resetting any bit in memory. • Changing the present value of any word or any set value in memory. • After replacing Units, resume operation only after transferring to the new CPU Unit and/or Special I/O Units the contents of the DM Area, HR Area, and other data required for resuming operation.
  • Page 15: Conformance To Ec Directives

    Units or machines. The actual products have been checked for conformity to EMC standards. (See the following note.) Whether the products conform to the standards in the sys- tem used by the customer, however, must be checked by the customer.
  • Page 16: Features And Specifications

    Bus Access Protocol ........
  • Page 17: Overview Of Profibus

    ISO-7498 national standard ISO-7498 (see the following illustration). The model defines 7 layers of communication functions, three of which - layers 1, 2, and 7 - are used in PROFIBUS. • Layer 1, the Physical Layer of this model, defines the physical transmis- sion characteristics.
  • Page 18 In the rest of this manual, only PROFIBUS DP is considered. OSI Layer 1, 2 and User PROFIBUS DP uses layers 1 and 2, and the user interface. Layers 3 to 7 are Interface not defined for PROFIBUS DP. The user interface Layer defines the interface functions for specific application areas, i.e.
  • Page 19: Device Types

    The PROFIBUS DP protocol does not define the for- mat of user data, it is only responsible for the transmission of this data. The format of user data may be defined in so called profiles. Profiles can reduce engineering costs since the meaning of application-related parameters is specified precisely.
  • Page 20: Diagnostic Functions

    The three masters form a logical token ring. When an active device receives the token message, it can perform its master role for a certain period of time. During this time it can communicate with all assigned slave devices in a mas-...
  • Page 21: Protection Mechanisms

    CLEAR state. Monitoring at the Slave Slave devices use a watchdog to detect failures of the master or the bus. If data communication with the master does not occur within the set watchdog time interval, a slave automatically switches its outputs to the fail-safe mode.
  • Page 22: Setting Up A Profibus Dp Network

    • defining the configuration data, i.e. defining the process data, which will be exchanged, • setting up the bus parameters, which define the baud rate and the bus timing parameters. • downloading the configuration setup to the master device.
  • Page 23: Gsd File Technology

    GSD file Technology The older and most commonly used configuration technology is the based on GSD files (General Slave Data file). A GSD file is a text file, containing the characteristic features and configuration options of a device. The device data base file of each device is loaded in the configurator and downloaded to the master device.
  • Page 24 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...
  • Page 25: Cx-Profibus Configurator

    DTMs, i.e. the relation between the Master and slave devices. • Device Catalogue functions: A Device Catalogue containing the installed DTMs is maintained, to which the user can add new DTMs or delete them. Device DTMs can be added to the network from this Catalogue.
  • Page 26 The Generic Slave DTM allows the handling of classic GSD files of up to GSD revision 3 within CX-Profibus. Upon allocating a slave device, for which only a GSD file is available to a Master Unit in the network, this DTM will be invoked. This DTM consists of two parts: •...
  • Page 27 CX-Profibus Configurator Section 1-3 Unit. For details, refer to the C200HW-PRM21 Manual: W349-E2-2. The figure below shows the connection methods, for both types. Serial connection to CS/CJ-series Serial connection to C200H-series PROFIBUS Master Unit PROFIBUS DP Master Unit CX-Profibus CX-Profibus...
  • Page 28: Specifications

    • DTM names can be edited by the user. • Any change to the parameters of a DTM is clearly marked in the tree view, until the project is downloaded to the Master Unit. Device Catalogue functions The Device Catalogue maintains the installed device DTMs.
  • Page 29 The bus parameter setup allows the selection of baud rate and calcula- tion and editing of specific bus parameters. Slave area setup The Slave area setup allows the user to define the I/O Data mapping of the I/O Data from each of the slave devices on to the PLC memory areas.
  • Page 30: Configuration Software

    Exporting to HTML ........
  • Page 31: Installation Requirements

    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. Login Window The Login window provides the selection of the access level as well as the entry of the password belonging to the access level selected.
  • Page 32: Cx-Profibus Main Window

    Therefore, the following window will be displayed on top of the CX-Profibus application window. Select Yes to generate the Device Catalogue for the first time. This action may take several minutes depending on the number of installed DTMs. After updating the Device Catalogue, it will open in the CX-Profibus applica- tion window.
  • Page 33 • The master level. • The slave level. 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.
  • Page 34 CTRL-S Saves the displayed Project to a file. Save As... The Save as command is the same as Save, but the Filename Specifi- cation Window is always displayed. Export Project to HTML Exports Project data in HTML format and launches the browser.
  • Page 35: Device Catalogue

    Both options have toggle function: selecting one of them again will close the Device Catalogue. DTM view Layout The left view allows selection of specific groups of DTMs to be displayed. The right view lists the DTMs, which are installed on the PC and which are avail-...
  • Page 36 CX-Profibus Section 2-2 able for setting up a network. A selection of DTMs is made by selecting a spe- cific group in the left view. Note The list makes no distinction between normal DTMs and GSD files which have been loaded through the Generic Slave Device DTM.
  • Page 37: Updating The Device Catalogue

    2-2-4 Updating the Device Catalogue If a new DTM has been installed, it will not automatically be included in the Device Catalogue. In order to add newly installed DTMs to the list, the Device Catalogue must be updated by selecting the Update button at the bottom of the window.
  • Page 38: Saving And Opening Projects

    Note When opening a Project file, the network tree view is constructed. However, for performance reasons, the DTMs are not directly instantiated. The advan- tage is that the tree view is constructed fast, but opening a DTM from the tree view may take longer, depending on the performance of the PC used.
  • Page 39: Error Logging And Fdt Monitoring

    The purpose of the Error Log view is error reporting as well as troubleshoot- ing. The contents of the window can be copied to the clipboard, to allow it to be pasted into another document or into an E-mail. The errors themselves as well as the sequence of errors may hold additional clues in case of problems.
  • Page 40 The FDT Monitoring view displays the communication between the FDT Con- tainer application (i.e. CX-Profibus) and any of the DTMs. The communication is listed as a sequence of function calls from the CX-Profibus to a DTM and vice versa. Note The FDT Monitoring view is hidden by default. After starting CX-Profibus, the window will be displayed, by selecting the View - FDT Monitoring option from the main menu.
  • Page 41: Access Control And User Management

    2-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 42 CX-Profibus, i.e. the checked levels can start and access CX-Profi- bus. If a check box is not selected, the corresponding level can not be used to start CX-Profibus, and it will not appear in the drop down list in the login win- dow.
  • Page 43: Cs1/Cj1W-Prm21 Profibus Master Dtm

    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. when entering the new password, simply press the return button on your PC.
  • Page 44 The four tabs are discussed below. 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 45 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 2-3 !Caution Save in the context of the buttons means that the changes made by the user are saved in the DTM only, i.e. the changes are not permanently saved in the Project yet. This is indicated by the asterisk next to the DTM in the Network view.
  • Page 46 PROFIBUS Master Unit itself. The Master Setup tab is shown below. Action to PLC Mode The Action to PLC Mode Transition Box defines the behaviour of the Unit on Transition Box the PROFIBUS network, in case a PLC mode change occurs. The check boxes define how the Unit should behave in case the PLC mode is changed from RUN / MONITOR mode to PROGRAM mode, or vice versa.
  • Page 47 Mas- ter Unit. If Auto-CLEAR is enabled, the Unit will automatically transition to the CLEAR state and force all its allocated slave devices to the ‘safe’ state, i.e. all outputs are set to 0, using the Global-Control CLEAR command.
  • Page 48 Section 2-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 49 Forces the user to use the default (optimized) settings. • By User Makes selected fields editable. Note 1. If the By User option is selected and changes have been made, it is still possible to switch between Optimize settings, without the changes being lost.
  • Page 50 The Slave Area tab is shown below. Only the Output Allocation tab is shown. Allocation Areas The Slave Area allocation tabs define how the I/O data of each of the slave devices is mapped on to the PLC memory. The Slave area tab contains two tabs, one for Output Allocation and one for Input Allocation.
  • Page 51 !Caution The default mapping of areas on to the PLC memory is the same default map- ping as used in the CS1/CJ1W-DRM21 Devicenet Master/Slave Unit. Care should be taken to avoid data overlap, if such a Unit is part of the same PLC CPU system as the CS1/CJ1W-PRM21 PROFIBUS Master Unit.
  • Page 52 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. For example, an application may require to store all byte data in one location and all word data in another.
  • Page 53 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. 3. Press the Set button. The Status field will display the status of this service.
  • Page 54: Diagnostics User Interface

    Tool Bar. 2. A communication channel will be opened through CX-Server. The name of the DTM in the Network view, will turn to Italic font, to indicate that the Unit is on-line. 3. Select the Device - Diagnosis option from the main menu, or from the...
  • Page 55 The Master Status tab (shown in the figure above) contains Diagnostics infor- mation regarding the Master Status. Each of the four status boxes, is related to one of the Unit’s status words in the PLC CIO Area Memory (refer to the CS1/CJ1W-PRM21 Operation Manual, W409-E2-@).
  • Page 56 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. Auto-Clear enabled Auto-Clear function has been enabled in the downloaded configuration.
  • Page 57 Unit. No diagnostics reported. Clear Diagnostics Button Pressing the Clear Diagnostics button will clear all new diagnostics data flags in the Unit. If all slaves are in data exchange, pressing the button will result in all LED indicators turning green. Retrieving Slave...
  • Page 58 Interface, for an explanation of the LED indicators. Error History Tab The Error History tab lists the contents of the Error Log stored in the PROFI- BUS Master Unit. The Error History tab is shown below. The Error Log entries are described in section 4-3-2 Error Codes. Refer to this section for details.
  • Page 59 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 2-3 The Online Operations tab is shown below. PROFIBUS These buttons can be used to force the Unit to change its operating mode. Communication Group The four operational modes are • OFFLINE mode. • STOP mode.
  • Page 60: Connecting To The Cs1/Cj1W-Prm21

    CX-Server User Interface as shown below. Configuring CX-Server In order to configure CX-Server for communication with the Unit, perform the following procedure. 1,2,3... 1. Select the type of PLC to which the Unit is attached, from the Device Type drop down selection box.
  • Page 61 CS1/CJ1W-PRM21 PROFIBUS Master DTM Section 2-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 62 Tool Bar. 2. A communication channel will be opened through CX-Server. The name of the DTM in the Network view, will turn to Italic font, to indicate that the Unit is on-line. 3. From the context menu, select the Diagnosis option. The DTM’s Diagnos-...
  • Page 63: C200Hw-Prm21 Profibus Master Dtm

    • Bus Parameters tab • Address Table tab The two tabs are discussed below. 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.
  • Page 64 !Caution Saving the changes in the context of the buttons means that the changes made by the user are saved in the DTM only, i.e. the changes are not perma- nently saved in the Project yet. This is indicated by the asterisk next to the DTM in the Network view.
  • Page 65 • 6000 kBits/s • 12000 kBits/s Slot Time The maximum time a Master Unit must wait for a response to a request message. Min. Station Delay The minimum allowed time for a slave device before it will generate a response to of Responders a request message.
  • Page 66 Calculated Timing The Calculated Timing is the time that the Sender spends at idle after the receipt of the last Bit of a telegram on the Bus, until the first Bit of a new telegram is sent on the Bus.
  • Page 67 1. Modules consisting of one single byte will occupy a full word address. 2. A total of up to 512 Input bytes and 512 Output bytes can be mapped on to the Unit’s internal memory. Therefore, the maximum permissible ad- dress value is 255 (Words).
  • Page 68: Diagnostics User Interface

    Module sequence as selected per Slave DTM. This means that when a new module is added for a particular slave device, the new module will be inserted in the already mapped I/O Modules right after the previous module of the same slave device.
  • Page 69 DTM. Refer to section 2-4-3 Connect- ing to the C200HW-PRM21 on how to assign this driver. After going on line The name of the DTM in the Network view, will turn to Italic font, to indicate that the Unit is on-line.
  • Page 70 PROFIBUS network. The amount of timeout events is dis- played in the Bus Monitoring field. The indicator will be set to ON upon the first occurrence of the timeout. It will not be reset, until power-down. Not Ready The Not Ready notification indicates that the application program has not started or it has stopped the PROFIBUS DP Master.
  • Page 71: Connecting To The C200Hw-Prm21

    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. 1,2,3...
  • Page 72: Generic Slave Device Dtm

    Tool Bar. 2. A communication channel will be opened through the CIF Driver. The name of the DTM in the Network view, will turn to Italic font, to indicate that the Unit is on-line. 3. From the context menu, select the Diagnosis option. The DTM’s Diagnos- tics User Interface will be displayed.
  • Page 73: Configuration User Interface

    DTM, contains three tabs. Above these tabs the Device, the Manufacturer, the GSD file and the Unit’s PROFIBUS Ident number are displayed. Note The three tabs allow the user to set the slave parameters and configure the I/O for a standard PROFIBUS DP slave device. For slave devices which sup- port the extension PROFIBUS DP-V1, to additional tabs will be displayed.
  • Page 74 The Watchdog value is the value used by the slave device to monitor commu- nication from the Master Unit. If no messages are sent to the slave by its Mas- ter within the Watchdog timeout time, the slave device will stop data exchange and switch back to the fail safe mode.
  • Page 75 However, there are also more sophisticated - modular - devices which require parameter settings per I/O module selected. The specific parameters blocks can be selected from the drop-down list at the top of the Parameter tab. In the figure above, the Common parameters are shown. This particular device does not support module parameters, so the parameters shown are the only ones.
  • Page 76 Selecting the Groups The user can check the check boxes for each group the slave device will belong to. The group setting is transferred to the slave device as part of the parameter message. The three tabs discussed above, allow for making all the standard PROFIBUS DP settings for a slave device.
  • Page 77 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 32 in section 2-3-1 Configuration User Interface). When Ignore Auto-CLEAR has been selected, a failure of this particular slave device (i.e.
  • Page 78 Fail-Safe Behaviour The Fail-Safe Behaviour box defines whether or not the PROFIBUS Master Unit will in CLEAR mode send an empty output data message to the slave device or a data message containing zeros. Depending on the PROFIBUS DP slave device, an empty data message, may be required, if the slave device performs user specific functions in CLEAR mode, and during which the out- puts can not be set to zero.
  • Page 79 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 80 4 bytes to 63 bytes Alarms The Alarms box defines the types of alarms the slave device will report, as well as the alarm handling capacity of the master device. The settings in this box are conveyed to the slave device through the Set_Prm message sent by the PROFIBUS DP-V1 Master Unit.
  • Page 81: Diagnostics User Interface

    The Diagnostics User Interface contains two tabs. It also contains an Update button, which will - when pressed - refresh the diagnostics data, by retrieving it from the PROFIBUS Master Unit. A Green LED indicator in the lower left corner will indicate whether or not the device is on-line.
  • Page 82 Station not existent The slave does not respond to any of the request messages sent by the master. If set the diagnostic bits contains the state of the last diagnostic message or the initial value. Slave deactivated When set to ON, it indicates that the slave device has been disabled (i.e.
  • Page 83 The first row of the Extended diagnostics window contains the raw data as received from the slave device. Depending on the GSD file, it may provide text strings for each Extended diagnostics events entry, i.e. if the event occurs and the diagnostics information is received by the DTM, it can display a text string in stead of only the raw bytes.
  • Page 84: Operation

    Configuring the Slave Devices ........
  • Page 85: Introduction

    Introduction This section discusses the operational aspects of using the PROFIBUS Mas- ter Unit and the configuration software. The section has been setup, to follow the general process flow of setting up and configuring a network, downloading the configuration, and operating the PROFIBUS network.
  • Page 86 Network - both master and slave devices - are among the DTMs in the list. 3. If one or more of the DTMs is missing, these DTMs must first be installed and the Device Catalogue updated.
  • Page 87: Adding Devices To The Network

    3-2-1 Adding Devices to the Network If the Device Catalogue is up to date, it can be used to setup the network. Set- ting up a network in CX-Profibus starts with adding single device DTMs to the Network view. First the CS1/CJ1W-PRM21 Master DTM must be added to the main branch of the project Network.
  • Page 88 Using the Add Device Button 1,2,3... 1. Select the top of the network to which the DTM must be added, i.e. select MyNetwork in the Network view. 2. Open the device Catalogue: Either select the View - Device Catalogue menu option, or press the button in the Tool Bar.
  • Page 89: Changing Device And Dtm Addresses

    As of Unit version 2.0, the CS1/CJ1W-PRM21 PROFIBUS Master units sup- port the Set_Slave_Add PROFIBUS service, which can be initiated from the Master DTM. This service can be sent to any slave on the network, even if it is not allocated to the Master DTM.
  • Page 90 1. Open the Configuration User Interface for the slave device, by selecting it in the Network view, and double-clicking the left mouse button. 2. Select the Station Address field at the top of the Configuration tab (see fig- ure below) and change the value to 10.
  • Page 91 Setting up a network Section 3-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 92: Configuring The Slave Devices

    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. Press the Set button. The Status field will display the status of this service After changing the slave DTM address, the new address will also be shown in the Network view.
  • Page 93 1. When pressing the Insert button, the selected I/O module will be inserted above the selected module in the Configured Modules list. 2. The selected I/O modules are sent to the slave device, in the same se- quence as selected in the user interface. Depending on the device, the se- quence may be checked by the slave device.
  • Page 94 Configuring the Slave Devices Section 3-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 95: Setting Parameters

    • 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 96: Selecting The Group Assignment

    In the figure above, the parameter captions are listed in the left column and the options can be set in the right column. In order to change settings, double- click the required parameter row with the left mouse button. Depending on the parameter type, either a drop-down lists will become available for selection or a value can be entered.
  • Page 97 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 98: Configuring The Master

    From the context menu, select Configuration. The DTM Configuration User Interface is shown below. Master Address In the first tab, the device address and the unit number must be set. The device address can be set in the range from 0 to 125. Unit Number The setting of the unit number is required to setup communication with the Unit through CX-Server.
  • Page 99 Configuring the Master Section 3-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.
  • Page 100: Setting The Bus Parameters

    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. If enabled, the user does not need to handle the exact mapping of I/O data on to the PLC memory areas.
  • Page 101: Defining And Changing I/O Mapping

    CJ1W-PRT21, a CPM1A-PRT21, and an F150- PRT Vision system. By default all Output data is mapped on to Output Area 1, and all Input data is mapped on to Input Area 1. Each of these Areas can be mapped on to PLC memory independently of each other.
  • Page 102: Configuring Cx-Server

    1. Open the CS1/CJ1W-PRM21 Master DTM Configuration Interface, Device Setup tab. 2. Make sure that the Unit Number has been set to the unit number set on the PROFIBUS Master Unit, through the rotary switch on the front. 3. Select the Configure button to start CX-Server.
  • Page 103 In order to verify that the communication has been setup correctly, press the Test button in the Device Setup tab of the DTM Configuration User Inter- face. This will initiate a FINS command to read the Unit’s profile, i.e. the name of the Unit and the firmware version.
  • Page 104: Downloading The Configuration

    DTM. The CS1/CJ1W-PRM21 Master DTM will switch the Master Unit to OFFLINE, commence the download, and after successful download, issue a command to the Master Unit to store the parameter sets in the Unit. A window is displayed to show the progress of the download.
  • Page 105: I/O Communication Characteristics

    When setting up the network, i.e. selecting the slave devices and I/O modules Algorithm per slave, all input modules will - by default - be allocated to Input area 1, all output modules will be allocated to Output area 1. The following rules apply when allocating the I/O modules to the areas: •...
  • Page 106 !Caution The default mapping of areas on to the PLC memory is the same default map- ping as used in the CS1/CJ1W-DRM21 Devicenet Master/Slave Unit. Care should be taken to avoid data overlap, if such a Unit is part of the same PLC CPU system as the CS1/CJ1W-PRM21 PROFIBUS Master Unit.
  • Page 107 Allocation and one for Input Allocation. The following points apply to each of these tabs. 3. After setting up the initial I/O configuration, all I/O modules will be shown in the overall list in the upper half of the Slave Area tab. This is a pick list...
  • Page 108 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. 4. In order to move an I/O module from one area to another, select the mod- ule in the pick list.
  • Page 109 I/O modules, will cause a complete re-map of all exist- ing modules if the total I/O does not fit within the space it is already occu- pying. The modules are re-mapped to the next available location in the area, leaving behind a gap in the existing I/O mapping.
  • Page 110 I/O mapping procedure. This removal is accomplished by compressing the I/O modules in a particular area. Compressing the I/O Compressing re-allocates all I/O modules in an area as close to the start of Mapping the area as possible. Compressing an area does not change the sequence of the slave devices and/or the I/O modules.
  • Page 111 The Input/Output area will occupy the PLC memory area, from this start address to ascending memory locations. 3. The total size per Input/Output area can be found for each area, next to the PLC memory area selection box (see for example, the figure above, in which Output area 1 occupies 6 words).
  • Page 112: Supported Data Types

    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 113: Operating The Network

    To achieve this perform the following sequence. 1,2,3... 1. To go on line, select the DTM in the Network view, and perform one of the following actions. • Select the Device - Go Online option from the main menu, or the DTM context menu, or •...
  • Page 114: Changing Profibus Mode Of The Master Unit

    In order to change the network to OPERATE mode, i.e. start I/O data exchange, press the OPERATE button. The OPERATE status of the Master Unit can be retrieved from the Monitor - Master status tab in the same user interface.
  • Page 115: Transmitting Global-Control Commands

    User initiated Global-Control commands can be transmitted to either all slave devices allocated to a Master Unit, or to one or more of up to eight groups of slave devices. The group addresses are defined by up to eight bits in a group address byte, which is part of the Global-Control command.
  • Page 116 Operating the Network Section 3-6 groups at the same time, or to no specific group at all. The group assignment is sent to the slave devices as part of the parameter message. To define the group assignment of a slave device, through the Generic Slave DTM, refer to section 3-3-3 Selecting the Group Assignment.
  • Page 117 Sending a Global-Control - Sync command to a slave device has the following effect • The slave device will update its physical outputs only once with the last received PROFIBUS output data, despite new output data being received from the PROFIBUS Master Unit.
  • Page 118: Using Auto-Clear

    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. The purpose of this, is to force the PROFIBUS network to a safe state.
  • Page 119: Monitoring The Network

    To open the CS1/CJ1W-PRM21 Master DTM Diagnosis - Monitor User Inter- face, perform the following steps. 1,2,3... 1. Make sure the Master DTM is online with the Master Unit. To go on line, select the DTM in the Network view, and perform one of the following ac- tions.
  • Page 120 The refresh cycle will be approximately 0.5 to 1 second, depending on the PC System. The Manual button will be disabled • Manual update Press the Manual button in the upper right corner of the Monitor tab, to force a refresh of the window contents. Reading the Master Unit’s The Master status sub-tab displays the status of the Master Unit itself.
  • Page 121 Monitoring the Network Section 3-7 Example The figure below shows an example of the Master Status tab, in the case of a fully functional network, i.e. there are no errors and all slave devices are exchanging I/O data with the Master Unit.
  • Page 122 An example is shown in the figure below. For the extended, non-standard diagnostics see section 3-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. The colours are listed in the table below.
  • Page 123 LED indicators representing a status are coloured green, LED indicators representing a potential problem are coloured red. • The colour of the LED indicator for the specific slave device in the Slave Status Flags box will change colour, if no new diagnostics is available, i.e.
  • Page 124: Monitoring 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 125: Using The Error Log

    16 of which can be logged in non-volatile memory. Reading New Errors from If a new error event is logged in the Error Log of the Unit, a bit flag can be the Error Log evaluated by the user, through the CS1/CJ1W-PRM21 Master DTM Diagnosis User Interface.
  • Page 126 Manual button to retrieve the Error Log contents from the Unit. As an example, the contents of the Error Log as it is displayed is shown in the figure below. In this case a Hardware Error has been detected on the PROFI- BUS network.
  • Page 127 Note Clearing the Error Log is not possible, if an error, which was just added to the Error Log is still active. The cause of the active error has to be removed first before the Error Log can be cleared.
  • Page 128: Troubleshooting And Maintenance

    Troubleshooting the Network ........
  • Page 129: 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. For troubleshoot- ing the Master units, refer to the CS1/CJ1W-PRM21 PROFIBUS Master Units Operation Manual (W409-E2-@).
  • Page 130: Troubleshooting The Network

    • The total number of slave devices assigned, which must be at least one slave device. • The total number of I/O modules per slave, which must be at least one I/O module per slave. • The maximum size of the I/O data size, which must not exceed 7168 words.
  • Page 131: Troubleshooting The Network Using Cx-Profibus

    Monitor - Master Status tab of the Master DTM Diagnosis User Interface. The LED indicators shown in the (example) figure above are all related to bit flags in the Unit Status Word, the Master Status Word 1, the Master Status Word 2, and the Slave Status Word (refer to the CS1/CJ1W-PRM21 Opera- tion Manual, W409-E2-@).
  • Page 132 • A faulty parameters has been downloaded to the Unit. To correct this: • Check the parameter settings in CX-Profibus and correct them if necessary. After correction, perform a download of the new parameters to the Unit. Disturbed bus Error: ON An error has occurred in the PROFIBUS interface, with distorted messages received by the PROFIBUS Master Unit.
  • Page 133 • Lost token messages (the token is not returned). To correct this: • Check the master devices on the network, and make sure they are all working cor- rectly. • After correction, switch the Unit to CLEAR / OPERATE mode again.
  • Page 134 Description / Correction Station non-existent The slave device does not respond to any of the request messages sent by the Master Unit. • Make sure that the slave device is powered correctly. • Check the wiring and make sure that the slave device and the Master Unit are connected.
  • Page 135 • Remove the slave device from either one of the two Master Units on the network. • Switch off the other Master Unit. Parameter request used The slave device is not in I/O data exchange with the Master Unit and has requested new parameters.
  • Page 136: Troubleshooting I/O Communication

    Troubleshooting I/O Communication This section deals with troubleshooting the I/O communication on the network from a behaviour point of view. The column on the left describes the general perceived problem to the user. The columns on the right list the possible causes and their remedies.
  • Page 137 Master Unit. • Verify that the total Target Rotation Time for all masters on the network is set to the • The baud rate settings of both masters is sum of all individual masters.
  • Page 138 Determine the mode of the Unit: Check the OFFLINE or STOP mode. Master Status 1 Word (CIO Word n+5, bit 00 to bit 03, see Note). If Unit is in OFFLINE or • The BST LED indicator is OFF STOP mode: •...
  • Page 139: Troubleshooting Using The Error Log

    • Errors in data transfers • Error in the CPU Unit Error Log Records Each error is recorded as one record in an error log table. Each record con- tains: • A main error code • A detailed error code •...
  • Page 140: Error Codes

    BUS Master Unit. 06: Error log. Note 1. The time information from the CPU Unit is used in the PROFIBUS Master Unit. 2. An error record is not created in non-volatile memory when the error con- cerns an Error Log Write error.
  • Page 142: Configurator Error And Warning Messages

    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. The user is given a chance to abort the function if the impact is undesirable.
  • Page 143 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 144 PLC. memory areas available in the PLC PLC.Download aborted and retry download. Connected unit is busy. Download Unit is busy with parameter storage. Retry download when parameter aborted storage has finished. Slave configuration too big The total number of configured Reduce the configuration.
  • Page 145 DTM that can be used with the Master. connected device [xxxx]. Error Messages - Communication The table below lists the Error messages related to CX-Server communication between the PROFIBUS Master Unit DTM and the PLC. Number Message Description...
  • Page 146 Server is installed on the Personal Computer. Refer to the Master Manual for installation details. Error Messages - System The table below lists the Error messages related to the System on which the DTM is installed. Number Message Description Correction Connected device can not be con- Incorrect firmware type.
  • Page 147 Appendix C200HW-PRM21 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...
  • Page 148 Index I/O Mapping Manual refresh Master parameters About Master setup tab Manual Master Status Adding Devices to the Network Monitoring Auto addressing Reading the Master status See I/O data, Mapping Set device station address Auto-CLEAR Slave DTM Address assignment Behaviour...
  • Page 149 Auto-Clear behavior Diagnostic functions Configuration processing Diagnostics Diagnostics Update Delay Channel Related DPV1 enable Device Related Error on Cyclic Data Exchange Module Related Fail-safe behavior Diagnostics Update Delay Max. Alarm PDU length Downloading the configuration Max. channel data length Standard diagnostics...
  • Page 150 About Operational modes Revision history User access Master devices PROFIBUS DP, Decentralized Periphery See PROFIBUS, Master PROFIBUS DP-V1 PROFIBUS FMS, Fieldbus Message Specification Master DTM PROFIBUS PA, Process Automation Configuration See C200HW-PRM21 DTM See CS1/CJ1W-PRM21 DTM Medium Access Control RS-485...
  • Page 151 Index Network CS1/CJ1W-PRM21 DTM CX-Profibus, using I/O communication Slave devices Overview PROFIBUS network Unit number See also CS1/CJ1W-PRM21 DTM Warning messages Wiring Cable length...
  • Page 152 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W05E-EN-01 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.

This manual is also suitable for:

Sysmac ws02-9094gCx-profibus 1.0

Table of Contents