Omron CJ Series Connection Manual

Omron CJ Series Connection Manual

General-purpose serial, rs-485 modbus communication, multi-function compact inverter
Hide thumbs Also See for CJ Series:

Advertisement

Quick Links

DATASHEET
OMRON
3G3AX-MX2-EIO15-E
OTHER SYMBOLS:
RGB ELEKTRONIKA AGACIAK CIACIEK
SPÓŁKA JAWNA
Jana Dlugosza 2-6 Street
51-162 Wrocław
Poland
biuro@rgbelektronika.pl
+48 71 325 15 05
www.rgbautomatyka.pl
www.rgbelektronika.pl
www.rgbelektronika.pl
www.rgbautomatyka.pl

Advertisement

Table of Contents
loading

Summary of Contents for Omron CJ Series

  • Page 1 DATASHEET OMRON 3G3AX-MX2-EIO15-E OTHER SYMBOLS: RGB ELEKTRONIKA AGACIAK CIACIEK SPÓŁKA JAWNA Jana Dlugosza 2-6 Street 51-162 Wrocław www.rgbelektronika.pl Poland biuro@rgbelektronika.pl +48 71 325 15 05 www.rgbautomatyka.pl www.rgbautomatyka.pl www.rgbelektronika.pl...
  • Page 2 YOUR PARTNER IN MAINTENANCE Repair this product with RGB ELEKTRONIKA ORDER A DIAGNOSIS LINEAR ENCODERS SYSTEMS INDUSTRIAL COMPUTERS ENCODERS CONTROLS SERVO AMPLIFIERS MOTORS MACHINES OUR SERVICES POWER SUPPLIERS OPERATOR SERVO PANELS DRIVERS At our premises in Wrocław, we have a fully equipped servicing facility. Here we perform all the repair works and test each later sold unit.
  • Page 3 CJ Series General-purpose Serial Connection Guide (RS-485 Modbus Communication) OMRON Corporation Multi-function Compact Inverter (3G3MX2 Series Type V1) P641-E1-01...
  • Page 4 About Intellectual Property Rights and Trademarks Microsoft product screen shots reprinted with permission from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation in the USA and other countries. Company names and product names in this document are the trademarks or registered trademarks of their respective companies.
  • Page 5: Table Of Contents

    Table of Contents Related Manuals ..................1 Terms and Definitions ................2 Precautions ....................3 Overview ....................4 Applicable Devices and Device Configuration ........5 5.1. Applicable Devices ................5 5.2. Device Configuration ................6 Serial Communications Settings ............. 8 6.1.
  • Page 6: Related Manuals

    Safety Precautions and Precautions for Safe Use of manuals for each device which is used in the system. The table below lists the manuals related to this document. Cat. No. Model Manual name W472 CJ2H-CPU6[]-EIP CJ Series CJ2H-CPU6[] CJ2 CPU Unit Hardware USER’S MANUAL CJ2M-CPU[][] W473 CJ2H-CPU6[]-EIP CJ Series CJ2H-CPU6[] CJ2 CPU Unit Software USER’S MANUAL...
  • Page 7: Terms And Definitions

    2.Terms and Definitions 2. Terms and Definitions Term Explanation and Definition Serial Gateway This is a function of PLC that performs serial communications by mode automatically converting a message (command data) to a specified protocol (either CompoWay/F, Modbus-RTU, or Modbus-ASCII) depending on a type of message.
  • Page 8: Precautions

    (4) It is prohibited to copy, to reproduce, and to distribute a part or the whole of this document without the permission of OMRON Corporation. (5) The information contained in this document is current as of November 2015. It is subject to change without notice for improvement.
  • Page 9: Overview

    4. Overview This document describes the procedures for connecting 3G3MX2 Series Type V1 Multi-function Compact Inverter (hereinafter referred to as Inverter) of OMRON Corporation (hereinafter referred to as OMRON) to CJ-series Programmable Controller + Serial Communications Unit (hereinafter referred to as PLC) of OMRON using serial communications as well as the procedures for checking their connections.
  • Page 10: Applicable Devices And Device Configuration

    This document describes the procedure to establish the network connection. It does not provide information on operation, installation, wiring method, device functionality or device operation which is not related to the connection procedure. Refer to the manuals or contact your OMRON representative.
  • Page 11: Device Configuration

    V2.0 Precautions for Correct Use Prepare a latest project file beforehand. To obtain a project file, contact your OMRON representative. Precautions for Correct Use Update CX-Programmer to the version specified in this clause or higher version. If you use a version higher than the one specified in this clause, the procedures and related screenshots described in Section 7.
  • Page 12 Additional Information For information on the serial cable (RS-485), refer to 3-4 RS-232C and RS-422A/485 Wiring of the CJ Series Serial Communications Units OPERATION MANUAL (Cat. No. W336). Additional Information The system configuration in this document uses USB for the connection between Personal computer and PLC.
  • Page 13: Serial Communications Settings

    6.Serial Communications Settings 6. Serial Communications Settings This section describes the specifications of parameters and wirings that are set in this document. 6.1. Parameters The parameters required for connecting PLC and Inverter using serial communications are shown below. Item PLC (Serial Communications Unit) Inverter Unit number Address number...
  • Page 14: Cable Wiring Diagram

    6.Serial Communications Settings 6.2. Cable Wiring Diagram Refer to SECTION 3 Installation and Wiring of the CJ Series Serial Communications Units OPERATION MANUAL (Cat. No. W336) for details on cable wirings. Check connector configurations and signal lines (pin assignments) before wiring.
  • Page 15: Serial Communications Connection Procedure

    7.Serial Communications Connection Procedure 7. Serial Communications Connection Procedure This section describes the procedures for connecting PLC to Inverter using serial communications. In this document, the explanations of procedures for setting up PLC and Inverter are based on the factory default settings. For the initialization, refer to Section 8. Initialization Method. 7.1.
  • Page 16: Setting Up Inverter

    7.Serial Communications Connection Procedure 7.2. Setting up Inverter Set up Inverter. 7.2.1. Hardware Settings Set the hardware switches on Inverter and connect the cables. Precautions for Correct Use Make sure that the power supply is OFF when you perform the setting up. Make sure that the power supply to Inverter is OFF.
  • Page 17 7.Serial Communications Connection Procedure Connect 3-Phase 200 VAC Main power supply input power supply to Main power terminal supply input terminal on Inverter with a Power supply cable. Power supply cable 3-Phase 200 VAC *For details on wiring power supply specifications of the power supply, refer to 2-3 Wiring of the Inverter Multi-function...
  • Page 18 7.Serial Communications Connection Procedure 7.2.2. Parameter Settings Set the parameters for Inverter. Check the positions of Data display and Operation keys on Data display Digital Operator. Operation keys Digital Operator Turn ON the power supply to Inverter. 0.00 Use the procedure on the right The output frequency is displayed in to display the parameters in the Data display.
  • Page 19 7.Serial Communications Connection Procedure c001 Use the procedure on the right to set the parameters as follows: C071 (Communication Speed Press the Increment Key or Selection): 05 (9600bps) Decrement Key to display C071 parameter. 03: 2400bps 07: 38.4kbps c071 04: 4800bps 08: 57.6kbps C071 parameter is displayed.
  • Page 20 7.Serial Communications Connection Procedure c072 Use the procedure on the right to set the parameters as follows: Press the Increment Key. C074 (Communication Parity Selection): 00 (No parity) c074 00: No parity C074 parameter is displayed. 01: Even parity 02: Odd parity Press the Enter Key.
  • Page 21 7.Serial Communications Connection Procedure c075 Use the procedure on the right to set the parameters as follows: C096 (Communication Press the Increment Key or Selection): 00 (Modbus Decrement Key to display communication) C096 parameter. c096 00: Modbus communication C096 parameter is displayed. 01: Co-inverter communication 02: Co-inverter communication (management inverter)
  • Page 22: Setting Up Plc

    7.Serial Communications Connection Procedure 7.3. Setting up PLC Set up PLC. 7.3.1. Hardware Settings Set the hardware switches on Serial Communications Unit and connect the cables. Precautions for Correct Use Make sure that the power supply is OFF when you perform the setting up. Make sure that the power supply to PLC is OFF.
  • Page 23 7.Serial Communications Connection Procedure Connect Serial Communications Unit to PLC as shown on the Personal Serial Communications Unit computer right. End Cover Connect Inverter to Port 1 on Serial cable USB cable (RS-485) Serial Communications Unit with a Serial cable (RS-485). CPU Unit Power Supply Unit *For connections, refer to 6.2...
  • Page 24 CX-Programmer starts. Select Open from the File Menu. The Open CX-Programmer Project Dialog Box is displayed. Select OMRON_3G3MX2-V1_Mod485 _EV100.cxp and click Open. *Obtain the project file from OMRON. After opening the project file, select Programs in the project workspace.
  • Page 25 7.Serial Communications Connection Procedure Select Change Model from the PLC Menu. The Change PLC Dialog Box is displayed. From the pull-down list of Device Type, select the device type of PLC that you use. Click Settings. *CJ2M is selected in this document.
  • Page 26 7.Serial Communications Connection Procedure Check that USB is set for Network Type on the Change PLC Dialog Box. Click OK. *If USB is not set for Network Type, select USB from the pull-down list. *If you changed Device Type in step 8 or CPU Type in step 9, the dialog box on the right is displayed.
  • Page 27 7.Serial Communications Connection Procedure A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes. Check that CX-Programmer and PLC are normally connected online. *The icon is pressed down during online connection. Additional Information If PLC cannot be connected online, check the cable connection After you check the cable connection, return to step 6, check the settings such as the connection type in steps 7 to 9 and try again.
  • Page 28 7.Serial Communications Connection Procedure 7.3.3. Creating the I/O Table Create the I/O table for PLC. If the operating mode of PLC is Run Mode or Monitor Mode, change it to Program Mode by following the steps below. (1)Select Operating Mode - Program from the PLC Menu of CX-Programmer.
  • Page 29 7.Serial Communications Connection Procedure Select Create from the Options Menu in the PLC IO Table Window. A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes. A confirmation dialog box on the right is displayed.
  • Page 30 7.Serial Communications Connection Procedure 7.3.4. Parameter Settings Set the parameters for Serial Communications Unit. Double-click [0000] Main Rack in the PLC IO Table Window to expand the tree. Right-click 00 [1500] CJ1W-SCU42 and select Unit Setup. The View Parameters Dialog Box is displayed.
  • Page 31 7.Serial Communications Connection Procedure The setting items of Port1: Serial Gateway Settings are listed as shown in the right figure. (The figure shows the default values.) Select User settings from the pull-down list of Set Value for Port1: Port Settings. Set the following parameters in the same way as step 5.
  • Page 32 7.Serial Communications Connection Procedure A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes. Check that the transfer is completed as shown in the right dialog box. Click Close. A confirmation dialog box on the right is displayed.
  • Page 33 7.Serial Communications Connection Procedure Click Compare on the View Parameters Dialog Box. Check that a message "Compare successful" is displayed in the dialog box on the right. Click Close. Click OK on the View Parameters Dialog Box. Select Exit from the File Menu of the PLC IO Table Window to close.
  • Page 34 7.Serial Communications Connection Procedure 7.3.5. Transferring the Project Data Transfer the project data to PLC. Select Programs in the project workspace of CX-programmer. Select Transfer - To PLC from the PLC Menu. Select Program(s), Comments, and Program index. Click OK. *The I/O table and Special Unit Setup are unnecessary to transfer here, because they are...
  • Page 35 7.Serial Communications Connection Procedure The dialog box on the right is displayed (stating "Download successful") when the transfer is completed. Click OK. Select Programs in the project workspace. Select Transfer - Compare with PLC from the PLC Menu. Select Program(s) and click OK. Check that a message stating "Compare successful"...
  • Page 36: Checking The Serial Communications

    7.Serial Communications Connection Procedure 7.4. Checking the Serial Communications Start the send/receive processing and check that serial communications are normally performed. If the PLC memory is changed by malfunction during monitoring power flow and present value status in the Ladder Section Window or monitoring present values in the Watch Window, the devices connected to output units may malfunction, regardless of the operating mode of CPU Unit.
  • Page 37 7.Serial Communications Connection Procedure A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes. Check that the operating mode changes to Monitor Mode. In the Ladder Section Window, right-click Input_Start and select Set - On.
  • Page 38 7.Serial Communications Connection Procedure Select Edit - Memory from the PLC Menu. Double-click CIO from the list in the PLC Memory Window that is displayed. Enter 5500 in the Start Address Field in the displayed CIO Window. Check that the start address changes to CIO5500.
  • Page 39 7.Serial Communications Connection Procedure Check the received data in the CIO Window shown on the right. In the example on the right, the stored data starting from CIO5500 are in hexadecimal and are described as follows: ・2804: Command code ・0000: End code ・01: Address number of Inverter ・03: Function code ・04: Number of bytes to read...
  • Page 40: Initialization Method

    8.Initialization Method 8. Initialization Method This document provides explanations of setting procedures based on the factory default settings. Some settings may not be applicable as described in this document unless you use the devices with the factory default settings. 8.1. Initializing PLC To initialize the settings of PLC, it is necessary to initialize Serial Communications Unit and CPU Unit.
  • Page 41: Initializing Inverter

    8.Initialization Method 8.1.2. CPU Unit To initialize the settings of CPU Unit, select Clear All Memory Areas from the PLC Menu of CX-Programmer. Select Initialize on the Confirm All Memory Area Clear Dialog Box and click 8.2. Initializing Inverter For information on how to initialize Inverter, refer to 5-1-2 Parameter Initialization of the Multi-function Compact Inverter MX2 Series Type V1 User’s Manual (Cat.
  • Page 42: Program

    9.1. Overview The following explains specifications and functions of the program that are used to check the connection between OMRON Inverter (hereinafter referred to as Destination Device) and PLC (Serial Communications Unit (hereinafter referred to as SCU)). This program performs the Modbus-RTU communication by CMND instruction (by using the Serial Gateway function for SCU) to send and receive the command for Total Power ON Time Monitor and detects a normal end or an error end.
  • Page 43 9.Program 9.1.1. Outline of Processing The following figure shows the data flow from when PLC (SCU) issues command data to Destination Device by using serial communications (Modbus-RTU communication) until when it receives the response data from Destination Device. (1)The ladder program executes the deliver command instruction (CMND instruction) for which Modbus-RTU communication is specified.
  • Page 44 CMND instruction) and outlines the basic operations of the send/receive messages. Additional Information For details on the CMND instruction, refer to Network Instructions in SECTION 3 Instructions of the CJ Series Programmable Controllers INSTRUCTIONS REFERENCE MANUAL (Cat. No. W474). ●CMND instruction operand data S: First command word ・The first address is specified to set the send command.
  • Page 45 9.Program C: First control word ・The first address is specified to set the first control word. ・Data is set in the following format. Item Description Number of command data bytes The number of command data bytes is set. (#0002 to maximum data length) Number of response data bytes The number of response data bytes is set.
  • Page 46 9.Program ●Send/Receive messages Overview of send/receive messages S: Relation between the first command word (CMND instruction operand) and the send messages D: Relation between the receive messages and the first response word (CMND instruction operand) Additional Information Silent interval: Waiting time to recognize the first frame using the Modbus-RTU communication.
  • Page 47: Destination Device Command

    9.Program 9.2. Destination Device Command The functions to read or write coils or registers are defined as ''Modbus functions'' in the Modbus-RTU communication. The Destination Device can be operated (command execution) by using the Modbus functions to read or write coils or registers defined by Destination Device.
  • Page 48 9.Program 9.2.2. Detailed Description of the Function The following explains the details of Total Power ON Time Monitor (register number: #1017 to #1018) performed by using ''Read from Holding Register (function code: #03)''. Additional Information For details on register addresses and register numbers, refer to 8-9 Modbus Communication Data Lists of the Multi-function Compact Inverter MX2 Series Type V1 User’s Manual (Cat.
  • Page 49: Error Detection Processing

    9.Program 9.3. Error Detection Processing In this program, the error detection processing is performed by means of dividing the errors into the following areas (1) to (3). For details on error codes, refer to 9.7. Error Processing. CJ2M-CPU12 CJ1W-SCU42 Destination Device Serial cable (1)Errors when executing the CMND instruction (CMND instruction error) Errors such as the Unit error, the command format error, and the parameter error at the...
  • Page 50: Memory Maps

    9.Program 9.4. Memory Maps The following is the memory maps of this program. 9.4.1. Lists of Addresses The tables below list the addresses necessary to execute this program. You can change the allocation below to any addresses. Precautions for Correct Use Make sure there is no duplicated address when changing an address.
  • Page 51 9.Program ●Internal memory These addresses are used to operate this program only. Address Data type Variable name Description 5000.01 BOOL Local_CMND_Executing CMND instruction execution status is indicated. Turns ON when a CMND instruction is being executed, and turns OFF when a CMND instruction is not executed.
  • Page 52 For details on the allocated CIO area of SCU, refer to 2-3-2. CIO Area in 2-3. I/O Memory Allocations in SECTION 2 Initial Settings and I/O Memory Allocations of the CJ Series Serial Communications Units OPERATION MANUAL (Cat. No. W336).
  • Page 53: Ladder Program

    9.Program 9.5. Ladder program 9.5.1. Functional Components of the Ladder Program The functional components of this program are shown below. Major classification Minor classification Description 1.Initialization 1.1. Response code clear The area of use is cleared and the processing 1.2. Control word setting for initialization setting is performed as a CMND instruction preparation for communications.
  • Page 54 9.Program Outline Description 1.2. Control word setting The control word of CMND instruction is set. for CMND instruction For details on the settings, refer to 9.2.2. Detailed Description of the Function. 1.3. Send/Receive The FINS command and the Destination Device function are symbol setting set to the send symbol, and the receive data storage area is initialized.
  • Page 55 9.Program ●2. CMND instruction execution management Outline Description 2.1. CMND instruction CMND instruction executing status is entered. executing The executing state is reset at a normal end or an error end of the program. 2.2. CMND instruction CMND instruction is executed under the following execution conditions: Communications port No.7 can be used.
  • Page 56 9.Program Outline Description 2.3. Normal/Error Detects a normal end or an error end of the result of Detection send/receive processing. Processing It is identified as a normal end when all the following conditions are satisfied. ・Normal end of CMND instruction (No CMND instruction error) (Condition of ''No communication error'' is included in (1).) ・Receives normal messages from Destination Device (No Destination Device error)
  • Page 57 9.Program ●3. Normal end state management Outline Description 3.1. Normal end Turns ON the normal end flag if it is detected in 2.3. processing Normal/Error detection processing that the send/receive processing ends normally. 3.2. Response code Sets response code "#0000" for a normal end in the setting response code storage area.
  • Page 58 9.Program ●4. Error end state management Outline Description 4.1. Error end processing Turns ON the error end flag if it is detected in 2.3. Normal/Error detection processing that the send/receive processing ends in an error. 4.2. Response code Sets the response code corresponding to the error in the setting response code storage area when an error occurs.
  • Page 59: Timing Chart

    9.Program 9.6. Timing Chart The timing charts are shown below. The definitions of the timing chart patterns are as follows: Pattern Normal end Error end (1) Error end (2) Error end (3) CMND Communications Destination instruction error error Device error Command Normal Error...
  • Page 60: Error Processing

    CJ Series Communications Commands REFERENCE MANUAL (Cat. No. W342). Additional Information For details on the CMND instruction error and troubleshooting, refer to 12-3 Troubleshooting in SECTION 12 Troubleshooting and Maintenance of the CJ Series Serial Communications Units OPERATION MANUAL (Cat. No. W336). 9.7.2.
  • Page 61 9.Program 9.7.3. Destination Device Error Code Upper byte of H402 stores the following error codes. [Format] Error code #Always #00 [Error code list] Error code (hex) Description An unsupported function is specified. The specified address does not exist. The specified data is in an unacceptable format. Writing to a holding register is specified, but the data is out of the range allowed for the inverter.
  • Page 62: Revision History

    10.Revision History 10. Revision History Revision Date of revision Revision reason and revision page code November 16, 2015 First edition...
  • Page 64 2015 P641-E1-01 1115- (-)

Table of Contents