Hitachi HIDIC EH-150 Applications Manual

Hitachi HIDIC EH-150 Applications Manual

Programable controller; ethernet module(eh-eth)
Hide thumbs Also See for HIDIC EH-150:
Table of Contents

Quick Links

HITACHI PROGRAMABLE CONTROLLER
Ethernet Module(EH-ETH)
APPLICATION MANUAL
NJI-361(X)
Table of Contents
loading

Summary of Contents for Hitachi HIDIC EH-150

  • Page 1 HITACHI PROGRAMABLE CONTROLLER Ethernet Module(EH-ETH) APPLICATION MANUAL NJI-361(X)
  • Page 2 Warranty period and coverage The product warranty period will be one year after the product has been delivered to the location designated in the order. If a malfunction occurs within the warranty period even though the product has been used within the range of correct conditions according to the product specifications given in this document, we will exchange or repair the defective part free of charge.
  • Page 3 Safety Precautions Read this manual and related documents thoroughly before installing, operating, performing preventive maintenance or performing inspection, and be sure to use the unit correctly. Use this product after acquiring adequate knowledge of the unit, all safety information, and all cautionary information. Also, make sure this manual enters the possession of the chief person in charge of safety maintenance.
  • Page 4 2. About wiring REQUIRED Always perform grounding (FE terminal). If grounding is not performed, there is a risk of electric shocks and malfunctions. CAUTION Connect power supply that meets rating. If a power supply that does not meet rating is connected, fire may be caused. The wiring operation should be performed by a qualified personnel.
  • Page 5 4. About preventive maintenance DANGER Do not connect the of the battery in reverse. Also, do not charge, disassemble, heat, place in fire, or short circuit the battery. There is a risk of explosion or fire. PROHIBITED Do not disassemble or modify the unit. These actions may result in fire, malfunction, or malfunction.
  • Page 6: Table Of Contents

    Table of contens Chapter 1 Introduction 1-1 to 1-3 Before to use .............................. 1- 1 Outline ............................... 1- 2 Feature ............................... 1- 2 Notes to use..............................1- 3 Term and abbreviation ..........................1- 3 Chapter2 System structure Chapter 3 Specifications 3-1 to 3-2 General Specifications ..........................
  • Page 7 Chapter 7 Automatic Sending/Receiving function (ASR) 7-1 to 7-20 ASR................................7- 1 7.1.1 Automatic data sending ........................ 7- 1 7.1.2 Automatic data receiving......................7- 2 Presetting ..............................7- 4 7.2.1 Open connection........................... 7- 5 7.2.2 Close connection .......................... 7- 9 ASR with user program..........................
  • Page 8 Sample program lists The setting Ethernet information ....................... 5- 17 To check the Ethernet information......................5- 18 In case EH-ETH requests to open ......................7- 8 In case EH-ETH requests to close connection ................... 7- 11 To close connection with “Close mode control” enabled................7- 13 Register operation to refresh receiving area....................
  • Page 9: Chapter 1 Introduction 1-1 To

    Chapter 1 Introduction Chapter 1 Introduction We appreciate that you have selected the HITACHI Programmable Controller (This after called PLC) EH-150 Series. This application manual describes how to properly operate the EH-150 Ethernet Module. Please read this manual carefully to familiarize yourself with the procedures respectively of installation, operation, and maintenance and check.
  • Page 10: Outline

    Chapter 1 Introduction Outline This product supports production control and system operation monitor, equipment monitor and maintenance by connecting PLC to information network. EH-ETH (This after called this module) can be mounted onto the basic base of EH-150 system and is the communication module can be connected EH-150 system to Ethernet based on IEEE802.3.
  • Page 11: Notes To Use

    Chapter 1 Introduction Notes to use (1) The EH-CPU448 is required as the master CPU to control this module. Table 1.4.1 CPU Type HARDWARE REV. ROM VER. EH-CPU448 00 or more N.C. (2) It is possible to use 2 pcs of EH-ETH at once with one basic base unit. Can not use it on the extension base units. Slot No.
  • Page 12: Chapter2 System Structure

    Figure 2.1 shows an example of FA system consisting of combined EH-150 communication systems. (1): EH-ETH (2): EH-LNK (3): EH-RMD (4): EH-IOCD (5): RDX16* Ethernet network CPU LINK DeviceNet network HITACHI RXD16D HITACHI RXD16D Figure 2.1 An example of FA system configuration with EH-150 series.
  • Page 13: Chapter 3 Specifications 3-1 To

    Chapter 3 Specifications Chapter 3 Specifications General Specifications The general specification of this module is show in Table 3.1. Table 3.1 General Specifications Items Specifications Dielectric withstand voltage 250 V DC between the communication signal and case ground (FE) Internal current consumption 5 V 200 mA 0 to 55 °C, 20 to 90 % RH (no condensation) Operating ambient temperature and humidity...
  • Page 14: Functional Specifications

    Chapter 3 Specifications Functional Specifications The functional specification of this module has shown in Table 3.3. Table 3.3 Functional Specification Items Specification - The tool for configuration is general Web browser. Configuration - The configuration for IP address setting and Taskcode communication should be done at IP address setting mode (*1).
  • Page 15: Chapter 4 System Equipment 4-1 To

    Chapter.4 System equipment Chapter 4 System equipment Name and function of each part Type EH-ETH Weight 0.15 kg Dimensions 5) Rock button (mm) 1) LED cover 3) Rest switch 2) Dip switch 4) Connector for Ethernet connection Name Functions Remarks LED cover Refer to “4.2 LED Indication”...
  • Page 16: Operating Mode

    Chapter.4 System equipment Operating mode Operation mode of EH-ETH is set by a dip switch on the front panel. The set operation mode is effective after completion of EH-ETH initialization. The dip switch setting is effective only when power on or the reset button pressed.
  • Page 17: Led Indications

    Chapter.4 System equipment LED indications Fig. 4.2.1 shows out view of the LED cover. ETHERNET EH-ETH I.ERR ERR STATUS Tx/Rx Fig. 4.2.1 Out view of the LED cover There are 2 LED indications, one is that its meaning and indication are fixed, which is shown in table 4.2.1(1) and another is that the meaning and the indication depend on the operation mode, which is shown in table 4.2.1(2).
  • Page 18: Status Led

    Chapter.4 System equipment 4.2.1 STATUS LED STATUS LED shows many conditions of EH-ETH by combinations of LED color and eliminating patterns. Its meaning depends on the operation mode. (A). In case of Green flickering Operating mode Meaning of LED Normal operation Initialization error because of wrong I/O assignment.
  • Page 19 Chapter.4 System equipment In case STATUS LED flicks in Red in the normal operation mode, unrecoverable error might exist. If EH- ETH is initialized in this condition, EH-ETH might be recovered but there is a possibility to fall into the problem again.
  • Page 20: Chapter 5 Configuration And Procedure For Starting Communication 5-1 To

    Chapter 5 Configuration and procedure for starting communication Chapter 5 Configuration and procedure for starting communication Ethernet information configuration It is required to configure the Ethernet information to this module before to start communication. The Ethernet information is saved by the retained memory of this module as the part of setup.dat file. The detail of the Ethernet information is shown in table 5.1.
  • Page 21: Configuration Of Ethernet Information Using Web Browser

    Chapter 5 Configuration and procedure for starting communication Configuration of Ethernet information using Web browser This module has the Web server and the set up page for several initial configuration values. User can change initial configuration value using Web browser(*1). The following items can be set by the set up page. In this section, the procedure for changing the Ethernet information from the factory set value included in this module is described.
  • Page 22: Configuration

    Chapter 5 Configuration and procedure for starting communication 5.2.2 Configuration Please connect PC and HUB, HUB and EH-ETH with LAN cable (10BASE-T). The example in Figure5.2.2 shows the smallest network by the explanation of for convenience. PLC / EH-ETH Figure 5.2.2 Example of network 5.2.3 Network Setting on PC side You can not access to web setup page of EH-ETH immediately without following setting for the PC.
  • Page 23 Chapter 5 Configuration and procedure for starting communication The blow explains the changing procedure of network setting at PC side. Furthermore, PC's OS is Windows95 or later. - IP address (1). Open [Network] in control panel. Click [TCP/IP] protocol and [Property] button. (2).
  • Page 24: Setting Of Dip Switch

    Chapter 5 Configuration and procedure for starting communication 5.2.4 Setting of Dip switch To set Ethernet information by Web browser, set bit 1 ON, bit 2 OFF of dip switch. In this mode, bit 3 to 8 means lower 6 bit of IP address. Furthermore remained higher 26 bits of IP address is fixed.
  • Page 25: Access To Set Up Page

    Chapter 5 Configuration and procedure for starting communication 5.2.5 Access to set up page When PLC is power on, STATUS LED turns on or flickers. You can access Web setup page at both conditions. We recommend setup the I/O assignment on CPU at first. ETHERNET EH-ETH I.ERR...
  • Page 26 Chapter 5 Configuration and procedure for starting communication The setup page has three frames as figure 5.2.5.2 shows. The setup page's language is English only. 2. Operation Frame 1. Menu Frame 3. Error Frame Figure 5.2.5.2 Set up page 1. Menu frame This frame is the menu to change the contents of the operation frame.
  • Page 27: Ip Address Setting

    Chapter 5 Configuration and procedure for starting communication 5.2.6 IP address setting The IP address setting is described below. (1) “IP address display frame” Firstly, click the “IP address” in the menu frame. The “IP address display frame” will appear. The current IP address is shown here.
  • Page 28 Chapter 5 Configuration and procedure for starting communication 4-5) 5-5) 4-1) 6-5) 5-1) 6-1) 4-6) 5-6) 4-2) 6-6) 5-2) 6-2) 4-3) 5-3) 6-3) 4-4) 5-4) 6-4) Figure 5.2.6.2 IP address setting frame Table 5.2.6.1 The list of items of IP address operation frame Name Description Range for setting...
  • Page 29: Configuration Of Connection For Task Code Communication

    Chapter 5 Configuration and procedure for starting communication 5.2.7 Configuration of connection for Task code communication The setting procedure for Task code communication connection is described here. (1) “Task code display frame” Click the “Task Code” in menu frame. The “Task code display frame” will appear. The current configuration is displayed onto the “Task code display frame”.
  • Page 30 Chapter 5 Configuration and procedure for starting communication Table 5.2.7.1 The list of items of Task code operation frame Name Description Range for setting Task code port information Task code port To set the timeout of Task code connection is enable or not. This value is Enable, Disable timeout valid for all Task code connections.
  • Page 31: Ethernet Information Setting Error Code

    Chapter 5 Configuration and procedure for starting communication 5.2.8 Ethernet information setting error code The list of error code of Ethernet information setting is shown in table 5.2.8.1. Table 5.2.8.1 The list of error code during the IP address setting Error Display comment Causes...
  • Page 32: Configuration Of Ethernet Information By Ladder Diagram

    Chapter 5 Configuration and procedure for starting communication Configuration of Ethernet information by ladder diagram (1) Setting the dip switch To configure the Ethernet information by ladder diagram, setting dip switch bit1 is ON and bit 2 is ON is required.
  • Page 33 Chapter 5 Configuration and procedure for starting communication Table 5.3.2 The table of Ethernet information Offset of Items I/O No. +00 IP address of own station (Upper word) (Lower word) +02 Sub Net mask (Upper word) (Lower word) +04 Destination IP address of sending / receiving test (Upper word) (Lower word) +06 Destination logical port number of sending / receiving test...
  • Page 34 Chapter 5 Configuration and procedure for starting communication (4) The configuration procedure of Ethernet information table The configuration procedure of Ethernet information shown in table 5.3.3 is described here. And also the check procedure is described here. Table 5.3.3 Example of the configuration Items The Value for The area to set...
  • Page 35 Chapter 5 Configuration and procedure for starting communication (b) FUN200 command The notation of the FUN200 command specification and FUN200 usage for this module are described here. FUN200 command Format FUN 200 ( s ) Parameter Starting I/O No. of the S parameter area Function - This command handles Ethernet information using extended XY area between CPU module and this module.
  • Page 36: The Setting Ethernet Information

    Chapter 5 Configuration and procedure for starting communication Sample program 1 The setting Ethernet information Slot No. EH-ETH R7E3 To set S parameter area (00001) WR003 = H3 The request of Ethernet information putting WR004 = H200 To set the target area (Unit 0, Slot 2) ADRIO = (WR005, R100) To configure R100 as the control bit I/O No.
  • Page 37: To Check The Ethernet Information

    Chapter 5 Configuration and procedure for starting communication Sample program 2 To check the Ethernet information Slot No. EH-ETH R7E3 To set S parameter area (00001) WR013 = H1 The request of Ethernet information getting WR014 = H200 To set the target area (Unit 0, Slot 2) ADRIO = (WR015, R110) To configure R110 as the control bit I/O No.
  • Page 38: The Configuration Of Asr Information

    Chapter 5 Configuration and procedure for starting communication The configuration of ASR information There are 3 kinds of configuration items for ASR information as shown in table 5.4.1. Table 5.4.1 The classification of ASR information Class Outline Description ASR general setting General setting for all connections.
  • Page 39 Chapter 5 Configuration and procedure for starting communication Figure 5.4.1.2 ASR Information configuration window Table 5.4.1.1 The list of items of ASR information configuration Name Description Range for setting To select the enable or disable base on the AEN bit configuration of Always Enable, control register MDCD whether the ASR is valid without any condition.
  • Page 40 Chapter 5 Configuration and procedure for starting communication When you click the “Set” button on the frame, EH-ETH will check the parameters. If all parameters are correct, they will be saved into set up file, and the “ASR Information display window” will appear. If they are wrong, set up file is not updated.
  • Page 41 Chapter 5 Configuration and procedure for starting communication (2) Displaying of "ASR connection configuration window" Secondly, click the “Setting” in the “ASR connection display window”. The “ASR connection configuration window” will appear. This window is shown in figure 5.4.2.2. 10). Figure 5.4.2.2 ASR connection configuration window When you click the “Set”...
  • Page 42 Chapter 5 Configuration and procedure for starting communication Table 5.4.2.1 The list of items of ASR connection configuration Name Description Range for setting Own Station Usage To specify the usage of connection. It is possible to set Send(for sending) or Send, Receive Receive(for receiving).
  • Page 43 Chapter 5 Configuration and procedure for starting communication 5.4.3 Configuration of ASR I/O area When using the connection for sending, it is required to specify the internal output area (I/O) in the CPU module as the source area. And when using the connection for receiving, it is required to specify the internal output area in the CPU module as the destination area.
  • Page 44 Chapter 5 Configuration and procedure for starting communication (2) Displaying of "ASR I/O area configuration window" Secondly, click the “Setting link selection” of “ASR I/O area display window” then the operation frame changes to the “ASR I/O area configuration window”. This window is shown in figure 5.4.3.2. And the items which can be set by this configuration window are also shown in table 5.4.3.1.
  • Page 45 Chapter 5 Configuration and procedure for starting communication Table 5.4.3.1 The list of items of ASR I/O area configuration Name Description Range for setting Receive area To specify the I/O for the receiving area. If there is no specifying (2) WY,WR, WL, WM and (3) are not valid.
  • Page 46: Downloading And Uploading Of Setup File

    Chapter 5 Configuration and procedure for starting communication 5.4.4 Downloading and Uploading of Setup file EH-ETH memories Web browser information as setup file (file name: setup.dat). A user can download to host computer (PC or WS) via Web browser. A user can also upload a stored setup.data file to EH-ETH from host computer.
  • Page 47 Chapter 5 Configuration and procedure for starting communication (1) "Setup file frame" After login to setup page, operation frame is changed to "setup file page". This frame is shown in figure 5.4.4.1. The parameters which can be set at setting frame is shown in table 5.4.4.1. Figure 5.4.4.1 Setupt file frame Table 5.4.4.1 Setup file frame parameter Name...
  • Page 48 Chapter 5 Configuration and procedure for starting communication Table 5.4.4.1 Setup file frame parameter Name Description Range 6). New password input text This is to register password. When password is already registered, Alphabet and the asterisk (*) is displayed. numbers 17 characters 7).
  • Page 49: Asr Information Set Error Code

    Chapter 5 Configuration and procedure for starting communication 5.4.5 ASR information set error code The error codes of ASR information setting is shown in table 5.4.5.1 Table 5.4.5.1 ASR information setting error code Error Comment Cause code 2101 General information (No.n): Port No. is incorrect. Illegal value or character is set for ASR connection n port number...
  • Page 50: Chapter 6 Task Code Communication 6-1 To

    Chapter 6 Task code communication Chapter 6 Task code communication H series PLC has a communication protocol called task code, which enables easy communication between host computer and EH-ETH. Features of task code communication - No need ladder program for task code communication. - A Host computer is able to up/download a ladder program to/from a CPU module using the task code.
  • Page 51: Frame Format

    Chapter 6 Task code communication 6.1.2 Frame format The task code format of EH-ETH is shown in Figure 6.1.2. If you make an application program for host computer, you should follow this format, which is different from the standard RS-232C protocol. The data must be binary.
  • Page 52: H Series Network Address

    Chapter 6 Task code communication 6.1.3 H series network address At H series network system shown in figure 6.1.3.1, you must specify the CPU address according to the LUMP address rule as below. Station 0 Loop α Station 5 Host Station 0 Station 1 Loop β...
  • Page 53: Task Code Port

    Chapter 6 Task code communication Task code port EH-ETH has four logical ports for task code communication. Task code port supports TCP and UDP of data link layer. Table 6.2 shows the comparison to use. Table 6.2 Task code port Compression Item Host side: Need...
  • Page 54: Connection With Ladder Editor For Windows

    Chapter 6 Task code communication Connection with LADDER EDITOR for Windows® You can program CPU module via EH-ETH with LADDER EDITOR for Windows®. This chapter explains at the setting of EH-ETH and PC shown in table 6.3.2. The setting of EH-ETH is default value.
  • Page 55 Chapter 6 Task code communication - Setting of LADDER EDITOR for Windows® (1). Open LADDER EDITOR for Windows® and go off-line mode. (2). Choose [Environment Set] in [Utility] menu in the offline mode. (3). Choose [Communication]dialog box. A). Communication type : Ethernet B).
  • Page 56: Automatic Sending/Receiving Function (Asr)

    Chapter 7 Automatic Sending/Receiving function (ASR) Chapter 7 Automatic Sending/Receiving function (ASR) EH-ETH has ASR function. The detailed information is mentioned as follows. 7.1.1 Automatic data sending An automatic sending function is a function to transmit the data of CPU module to other node. The outline of this function is shown as Figure 7.1.1.1.
  • Page 57: Automatic Data Receiving

    Chapter 7 Automatic Sending/Receiving function (ASR) (2). Sending area Sending area can be specified in Web page of “ASR I/O Area (Connection N) Setting”. One connection can handle up to 10 sending areas. (One sending area is called as “Entry”) In case of sending several kinds of I/O areas, they are once sent to a sending buffer according to the setting in web browser.
  • Page 58 Chapter 7 Automatic Sending/Receiving function (ASR) (2). Receiving area The receiving area can be specified only by “ASR I/O Area (Connection N) Setting” in web page. The receiving area can be defined every ASR connection. Available I/Os are WL, WM, WR, WY. Receive area information Receiving buffer Receiving area...
  • Page 59: Presetting

    Chapter 7 Automatic Sending/Receiving function (ASR) Presetting Before the data communication, you have to establish connection against to the other port. Here after, an enabled connection is called as “opened connection”, and a disabled connection is called as “closed connection”. Caution EH-ETH has 10 connections.
  • Page 60: 7.2.1 Open Connection

    Chapter 7 Automatic Sending/Receiving function (ASR) 7.2.1 Open connection The procedure for opening connection is shown as Figure 7.2.1.1. Host PC EH-ETH Host PC EH-ETH (A-1) (B-1) (A-2) (B-2) (A-3) (B-3) (A). In case of active open setting (B). In case of passive open setting (A).
  • Page 61 Chapter 7 Automatic Sending/Receiving function (ASR) There are two ways for EH-ETH (specified as active) to open ASR connection. To send a request to open automatically after initializing of EH-ETH completed. To send a request to open by user program. Caution ASR information must be set correctly to open ASR connection.
  • Page 62 Chapter 7 Automatic Sending/Receiving function (ASR) EH-ETH is able to request to open connection to other stations by setting “Request to open bit” to high. The procedure to open ASR connection 1 is shown as Figure 7.2.1.2. Register name C1CSR.OPC1 CNCR.OPN1 C1ESR.OE1 EC1CR.OEC1...
  • Page 63: In Case Eh-Eth Requests To Open

    Chapter 7 Automatic Sending/Receiving function (ASR) Sample program 3 Slot No. In case EH-ETH requests to open connection to the other station EH-ETH (00001) Parameter area setting of FUN201(s) for reading out R7E3 WM003 = H2 Request to read out SR WM004 = H2F Area setting (unit:0, slot:0) ADRIO = (WM005, R100)
  • Page 64: 7.2.2 Close Connection

    Chapter 7 Automatic Sending/Receiving function (ASR) 7.2.2 Close connection The procedure for closing connection is shown as Figure 7.2.2.1. Host PC EH-ETH Host PC EH-ETH (A-1) (B-1) (A-2) (B-2) (A-3) (B-3) (A-4) (B-4) (B). In case host PC requests to close connection (A).
  • Page 65 Chapter 7 Automatic Sending/Receiving function (ASR) The conditions to close connection are ; (1). EH-ETH receives a request to close from user program in own station during connection opened. (2). EH-ETH receives a request to close from other stations during connection opened. The following description is regarding the way to close connection from user program.
  • Page 66: In Case Eh-Eth Requests To Close Connection

    Chapter 7 Automatic Sending/Receiving function (ASR) Sample program 4 Slot No. In case EH-ETH requests to close connection to other station. EH-ETH (00001) R7E3 Setting parameter of FUN201(s) for reading out SR WM003 = H2 Request to read out SR WM004 = H2F Area setting (unit:0, slot:0) ADRIO = (WM005, R100)
  • Page 67 Chapter 7 Automatic Sending/Receiving function (ASR) (b). CMCR.CMn = 1 (“Close mode control” is enabled. “n” is ASR connection number) Even if EH-ETH receives a request to close from other station, EH-ETH does not close the connection unless a user program is executed for closing the connection. The time chart to close connection 4 is shown in Figure 7.2.2.4.
  • Page 68: To Close Connection With "Close Mode Control" Enabled

    Chapter 7 Automatic Sending/Receiving function (ASR) Sample program 5 Slot No. To close connection with “Close mode control” enabled. EH-ETH R7E3 (00001) M293 = 1 “Close mode control” for connection 4 is enabled. (00002) R7E3 Setting parameter of FUN201(s) for reading out SR. WM003 = H2 Request to read out SR WM004 = H2F...
  • Page 69: Asr With User Program

    Chapter 7 Automatic Sending/Receiving function (ASR) ASR with user program Without any user program, EH-ETH is able to send / receive data by using cyclic sending and receiving function. In addition to this function, you can achieve more precise data transmission by using above function with user program.
  • Page 70: 7.3.1 Optional Data Receiving

    Chapter 7 Automatic Sending/Receiving function (ASR) 7.3.1 Optional data receiving - Receive mode is Optional receiving mode EH-ETH store data in receive buffer from "other station" to receiving area (CPU internal output) when user program "receive refresh permit". Outline and time chart of Optional receiving mode is shown in figure 7.3.2.1. Data receive Normal Receive mode...
  • Page 71 Chapter 7 Automatic Sending/Receiving function (ASR) Time chart for connection 2 is shown as Figure 7.3.1.2. Register name Optional receiving mode EXRR.ARP2 = 1 RDCR.ARE2 C2CSR.RXC2 : By user, : By EH-ETH Figure 7.3.1.2 Procedure of Optional receiving (1). When receive mode is optional mode, set 1 to “receive mode change ” bit (EXRR.ARP2). ------------------------------------------------------------------------------------------------------------------- Select receive mode (2).
  • Page 72 Chapter 7 Automatic Sending/Receiving function (ASR) The sample program uses the below internal I/O. FUN 201 parameters for reading Status Register (SR) FUN 201 parameters for writing Control Register Description Description WM0 Result (Error code) WM8 Result (Error code) WM1 System area WM9 System area WM3 Control type (Read / write / etc) WMB Control type (Read / write / etc)
  • Page 73: Register Operation To Refresh Receiving Area

    Chapter 7 Automatic Sending/Receiving function (ASR) Sample program 6 Slot No. Register operation to refresh receiving area EH-ETH (00001) R7E3 WM301 = H01 Default data of connection 1. WM302 = H11 Default data of connection 2. WM303 = H21 Default data of connection 3. WM304 = H31 Default data of connection 4.
  • Page 74: 7.3.2 Event Sending

    Chapter 7 Automatic Sending/Receiving function (ASR) 7.3.2 Event sending This event sending function is able to send data at any requested timing. This setting is specified in Web page as below. Please refer to "5.4.2 ASR connection setting" for further information. [ Setting of Web page ] (1).
  • Page 75: Event Sending

    Chapter 7 Automatic Sending/Receiving function (ASR) Sample program 7 Slot No. Event sending EH-ETH (00001) R7E3 Parameters setting of FUN201(s) for reading out SR. WM003 = H2 Request to read out SR WM004 = H2F Area setting (unit:0, slot:0) ADRIO = (WM005, R100) Control bit address is R100 ADRIO = (WM006, WM10) Transmission I/O address is starting from WM10...
  • Page 76: Register Structure

    Chapter 8 Register Structure Chapter 8 Register Structure The register structures of this module are described here. EH-ETH has Status Register (SR) and Control Register (CR). The Status register is for reading only and mainly set communication status of each connection. The Control register is for writing only and used to control ASR operation.
  • Page 77 Chapter 8 Register Structure Module Status Register (MDSR) FAE OPM SME EIE AVR ATR IERR ERR Bit 15-8: Reserved These bits are reserved bits. Usually "0" are set. Bit 7: Fatal error bit (FAE) This bit shows that fatal error occurs in the firmware of this module (TCP/IP, UDP/IP protocol). In case that this bit is “1”...
  • Page 78: Connection N Error Status (Cnesr)

    Chapter 8 Register Structure Connection n error status (CnESR) n = 1 to 6 ATE1 SNE1 RCE1 DIS1 STE1 OE1 RAE1 ATE6 SNE6 RCE6 DIS6 STE6 OE6 RAE6 The error condition of each connection (1 to 6) is shown in this area. Bit 15-7: Reserved These bits are reserved.
  • Page 79 Chapter 8 Register Structure Bit 1: Send timeout error bit (STE[6:1]) These bit the timeout condition during sending data. Bit1: STE[6:1] Description No timeout error is detected during sending data. A timeout error is detected during sending data. Method to clear: To clear these bits to "0", please set "1" to TEC[6:1] of EC1CR. Bit 0: Open error bit (OE[6:1]) These bits show the condition during opening connection.
  • Page 80: Connection N Communication Status (Cncsr)

    Chapter 8 Register Structure Connection n communication status (CnCSR) n = 1 to 6 OPC1 CRO1 SMF1 ERF1 RXC1 TXC1 OPC6 CRO6 SMF6 ERF6 RXC6 TXC6 The connection condition of each connection is shown in this area. Bit 15-7: Reserved These bits are reserved.
  • Page 81: Control Register

    Chapter 8 Register Structure Control Register The information to control this module operation are passed from CPU module to this module via Control area. Figure 8.2 shows the map of the control area. The control area is structured with 10 kinds of registers. Each register size is 1 word (16bits).
  • Page 82: Module Control Register (Mdcr)

    Chapter 8 Register Structure Module Control Register (MDCR) AEN IAV Bit 15-4: Reserved These bits are reserved. Please set "0" always. Bit 3: Automatic Sending/Receiving enable bit (AEN) To specify whether Automatic Sending/Receiving function is used or not. Bit3: AEN Description Request to disable Automatic Sending/Receiving function.
  • Page 83: Connection Control Register (Cncr)

    Chapter 8 Register Structure Connection Control Register (CNCR) CLS6 CLS5 CLS4 CLS3 CLS2 CLS1 OPN6 OPN5 OPN4 OPN3 OPN2 OPN1 "Open request" and "Close request" for each connection is handled using this register. Bit 15, 14, 7, and 6: Reserved These bits are reserved.
  • Page 84: Event Send Control Register (Recr)

    Chapter 8 Register Structure Event send Control Register (RECR) ASE6 ASE5 ASE4 ASE3 ASE2 ASE1 Bit 15-6: Reserved These bits are reserved. Please set "0" always. Bit 5-0: Event send request bit (ASE[6:1]) This bit works as an Event send request bit. Bit5-0: ASE[6:1] Description (1) Request to clear Transmit complete bit (TXC) of Connection n...
  • Page 85: Error Clear Control 1 Register (Ec1Cr)

    Chapter 8 Register Structure Error Clear Control 1 Register (EC1CR) TEC6 TEC5 TEC4 TEC3 TEC2 TEC1 OEC6 OEC5 OEC4 OEC3 OEC2 OEC1 This register is used for to clear the bits related to connection error. Bit 15, 14, 7 and 6: Reserved These bits are reserved bits.
  • Page 86: Error Clear Control 3 Register (Ec3Cr)

    Chapter 8 Register Structure Error Clear Control 3 Register (EC3CR) SNC6 SNC5 SNC4 SNC3 SNC2 SNC1 RCC6 RCC5 RCC4 RCC3 RCC2 RCC1 This register is used for to clear the bits related to connection error. Bit 15, 14, 7 and 6: Reserved These bits are reserved bits.
  • Page 87 Chapter 8 Register Structure Table 8.2 The list of registers Status Registers Bit name Reg. name I/O No. IERR MDSR ATE1 SNE1 RCE1 RAE1 DIS1 STE1 C1ESR ATE2 SNE2 RCE2 RAE2 DIS2 STE2 C2ESR ATE3 SNE3 RCE3 RAE3 DIS3 STE3 C3ESR ATE4 SNE4 RCE4 RAE4 DIS4 STE4 C4ESR...
  • Page 88: How To Access Registers

    Chapter 8 Register Structure How to access registers You use FUN201 command to access ETH register. The notation of the FUN201 command specification and FUN201 usage for this module are described here. FUN201 command Format FUN 201 ( s ) Parameter Starting I/O No.
  • Page 89: Fun201Command

    Chapter 8 Register Structure 8.3.1 FUN201command [Operation condition] FUN201 command is in function box without execute condition and in normal scan. When you write a data to control register in EH-ETH, set control type "H0003". When you read a data from status register in EH-ETH, set control type "H0001(handshake valid)" or "H0002(handshake invalid)".
  • Page 90 Chapter 8 Register Structure [Basic operation 2] To read status register (Control type "H0001"(handshake valid)) scan R7E3 (00001) WR00B = H1 WR00C = H0 ADRIO ( WR00D, R103 ) Wait execute ADRIO ( WR00E, WM110 ) instruction WR00F = 13 R7E4 (00002) R103 = 1...
  • Page 91 Chapter 8 Register Structure [Basic operation 3] To read status register (Control type "H0002"(handshake invalid)) scan R7E3 (00001) WR00B = H2 WR00C = H2F ADRIO ( WR00D, R103 ) ADRIO ( WR00E, WM110 ) Wait execute WR00F = 13 instruction R7E4 (00002) R103 = 1...
  • Page 92: Read Status Register

    Chapter 8 Register Structure Sample program 8 Read status register Slot No. EH-ETH When FUN201 is executed at R100=1, the value of status register will be putting on WM100 to WM10C. To set S parameter area The request of status register getting (00001) WR003 = H2 (without handshake)
  • Page 93: Write To Control Register

    Chapter 8 Register Structure Sample program 9 Slot No. Write to control register EH-ETH When FUN201 command is executed at R200 = 1, WM110 to WM119 will be putting on control register. To set S parameter area (00001) WR00B = H3 The request of status register putting WR00C = H200 To set the target area(Unit 0, slot2)
  • Page 94: Software Reset Function

    Chapter 8 Register Structure 8.3.2 Software reset function EH-ETH support software reset function by FUN201 command. The below is the sample program of software reset. Sample program 10 Execution of software reset Slot No. EH-ETH R7E3 To set S parameter area (00001) WR023 = HA55A Software reset control...
  • Page 95: Chapter 9 Maintenance, Check, Error 9-1 To

    Chapter 9 Maintenance, check, error Chapter 9 Maintenance, Check, Error Check the module dairy or regularly in order to use EH-ETH in best condition and keep the system run normally. Dairy Check Check the following items in operation. AS to EH-150 series PLC, see the application manual “EH-150 application manual(NJI-280B)” Table 9.1 Dairy check item Check item Method...
  • Page 96: Error Led And Measure

    Chapter 9 Maintenance, check, error Error LED and measure Following table shows the indication and the measure in case an error occurs in communication between EH-ETH and other station. 9.3.1 ERR confirmation by LED indication The LED indications on the module give you information about your network and the module. Table 9.3 LED indication and Error content Error content LED name...
  • Page 97: How To Turn Off Led

    Chapter 9 Maintenance, check, error 9.3.2 How to turn off LED The status of ERR LED and I.ERR LED can be read out or turned off by ladder program. (1) Confirm LED light Ladder program can confirm the status(light or unlighted) of ERR and I.ERR. The status of each LED is stored in module status register(MDSR) in EH-ETH.
  • Page 98 Chapter 9 Maintenance, check, error The below ladder program can monitor the status of ERR and I.ERR LEDs, and turn off LED automatically by the light of LED. This sample program is in case the “open error” happens on ASR connection 1, which is specified as positive station.
  • Page 99: Confirm Error By Status Register (Sr)

    Chapter 9 Maintenance, check, error 9.3.3 Confirm error by status register (SR) EH-ETH has internally status register(SR) which stores communication status for each ASR connection. You can monitor this SR and program the retry circuit when the communication error occurs. See the “chapter 8 Register”...
  • Page 100: Special Internal Outputs In The Cpu Module

    Chapter 9 Maintenance, check, error Special Internal Outputs in the CPU module The status information on an EH-ETH module is stored in the special internal outputs area of CPU module shown in Table 9.4.1. Table9.4.1 Status information on an EH-ETH module I/O No.
  • Page 101: Chapter 10 Troubleshooting 10-1 To

    Chapter 10 Troubleshooting Chapter 10 Troubleshooting This chapter explains the trouble shooting in case a system using EH-ETH. 10.1 Troubleshooting follow (1) Start of PLC Start of PLC system setup EH-ETH can be mounted in slot 0 to 2. EH-ETH is mounted Reexamine the mounted slot in slot 0 to 2 position.
  • Page 102 Chapter 10 Troubleshooting (2) Various kinds setting Various kinds setting start Some parameters can be changed DIP SW bit 1 is ON, only with the dip switch Bit 2 is OFF. configuration shown as left. This DIP SW configuration is not allowed to use.
  • Page 103 Chapter 10 Troubleshooting For reference In order to check the network connection, the "ping" command is useful. You can simply type “ping” and IP address in DOS prompt. If the network is on line, the requested station will reply as below. In this sample, the DIP Switch configuration is Bit 1=ON, Bit 8=ON, the other=OFF, which means temporal IP address is 192.168.0.1.
  • Page 104 Chapter 10 Troubleshooting Trouble shoot When setup page is not displayed, please confirm "proxy setting" of your Web browser. [How to confirm the setting of proxy] (1). Select [Tools] [Internet Options…] (2) Select [Connections] tag and click [LAN settings] button. (3).
  • Page 105 Chapter 10 Troubleshooting Trouble shoot (Continue) (1). Select [Edit(E)] -> [Setting(E)] (2). Select [Proxy] in [Detail] tree and select [Internet direct connection] radio button. 10-5...
  • Page 106 Turn off and on the power of whole network and all connected devices. If you still have the same problem, contact your local Hitachi supplier. *1: Depending on the timeout setting, it takes several minutes to detect an error.
  • Page 107 Turn off and on the power of whole network and all connected devices. If you still have the same problem, contact your local Hitachi supplier. Importance [Retry action of Open request for active port] When an other station to a response cannot be found to the open request that EH-ETH sends, EH-ETH sends the TCP packet which contains the "SYN"...
  • Page 108: Diagnostic Function

    Chapter 10 Troubleshooting 10.2 Diagnostic function This function is to check the communication circuit of EH-ETH module. Please set the dip switch as below and initialize the EH-ETH. The self-diagnosis function will start. EH-ETH is initialized only when power on or pressing reset button.
  • Page 109 Chapter 10 Troubleshooting (2) External loop back test [Outline] Communication circuit test using actual signal via loop back connector. [Dip switch setting] Only Bit7 ON [Test procedure] (a) Prepare a special loop back connector as below. (b) Set the dip switch as above and plug in the loop back connector to EH-ETH. (c) Turn on the power to PLC or press the reset button.
  • Page 110 Chapter 10 Troubleshooting (3) Send/ receive test - In case of using 2 times of EH-ETH modules. [Outline] UDP message is communicated between the one EH-ETH for test and the other EH-ETH in normal operation. [UDP massage format] The UDP message format which EH-ETH sends network is below. ……..
  • Page 111 Chapter 10 Troubleshooting Sample program Ladder program for send/receive test Please assign I/O configuration as slot-0 “COMM”, slot-2 “COMM” and others “Empty 16”. To set S parameter area R7E3 (00001) WR4003 = H2 The request of status register getting WR4004 = H22F To set the target area(unit0, slot2) ADRIO (WR4005, R700) To configure R700 as the control bit I/O No.
  • Page 112 Chapter 10 Troubleshooting - When you use a set of PLC with EH-ETH and host computer. [Test content] The UDP message is returned between EH-ETH of test mode and application software which supports communication specification. [Communication specification] Communication protocol is UDP/IP. The application software return the massage which the EH-ETH of test mode sends to it.
  • Page 113: Ip Address

    Appendix Fundamenntals of TCP/IP Appendix Fundamentals of TCP/IP IP address In general, 32 bits logical address called IP address is used in TCP/IP and UDP/IP protocol. IP address is consisted by Network address and Host address. The boundary of Network address and Host address has three types upper 8bits, 16bits or 24bits.
  • Page 114: Ip(Internet Protocol) And Routing Table

    Appendix Fundamenntals of TCP/IP IP(Internet Protocol) and routing table IP sends an IP packet having IP header and Data to the destination Host or the Router exists on the route way to the destination Host by using the Link layer standing for the Ethernet. The reliability is not so good, because there are no confirmation of response, retry of sending, detecting of error and connection on the IP level.

Table of Contents