Omron CJ1W-PRT21 Operation Manual
Omron CJ1W-PRT21 Operation Manual

Omron CJ1W-PRT21 Operation Manual

Machine automation controller, cj / nj-series, profibus slave unit, cpu unit
Hide thumbs Also See for CJ1W-PRT21:
Table of Contents

Advertisement

Quick Links

ZX-T Series
Machine Automation Controller
CJ-series
PROFIBUS Slave Unit
Operation Manual
for NJ-series CPU Unit
CJ1W-PRT21
PROFIBUS Slave Unit
W510-E2-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron CJ1W-PRT21

  • Page 1 ZX-T Series Machine Automation Controller CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit CJ1W-PRT21 PROFIBUS Slave Unit W510-E2-01...
  • Page 3: Introduction

    Thank you for purchasing a CJ-series CJ1W-PRT21 PROFIBUS Slave Unit. This manual contains information that is necessary to use the CJ-series CJ1W-PRT21 PROFIBUS Slave Unit for an NJ-series CPU Unit. Please read this manual and make sure you understand the func- tionality and performance of the NJ-series CPU Unit before you attempt to use it in a control system.
  • Page 4: Relevant Manuals

    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.
  • Page 5: Manual Configuration

    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 Section Description This section provides a brief description of PROFIBUS-P. It also addresses the Section 1 overall specification and the communication performance of the CJ1W-PRT21 Features and System Configuration PROFIBUS-DP Slave Unit. Section 2 This section describes the nomenclature, functionality and installation of the PROFI- Nomenclature and Installation BUS Slave Unit.
  • Page 8 Introduction Section Description Section 8 This section provides the basic specifications for the other Units used in Slice I/O ter- Other Units minals. Section 9 This section describes error processing and troubleshooting procedures needed to Troubleshooting keep the Slice I/O Units operating properly. The appendices describe the following: Explicit Messages Standard Models...
  • Page 9: Manual Structure

    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 headings. Level 3 heading 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 10 “upload” refers to transferring data from the physical Controller to the Sysmac Studio. In this manual, the CJ1W-PRT21 PROFIBUS Slave Unit may be referred to as the “PROFIBUS Slave Unit” and the CJ1W-PRM21 PROFIBUS Master Unit may be referred to as the “PROFIBUS Master Unit”.
  • Page 11: Sections In This Manual

    Introduction Sections in this Manual Features and System Configuration Nomenclature and Installation Data Exchange with the CPU Unit Troubleshooting and Maintenance Appendices Index CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 12: Read And Understand This Manual

    WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY. In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted. IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS...
  • Page 13 Application Considerations SUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the combination of products in the customer's application or use of the products. At the customer's request, OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products.
  • Page 14 Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
  • Page 15 CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 16: Table Of Contents

    1-1-7 Diagnostic Functions ........................1-7 1-1-8 Protection Mechanisms ......................1-8 1-1-9 Network Operation Modes ......................1-8 Configuring the CJ1W-PRT21 Slave Unit ................1-10 PROFIBUS Slave Unit ......................1-14 1-3-1 Specifications ........................... 1-14 1-3-2 Performance ..........................1-15 Basic Operating Procedures ....................1-17 1-4-1 Overview ..........................
  • Page 17 2-1-2 Indicators ........................... 2-2 2-1-3 Switch Settings .......................... 2-3 2-1-4 PROFIBUS Connector ....................... 2-4 Installing the PROFIBUS-DP Slave Unit ................2-5 2-2-1 System Configuration Precautions .................... 2-5 2-2-2 Mounting ............................ 2-5 2-2-3 Handling Precautions ......................... 2-6 2-2-4 External Dimensions ........................2-7 Network Installation ........................
  • Page 18 A-1-1 Functional Difference .........................A-2 A-1-2 Differences in Access Methods from a User Program ...............A-2 A-2 GSD File for CJ1W-PRT21 ......................A-7 A-3 Parameterization by the PROFIBUS Master Unit ...............A-14 Index CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 19: Safety Precautions

    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 20 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 21 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 22 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 23 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 24 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 25 • 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 26 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 27 • 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 28 • 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 29 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.
  • Page 30: Precautions For Correct Use

    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 31 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 32 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.
  • Page 33: Regulations And Standards

    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 34 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.
  • Page 35: Unit Versions

    Gives the lot number and serial number of the Unit. serial number 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 36 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...
  • Page 37: Related Manuals

    GRT1-PRT Learning about the GRT1- Describes the GRT1-PRT PROFIBUS Commu- Communication Unit series SmartSlice PROFI- nications Unit for OMRON’s SmartSlice I/O Operation Manual NET Communication Unit. Units. It also describes how to install and opera- tion the Unit. SmartSlice GRT1 Series...
  • Page 38: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number on the front and back covers of the manual. W510-E2-01 Cat. No. Revision code Revision code Date Revised content September 2011 Original production CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 39: Features And System Configuration

    Network Operation Modes ........1-8 1-2 Configuring the CJ1W-PRT21 Slave Unit ......1-10 1-3 PROFIBUS Slave Unit .
  • Page 40: Overview Of Profibus

    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.
  • Page 41: Profibus Communication Protocol

    1 Features and System Configuration Precautions for Correct Use Precautions for Correct Use It is not possible to exchange one of these family members by another family member. This will cause faulty operation. 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).
  • Page 42: Gsd File Technology

    1 Features and System Configuration  RS-485 Transmission Speed Transmission speeds between 9.6 kbps and 12 Mbps can be selected. One unique transmission speed must selected for all devices on the bus when the system is commissioned.  Cable Length The maximum cable length depends on the transmission speed.
  • Page 43: Device Types

    1 Features and System Configuration 1-1-4 Device Types PROFIBUS distinguishes between master devices and slave devices. The CJ1W-PRT21 is a PROFI- BUS slave device. Master Devices Master devices determine the data communication on the bus. A Master can send messages without an external request, as long as it holds the bus access right (the token).
  • Page 44 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.
  • Page 45: Data Throughput

    1 Features and System Configuration 1-1-6 Data Throughput  Transmission Time At 12 Mbps, PROFIBUS-DP requires only about 1 ms for the transmission of 512 bits of input data and 512 bits of output data distributed over 32 stations. The figure below shows the typical PROFI- BUS-DP transmission time depending on the number of stations and the transmission speed.
  • Page 46: Protection Mechanisms

    If the master’s Auto_Clear mode is enabled, the DPM1 exits the Operate state, switches the outputs of all assigned slaves to fail-safe status and changes to its Clear state (see 1-2 Configuring the CJ1W-PRT21 Slave Unit).  Monitoring at the Slave The slave uses the watchdog control to detect failures of the master or the transmission line.
  • Page 47 1 Features and System Configuration Auto_Clear When an error occurs during the data transfer phase of the DPM1, the ‘Auto_Clear’ configuration setting determines the subsequent actions. If this parameter is set to false, the DPM1 remains in the 'Operate' state. If set to true, the DPM1 switches the outputs of all assigned DP slaves to the fail- safe state and the network state changes to the 'Clear' state (see 3-6-2 Status Flags (*_SlvSta)).
  • Page 48: Configuring The Cj1W-Prt21 Slave Unit

    I/O configuration for the slave is correct. The CJ1W-PRT21 Slave Unit will accept any in/out words up to 100 input, 100 output words. The maximum of input + outputs must be 180 words or less.
  • Page 49 1 Features and System Configuration Name Description Fail-Safe Support ON: After the master sends a global control command ‘CLEAR’, the slave can accept data tele- grams containing no data, while still remaining in data exchange mode OFF: After the master sends a global control command ‘CLEAR’, the slave requires data telegram containing 0000 as data in order to remain in data exchange mode.
  • Page 50 Master (see 3-8 CPU Status Information) Example Configuration The example below shows a slave configuration screen. The CJ1W-PRT21 is configured as a slave with 2 words input for status information and (16+16+4) 36 words input data and (16+16+8) 40 words output data.
  • Page 51 1 Features and System Configuration Slave CPU status indication configured as Cyclic by first 2 input words If the Slave CPU status indication is configured as Cyclic by first 2 input words then the connections between master and slave are as follows: Master Slave IN word...
  • Page 52: Profibus Slave Unit

    1 Features and System Configuration PROFIBUS Slave Unit 1-3-1 Specifications Model Code CJ1W-PRT21 Maximum number of Units per CPU system Current consumption 400 mA (maximum) at 5 VDC from CPU power supply Weight 90 g (typical) Storage temperature C to +70...
  • Page 53: Performance

    1-3-2 Performance The task of the CJ1W-PRT21 is to exchange predetermined amounts of data between the host CPU system and a PROFIBUS-DP master unit. Its performance in terms of data transfer rate is therefore mainly governed by two factors external to the Unit: the PROFIBUS-DP cycle time and the host CPU’s cycle time.
  • Page 54 The time required to exchange I/O data between the CJ1W-PRT21 and its master will depend on the number of input and output words defined in the master’s configuration, the selected baud rate and on the performance of the master unit itself.
  • Page 55: Basic Operating Procedures

    No. W501). Configure the PROFIBUS Slave Unit using CX-Config- uratorFDT on the PC (See sections 1-2 Configuring the CJ1W-PRT21 Slave Unit). Download configuration data to PROFIBUS Master Unit. (See CJ-series PROFIBUS Master Unit Opera- tion Manual for NJ-series CPU Unit, Cat. No. W509).
  • Page 56 1 Features and System Configuration 1-18 CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 57: Nomenclature And Installation

    Nomenclature and Installation This section describes the nomenclature and installation of the PROFIBUS Slave Unit. 2-1 Unit Components ..........2-2 2-1-1 Nomenclature .
  • Page 58: Unit Components

    The front view shows the indicators, the rotary switches, and the 9-pin female sub-D PROFIBUS-DP connector. 2-1-2 Indicators The CJ1W-PRT21 has 5 indicators. Three indicators (RUN, Two indicators (COMM PRT21 ERC and ERH) give a and BF) are related to...
  • Page 59: Switch Settings

    Any Machine number in the setting range is allowed as long as it has not been set on another Spe- cial I/O Unit connected to the CPU. If the same number is used for the CJ1W-PRT21 and another Special I/O Unit, an error will occur in the CPU and it will not be possible to start up the PROFIBUS- DP Slave communication (see A-1-2 Differences in Access Methods from a User Program).
  • Page 60: Profibus Connector

    2 Nomenclature and Installation 2-1-4 PROFIBUS Connector The fieldbus connector is a 9-pin female sub-D connector, as recommended in the PROFIBUS stan- dard EN50170 Vol.2. Pin No. Signal Description Shield Shield / functional ground B-line Data signal Direction control signal for repeaters (TTL) DGND Data ground Supply voltage for terminator resistance (+5 VDC)
  • Page 61: Installing The Profibus-Dp Slave Unit

    2 Nomenclature and Installation Installing the PROFIBUS-DP Slave 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-DP Slave Unit.
  • Page 62: Handling Precautions

    2 Nomenclature and Installation Move the yellow sliders on the top and bottom of the Unit until they click into position, to lock. Precautions for Safe Use If the sliders are not securely locked, the PROFIBUS Slave Unit may not operate sufficiently. To dismount the Unit, move the sliders to the “Release”...
  • Page 63: External Dimensions

    2 Nomenclature and Installation 2-2-4 External Dimensions 31 mm 5 mm 65 mm PRT21 RUN ERC COMM MACH NODE 90 mm CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 64: Network Installation

    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 65 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.
  • Page 66: Bus Termination

    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.
  • Page 67: Profibus Cable Connector

    2 Nomenclature and Installation Installing the inductors applies to all devices on the network, and not only to the devices at both ends of the bus cable. 2-3-3 PROFIBUS Cable Connector  Bus Cable Connector The plug connector to be used on the CJ-series PROFIBUS-DP Slave 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.
  • Page 68 2 Nomenclature and Installation For further information regarding PROFIBUS network installation, please refer to “Installation Guide- line for PROFIBUS DP/FMS” (PNO Order No. 2.112), which is available at every regional PROFI- BUS Organization. The information covers: • Test run of PROFIBUS equipment. •...
  • Page 69: Data Exchange With The Cpu Unit

    This section describes the interface and data exchange between the NJ-series CPU and the PROFIBUS-DP CJ1W-PRT21 Slave Unit. 3-1 Input and Output Data ......... . 3-2 3-2 I/O Data Mapping .
  • Page 70: Input And Output Data

    Input and Output Data The CJ1W-PRT21 forms a link between two bus systems: the host CPU’s I/O bus and the PROFIBUS- DP Master. The Unit can be considered as a slave to both systems: the I/O bus communication is con- trolled by the host CPU Unit and the PROFIBUS-DP communication is controlled by a PROFIBUS-DP Master.
  • Page 71: I/O Data Mapping

    Host CPU I/O Area (Not allocated words I/O Area (Not used Data Link Area (Not allocated words CJ1W-PRT21 Internal I/O Areas CPU Bus unit area (Not allocated words Special I/O Unit Area Input buffer (Not allocated words Max. 100 words...
  • Page 72 How to Create Device Variables for CJ-series Unit and Sysmac Studio (Ver. 1.0) Operation Manual (Cat. No. W504). • For CJ1W-PRT21, the maximum amount of mapped I/O data is 100 words input + 100 words output with the following restrictions that inputs + outputs must be 180 words or less.
  • Page 73: I/O Data Format

    3 Data Exchange with the CPU Unit I/O Data Format The CJ1W-PRT21 allows the user to select between two methods to map the word-oriented CPU data to the essentially byte-oriented PROFIBUS-DP messages. The default method is Motorola format (Big- Endian), which allows easy data exchange with other OMRON PROFIBUS-DP devices. For communi- cation with other manufacturers’...
  • Page 74: Profibus Startup Data

    3 Data Exchange with the CPU Unit PROFIBUS Startup Data The mapping of PROFIBUS I/O data to the host CPU is controlled by the Set_Prm (set parameter) and Chk_Cfg (check configuration) telegrams sent by the PROFIBUS Master. At startup of the PROFIBUS communication the following commands are sent Master Slave...
  • Page 75 3 Data Exchange with the CPU Unit Additional Information • Until the Set_Prm and Chk_Cfg have been accepted by the Unit, only the control and status words are exchanged with the host CPU. The status information will indicate that no I/O data is exchanged.
  • Page 76: Data Exchange With The Cpu Unit

    3 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 Slave Unit. 3-5-1 Data Flow The CPU Unit and CJ-series PROFIBUS Slave Unit exchange various types of information at each I/O refresh via the memory for CJ-series Units within the CPU Unit.
  • Page 77 3 Data Exchange with the CPU Unit CPU Unit PROFIBUS Slave Unit User program I/O Port CPU Special Unit Words Allocated in CIO Area Software Switches (I/O refresh) Corresponding Mach No #0 device variable (I/O refresh) Status (10 wds) for CJ-series Unit Mach No #15 (10 wds) Allocated DM Area...
  • Page 78 The user program uses device variables for CJ-series Units to access the Configuration for a unit such as the CJ1W-PRT21. For allocation of the device variables for CJ-series Unit to the I/O port, refer to How to Create Device Variables for CJ-series Unit on page 11.
  • Page 79: Accessing From The User Program

    Sysmac Studio is used to register user-defined variables to the variable table. Specify the user-defined variables in memory used for CJ-series Unit to which slaves can be allocated. Below is an example of allocation to user-defined variables.  CJ1W-PRT21 Slave Unit Configuration • Machine Number 1 • Station Address 2 •...
  • Page 80 3 Data Exchange with the CPU Unit • 1 Word Out (from master) to host CPU memory area CIO 350 • CX-ConfiguratorFDT configuration (downloaded to Master Unit):  CJ1W-PRM21 Master Unit Configuration • Unit Number 1 • Station Address 1 •...
  • Page 81 3 Data Exchange with the CPU Unit Allocate the I/O data to the user-defined variables as shown in the example below. 3-13 CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 82 3 Data Exchange with the CPU Unit Additional Information For details on CJ Unit memory, variable allocation and user-defined variable registration, refer to Sysmac Studio (Ver. 1.0) Operation Manual (Cat. No. W504). 3-14 CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 83: Device Variables For Cj-Series Unit (Software Switches, Statuses)

    3-6-1 Software Switches (*_SwCmd) The PROFIBUS-DP communication status of CJ1W-PRT21 can be controlled through the first CIO word (device variable *_SwCmd) allocated via the Machine No. setting. The communication status set by these bits is retained until the Unit is restarted (Power-on or reset). After a restart, PROFIBUS-DP communication is enabled by default.
  • Page 84: Status Flags (*_Slvsta)

    3-6-2 Status Flags (*_SlvSta) The CJ1W-PRT21 indicates its status in the second CIO word (device variable *_Sta) allocated via the Machine No. setting. The lower byte shows the PROFIBUS-DP related status information and the higher byte indicates configuration errors. At power-on, or after a reset of the unit, the initial value shall be 0000.
  • Page 85: Slave Parameter Data (*_Slvparamsta)

    3 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_DatXchgActSta BOOL Data exchange FALSE: active The slave unit is not in data exchange mode. TRUE: The slave unit is exchanging I/O data with the master.
  • Page 86 3 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_FailSafeEnblSta BOOL Fail-safe FALSE: After the master sends a global control enabled command CLEAR, the slave requires data tele- grams containing 0000 as data, in order to remain in data exchange mode.
  • Page 87 3 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_EndAdrInErr BOOL Incorrect end FALSE: No error address for TRUE: There is an error in the slave input area slave input mapping. The end address of the area as spec- area ified by the start address in the Set_Prm tele- gram, plus the data length in the Chk_Cfg...
  • Page 88 Device Variables for CJ-series Unit (Configuration) The CJ1W-PRT21 provides 8 consecutive DM words to indicate configuration and parameterisation data received from the PROFIBUS-DP master unit. These words are not part of the cyclic refresh, but the unit writes this information to the Host CPU when the data in the unit changes. At power-on, or at a reset of the unit, all data will be set to 0.
  • Page 89 3-7-1 Slave Parameter Data (*_SlvParamSta) The CJ1W-PRT21 unit indicates slave parameter data information in the first two words of the allocated Dm and Dm+1 area (*_SlvParamSta) allocated via the Machine No. setting. 15 14 13 12 11 10...
  • Page 90: Slave Output Data (*_Slvoutsta)

    3-7-2 Slave Output Data (*_SlvOutSta) The CJ1W-PRT21 unit indicates configuration information and operational behavior settings for slave output data from the master to the slave (Dm+2, Dm+3 and Dm+4). 15 14 13 12 11 10...
  • Page 91 3 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_SlvOutAreaCode USINT Output area Output area code (data from Master to Slave code CPU). Indicates the area to which the unit will write PROFIBUS output data received from its master.
  • Page 92: Slave Input Settings (*_Slvinsta)

    3-7-3 Slave Input Settings (*_SlvInSta) The CJ1W-PRT21 unit indicates configuration information and operational behavior settings for slave input data from the Slave CPU to the master (Dm+5, Dm+6 and Dm+7). 3-24 CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 93 3 Data Exchange with the CPU Unit 15 14 13 12 11 10 *_SlvInSta *_SlvInAreaCode *_SlvInProgCont/*_SlvInProgExit *_SlvInFatlCont/*_SlvInFatlExit *_SlvInIntelMd *_SlvInclPLCSta Name of Device Variable for CJ- Type Description Function series Unit *_SlvInAreaCode USINT Input area Input area code (data from Slave CPU to Mas- code ter).
  • Page 94 3 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_SlvInFatlCont BOOL Continue on Indicates how the slave will behave on PROFI- Fatal error BUS in case (the communication with) the host CPU has a fatal error (CPU ERH indicator ON) *_SlvInFatlExit BOOL...
  • Page 95 3 Data Exchange with the CPU Unit Name of Device Variable for CJ- Type Description Function series Unit *_SlvInStartAdr UINT Input start Indicates the start address in the area indicated address in *_SlvInSta, from which the PROFIBUS input data will be read (data from Slave CPU to Mas- ter).
  • Page 96: Cpu Status Information

    3 Data Exchange with the CPU Unit CPU Status Information The user may specify that the first two input words to be sent over PROFIBUS that will contain status information about the slave CPU. This information is also contained in the PROFIBUS-DP diagnostics, but access to cyclic I/O data may be easier than access to diagnostics.
  • Page 97: Troubleshooting And Maintenance

    This section describes the troubleshooting procedure, event logs and maintenance procedure for the CJ1W-PRT21 PROFIBUS Slave Unit. 4-1 Error Indicators ..........4-2 4-1-1 Determining Operating Status from the Indicators .
  • Page 98: Error Indicators

    4-1-1 Determining Operating Status from the Indicators The CJ1W-PRT21 Unit uses 5 indicators (RUN, ERC, ERH, BF, and COM) to indicate the status of Unit and network communications. The indicators can provide a clue for quick resolution of system prob- lems.
  • Page 99: Errors During Initial Processing

    4 Troubleshooting and Maintenance 4-1-2 Errors During Initial Processing Error Probable Cause Remedy • The CPU power is off • Apply power to the CPU • The Unit is defective • Replace the Unit CPU Error • An error was detected in the •...
  • Page 100 4 Troubleshooting and Maintenance COMM Error Probable Cause Remedy PROFIBUS • *_StartCommCmd is FALSE • Change the *_StartCommCmd to TRUE. communication • The PROFIBUS configura- • Verify that the correct GSD-file is used in error tion is not correct. the master. Also check the Slave Unit’s station address is matching the Master •...
  • Page 101: Standard And Extended Diagnostics

    PROFIBUS-DP specifies standard diagnostics and extended diagnostics. The standard diagnostics have a fixed format defined in the PROFIBUS standard. The extended diagnostics are meant for user diagnostics. CJ1W-PRT21 provides extended diagnostics to inform the PROFIBUS master unit about the status of the slave unit and its host CPU.
  • Page 102: Event Logs

    4 Troubleshooting and Maintenance Event Logs 4-3-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 103 4 Troubleshooting and Maintenance Level Event code Event name Meaning Assumed cause Obs Info 38180000 hex Parame- The Slave has Parameter Error can be caused by: ter/Configu- received incorrect • Invalid standard parameter settings (valid ration Error parameter and/or settings are described in the PROFIBUS configuration mes- standard).
  • Page 104 4 Troubleshooting and Maintenance 4-3-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.
  • Page 105: Error Descriptions

    4 Troubleshooting and Maintenance Error Descriptions Event name Parameter/Configuration Error Event code 38180000 hex Meaning The Slave Unit has not received and accepted Set_Prm and Chk_Cfg telegrams from a master. Source Function Module Source details CJ-series Unit Detection At startup of net- timing work Error attributes...
  • Page 106: Maintenance And Replacement

    4 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. 4-4-1 Cleaning Clean the PROFIBUS Slave Unit regularly as described below in order to keep the network in its opti- mal operating condition.
  • Page 107: Replacing Faulty Units

    Unit. • If 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 108 4 Troubleshooting and Maintenance 4-12 CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
  • Page 109: Appendices

    A-2 GSD File for CJ1W-PRT21 ........
  • Page 110: Differences Of Nj Series From Cj Series

    Differences of NJ Series from CJ series You can use the CJ1W-PRT21 PROFIBUS Slave Unit with the NJ-series Units. If this Unit is used with the NJ Series, some functions become unavailable compared to when it is used with the CJ Series.
  • Page 111 Appendices The CIO and DM number occupied by the PROFIBUS Slave Unit are set by the machine number rotary switch on the front of the Unit. Allocated CIO words (Start address CIO Area = 2000 + MACH No. x 10) MACH No.
  • Page 112 Appendices Special I/O Units Area (Allocated CIO Area Words)  CIO n (Software Switches) The device variable for CJ-series Unit that corresponds to all bits of a word in CIO n is as follows: CJ-series I/O memory address NJ-series device variables for CJ-series Unit Word address Variable name Description...
  • Page 113 Appendices Special I/O DM Area (Allocated DM Area Words)  DM and DM + 1 (Slave Parameter Data) The device variable for CJ-series Unit that corresponds to all bits of the words in DM and DM + 1 are as follows: CJ-series I/O memory address NJ-series device variables for CJ-series Unit Word address...
  • Page 114 Appendices CJ-series I/O memory address NJ-series device variables for CJ-series Unit Word address Variable name Description DM + 4 0 to 15 *_SlvOutDatLen Output data length  DM + 5 to DM + 7 (Slave Input Settings) The device variable for CJ-series Unit that corresponds to all bits of the words in DM+5 to DM + 7 are as follows: CJ-series I/O memory address NJ-series device variables for CJ-series Unit...
  • Page 115: Gsd File For Cj1W-Prt21

    NL-2132 JD Hoofddorp The Netherlands Automation & Drives Development Centre Zilverenberg 2 NL-5234 GM 's-Hertogenbosch The Netherlands ;******************************************************************************* Device DataBase File for CJ1W-PRT21 PLC I/O Slave Filename: OC_0602.GSD Version : 2.2000 Date November 16, 2004 (C) Copyright OMRON Corporation 2004 All Rights Reserved ;*******************************************************************************...
  • Page 116 Appendices ; (0991860-9A). Software_Release = "V2.0" ; Software revision 2.0. Bitmap_Device = "OC0602_R" ; Bitmap RUNNING Bitmap_Diag = "OC0602_D" ; Bitmap DIAGNOSTIC Bitmap_SF = "OC0602_S" ; Bitmap SPECIAL ; Specific implementation information *****************************************/ Implementation_type = "SPC3" ; DP protocol. ; handled by SPC3. Redundancy ;...
  • Page 117 Appendices Modular_Station ; Modular station. Max_Module = 32 ; Maximum # of modules: 32. Max_Input_Len = 200 ; Maximum # of input bytes. Max_Output_Len = 200 ; Maximum # of output bytes. Max_Data_Len = 360 ; Maximum # of data bytes. PrmText=1 Text(1)="Continue I/O data exchange"...
  • Page 118 Appendices Text(0)="PROFIBUS diagnostics only" Text(1)="Cyclic by first 2 input words" EndPrmText ExtUserPrmData=1 "Action on slave PLC PROGRAM mode" BitArea(0-1) 1 1-2 Prm_Text_Ref=1 EndExtUserPrmData ExtUserPrmData=2 "Action on slave PLC I/O bus fail" BitArea(2-3) 2 1-2 Prm_Text_Ref=1 EndExtUserPrmData ExtUserPrmData=3 "Input from slave PLC area" Unsigned8 1 1-20 Prm_Text_Ref=2 EndExtUserPrmData...
  • Page 119 Appendices BitArea(0-3) 0 0,4 Prm_Text_Ref=6 EndExtUserPrmData ExtUserPrmData=12 "Slave PLC status indication" Bit(7) 0 0,1 Prm_Text_Ref=7 EndExtUserPrmData ; User parameter message definition *******************************************/ Max_User_Prm_Data_Len = 11 Ext_User_Prm_Data_Ref(0) = 10 Ext_User_Prm_Data_Ref(0) = 11 Ext_User_Prm_Data_Ref(3) = 9 Ext_User_Prm_Data_Ref(3) = 8 Ext_User_Prm_Data_Ref(4) = 6 Ext_User_Prm_Data_Ref(5) = 7 Ext_User_Prm_Data_Ref(7) = 1 Ext_User_Prm_Data_Ref(7) = 2...
  • Page 120 Appendices ; Default configuration ;1 word Out (No Cons.) ;1 word In (No Cons.) ; I/O definitions: Module = " 1 word In/Out" 0xF0 ; 1 word I/O. EndModule Module = " 2 words In/Out" 0xF1 ; 2 words I/O. EndModule Module = "...
  • Page 121 Appendices Module = " 1 word Out (No Cons.)" 0x60 ; 1 word Out. EndModule Module = " 2 words Out (No Cons.)" 0x61 ; 2 words Out. EndModule Module = " 4 words Out (No Cons.)" 0x63 ; 4 words Out. EndModule Module = "...
  • Page 122: Parameterization By The Profibus Master Unit

    Appendices Parameterization by the PROFIBUS Master Unit The parameterisation of the passive stations by the master is first done in the start-up phase of the PROFIBUS-DP system and is also possible in the data exchange mode. The first 10 bytes of parameter data are defined by the PROFIBUS standard the additional 9 bytes are device specific.
  • Page 123 Index Index-1 CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
  • Page 124 Index Index Action on Slave PLC I/O Bus Fail ....1-11 Fail-Safe Support ......1-11 Action on Slave PLC PROGRAM Mode .
  • Page 125 Index Parameterisation ......A-14 Physical Layer ....... . 1-3 Polling Procedure .
  • Page 126 Buyer indemnifies Omron against all related costs or expenses. rights of another party. 10. Force Majeure. Omron shall not be liable for any delay or failure in delivery 16. Property; Confidentiality. Any intellectual property in the Products is the exclu-...
  • Page 127 OMRON ELETRÔNICA DO BRASIL LTDA • HEAD OFFICE São Paulo, SP, Brasil • 55.11.2101.6300 • www.omron.com.br OMRON EUROpE B.V. • Wegalaan 67-69, NL-2132 JD, Hoofddorp, The Netherlands. • Tel: +31 (0) 23 568 13 00 Fax: +31 (0) 23 568 13 88 • www.industrial.omron.eu Cat.

Table of Contents