Omron E5*D Series Connection Manual

General-purpose serial. rs-485 compoway/f. machine automation controller,
Hide thumbs Also See for E5*D Series:

Advertisement

Quick Links

Machine Automation Controller NJ-series
General-purpose Serial
Connection Guide
(RS-485 CompoWay/F)
OMRON Corporation
Digital Temprature Controller
(E5□D / E5□C / E5□C-T)
P520-E1-02

Advertisement

Table of Contents
loading

Summary of Contents for Omron E5*D Series

  • Page 1 Machine Automation Controller NJ-series General-purpose Serial Connection Guide (RS-485 CompoWay/F) OMRON Corporation Digital Temprature Controller (E5□D / E5□C / E5□C-T) P520-E1-02...
  • Page 2 EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany. Sysmac is a trademark or registered trademark of OMRON Corporation in Japan and other countries for OMRON factory automation products. Company names and product names in this guide are the trademarks or registered trademarks...
  • Page 3: Table Of Contents

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

    1.Related Manuals Related Manuals To ensure system safety, make sure to always read and follow the information provided in all Safety Precautions and Precautions for Safe Use in the manuals for each device which is used in the system. The table below lists the manuals pertaining to this guide. Cat.
  • Page 5: Precautions

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

    E5□C or E5□C-T) to an NJ-series Machine Automation Controller + Serial Communications Unit (hereinafter referred to as the "Controller") via serial communications, both produced by OMRON Corporation (hereinafter referred to as "OMRON"), and for checking their communication status. Refer to Section 6. Serial Communications Settings and Section 7. Serial Communications Connection Procedure to understand setting methods and key points to send or receive a message via serial communications.
  • Page 7: Applicable Devices And Device Configuration

    5.Applicable Devices and Device Configuration Applicable Devices and Device Configuration 5.1. Applicable Devices The applicable devices are as follows: Manufacturer Name Model NJ501-□□□□ OMRON NJ-series CPU Unit NJ301-□□□□ NJ101-□□□□ OMRON Serial Communications Unit CJ1W-SCU□2 E5CD-□□2□□M-002 OMRON Digital Temperature Controller E5CD-□□2□□M-004 E5ED-□□4□□M-004...
  • Page 8 This guide describes the procedures for establishing 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 procedures. Refer to the manuals or contact your OMRON representative.
  • Page 9: Device Configuration

    Precautions for Correct Use Prepare the project file with a latest version beforehand. To obtain the project file, contact your OMRON representative. Precautions for Correct Use Update Sysmac Studio to the version specified in this Clause 5.2. or to a higher version.
  • Page 10 5.Applicable Devices and Device Configuration Additional Information For information on the serial cable (RS-485), refer to 3-3 RS-232C and RS-422A/485 Wiring of the CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit (Cat. No. W494). Additional Information The system configuration in this guide uses USB for the connection between the personal computer and the Controller.
  • Page 11: Serial Communications Settings

    6.Serial Communications Settings Serial Communications Settings This section describes the parameters and cable wiring, which are set up in this guide. 6.1. Parameters The following parameters are required to connect the Controller and the Digital Temperature Controller via serial communications. Controller Digital Temperature Setting item...
  • Page 12: Cable Wiring

    6.Serial Communications Settings 6.2. Cable Wiring Refer to Section 3 Installation and Wiring of the CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit (Cat. No. W494) for details on cable wiring. Check the connector configurations and pin assignments before wiring. ■Connector configuration and pin assignment Digital Temperature Controller (E5CD) applicable connector: Terminal block Pin No.
  • Page 13: Serial Communications Connection Procedure

    7.Serial Communications Connection Procedure Serial Communications Connection Procedure This section describes the procedures for connecting the Controller to the Digital Temperature Controller via serial communications. The procedures for setting up the Controller and the Digital Temperature Controller in this guide are based on the factory default settings. For the initialization, refer to Section 8.
  • Page 14: Digital Temperature Controller Setup

    7.Serial Communications Connection Procedure 7.2. Digital Temperature Controller Setup Set up the Digital Temperature Controller. 7.2.1. Parameter Settings Set parameters for the Digital Temperature Controller. Connect the power supply and a Serial cable serial cable to the terminal block (RS-485) located on the back of Digital Temperature Controller.
  • Page 15 7.Serial Communications Connection Procedure "in-t" (Initial Setting Level) is displayed on No. 1 display. Press the L (Level) Key again for less than 1 second. L (Level) Key The display changes to Communications Setting Level. "psel" (Protocol Setting) and < Setting value> "cwf"...
  • Page 16 7.Serial Communications Connection Procedure "len" (Communications Data Length) is displayed. Check that Communications <Setting value> Data Length is 7 bits. 7 or 8 bits (default: 7) *If the setting value is different, change it in the same way as step 6. Press the M (Mode) Key.
  • Page 17 7.Serial Communications Connection Procedure "in-t" ((Initial Setting Level) is displayed. Press the L (Level) Key for at least 1 second. L (Level) Key for at least 1 second The display returns to Operation Level as shown in step 4. Turn OFF Digital Temperature Controller.
  • Page 18: Controller Setup

    7.Serial Communications Connection Procedure 7.3. Controller Setup Set up the Controller. 7.3.1. Hardware Settings Set the hardware switches on the Serial Communications Unit and connect the cables. Precautions for Correct Use Make sure that the power supply is OFF when you set up. If it is ON, the settings described in the following steps and subsequent procedures may not be applicable.
  • Page 19 7.Serial Communications Connection Procedure Connect Serial Communications Personal Unit to Controller as shown on Serial Communications Unit computer the right. Controller End Cover Connect Digital Temperature Cable Serial cable Controller and Port 1 on Serial (RS-485) Communications Unit with the Power Supply Unit CPU Unit serial cable.
  • Page 20 Start Sysmac Studio. *If the User Account Control Dialog Box is displayed at start, make a selection to start Sysmac Studio. Click Import. The Import file Dialog Box is displayed. Select P520_NJ_CWF485_ OMRON_E5CD_V100.csm2 and click Open. *Obtain the project file from OMRON.
  • Page 21 7.Serial Communications Connection Procedure The P520_NJ_CWF485_ OMRON_E5CD_V100 project is displayed. Toolbox The following panes are displayed in this window. Left: Multiview Explorer Multiview Edit Pane Top right: Toolbox Explorer Bottom right: Controller Status Pane Top middle: Edit Pane The following tabs are displayed Controller Output Tab Build Tab...
  • Page 22 7.Serial Communications Connection Procedure 7.3.3. Checking the Parameters and Building Programs Check the parameters of the Serial Communications Unit, execute the program check on the project data, and build the project programs. Double-click CPU/Expansion Racks under Configurations and Setup in the Multiview Explorer.
  • Page 23 7.Serial Communications Connection Procedure Parameter group to show is set to Port1: Serial Gateway Settings. The setting items of Port1: Serial Gateway Settings are shown. Check that Port1: Port settings is set to User settings and that the other settings are the same as those listed in 6.1.
  • Page 24 7.Serial Communications Connection Procedure Double-click Task Settings under Configurations and Setup in the Multiview Explorer. The Task Settings Tab Page is displayed in the Edit Pane. Click the Program Assignment Settings Button. Check that Program0 is set in the Primary Task Field and that Run is set as the initial status.
  • Page 25 7.Serial Communications Connection Procedure 7.3.4. Going Online and Transferring the Project Data Go online with Sysmac Studio and transfer the project data to the Controller. Always confirm safety at the destination node before you transfer a user program, configuration data, setup data, device variables, or values in memory used for CJ-series Units from Sysmac Studio.
  • Page 26 7.Serial Communications Connection Procedure The Communications Setup Dialog Box is displayed. Select Direct connection via USB in the Connection type Field. Click OK. Select Online from the Controller Menu. The dialog box on the right is displayed, check the contents and click Yes.
  • Page 27 7.Serial Communications Connection Procedure The Synchronization Dialog Box is displayed. Check that the data to transfer (NJ501 shown on the right) is selected. Click Transfer To Controller. *After executing "Transfer To Controller", the Sysmac Studio data is transferred to Controller, and the data is synchronized.
  • Page 28 7.Serial Communications Connection Procedure As shown in the figure on the right, the font color that is used to display the synchronized data changes to the same color as the one used to specify "Synchronized". Check that a message is displayed stating "The Synchronization process successfully finished".
  • Page 29 7.Serial Communications Connection Procedure Select Reset Controller from the Controller Menu. *”Reset Controller” cannot be selected when the operating mode of Controller is RUN Mode. In this case, select Mode - PROGRAM Mode from the Controller Menu to change to PROGRAM mode, and then perform this step.
  • Page 30 7.Serial Communications Connection Procedure 7.3.5. Transferring the Unit Settings Transfer the setting data of the Serial Communications Unit. Select Online from the Controller Menu. When an online connection is established, a yellow line is displayed under the toolbar. Select Mode - PROGRAM Mode from the Controller Menu.
  • Page 31 7.Serial Communications Connection Procedure The 0 [Unit 0] : CJ1W-SCU42 (J01) Tab Page is displayed. Click Transfer to Controller. A confirmation dialog box is displayed. Check the contents and click Yes. A dialog box is displayed indicating that transferring is being performed.
  • Page 32 7.Serial Communications Connection Procedure Select Port1: Serial Gateway Settings from the pull-down list of Parameter group to show. Click Compare. Check that "≠" (mismatch) is not shown within the red oval in the figure on the right.
  • Page 33: Serial Communication Status Check

    7.Serial Communications Connection Procedure 7.4. Serial Communication Status Check Start the send/receive processing and confirm that serial communications performs normally. If you change the variable values on a Watch Tab Page when Sysmac Studio is online with the CPU Unit, the devices connected to the Controller may operate regardless of the operating mode of the CPU Unit.
  • Page 34 7.Serial Communications Connection Procedure Select Watch Tab Page from the View Menu. Select the Watch (Project)1 Tab. Check that the variables shown Communications start switch on the right are displayed in the The number of data bytes Name Column. String data *Click Input Name to add a variable.
  • Page 35: Initialization Method

    8.Initialization Method Initialization Method The setting procedures in this guide are based on the factory default settings. Some settings may not be applicable unless you use the devices with the factory default settings. 8.1. Initializing a Controller To initialize the settings of a Controller, it is necessary to initialize a Serial Communications Unit and a CPU Unit.
  • Page 36: Initializing A Digital Temperature Controller

    8.Initialization Method 8.1.2. CPU Unit To initialize the settings of a CPU Unit, select Clear All Memory from the Controller Menu in Sysmac Studio. The Clear All Memory Dialog Box is displayed. Check the contents and click OK. 8.2. Initializing a Digital Temperature Controller To initialize the settings of a Digital Temperature Controller, refer to Parameter Initialization in 6-8 Advanced Function Setting Level of the Digital Temperature Controllers User's Manual (Cat.
  • Page 37: Program

    (e.g.,"WORD#16#03E8") Additional Information OMRON has confirmed that normal communications can be performed using this program under the conditions of 5.2. Device Configuration. However, we do not guarantee the normal operation under disturbances such as electrical noise or device performance variation.
  • Page 38 9.Program 9.1.1. Outline of Processing The following figure shows the data flow from when the Controller (SCU) sends CompoWay/F command to the Destination Device until the Controller receives response data from the Destination Device. (1)The ST program executes the send command instruction (SendCmd instruction) for which CompoWay/F is specified.
  • Page 39 9.Program 9.1.2. SendCmd Instruction and Send/Receive Messages The following describes the function block for sending a command (hereinafter referred to as "the SendCmd instruction") and the general operation of sending/receiving a message. Additional Information For details on the SendCmd instruction, refer to Serial Communications Instructions in Section 2.
  • Page 40 9.Program [DstNetAdr: Destination network address] The following table shows the variables that store a destination network address. Variable Setting item Data type Description Destination _sDNET_ DstNetAdr Destination network address network address Network NetNo USINT USINT#16#00 (fixed): Local network address USINT#16#00 (fixed): Communications in local NodeNo Node address USINT...
  • Page 41 9.Program [CmdDat[] array: Command array (send data)] With this program, the command data (send data), after being set with the STRING array variable (Local_cmdCWFdata), is converted and stored in the BYTE array variable (Local_cmddata), and then transferred to the command array (CmdDat[]). Command array [10] [11]・・・・・・...
  • Page 42 9.Program ●Send/Receive Messages [Frames of send/receive messages] Send message (command) Node Command Text 16#02 address 16#03 Destination Device Controller Reception message (response) Command Response Node Text 16#02 address code MRES SRES 16#03 [Relationship between send command (SendCmd instruction operand) and send message] Local_cmd Command Node No.
  • Page 43: Destination Device Command

    9.Program 9.2. Destination Device Command The following describes the Destination Device command used in this program. 9.2.1. Overview of the Command This program reads the Destination Device information by using the "Read Controller Attributes" command. Command name Description Read Controller Attributes Reads the attributes of the Destination Device.
  • Page 44 9.Program [CmdDat[ ]: Command array] Variable Setting item Data type Setting value CmdDat ARRAY[0..255 Element Command array ] OF BYTE number BYTE 16#28 CompoWay/F Fixed command BYTE 16#03 BYTE 16#30 "01": Unit No. of Destination Node No. BYTE 16#31 Device BYTE 16#30 Subaddress...
  • Page 45 9.Program ●Send message This is the command frame of the message that is sent by the Controller to the Destination Device according to the setting of the "Read Controller Attributes" command. ・Except for STX, ETX and BCC, ASCII codes are sent. ・STX, ETX and BCC are automatically added to the send message by the SCU.
  • Page 46: Error Detection Processing

    9.Program 9.3. Error Detection Processing With this program, the error detection processing is performed according to the following descriptions (1) and (2). For information on error codes, refer to 9.7. Error Processing. Controller Destination Device Serial cable (1)Errors at the execution of the SendCmd instruction (SendCmd instruction errors) Errors such as a Unit error, a command format error and a parameter error are detected as SendCmd instruction errors when executing the SendCmd instruction.
  • Page 47: Variables

    9.Program 9.4. Variables The variables used in this program are listed below. 9.4.1. Lists of Variables The following tables list the external variables (user-defined global variables, device variables for CJ-series Unit and system-defined variables) and internal variables, which are both used in this program.
  • Page 48 9.Program ●Internal variables (instance variables) The following tables list the internal variables to execute the function block in the program. An internal variable is called an "instance". The name of the function block used is specified as the data type of the variable. [Instance for the SendCmd instruction] Variable name Data type...
  • Page 49: St Program

    9.Program 9.5. ST Program 9.5.1. Functional Components of the Program The program used in this guide is written in the ST language. The functional components are as follows: Major Minor classification Description classification 1.Communications 1.1. Starting the communications processing The communications processing processing 1.2.
  • Page 50 9.Program 9.5.2. Program list The program used in this guide is shown below. The send data (command data) setting to the Destination Device is boxed in red in this program list. ●Program: Program0 (General-purpose serial communications connection check program) 1. Communications processing...
  • Page 51 9.Program 2. Initialization processing...
  • Page 52 9.Program 3. CompoWay/F communications processing...
  • Page 53 9.Program 4. Processing number error process...
  • Page 54: Timing Charts

    9.Program 9.6. Timing Charts The timing charts are shown below. ■Normal end Input_Start Local_Status.Busy Output_recvCWFdata Normal response Normal response Local_Status.Done Output for 1 period* Local_Status.Error Output_CmdErrorID 6#0000 16#0000 16#FFFF 16#FFFF Output_TransErrorCode 16#0000 16#0000 16#FFFF 16#FFFF Output_CWFErrCode1 and 2 16#0000 16#0000 16#FFFF 16#FFFF Error end (1)
  • Page 55: Error Processing

    9.Program 9.7. Error Processing The errors that may occur during the program execution are shown below. 9.7.1. SendCmd Instruction Error These error codes are generated when the SendCmd instruction ends in error. ●SendCmd instruction error code [Output_CmdErrorID, Output_CmdErrorIDEx] An error code of ErrorID is stored in Output_CmdsErrorID, and an error code of ErrorIDEx is stored in Output_CmdsErrorIDEx.
  • Page 56 9.Program ●Transmission error status [Output_TransErrCode] The data of J01_P1_TransErrSta transmission error status is stored in Output_TransErrCode. When a SendCmd instruction error, a destination device error or a processing number error occurs, bits 8, 12 and 13 will change to TRUE, respectively. [Status of each bit at a transmission error] Description 1: Transmission error...
  • Page 57 9.Program 9.7.2. Destination Device Error These error codes are used for errors in the Destination Device. ●Destination Device error code [Output_CWFErrCode1, Output_CWFErrCode2] [Output_CWFErrCode1] (End code) #00 Fixed "**" End code End code Name Description Priority Normal completion The command ended normally without error. None The specified FINS command could not be executed.
  • Page 58 9.Program [Output_CWFErrCode2] (Response code) Response code Error name Priority 0000 Normal completion None 0401 Unsupported command 1001 Command too long 1002 Command too short 1101 Area type error 1103 Start address out-of-range error 1104 End address out-of-range error 1003 Number of elements/data mismatch 110B Response too long 1100...
  • Page 59: 10. Revision History

    10.Revision History 10. Revision History Revision Date of revision Description of revision code January 2013 First edition June 2018 Added the model numbers of the Digital Temperature Controller. Revision and changes associated with upgrades of the Controller and Sysmac Studio.
  • Page 60 2013-2018 0618- (0113) -E1-0...

Table of Contents