Page 1
ZX-T Series Machine Automation Controller CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit CJ1W-PRM21 PROFIBUS Master Unit W509-E2-01...
Introduction Introduction Thank you for purchasing a CJ-series CJ1W-PRM21 PROFIBUS Master Unit. This manual contains information that is necessary to use the CJ-series CJ1W-PRM21 PROFIBUS Master Unit for an NJ-series CPU Unit. Please read this manual and make sure you understand the functionality and performance of the NJ-series CPU Unit before you attempt to use it in a control sys- tem.
Introduction Relevant Manuals There are three manuals that provide basic information on the NJ-series CPU Units: the NJ-series CPU Unit Hardware User’s Manual, the NJ-series CPU Unit Software User’s Manual and the NJ-series Instructions Reference Manual. Most operations are performed from the Sysmac Studio Automation Software. Refer to the Sysmac Stu- dio Version 1 Operation Manual (Cat.
Introduction Manual Configuration NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500) Section Description Section 1 This section provides an introduction to the NJ-series Controllers and their features, Introduction and gives the NJ-series Controller specifications. Section 2 This section describes the system configuration used for NJ-series Controllers. System Configuration Section 3 This section describes the parts and functions of the configuration devices in the NJ-...
Page 6
Introduction Sysmac Studio Version 1 Operation Manual (Cat. No. W504) Section Description Section 1 This section provides an overview and lists the specifications of the Sysmac Studio Introduction and describes its features and components. Section 2 This section describes how to install and uninstall the Sysmac Studio. Installation and Uninstallation Section 3 This section describes the basic concepts for designing an NJ-series System with the...
Page 7
Introduction CJ-series PROFIBUS-DP Slave Unit Operation Manual for NJ-series CPU Unit (W510) Section Description This section provides a brief description of PROFIBUS-DP. It also addresses the Section 1 overall specification and the communication performance of the PROFIBUS-DP Features and System Configuration CJ1W-PRT21 Slave Unit.
Page 8
Introduction SmartSlice GRT1-Series Slice I/O Units Operation Manual (Cat. No. W455) Section Description Section 1 This section describes the features of GRT1-series Slice I/O Units and lists the avail- Available Units and Features able Units. Section 2 This section describes the specifications and functions that are shared by all of the Shared Specifications and Func- Slice I/O Units.
Page 9
Introduction CS/CJ-Series PROFIBUS Master Units Operation Manual (Cat. No. W409) Section Description This section provides an introductory overview of PROFIBUS, its functions and how Section 1 to setup and configure a network. It also addresses the PROFIBUS Master Units and Features and Specifications the configurator, their features and specifications.
Introduction Manual Structure Page Structure The following page structure is used in this manual. Level 1 heading 4 Installation and Wiring Level 2 heading Mounting Units Level 3 heading Level 2 heading Gives the current Level 3 heading headings. 4-3-1 Connecting Controller Components The Units that make up an NJ-series Controller can be connected simply by pressing the Units together and locking the sliders by moving them toward the back of the Units.
Page 11
Introduction Precaution on Terminology In this manual, “download” refers to transferring data from the Sysmac Studio to the physical Controller and “upload” refers to transferring data from the physical Controller to the Sysmac Studio. In this manual, the CJ1W-PRM21 Unit may be referred to as “PROFIBUS Master Unit”, “Master Unit”, or “PRM21 Unit”.
Introduction Sections in this Manual Features and System Configuration Nomenclature and Installation Configuration Software Data Exchange with the CPU Unit Operation Message Communications Troubleshooting and Maintenance Appendices Index CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Page 13
Introduction CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
CONTENTS Introduction ......................1 Relevant Manuals ..................... 2 Manual Configuration ....................3 Manual Structure ...................... 8 Sections in this Manual ..................10 CONTENTS ......................12 Read and Understand this Manual ............... 14 Safety Precautions ....................17 Precautions for Correct Use .................. 28 Regulations and Standards ...................
Page 15
Section 2 Nomenclature and Installation Unit Components ........................2-2 2-1-1 Nomenclature ..........................2-2 2-1-2 Indicators ........................... 2-2 2-1-3 Switch Settings .......................... 2-3 2-1-4 PROFIBUS Connector ....................... 2-4 Installing the PROFIBUS Master Unit ................... 2-6 2-2-1 System Configuration Precautions .................... 2-6 2-2-2 Mounting ............................
Page 16
Section 5 Operation Introduction ..........................5-3 5-2-1 Adding Devices to the Network ....................5-6 5-2-2 Changing Device and DTM Addresses ..................5-8 Setting Up a Network ......................5-4 5-2-1 Adding Devices to the Network ....................5-6 5-2-2 Changing Device and DTM Addresses ..................5-8 Configuring the Slave Devices ....................
Page 17
Replacing Faulty Units ......................7-33 7-7-4 Addition/Replacement of Units on the PROFIBUS Network ............ 7-33 Appendices A-1 Differences in Available Functions Depending on the CPU Unit (NJ/CJ series) to be Connected ..........................A-2 A-1-1 Differences in Available Functions ..................... A-2 A-1-2 Differences in Accessing from User Program ................
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 19
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 20
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.
Safety Precautions Definition of Precautionary Information The following notation is used in this manual to provide precautions required to ensure safe usage of an NJ-series Controller. The safety precautions that are provided are extremely important to safety. Always read and heed the information provided in all safety precautions. The following notation is used.
Page 22
Symbols The circle and slash symbol indicates operations that you must not do. The specific operation is shown in the circle and explained in text. This example indicates prohibiting disassembly. The triangle symbol indicates precautions (including warnings). The specific operation is shown in the triangle and explained in text. This example indicates a precaution for electric shock.
Page 23
WARNING During Power Supply Do not touch any of the terminals or terminal blocks while the power is being supplied. Doing so may result in electric shock. Do not attempt to take any Unit apart. In particular, high-voltage parts are present in the Power Supply Unit while power is supplied or immediately after power is turned OFF.
Page 24
WARNING Fail-safe Measures Unintended outputs may occur when an error occurs in variable memory or in memory used for CJ-series Units. As a countermeasure for such prob- lems, external safety measures must be provided to ensure safe operation of the system. Provide measures in the communications system and user program to ensure safety in the overall system even if errors or malfunctions occur in data link communications or remote I/O communications.
Page 25
Caution Application Do not touch any Unit when power is being supplied or immediately after the power supply is turned OFF. Doing so may result in burn injury. Wiring Be sure that all terminal screws and cable connector screws are tightened to the torque specified in the relevant manuals.
Page 26
Precautions for Safe Use Disassembly and Dropping • Do not attempt to disassemble, repair, or modify any Units. Doing so may result in malfunction or fire. • Do not drop any Unit or subject it to abnormal vibration or shock. Doing so may result in Unit malfunc- tion or burning.
Page 27
• Do not apply voltages or connect loads to the Output Units or slaves in excess of the maximum rat- ings. • Surge current occurs when the power supply is turned ON. When selecting fuses or breakers for external circuits, consider the above precaution and allow sufficient margin in shut-off performance. Refer to the relevant manuals for surge current specifications.
Page 28
The Power Supply Unit may continue to supply power to the rest of the Controller for a few seconds after the power supply turns OFF. The PWR indicator is lit during this time. Confirm that the PWR indicator is not lit before you perform any of the above. Operation •...
Page 29
• You cannot upload or download information for forced refreshing with the Sysmac Studio. After downloading data that contains forced refreshing, change to RUN mode and then use the Sys- mac Studio to perform the operation for forced refreshing. Depending on the difference in the forced status, the control system may operate unexpectedly. •...
Page 30
• EtherCAT communications are not always established immediately after the power supply is turned ON. Use the system-defined variables in the user program to confirm that communications are estab- lished before attempting control operations. • If frames sent to EtherCAT slaves are lost due to noise or other causes, slave I/O data is not commu- nicated, and the intended operation is sometimes not achieved.
Page 31
Unit Replacement • We recommend replacing the Battery with the power turned OFF to prevent the CPU Unit’s sensitive internal components from being damaged by static electricity and to prevent malfunctions. The Bat- tery can be replaced without turning OFF the power supply. To do so, always touch a grounded piece of metal to discharge static electricity from your body before you start the procedure.
Precautions for Correct Use Storage, Mounting, and Wiring • Do not operate or store the Controller in the following locations. Operation may stop or malfunctions may occur. • Locations subject to direct sunlight • Locations subject to temperatures or humidity outside the range specified in the specifications •...
Page 33
Error Processing • In applications that use the results of instructions that read the error status, consider the affect on the system when errors are detected and program error processing accordingly. For example, even the detection of a minor error, such as Battery replacement during operation, can affect the system depending on how the user program is written.
Page 34
SD Memory Cards • Insert the SD Memory Card all the way. • Do not turn OFF the power supply to the Controller during SD Memory Card access. The files may be corrupted. If there is a corrupted file in the SD Memory Card, the file is automatically deleted by the restoration function when the power supply is turned ON.
Concepts EMC Directive OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine. The actual products have been checked for conformity to EMC standards.* Whether the products conform to the standards in the system used by the customer, however, must be checked by the customer.
Page 36
The NJ-series Controllers comply with the following shipbuilding standards. Applicability to the ship- building standards is based on certain usage conditions. It may not be possible to use the product in some locations. Contact your OMRON representative before attempting to use a Controller on a ship.
□ DDMYY: Lot number, : For use by OMRON, xxxx: Serial number “M” gives the month (1 to 9: January to September, X: October, Y: November, Z: December) MAC address Gives the MAC address of the built-in port on the Unit.
Page 38
Right-click any open space in the Unit Editor and select Production Information. The Production Information Dialog Box is displayed. Simple Display Detailed Display In this example, “Ver.1.0” is displayed next to the unit model. The following items are displayed. CPU Unit CJ-series Units Unit model Unit model...
BUS Master Unit Opera- CS1/CJ1W-PRM21 PRO- details of the CS1W-PRM21 and CJ1W PRM21 tion Manual FIBUS Master Units. PROFIBUS DP and PROFIBUS DP-V1 Master Units when used in CS/CJ series systems. CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Revision History A manual revision code appears as a suffix to the catalog number on the front and back covers of the manual. W509-E2-01 Cat. No. Revision code Revision code Date Revised content September 2011 Original production CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Features and System Configuration This section provides an introductory overview of PROFIBUS, its functions and how to setup and configure a network. It also addresses the PROFIBUS Master Unit and the configurator, their features and specifications. 1-1 Overview of PROFIBUS ......... 1-2 1-1-1 Introduction .
1 Features and System Configuration 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 trans- parency of operation.
1 Features and System Configuration 1-1-2 PROFIBUS Communication Protocol OSI Reference Model ISO-7498 In general, the PROFIBUS communication protocol is based on the Open System Interconnection (OSI) reference model in accordance with the international standard ISO-7498 (see the following illustration).
1 Features and System Configuration RS-485 Transmission Speed Transmission speeds between 9.6 kbps and 12 Mbps can be selected as shown in the table below. One unique transmission speed must selected for all devices on the bus when the system is com- missioned.
1 Features and System Configuration Device Profile To enable the exchange of devices from different vendors, the user data has to have the same for- mat. The PROFIBUS DP protocol does not define the format of user data, it is only responsible for the transmission of this data.
1 Features and System Configuration Token Passing DPM1 DPM2 DPM1 Active stations Master devices Polling PROFIBUS Passive stations Slave devices 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 master- slave communication relationship, and a DPM2 master can take the initiative to communicate with DPM1 master devices in a master-master communication relation- ship.
1 Features and System Configuration 1-1-6 Protection Mechanisms Monitoring Time PROFIBUS DP provides effective protection functions against parameterization errors or failure of the transmission equipment. Time monitoring is provided both at the master and the slave devices. The monitoring interval is specified when the system is configured. ...
1 Features and System Configuration Auto-Clear and Fail-safe State If an error occurs during the data exchange phase of the master, the ‘Auto-CLEAR’ function deter- mines the subsequent actions. If this function has been disabled, the master remains in the OPER- ATE mode.
Page 49
CX-ConfiguratorFDT CX-ConfiguratorFDT is an FDT container application. Together with this container application, OMRON provides four DTMs: • A DTM to facilitate configuration and operation of the CJ1W-PRM21 PROFIBUS DP-V1 Mas- ter Unit (As of Unit version 2.0).
1 Features and System Configuration 1-1-10 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.
1 Features and System Configuration PROFIBUS Master Unit 1-2-1 PROFIBUS Master Unit Features PROFIBUS Master Unit The PROFIBUS Master Unit is a CPU Bus Unit, which can be installed on an NJ-series Controller system. CPU Bus Unit A total of up to 16 CPU Bus Units can be mounted on the CPU Rack or an Expansion Rack. The total of 16 must include all PROFIBUS Master Units and all other CPU Bus Units.
• PROFIBUS DP-V1 (Class 2) Master Note Only latest unit version 3.0 is fully supported with NJ-series Controllers. Please consult with your OMRON representative if unit version 1.0 or 2.0 is used. 1-12 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Page 53
1 Features and System Configuration General Specifications General specifications of the CJ-series PROFIBUS Master Units conform to the general specifica- tions for the NJ-series Controller Units. Item Specification Installation Mounting position • CPU Rack, • Expansion Rack Unit classification CPU Bus Unit Applicable unit numbers 0 to F (Hex)
Page 54
• MSAC2 - Abort Explicit Messages The EXPLICIT MESSAGE SEND (2801) command can be used 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 55
1 Features and System Configuration Protocol Specification Item Specification PROFIBUS Applicable standards EN50170, Volume 2 Interface Protocol type supported PROFIBUS DP, PROFIBUS DP-V1 PROFIBUS Unit types PROFIBUS DP-V1 Class 1 and Class 2 Master PROFIBUS Media type RS-485, galvanically isolated from the CPU PROFIBUS Connector 9-pin sub-D female connector (#4/40 UNC thread) Termination according to EN50170 provided by the cable connector...
Page 56
1 Features and System Configuration Item Specification I/O Data Number of I/O module definitions 4000 max. over all configured slave devices Number of I/O data supported by Master Up to 244 bytes input and 244 bytes output max. per slave device (defined by slave device) Total sum of all I/O Data must not exceed 7168 words Number of diagnostics data supported...
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-ConfiguratorFDT Configuration program, which runs under Microsoft Windows™ NT 4.0, Windows™ 2000, Windows™ XP or Windows™ 7.
Page 58
1 Features and System Configuration • Communication channels to facilitate data transfer through PROFIBUS DP-V1 MSAC1 acy- clic message transfer between a PROFIBUS DP-V1 slave device DTM and the physical slave device. • Communication channels to facilitate data transfer through PROFIBUS DP-V1 Class 2 acyclic message transfer between a PROFIBUS DP-V1 slave device DTM and the physical slave device.
1 Features and System Configuration 1-3-2 Specifications Functional Specifications Item Specification Operating Hardware platform • Personal computer: IBM PC/AT or compatible environment • Processor: Pentium 700 MHz or higher • Memory: 256 Mbytes • Hard disk: A minimum of 256 Mbytes •...
Page 60
1 Features and System Configuration Item Specification CX-Configu- General Project functions File handling: CX-ConfiguratorFDT supports overall handling of ratorFDT project files as well as network data. • New: Start a new project. • Open: Open an existing project file. • Save (As): Save a project file. •...
Page 61
1 Features and System Configuration Item Specification CJ1W- Device setup Device setup allows the user to: PRM21 DTM • 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. •...
1 Features and System Configuration Basic Operating Procedure 1-4-1 Overview The following diagram provides an overview of the installation procedures. For experienced installation engineers, this may provide sufficient information. For others, cross-references are made to various sections of this manual where more explicit information is given. Mount the PROFIBUS Master Unit to the NJ-series controller (See 2-2-2 Mounting) Installing the CJ1W- PRM21 Unit...
1 Features and System Configuration 1-4-2 Preparations for Communications Mount the Master Unit on the NJ-series controller unit (refer to 2-2 Installing the PROFIBUS Master Unit). • Treat the Unit as a CPU Bus Unit. • It can be mounted to a CPU Rack or Expansion Rack. •...
Page 64
1 Features and System Configuration 1-24 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Page 65
Nomenclature and Installation This section describes the nomenclature and installation of the PROFIBUS Master Unit. It contains the procedures for installing the CJ1W-PRM21 PROFIBUS Master Unit on the NJ-series controller and setting up the PROFIBUS network. 2-1 Unit Components ..........2-2 2-1-1 Nomenclature .
2 Nomenclature and Installation Unit Components 2-1-1 Nomenclature The illustration below shows the Status indicators, the Unit number selector switch and a 9-pin female sub-D connector on the front side of the CJ1W-PRM21 Unit. Each of these components are explained in the following sections.
2 Nomenclature and Installation Indicator Specifications Indicator Color Status Meaning Green Not lit • Startup test failed, Unit not operational. • Operation stopped, due to a fatal error. Initialization successful, Unit is in normal operation. Not lit Unit is in normal operation. (PROFIBUS Master Unit •...
2 Nomenclature and Installation Turn ON the power again. Note If the unit number is being set for the first time or changed, then an I/O table must be created for the CPU. Precautions for Correct Use Precautions for Correct Use •...
Page 69
2 Nomenclature and Installation Pin No. Signal Description RxD/TxD-N Receive/Transmit data - minus (A wire) The signal RTS (TTL signal) is for the direction control of repeaters, which do not have a self-controlling capability. The signals DGND and VP are used to power the bus terminator located in the cable connector. Note 1 The orientation of the sub-D connector allows the use of PROFIBUS connectors with a 90°...
2 Nomenclature and Installation Installing the PROFIBUS Master Unit 2-2-1 System Configuration Precautions You can mount up to 16 Units on the CPU Rack or an Expansion Rack per CPU (but no more than 10 Units on one Rack). 2-2-2 Mounting Carefully align the connectors to mount the PROFIBUS Master Unit.
2 Nomenclature and Installation Precautions for Safe Use If the sliders are not securely locked, the PROFIBUS Master Unit may not operate sufficiently. To dismount the Unit, move the sliders to the “Release” direction. 2-2-3 Handling Precautions • Always turn OFF the power supply to the Controller before you mount or dismount a Unit or con- nect or disconnect cables.
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 73
2 Nomenclature and Installation Tree Topology The use of repeaters allows the extension of three or more Linear Bus segments into a Tree topol- ogy. In a tree topology more than three repeaters are allowed, provided that there are no more than three repeaters between any two devices in the network.
2 Nomenclature and Installation Baud Rate Distance/segment (kbps) 1200 19.2 1200 45.45 1200 93.75 1200 187.5 1000 1500 3000 6000 12000 Note 1 If network extension beyond the range of the advised cable length is required, the use of fibre optic cable to cross the larger distance should be considered. 2 The recommended minimum cable length is 1 m.
2 Nomenclature and Installation 2-3-3 PROFIBUS Cable Connector Bus Cable Connector The plug connector to be used on the CJ-series PROFIBUS Master Unit is a 9-pin male sub-D type, preferably encased in metal and having a facility to connect the shield of the cable to the case or to pin 1. The cable should be connected to the receive / transmit lines, pin 3 (B-line) and pin 8 (A-line).
2 Nomenclature and Installation 2-3-4 Shielding Precautions Bus Cable Connector To ensure electro-magnetic compatibility (EMC), the shield of the cable should be connected to the metal case of the plug connector. If the Unit is installed in a control cabinet, the bus cable shield should be brought into physical contact with a grounding rail using a grounding clamp or similar device.
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-Configura- torFDT, as well as the required DTMs for this purpose. It can be used to: •...
Page 78
2 Nomenclature and Installation 2-14 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Configuration Software This section 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 5 Operation. 3-1 CX-ConfiguratorFDT ......... . . 3-2 3-1-1 Starting CX-ConfiguratorFDT .
3-1-1 Starting CX-ConfiguratorFDT Select Program, OMRON, and CX-ConfiguratorFDT from the Start Menu if the default program folder name is used. The first time CX-ConfiguratorFDT is started, the Device Catalog will still be empty. Therefore, the following dialog will be displayed on top of the CX-ConfiguratorFDT application window.
Page 81
3 Configuration Software The main components in this window are: • The Network view • The DTM / Catalogue view • The Error Log view (not shown in the figure above) • The FDT Monitoring view (not shown in the figure above) •...
Page 82
3 Configuration Software Main Menu The main menu of CX-ConfiguratorFDT provides all the necessary functionality to handle a com- plete project. The table below lists the main menu and their sub menu items. Menu Command Short Key Description File CTRL-N Creates a new Project.
3 Configuration Software Tool Bar Icon Description Equivalent menu command Creates a new project. File-New Opens an existing project file. File-Open Saves the displayed project to a file. File-Save Connects the configurator to the Device-Go Online selected devices. Downloads the parameters to the Device-Download Parameters device.
Page 84
3 Configuration Software Device name File date DTM categories Version number Vendor name Install a new GSD file Update Device Catalogue Add selected device to the network Invoking the Device Catalogue The Device Catalogue window is opened by either selecting the icon in the CX-Configura- torFDT toolbar or by selecting the View - Device Catalogue menu option.
Page 85
3 Configuration Software 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 available for setting up a network. A selection of DTMs is made by selecting a specific group in the left view.
3 Configuration Software 3-1-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.
3 Configuration Software 3-1-6 Saving and Opening Projects A project, containing various DTMs can be saved and opened to and from hard disk. Saving a project file is accomplished by selecting the File - Save or File - Save As... menu option. This will display the standard Windows file selection window, allowing the user to enter a file name.
3 Configuration Software 3-1-8 Error Logging and FDT Monitoring CX-ConfiguratorFDT provides two logging windows at the bottom of the application window. Both win- dows are used for displaying events. Error Log View The Error Log view displays error messages reported by the DTMs and by the CX-ConfiguratorFDT container application.
3 Configuration Software The format used in the FDT Monitoring view is Time: <Time> Date: <Date> - <Information Type> <message> The message may include the name of the DTM involved in the communication. The figure below shows an example of an FDT Monitoring message sequence. This example sequence is generated when opening a CJ1W-PRM21 PROFIBUS Master Unit DTM.
Page 90
3 Configuration Software Function Observer Operator Maintenance Planning Engineer Administrator Open Allowed Allowed Allowed Allowed Allowed Master settings View only View only Edit Edit Edit Communication settings View only View only Edit Edit Edit Go online Allowed Allowed Allowed Allowed Allowed Monitoring Allowed...
Page 91
3 Configuration Software Changing Access Rights By selecting the check box next to a level, the administrator can grant access rights to CX-Configu- ratorFDT, i.e. the checked levels can start and access CX-ConfiguratorFDT. If a check box is not selected, the corresponding level can not be used to start CX-ConfiguratorFDT, and it will not appear in the drop down list in the login window.
Page 92
3 Configuration Software 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. When starting CX-ConfiguratorFDT, the login window can be passed by pressing the return button on your PC, without entering a password.
3 Configuration Software CJ1W-PRM21 PROFIBUS Master 3-2-1 Configuration User Interface Opening the Configuration DTM The configuration DTM is opened by • Selecting the Master DTM in the Network view, and double-clicking the left mouse button. • Selecting the Master DTM in the Network view, and right-clicking the mouse. From the con- text menu, select Configuration.
Page 94
3 Configuration Software Configuration Interface Buttons The Master DTM Configuration User Interface contains four general buttons. They are listed in the table below, together with the action taken when pressing them. Button Action Evaluate, and save the changes made (if any) and close the user interface. If any invalid settings have been made, a warning message will be dis- played, allowing cancellation of the command.
Page 95
The Device Information Box contains information obtained from the PROFIBUS 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.
Page 96
3 Configuration Software Action to PLC Mode Transition Box The Action to PLC Mode Transition Box defines the behavior of the Unit on the PROFIBUS network, in case a CPU mode change occurs. The check boxes define how the Unit should behave in case the CPU mode is changed from RUN mode to PROGRAM mode, or vice versa.
Page 97
3 Configuration Software Bus Parameters Tab The Bus Parameters tab contains the parameters for the communication on the PROFIBUS net- work. The Bus Parameters tab is shown below. The Bus Parameters are a number of settings which define the communication behavior and timing on the PROFIBUS network.
Page 98
3 Configuration Software Item Description Unit Editable by User Baud rate Defines the transmission rate on the PROFIBUS DP Network. The following baud rate values are defined by the PROFIBUS DP standard: • 9.6 Kbps • 19.2 Kbps • 45.45 Kbps •...
Page 99
3 Configuration Software Item Description Unit Editable by User Data Control The cycle time in which the master updates its Data Transfer List, in which it Time keeps an overview of all slave states. Data Control Time is based on the Watchdog time T : Data Control Time = 7*T Watchdog Con-...
Page 100
3 Configuration Software Column Description #Addr. Station address on the network, obtained from the slave DTM. Index Index number of the I/O module. Device Device name, obtained from DTM. Module System generated name. Size Module data size, unit of type mentioned in next column. Type Module data type, e.g.
Page 101
3 Configuration Software Note 1 If an invalid setting is made the Occupied length value will change its color to red, indicat- ing an invalid setting. In addition, a warning message will be displayed, upon saving the changes. Invalid settings are for example •...
Page 102
3 Configuration Software Acyclic Connection/Abort Status Box The Acyclic Connection/Abort status box contains settings, which allow the user to define where in the CPU memory the Connection/Abort status bit fields must be mapped. These bits indicated the open/closed PROFIBUS DP-V1 Class 2 connections between the Master Unit and individual slave devices.
Page 103
3 Configuration Software Acyclic Connection Status Flags The 8 word Acyclic Connection bit flags are shown below. 15 14 13 12 11 10 9 Word n Slave station 00 to 15 Word n+1 Slave station 16 to 31 Word n+2 Slave station 32 to 47 Word n+3 Slave station 48 to 63...
Page 104
3 Configuration Software Name Status Controlled by Unit operation – Acyclic Connection Abort TRUE Unit If the bit corresponding to a slave device address flags is TRUE, it indicates that the PROFIBUS Master Unit has aborted a PROFIBUS DP-V1 Class 2 type connection.
Page 105
3 Configuration Software In order to change an address perform the following steps: Select the slave device in the list. 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, i.e. whether or not the slave device responded without error.
3 Configuration Software Precautions for Correct Use Precautions for Correct Use Selecting the Lock option makes any future changes of the address impossible, even after power-down/power-up of the slave device. Note After successful completion of the address change, the device DTM address in the Network view has to be changed as well.
Page 107
3 Configuration Software 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. • The Online Operations tab: This tab contains controls to initiate state changes in the Master Unit as well as transmit Global-Control commands over the PROFIBUS network.
Page 108
3 Configuration Software 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 TRUE, it indicates that the Master Unit is in Data Exchange with all its allocated and enabled slave devices.
Page 109
3 Configuration Software 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. Indicator colors The indicators in the Slave Status Flags box, indicate per slave its status, using colors. Five colors are associated with status conditions.
Page 110
3 Configuration Software Retrieving Slave Diagnostics Provided that the Master Unit is not in OFFLINE or STOP mode, the diagnostics of a specific slave device can be obtained from the indicators. Moving the mouse cursor over the indicator will change the cursor from a normal arrow pointer to a hand.
Page 111
3 Configuration Software PROFIBUS Communication Group These buttons can be used to force the Unit to change its operating mode. The four operational modes are: • OFFLINE mode. • STOP mode. • CLEAR mode. • OPERATE mode. The mode changes are implemented through messages to the Unit’s software switches in the CPU Memory Area (see 4-2-1 Software Switches (*_SwCmd)).
3 Configuration Software Selecting the Groups Specific groups to send the Global-Control command to, can be defined by selecting the appropriate checkbox. Selecting the All Slaves checkbox will disable the individual checkboxes and result in a Global-Control command to all slave devices. ...
Page 113
3 Configuration Software Configuring CX-Server In order to configure CX-Server for communication with the Unit, perform the following procedure. Select the type of CPU to which the Unit is attached, from the Device Type drop down selection box. Press the Settings button next to the CPU type selected. The CPU settings window (see figure below) is displayed.
Page 114
3 Configuration Software Make the necessary selections to facilitate communication between the PC and the CPU to which the PROFIBUS Master Unit is attached and press the OK button. Testing CX-Server Setup After making the settings, press the OK button to close the CX-Server interface. 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 Interface.
Page 115
3 Configuration Software • Select the DTM in the Network view. • Select the Device - Go Online option from the main menu, or the DTM context menu, or • Select the button from the Tool Bar. A communication channel will be opened through CX-Server. The name of the DTM in the Net- work view, will turn to Italic font, to indicate that the Unit is online.
Most of the current PROFIBUS DP slave devices are supplied with a GSD file in order to allow a config- urator 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 applica- tion, like CX-ConfiguratorFDT.
Page 117
3 Configuration Software In general, the Configuration User Interface for the Generic Slave Device DTM contains three tabs. Above these tabs the Device, the Manufacturer, the GSD file and the Unit’s PROFIBUS Ident num- ber are displayed. The three tabs allow the user to set the slave parameters and configure the I/O for a standard PRO- FIBUS DP slave device.
Page 118
3 Configuration Software Parameter Tab 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 119
3 Configuration Software Group Tab In the Group tab the user can define to which group the slave device will belong. This group defini- tion is used to define multi-cast groups of slave device to which a Global-Control command can be transmitted.
Page 120
3 Configuration Software 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). When Ignore Auto-CLEAR has been selected, a failure of this particular slave device (i.e.
Page 121
3 Configuration Software Control Description EN50170 Compliant The Check I/O configuration message will contain standard PROFIBUS DP Data type definitions as well as vendor specific data types and the slave device will perform the check on this assumption. Fail-Safe behavior The Fail-Safe behavior 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.
Page 122
3 Configuration Software DPVI Tab PROFIBUS DP-V1 defines extended communication functions between a PROFIBUS DP-V1 mas- ter and a PROFIBUS DP-V1 slave device. These extensions include: • Acyclic communications between master and slave to allow re-parameterization during I/O data exchange. •...
Page 123
3 Configuration Software Max. Alarm PDU Length This parameter defines the maximum size of an Alarm message sent from the slave device to the PROFIBUS DP-V1 Master Unit. The Master Unit uses this number to reserve buffers to handle the alarms.
3 Configuration Software 3-3-2 Diagnostic User Interface The Generic Slave Device DTM provides a Diagnostics User Interface to display diagnostics data sent by the slave device to the PROFIBUS Master Unit. In general a slave device can send two type of diag- nostics.
Page 125
3 Configuration Software Name Description Invalid slave The slave has returned an invalid response to a Master request message. response Function Not sup- The Master Unit has sent a message to the slave device, which is not supported by the device. ported Extended diagnostics The diagnostics message returned by the slave device contains extended diagnostics, i.e.
Page 126
3 Configuration Software 3-48 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Data Exchange with the CPU Unit This section describes the words allocated to the PROFIBUS Unit in the CIO Area and DM Area. These words both enable controlling the PROFIBUS Unit and accessing Unit and network status. 4-1 Data Exchange with the CPU Unit ....... . 4-2 4-1-1 Data Flow .
4 Data Exchange with the CPU Unit Data Exchange with the CPU Unit Data exchange between this Unit and the CPU Units uses the I/O port and memory for CJ-series Unit allocated to the PROFIBUS Master Unit. 4-1-1 Data Flow The CPU Unit and CJ-series PROFIBUS Master Unit exchange various types of information at each I/O refresh via the memory for CJ-series Units within the CPU Unit.
Page 129
4 Data Exchange with the CPU Unit PROFIBUS Master CPU Unit Unit I/O port User program CPU Special Unit Words Allocated in CIO Area Software switches (I/O refresh) Corresponding Unit #0 device variable (25 wds) (I/O refresh) status for CJ-series Unit Unit #15 (25 wds) CJ Unit Memory...
Page 130
4 Data Exchange with the CPU Unit An I/O port is automatically created by preparing the Unit Configuration with Sysmac Studio. For details on the I/O ports defined for PROFIBUS Master Unit, refer to 4-2 Device Variables for CJ- series Unit (Software Switches, Statuses). ...
4 Data Exchange with the CPU Unit 4-1-2 Accessing From the User Program From the user program, various types of information are exchanged using AT specified device vari- ables for CJ-series Unit that are allocated to the I/O ports, and AT specified user-defined variables that are allocated to slave allocation areas.
Page 132
4 Data Exchange with the CPU Unit An 8 point Input Unit and 8 point Output unit are configured for use with the SmartSlice GRT1-PRT I/O Coupler as shown above. CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Page 133
4 Data Exchange with the CPU Unit Words I/O data allocated CIO 3200 Output Allocation for slave data (station address 0) CIO 3300 Input Allocation for slave data (station address 0) CIO 3301 Input Allocation for slave data (station address 0) Allocate the I/O data to the user-defined variables as shown in the example below.
4 Data Exchange with the CPU Unit Device Variables for CJ-series Unit (Software Switches, Statuses) When you operate and reference software switches and statuses use the following Device Variables for CJ-series Unit allocated to the I/O port of this Unit. Name of Device Variable for CJ- Type Description...
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description series Unit *_MstrHwErr BOOL Bit 03: Hardware error *_MstrMdCmdErr BOOL Bit 12: Mode command error *_MstrParamErr BOOL Bit 13: Parameter error *_SlvSta WORD Slave Status (Section 4-2-6) *_AllDatXchgSta BOOL Bit 00: All slaves in data exchange mode...
Page 136
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_MstrOperateCmd BOOL Switch master FALSETRUE: to OPERATE Switches the Unit to the OPERATE mode. if mode the Unit is already in this mode, no action will be taken.
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_MstrOfflineCmd BOOL Switch master FALSETRUE: to OFFLINE Switches the Unit to the OFFLINE mode. If the mode Unit is already in this mode, no action will be taken.
Page 138
4 Data Exchange with the CPU Unit Global-Control Multicast Command One or more groups of slave devices allocated to the PROFIBUS Master Unit (Multicast command). Global-Control Broadcast Command All slave devices allocated to the PROFIBUS Master Unit (Broadcast command). The number of the group to which each slave device belongs, is defined in its parameterization mes- sage.
Page 139
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_GlobCtlGrp1 BOOL Send com- TRUE: mand to slaves Slaves devices assigned to the specific group of Group 1 will process the global-control command. *_GlobCtlGrp2 BOOL Send com-...
Page 140
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_GlobCtlFreezeCmd BOOL Freeze TRUE: The Freeze command forces the slave devices into the Freeze mode. In this mode a slave device will not update its inputs to the Master and continue to transmit the input data acquired before the Freeze command.
4 Data Exchange with the CPU Unit *_GlobCtlUnsyncCmd *_GlobCtlSyncCmd Resulting action at slave FALSE FALSE No change in function FALSE TRUE Slave device will be in Sync mode TRUE FALSE Slave device will be in Unsync mode TRUE TRUE Slave device will be in Unsync mode 4-2-3 Unit Status (*_UnitSta) One of the following Device Variables for CJ-series Unit is used to monitor the Unit Status from the user...
Page 142
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_UnitErr BOOL Unit error flag The Unit error flag collects the status of all error flags in the *_UnitSta area. TRUE: Changed to TRUE by the Unit if *_MstrErr, *_NewErrLogSta, *_ParamStorErr, *_ParamLoadErr, *_FileRdErr, or *_LogStorErr are set to TRUE.
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_ParamLoadErr BOOL Local parame- TRUE: ter load error Indicates an error occurred during an attempt to transfer the Configuration and setup data from non-volatile to volatile memory.
Page 144
4 Data Exchange with the CPU Unit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 *_MstrSta *_MstrOperateSt *_MstrStopSt *_MstrClearSt *_MstrOfflineSt *_MstrDatXchgSt *_MstrAutoClrEnblSt *_MstrValidCfgSt Name of Device Variable for Type Description Function CJ-series Unit *_MstrOperateSta BOOL Unit in OPER-...
4 Data Exchange with the CPU Unit Name of Device Variable for Type Description Function CJ-series Unit *_MstrDatXchgSta BOOL Unit in Data TRUE: Exchange Indicates that the Unit is in Data Exchange with at least one allocated and enabled slave device. FALSE: Indicates that the Unit is not in Data Exchange with at any of the allocated and enabled slave...
Page 146
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_MstrBusErr BOOL Disturbed Bus TRUE: error Indicates that distorted messages have been received by the Unit. This may occur if the network is not properly terminated or a cable is used, which is too long for the selected baud rate.
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_MstrHwErr BOOL Hardware error TRUE: Indicates an error has occurred on the bus, e.g. message exceeding 256 bytes, broken messages, faulty bus timing or devices beyond the HSA have been detected.
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_AllDatXchgSta BOOL All slaves in TRUE: Data Exchange Indicates all slave devices which are allocated mode to the PROFIBUS Master Unit are enabled and are in Data Exchange with the PROFIBUS Master Unit.
Page 149
4 Data Exchange with the CPU Unit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 *_SlvDatXchgL Slave station 00 to 15 *_SlvDatXchgL Slave station 16 to 31 *_SlvDatXchgL Slave station 32 to 47 *_SlvDatXchgL Slave station 48 to 63 *_SlvDatXchgH...
Page 150
4 Data Exchange with the CPU Unit 4-2-9 Slave New Diagnostics Flags (*_SlvNewDiagL, *_SlvNewDiagH, *_SlvNewDiag) The Slave New Diagnostics flags indicate for each slave device that it sent a new diagnostics message to the PROFIBUS Master Unit since the last time it was read or cleared by the NJ-series controller unit. An Array data type is used to access individual slave diagnostic status with the Device Variable *_SlvNewDiag.
Page 151
4 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_SlvNewDiag BOOL Slave New TRUE: Diagnostics Indicates that this slave device is allocated to flags (Array) the PROFIBUS Master Unit, and has sent new *_SlvNewDiagL, *_SlvNewDiagH LWORD Slave New...
Page 152
4 Data Exchange with the CPU Unit 4-26 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Page 153
Operation This section describes how to operate the 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 on the I/O data exchange performance and it also provides information on how to monitor a network using the Unit and CX-ConfiguratorFDT.
Page 154
5 Operation 5-7 Monitoring the Network ........5-49 5-7-1 Monitoring the Master Unit and the Network .
5 Operation Introduction This section discusses the operational aspects of using the PROFIBUS Master Unit and the configura- tion software. The section has been setup to follow the general process flow of setting up and configur- ing a network, downloading the configuration and operating the PROFIBUS network. Note In case Error messages are displayed while using CX-ConfiguratorFDT, refer to A-5 CX-ConfiguratorFDT Warning and Error Messages for more information on errors.
Page 156
Setting up a network involves setting up a configuration in CX-ConfiguratorFDT and downloading it to the PROFIBUS Master Unit. To start CX-ConfiguratorFDT, select Program, OMRON, and CX- ConfiguratorFDT, from the Start Menu if the default program folder name is used.
Page 157
5 Operation Check the list of available DTMs, and verify that all the devices that need to be added to the Network - both master and slave devices - are among the DTMs in the list. If one or more of the DTMs is missing, these DTMs must first be installed and the Device Cata- logue updated.
5 Operation Note Updating the Device Catalogue may take several minutes, depending on the number of installed GSD files. 5-2-1 Adding Devices to the Network If the Device Catalogue is up to date, it can be used to setup the network. Setting up a network in CX- ConfiguratorFDT starts with adding single device DTMs to the Network view.
Page 159
2, the second address 3, etc. The addresses can be changed in the slave DTM User Interface. The figure below shows an example network consisting of a CJ1W-PRM21 PROFIBUS Master and three OMRON slave devices. CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
5 Operation 5-2-2 Changing Device and DTM Addresses In order to achieve communication between the Master Unit and its allocated slave devices, the latter must have the same physical network address as set in the configuration. The network address on the slave devices are usually set •...
Page 161
5 Operation In order to change the address of a slave device perform the following steps: 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 162
5 Operation Open the Configuration User Interface for the slave device, by selecting it in the Network view, and double-clicking the left mouse button. Select the Station Address field at the top of the Configuration tab (see figure below) and change the value to 10.
Page 163
5 Operation The window shown below will be displayed. In order to change the slave DTM address perform the following steps. Select the slave device in the list. Enter the new address in the field Address in the lower right corner of the window. Press the Set button.
5 Operation Configuring the Slave Devices After adding each of the slave DTMs to the network, configurations have to be selected for each of them. Setting up a configuration involves • Selecting the proper I/O modules, which define the I/O data to be exchanged when operational. •...
Page 165
If an incorrect sequence is sent, the I/O configuration is rejected. This is for exam- ple 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.
5 Operation • Select the I/O module that needs to be removed from the Configured Modules list, and press either the Remove button. This method allows selection of more than one module, by press- ing either the Shift or the Ctrl key on the keyboard, while selecting the modules. ...
5 Operation 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 168
5 Operation After making the group assignment, press the OK button to save the changes and close the DTM Con- figuration User Interface. 5-16 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
5 Operation Configuring the Master Opening the Master DTM Configuration Interface After configuring all the slave DTMs, the CJ1W-PRM21 Master DTM must be configured. In order to open the Master DTM Configuration Interface do either one of the following. •...
5 Operation After making the changes, select the Save button in the lower right corner of the user interface to accept the changes. Next select the Master Setup tab, to display the Master Setup options. 5-4-1 Setting the Master Parameters ...
5 Operation Note 1 The advantage of this setting is that the user does not have to program the starting of the network. The disadvantage is that the moment at which the network is started is out of direct control of the CPU user program. I/O data exchange is started, while the program may still be initializing its memory.
5 Operation The baud rate has been set to 1500 kbps. The amount of slaves and the amount of I/O data, results in a poll cycle time of approximately 5.2 ms (Min Slave Interval). After making the changes, select the Save button in the lower right corner of the user interface to accept the changes.
5 Operation 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 CPU memory independently of each other. Changing the mapping can be achieved using drag &...
Page 174
5 Operation CX-Server Upon pressing the Configure button, CX-Server is launched and displays the CX-Server User Inter- face as shown below In order to configure CX-Server for communication with the Unit, perform the following procedure. Select the type of CPU to which the Unit is attached, from the Device Type drop down selection box.
5 Operation 2 Select the Settings button next to the Network Type selected, to display the Network set- tings window, and select the Driver tab (USB is shown as the example below). 3 Make the necessary selections to facilitate communication between the PC and the CPU to which the PROFIBUS Master Unit is attached, and press the OK button.
Page 176
5 Operation The downloading process is handled by the CJ1W-PRM21 Master DTM. The CJ1W-PRM21 Master DTM will switch the Master Unit to OFFLINE, commence the download, and after suc- cessful 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.
5 Operation I/O Communication Characteristics 5-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. The I/O mod- ules can define input data, or output data or both input and output data.
Page 178
5 Operation • I/O modules per slave device, are mapped in the order in which they were selected, when set- ting up the slave device. Furthermore, Input area 1 is by default mapped to CIO 3300, whereas Output area 1 is by default mapped to CIO 3200.
Page 179
The figure below shows an example of the effects of Auto Addressing on (re)allocation of I/O mod- ules. In the original I/O configuration on the left, the first slave - an OMRON CJ1W-PRT21 - con- sisted of two I/O modules. In new configuration one I/O module was inserted, and subsequent modules were re-allocated in the process.
Page 180
5 Operation One I/O module of two output Initial I/O Configuration words was inserted, and re-allocated subsequent I/O modules. Note The start address of Output area 1 in the example remains the same after adding an I/O module. Re-allocating I/O Modules After setting up the initial I/O configuration the I/O modules can be re-mapped to the second Input/Output area.
Page 181
5 Operation Hold the left mouse button and drag the I/O module to the Input/Output area of choice. Release the left mouse button to drop the module in place. Note The area to place the module in must be empty. The area to put the modules in does not need to be selected first.
Page 182
5 Operation Initial I/O configuration The first Output modules of slave device #2 and #3 were moved to Output area 2. The example shows that the sequence of slave addresses is maintained, the sequence of I/O mod- ules selected is maintained and the I/O modules are allocated to the lowest address of the area. 5-30 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Page 183
5 Operation Enable/Disable Auto Addressing The Auto Addressing feature can be disabled in the CJ1W-PRM21 Master DTM. Perform the follow- ing sequence to control Auto Addressing. Open the CJ1W-PRM21 Master DTM - Configuration User Interface. Select the Master Setup tab. Enable/Disable Auto Addressing by selecting/deselecting the Auto Addressing checkbox in the Support box.
Page 184
5 Operation 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. Removing Gaps from the I/O Mapping Since gaps in the I/O mapping are generally undesirable, the CJ1W-PRM21 Master DTM provides a means to remove all gaps, after finalizing the I/O mapping procedure.
Page 185
5 Operation Compressing the I/O Mapping Compressing re-allocates all I/O modules in an area as close to the start of the area as possible. Compressing an area does not change the sequence of the slave devices and/or the I/O modules. It only removes the unused memory gaps.
5 Operation The total size per Input/Output area can be found for each area, next to the CPU memory area selection box (for example, the figure above; Output area 1 occupies 7 words). Note 1 The CJ1W-PRM21 Master DTM will check whether two or more selected mappings in the CPU memory will be overlapping.
5 Operation Data Type Size [bytes] PROFIBUS DP NJ-series Controller Unit Time of day Supported. Not Supported. Time of day format contains Time of day format is trans- time since midnight. ferred to CPU memory as string of words. Time difference Supported.
Page 188
5 Operation Unit requests Unit requests Unit requests cyclic refresh cyclic refresh cyclic refresh Unit requests Unit requests cyclic refresh cyclic refresh Instruction Instruction Instruction Instruction Instruction CPU Cycle Execution Execution Execution Execution Execution CIO Refresh Output data refresh Input data refresh PROFIBUS Cycle Cycle n Cycle n+1...
Page 191
5 Operation Slave device Input TRUE (FALSE) delay. PROFIBUS I/O data exchange cycle time (See Appendix A, Bus Parameters) PB,Cyc I/O Processing time in the Master Unit. M,Proc Master request cyclic refresh until actual start of cyclic refresh. M,Rrf CPU cycle time. CPU,Cyc CPU cyclic refresh time.
5 Operation The total I/O response time is the sum of all components: + 2*T PB,Cyc M,Proc M,Rrf CPU,Cyc CPU,Rf 5-5-6 System Startup Time Startup Time Definition The system startup time is the delay from the time the CJ1W-PRM21 PROFIBUS Master Unit is turned ON, or reset, until I/O data exchange with all slave devices has been established.
5 Operation Operating the Network 5-6-1 User Access to the Network There are several ways through which a user can have access to and control over the PROFIBUS net- work. • Through a CPU user program: A CPU user program can set the operational mode of the Unit, send Global-Control commands, read Master and slave status/diagnostics information access the Unit’s Error Log.
5 Operation 5-6-2 Changing PROFIUS Mode of the Master Unit PROFIBUS DP Network Modes The PROFIBUS standard defines four different network modes, in which a Master Unit can operate. The modes are: • OFFLINE: The PROFIBUS Master Unit does not access the network, nor does it respond to messages.
5 Operation Changing the Mode Using the CPU Program The Unit’s operational mode can also be changed from the CPU user program by setting the appro- priate bit in the Software Switches word (see section 4-2-1 Software Switches (*_SwCmd)). Note If an attempt is made to change the operational mode while a previous change command is still being processed, the new command is ignored and the mode command error bit flag (*_MstrMdCmdErr) in the Master Errors word (see section 4-2-5 Master Errors...
Page 196
5 Operation Group Address Setting 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.
5 Operation Select the groups to transmit the Global-Control command to. Press the Transmit button to transfer the command to the Unit’s CIO area, and to set bit *_GlobCtlTxCmd in the Software Switches word. The Transmit button will be disabled until the command has been transmitted. The time between pressing the Transmit button in the CJ1W-PRM21 Master DTM user interface and the Global-Control command actually being transmitted over the PROFIBUS network will be signifi- cantly longer than when the Global-Control command is initiated from a CPU user program due to...
Page 200
5 Operation Determine which slave device failed during network startup or data exchange. To do this, use the CJ1W-PRM21 Master DTM Monitoring User Interface or the slave DTM (see 5-7-1 Monitoring the Master Unit and the Network and 5-7-2 Monitoring Slave Status) to determine the slave and its type of failure.
5 Operation Monitoring the Network 5-7-1 Monitoring the Master Unit and the Network Both the CJ1W-PRM21 Master DTM and the Generic Slave DTM provide 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 202
5 Operation • Determine errors in the unit or the network. • Troubleshoot the Master Unit and the network. The Master Status tab indicates the Master Unit’s status. The Master Status 2 box and the Unit Sta- tus box all indicate errors. These indicators are discussed in section 7-4-2 Troubleshooting the Net- work using CX-ConfiguratorFDT.
Page 203
5 Operation Slave Status Overview The CJ1W-PRM21 Master DTM Diagnosis User Interface provides a comprehensive overview of the slave device status without having the user to open all the slave DTMs. The overview is pre- sented in the Monitoring - Slave Status tab of the user interface and displays only the standard PRO- FIBUS diagnostics flags.
5 Operation The newly received diagnostics can be viewed by clicking with the left mouse button on the indica- tor. The mouse pointer will change in to a hand icon when positioned over the indicator. Reading Standard Slave Diagnostics Clicking the indicator with the left mouse button has the following effects •...
Page 205
5 Operation Extended Slave Diagnostics Extended diagnostics data are often provided by a slave device to indicate additional slave specific diagnostics, error and alarm information which cannot be contained in the standard data part of the diagnostics message. These extended diagnostics data bytes are sent by the slave in a diagnostics message following the standard data part.
5 Operation 5-7-3 Using the Error Log Error Log Concept The CJ1W-PRM21 PROFIBUS Master Units are equipped with an error logging mechanism which will internally store error events. Most of the errors which are stored in the Unit’s Error Log are stored in volatile memory, i.e.
Page 207
5 Operation Reading the Error Log The Error Log can now be retrieved from the Unit, and displayed through the CJ1W-PRM21 Master DTM Diagnosis User Interface. To retrieve and view the Unit’s Error Log, Open the CJ1W-PRM21 Master DTM Diagnosis User Interface. Select the Monitor - Error History tab.
Page 208
5 Operation Note Reading the Error Log contents will not clear it. Clearing the Error Log In order to clear the Error Log, perform the following actions. Open the CJ1W-PRM21 Master DTM Diagnosis User Interface. Select the Monitor - Error History Tab. Press the Clear button in the lower right corner of the window.
5 Operation PROFIBUS DP-V1 Services Next to the cyclic I/O data exchange, the CJ1W-PRM21 PROFIBUS Master Units are capable of com- municating using acyclic DP-V1 messages. The following section explains the basic operation of DP-V1 functionality. 5-8-1 Configuring and Monitoring Slaves using DTMs The FDT/DTM framework enables the configuration and monitoring of specific parameters of PRO- FIBUS slaves.
5 Operation 5-8-2 PROFIBUS Services From CPU CIP Messaging The CJ1W-PRM21 PROFIBUS Master Units support sending Explicit DeviceNet (CIP) messages to their slaves (as of Unit version 3.0). Like the DeviceNet master this is done by using the EXPLICIT MESSAGE SEND (see section 6-3-1 EXPLICIT MESSAGE SEND (2801) for more details on this command).
Page 211
Message Communications This section describes the message service communications commands concept sent from the user program in the CPU Unit. 6-1 Overview ........... . . 6-2 6-2 Sending Acyclic Messages Using SendCmd Instructions .
6 Message Communications Overview Message communications enable messages to be sent between nodes on a PROFIBUS network when required by system conditions. It is possible for messages to be sent between a CPU and a PROFIBUS Master or Slave Unit. You can use them to send/receive data; read time data, error logs, and other data; or control specific operation, e.g., clearing the error log.
6 Message Communications Sending Acyclic Messages Using SendCmd Instructions The SendCmd (send command) instruction can be used in the CPU Unit user program of the CJ-series PROFIBUS Unit to send acyclic messages. In a program that issues acyclic messages, the following execution conditions are generally used based on the AND gate: •...
Page 214
6 Message Communications Command source Destination Sdata[0] Sdata[1] SendCmd Execute Done Sdata[7] Command code DstNetAdr Busy interpretation Sdata[8] CommPort Error ErrorID CmdDat ErrorIDEx CmdSize Rdata[0] Execution RespDat RespDat Rdata[1] Option Rdata[8] Rdata[9] Input Variable Function Example Details Execute The operation SendCmd is executed when TRUE is set. DstNetAdr The destination network address is specified with the use of Network address: 0...
Page 215
6 Message Communications Additional Information You can send acyclic messages to OMRON slaves by setting the command code to 28 01. In this case, set the response monitoring time to at least the value set for the message monitor- ing timer (default: 2s). If it is set to less than the value, communications may be busy even if the next command is executed after the first one times out.
PROFIBUS DP-V1 slave device during regular I/O data exchange. 6-3-1 EXPLICIT MESSAGE SEND (2801) Sends an explicit message over the PROFIBUS network to an OMRON slave device (GRT1 SmartSlice for example) and receives a response. Explanation The Explicit Message Send command sends a CIP-defined explicit message to an OMRON PROFI- BUS Slave device supporting CIP messages.
Page 218
6 Message Communications Command Response No. of bytes Error code code code received Service code 94 (Hex) Source station address (local node) For the definition of the error codes for unsuccessful execution of CIP messages, refer to the Smart- Slice GRT1-Series GRT1-PRT PROFIBUS Communication Unit Operation Manual (Cat. No. W04E- □...
6 Message Communications For commands, specifies the data defined by the service code. For responses, returns the reception data defined by the service code. No. of Bytes Received (Response) Returns the number of data bytes received in the rest of the message. Source Station Address (local node) (Response) Returns the Station Address of the responder.
Page 220
6 Message Communications The table below lists the PROFIBUS services supported using the PROFIBUS MESSAGE SEND command D SAP PROFIBUS Service Description Page (Hex) Set_Slave_Add Change the address of a slave device. Rd_Inp Read the Input data of a slave device. Rd_Outp Read the Output data of a slave device.
Page 221
6 Message Communications The PROFIBUS Ident Number is a 1 word identifier, issued by PROFIBUS International, which iden- tifies the slave device type and model. The number can be obtained form the slave device GSD file or from the slave documentation. New Device Address (Command) Contains the new address of the device.
Page 222
6 Message Communications Response Format Command Response Device Data length Input data code code address (Bytes) Parameters Destination Address (Command, Response) The address of the device on the PROFIBUS network, to which the PROFIBUS message will be sent. The valid address range is 0 to 7E (Hex). The most significant byte in the Response Format is set to 00.
Page 223
6 Message Communications Command Format Command code Device address Device Service Access Point Response Format Command Response Device Data length Output data code code address (bytes) Parameters Destination Address (Command, Response): The address of the device on the PROFIBUS network, to which the PROFIBUS message will be sent.
Page 224
6 Message Communications Command Format Command code Device address Device Service Access Point Response Format Command Response Device Data length I/O Configuration code code address (bytes) data Parameters Destination Address (Command, Response) The address of the device on the PROFIBUS network, to which the PROFIBUS message will be sent. The valid address range is 0 to 7E (Hex).
Page 225
6 Message Communications MSAC1_Read Service The PROFIBUS DP-V1 MSAC1_Read service allows a PROFIBUS DP-V1 Master Unit to read (param- eter) 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. ...
Page 226
6 Message Communications Function code (Command, Response) The function code is defined by the PROFIBUS standard and defines the type of MSAC1 message. In the command it must be fixed to 005E (Hex). The response will contain either 005E (Hex) indicat- ing a normal PROFIBUS completion, or 00DE (Hex), indicating PROFIBUS errors.
Page 227
6 Message Communications Error Decode Byte Description 00 to 07 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 containing protocol converters (i.e. gateways), non-PROFIBUS protocols are also defined in this list.
Page 228
6 Message Communications Response Codes Response code Description 0000 Normal completion 1001 Command too large, i.e. > 5 words 1002 Command too short, i.e. < 5 words. 110C • Device Address Invalid, i.e. > 7E (Hex). • The slot number is invalid, i.e. > FE (Hex). •...
Page 229
6 Message Communications Command Response Function Actual length code code code of data written (bytes) Command Response Function code code code Error Error decode code 2 Error code 1 Parameters Destination address (Command, Response) The address of the device on the PROFIBUS network, to which the PROFIBUS message will be sent.
6 Message Communications Error code 1, Error code 2 (Response) The contents of the Error code bytes depends on the contents of the Error decode byte and the slave device. Refer to A-7-4 PROFIBUS DP-V1 Error Codes for more information. ...
6 Message Communications Defines the data to be retrieved from the Unit. Always set to 81 FF 00 (Hex). Slave device address (command) Defines the slave device network address. Set to 00 to 7D (Hex). Number of items to read (command) Defines the number of bytes to read.
Page 232
6 Message Communications 6-22 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Troubleshooting and Maintenance This section describes the troubleshooting procedures and maintenance operations for the CJ1W-PRM21 PROFIBUS Master Unit. Utilize indicators, Error Status, CX-Config- uratorFDT, Error Log and Event Log features to identify and correct errors quickly. 7-1 Overview ........... . . 7-2 7-2 Troubleshooting with the PROFIBUS Master Unit Indicators .
7 Troubleshooting and Maintenance Overview The CJ1W-PRM21 PROFIBUS Master Unit and CX-ConfiguratorFDT provide extensive means for trou- bleshooting 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. ...
7 Troubleshooting and Maintenance Troubleshooting with the PROFIBUS Master Unit Indicators 7-2-1 Indicators This section presents a number of easy to use procedures to troubleshoot possible errors using the indicators on the front of the Unit (see figure below). CJ1W-PRM21 PRM21 COMM The possible errors which could occur have been categorized and for each category a group of two...
7 Troubleshooting and Maintenance Probable Cause Correction Not lit Not lit Not lit Power is not being supplied to the Supply power. Make sure that the cor- CPU Unit or the power supply voltage rect voltage is being supplied. is too low. The CPU Unit is faulty.
7 Troubleshooting and Maintenance Probable Cause Correction Not lit Not lit Not lit Power is not being supplied to the Supply power. Make sure that the cor- CPU Unit or the power supply voltage rect voltage is being supplied. is too low. The CPU Unit is faulty.
7 Troubleshooting and Maintenance Probable Cause Correction Not lit An error has occurred while writing the Re-download the Parameter sets from CX- Parameter sets to the non-volatile memory. ConfiguratorFDT. If the problem persists, replace the PROFI- BUS Master Unit. During startup the checksum of the Parame- Re-download the Parameter sets from CX- ter sets stored in non-volatile memory was ConfiguratorFDT.
Page 239
7 Troubleshooting and Maintenance The probable error causes are then listed to the right of the third column. COMM Probable Cause Correction Not lit Not lit Not lit The PROFIBUS Master Unit is in Switch the Unit to either CLEAR or OFFLINE or STOP mode.
Page 240
7 Troubleshooting and Maintenance COMM Probable Cause Correction Flashing/Lit Not lit Not lit Not a valid combination. A Bus disturbance error has been • Switch the Unit to OFFLINE mode. detected. • Terminate the network at the appro- priate places (see section 2-3-2 Bus This indicates a termination error (ter- Termination).
7 Troubleshooting and Maintenance Troubleshooting Using Error Status Error status in Device Variables The PROFIBUS Master Unit provides error status indications to the CPU Unit in the Unit Status Word and the Master Errors which are allocated to CPU Bus Units (see 4-2-3 Unit Status (*_UnitSta) and 4-2-5 Master Errors (*_MstrErrSta)).
Page 242
7 Troubleshooting and Maintenance Name Description/Correction *_ParamLoadErr Local parameter load error An error has occurred when loading the configuration from the non-volatile memory to the volatile memory at start up. Most likely causes: • A failure or interruption during the writing process. •...
7 Troubleshooting and Maintenance 7-3-2 Master Errors Word The Master Errors word (*_MstrErrSta) contains error indications on the PROFIBUS interface and network. The corresponding bit flag will change to TRUE if an error event has occurred. Name Description/Correction *_MstrBusErr Disturbed bus Error An error has occurred in the PROFIBUS interface with distorted messages received by the PROFIBUS Master Unit.
Page 244
7 Troubleshooting and Maintenance Name Description/Correction *_MstrMdCmdErr Mode command error An error has occurred when setting two or more mode switches in Switch Word (*_SwCmd). The flag will be set to TRUE until the correct command, i.e. one mode switch has been issued.
7 Troubleshooting and Maintenance 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 any of the following: • Errors or inconsistencies in the slave parameter sets, which are checked prior to download. •...
7 Troubleshooting and Maintenance 7-4-2 Troubleshooting the Network using CX-ConfiguratorFDT CX-ConfiguratorFDT Troubleshooting CX-ConfiguratorFDT provides several means to troubleshoot either the CJ1W-PRM21 PROFIBUS Master Unit, the slave devices or the network. The means all rely on features discussed in the previ- ous section.
Page 247
7 Troubleshooting and Maintenance Indicators Description/Correction Local Parameter Load Error An error has occurred, when loading the configuration from the non-volatile memory to the volatile memory at start up. (Valid Configuration Indicator will be OFF) Most likely causes: • A failure or interruption during the writing process. •...
Page 248
7 Troubleshooting and Maintenance Indicators Description/Correction Master Address Duplication Error: A second master device with the same network address has been detected on TRUE the PROFIBUS network. The PROFIBUS Master Unit has switched to OFFLINE. (OFFLINE indicator will be ON) To correct this: •...
Page 249
7 Troubleshooting and Maintenance The indicators in the upper half of the Slave Status tab shown in the figure above indicates the sta- tus of the slave devices by using different colors (see sections 5-7-1 Monitoring the Master Unit and the Network, 5-7-2 Monitoring Slave Status).
7 Troubleshooting and Maintenance Indicator Description/Correction Parameter fault The parameters sent by the Master Unit are rejected by the slave device. The Parameter request used indicator will also be ON. • Check the common parameter settings in the Slave DTM. Make sure the parameters are within range, and match the physical configuration of the slave device.
Page 251
7 Troubleshooting and Maintenance Problem Probable Cause Correction PROFIBUS Master Unit No power is supplied to the system. • Verify that power is supplied to the sys- is configured, but none of tem. All indicators on the system are OFF. the slaves are exchang- A CPU (startup) error occurred.
Page 252
7 Troubleshooting and Maintenance Problem Probable Cause Correction PROFIBUS Master Unit Network cabling is not correct. Verify that the network installation is cor- is configured. Some, but rect: • BF indicator is ON or Flashing. not all slaves exchange • Verify that all slaves are powered up •...
Page 253
7 Troubleshooting and Maintenance Problem Probable Cause Correction PROFIBUS Master Unit No power is supplied to the system. All Verify that power is supplied to the sys- is configured. All slaves indicators on the system are OFF. tem. were in data exchange, A CPU error occurred.
7 Troubleshooting and Maintenance Problem Probable Cause Correction PROFIBUS Master Unit The specified slave devices may be in Send a Global-Control Unsync command is configured. All slaves Sync mode. to the targeted slave or group of slaves. are in data exchange, but Refer to 4-2-2 Global-Control Command the outputs of some slave (*_GlobCtlCmd).
7 Troubleshooting and Maintenance Error Log Functions Errors detected by the PROFIBUS Master Unit are stored in the error log along with the date and time of their occurrence. You can monitor the error log by using the CX-ConfiguratorFDT. Refer to sections 3-1-8 Error Logging and FDT Monitoring and 5-7-3 Using the Error Log for error log monitoring operations.
7 Troubleshooting and Maintenance Reading and Clearing the Error Log The error log can be read from the CPU and via CX-ConfiguratorFDT. Sending the command ERROR LOG CLEAR to the Unit clears both the non-volatile and the volatile error logs. (See 6-3-4 ERROR LOG CLEAR (2103)). Additional Information The CPU Unit's time information is used for the time stamps in the PROFIBUS Master Unit's error log records.
Page 257
7 Troubleshooting and Maintenance Detailed Codes Error Non-vol- Meaning Correction Code atile First byte Second byte 0211 Duplicate master address 00 to 7D: Failing Check the master devices on the Master Address network and ensure that they have unique device addresses. 0219 Hardware error •...
7 Troubleshooting and Maintenance Event Logs 7-6-1 Overview of the Event Logs The Event Log allows the user to access all of the events that occur on the NJ-series Controller includ- ing errors and information. You can use the Sysmac Studio or an NS-series PT to confirm current Con- troller events and the logs of events that have occurred.
Page 259
7 Troubleshooting and Maintenance Level Event code Event name Meaning Assumed cause Obs Info 38110000 hex Double Mas- There is a Master • A second Master with the same address ter Address address duplica- has been detected on the Bus. Error tion setting.
7 Troubleshooting and Maintenance 7-6-3 Error Descriptions This section describes the information that is given for individual errors. Controller Error Descriptions The items that are used to describe individual errors (events) are described in the following copy of an error table. Event name Gives the name of the error.
7 Troubleshooting and Maintenance Error Descriptions Event name Double Master Address Error Event code 38110000 hex Meaning There is a Master address duplication setting. Source Function Module Source details CJ-series Unit Detection At startup of net- timing work Error attributes Level Minor Recovery...
Page 262
7 Troubleshooting and Maintenance System-defined Variable Data type Name variables *_MstrMdCmdErr BOOL Mode Command Error Cause and cor- Assumed cause Correction Prevention rection More than one command mode Control only one command mode Do not attempt to control multiple switch has been set. switch.
Page 263
7 Troubleshooting and Maintenance Effects User program Continues Operation During network operation the Unit detectsprotocol errors and will switch to OFFLINE mode. System-defined Variable Data type Name variables *_MstrProtErr BOOL PROFIBUS Protocol error Cause and cor- Assumed cause Correction Prevention rection Network wiring problems.
7 Troubleshooting and Maintenance Maintenance and Replacement This section describes the routine cleaning and inspection recommended as regular maintenance as well as the Unit replacement procedure. 7-7-1 Cleaning Clean the PROFIBUS Master Units regularly as described below in order to keep the network in its opti- mal operating condition.
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. Precautions for Safe Use In order to prevent faulty operation be sure to turn off the power to all master and slave devices before replacing the Unit.
Page 266
7 Troubleshooting and Maintenance The PROFIBUS network allows to connect and disconnect devices while in operation. Connecting / Disconnecting Devices Connecting/disconnecting any device in a PROFIBUS network is liable to result in a temporary increase of the communication cycle time. An existing slave device can only be replaced by the same type of device with the same configuration.
Appendices A-1 Differences in Available Functions Depending on the CPU Unit (NJ/CJ series) to be Connected ........A-2 A-1-1 Differences in Available Functions .
A-1-1 Differences in Available Functions Some functions available to the CJ series may be unavailable when you operate this Unit with the NJ series. The following table lists the differences between the NJ and CJ series emerging on each function that this Unit provides.
Page 269
0 to 15 of a word starting with CIO n correspond to those of bits 0 to 15 of the device variable for CJ series Unit below.) The device variables for CJ-series Units that correspond to bits 0 to 15 of a word in CIO n are as fol-...
Page 270
Appendices CJ-series I/O memory address NJ-series device variables for CJ-series Unit Word address Variable name Description CIO n+2 *_GlobCtlGrp1 Send command to slaves of Group 1 *_GlobCtlGrp2 Send command to slaves of Group 2 *_GlobCtlGrp3 Send command to slaves of Group 3 *_GlobCtlGrp4 Send command to slaves of Group 4 *_GlobCtlGrp5...
Page 271
Appendices CJ-series I/O memory address NJ-series device variables for CJ-series Unit Word address Variable name Description CIO n+5 0 to 15 *_MstrSta Master Status The device variables for CJ-series Units that correspond to bits 0 to 15 of a word in CIO n+5 are as follows: CJ-series I/O memory address NJ-series device variables for CJ-series Unit...
Page 272
Appendices The device variables for CJ-series Units that correspond to bits 0 to 15 of a word in CIO n+7 are as follows: CJ-series I/O memory address NJ-series device variables for CJ-series Unit Word address Variable name Description CIO n+7 *_AllDatXchgSta All slaves in data exchange mode 1 to 3...
Page 273
Appendices The device variables for CJ-series Units that correspond to all bits 0 to 127 in words CIO n+17 to n+24 are as follows: CJ-series I/O memory address NJ-series device variables for CJ-series Unit Word address Variable name Description CIO n+17 0 to 15 *_SlavNewDiagL Slave station 00 to 15...
Appendices 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 deter- mined for each and every Master device on the bus, and usually depend on •...
Page 275
Appendices Item Description Unit Editable by User Baud rate Defines the transmission rate on the PROFIBUS DP Network. The following baud rate values are defined by the PROFIBUS DP standard: • 9.6 kBits/s • 19.2 kBits/s • 45.45 kBits/s • 93.75 kBits/s •...
Page 276
Appendices Item Description Unit Editable by User Poll Timeout The maximum time interval that this master device may need for the execu- tion of a master-master function. Data Control The cycle time in which the master updates its Data Transfer List, in which it Time keeps an overview of all slave states.
Page 277
Appendices are constants (in s, determining the cycle time between the Unit and the CPU, slave devices are the devices allocated to this Master Unit only, modules are the total number of I/O modules, selected for the slave devices. (Min.
Appendices Application Notes This appendix contains an application note regarding the use of a special ladder program to detect any CJ1W-PRM21 PROFIBUS Master Unit failures. This programs specifically covers failures due to faulty bus parameters, set by the user. Application Note Background The CJ1W-PRM21 Master DTM allows the user to change certain bus parameter, in order to further optimize the PROFIBUS network performance.
Appendices Application Program The ladder program, as shown in the figure below, will regularly set switch number 15 in the Software Switches word (*_SwCmd, where n in the example is 1500), and start a counter. The counter will count the amount of CPU I/O refresh cycles, before the Master Unit resets the switch. If the counter reaches the maximum value (e.g.
Appendices CX-ConfiguratorFDT Warning and Error 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 281
Appendices Number Message Description When occurring [IO area] must be empty. “Not used” item in the start address combo box in When selecting the “Not Move all modules into other output/input allocation tabs can only be selected if Used” item from the area there are no I/O module mapped in that area.
Page 282
Appendices Number Message Description Correction Total I/O area size exceeds The I/O configuration exceeds the Change configuration to reduce the maximum maximum limit of 7168 (or 7k) words). amount of I/O data to 7168 words maximum or less. CPU Memory overlapping Input/Output areas and/or PROFIBUS Check the Input/Output areas and DP-V1 Status table are overlapping...
Page 283
Appendices Number Message Description Correction Master Unit indicated failure When sending Set Device Station • Check target Slave device on the of Set Device Station Address command, one of the follow- PROFIBUS network. Address. ing problems occurred: • Check specified Slave address. •...
Page 284
Appendices Communication Error Messages The table below lists the Error messages related to CX-Server communication between the PROFIBUS Master Unit DTM and the CPU. Number Message Description Correction Communication Failure with The communication between the PC • Ensure there are no problems with Unit and the Unit on the CPU could not be the connection between the Per-...
Page 285
Appendices Number Message Description Correction Communication Failure with The communication between the PC • Ensure there are no problems with and the CPU could not be achieved. the connection between the Per- sonal Computer and the CPU. • Make sure the Device Settings are correct.
Page 286
Appendices Number Message Description Correction Received XML Document Container called a function with an There must be a problem in container does not fit its XML schema improper XML document. program. Reinstall CX-Configura- torFDT, if problem persists contact supplier. Ole Register Drop Target An internal error has occurred.
Appendices 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: •...
Appendices • If the total number of bytes is an odd number, the Most Significant Byte of the last word is filled with 0. 32-bit Double Word Data 32-bit double word data is transferred over PROFIBUS with the Most Significant Byte first. The PROFIBUS Master Unit will ensure that a double word transmitted or received over PROFIBUS is mapped on to NJ-series controller double word format in the CPU memory area.
Appendices Note m = (n-1)/2, rounded to the next lowest integer. If the number of text characters is even, all bytes will fit in the words, but one additional word will be set to 0000. If the number of bytes is odd, the last byte of the sequence will be mapped to the high- byte of the last word.
Appendices Slave Diagnostics Message A-7-1 Slave Diagnostics Data Message Every PROFIBUS DP slave device has to support the transfer of acyclic 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.
Appendices A-7-2 Standard Diagnostics Data Bytes Slave Diagnostics Byte 1 A layout of Byte 1 is shown below. This byte is mapped to the high-byte of Word D. 7 6 5 4 3 2 1 0 Byte 1 Diag.Station_Non_Existent Diag.Station_Not_Ready Diag.Cfg_Fault Diag.Ext_Diag...
Page 292
Appendices Slave Diagnostics Byte 2 A layout of Byte 2 is shown below. This byte is mapped to the low-byte of Word D. 7 6 5 4 3 2 1 0 Byte 2 Diag.Prm_Req Diag.Stat_Diag Reserved Diag.WD_On Diag.Freeze_Mode Diag.Sync_Mode Diag.Deactivated Name Description...
Appendices Slave Diagnostics Byte 4 Slave Diagnostics Byte 4 is mapped to the low byte of Word D+1. This byte contains the PROFIBUS address of the Master Unit, which parameterized the slave. If the slave is not parameterized cor- rectly, the byte contains FF (Hex) or 255 (Decimal).
Page 294
Appendices Module related Diagnostics The Module or Identifier related diagnostics data block consist of a header byte followed by one or more bytes containing flags, which indicate if there is diagnostics pending related to the I/O configu- ration modules. Each flag is related to the corresponding I/O module, defined during configuration. Non-used flags are always set to 0.
Page 295
Appendices Name Description Module 5 Diagnostics When set, this bit indicates that there is Diagnostics information pending related to configuration module 5. Module 6 Diagnostics When set, this bit indicates that there is Diagnostics information pending related to configuration module 6. Module 7 Diagnostics When set, this bit indicates that there is Diagnostics information pending related to configuration module 7.
Page 296
Appendices Channel Identifier Byte Name Description 00 to 05 Channel number These bits contain the number of the channel, which reports the diagnostics. The channel number ranges from 0 to 63. 06 to 07 I/O type Bit 6 and 7 indicate the type of I/O channel, from which the diagnostics data is sent.
Page 297
Appendices Example of Extended Diagnostics Below an example of Extended diagnostics data is given, using the definitions above. The 6 manda- tory 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:...
Appendices A-7-4 PROFIBUS DP-V1 Error Codes The Error codes returned by a PROFIBUS DP-V1 slave device are defined in the PROFIBUS DP-V1 Extension to the PROFIBUS standard. This section lists the Error codes, which can be returned as a result of a PROFIBUS DP-V1 MSAC1 services. From these codes, the user can determine the cause of the failure.
Page 299
Appendices Error Code 1 Byte Error Class Code Error Code Description 0 to 9 Reserved Application • 0: Read error Error codes related to the application, i.e. the slave device it self or I/O modules connected to • 1: Write error this device.
Page 300
Appendices A-34 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Page 301
Index CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509) Index-1...
Page 302
Index Index Access Rights ....... 3-13 FDT Container Application ..... 1-8 Add Device .
Need help?
Do you have a question about the CJ Series and is the answer not in the manual?
Questions and answers