Table of Contents

Advertisement

Quick Links

HITACHI PROGRAMMABLE CONTROLLER
Serial Communication Module (EH-SIO)
APPLICATION MANUAL
NJI-443F(X)

Advertisement

Table of Contents
loading

Summary of Contents for Hitachi EH-150 Series

  • Page 1 HITACHI PROGRAMMABLE CONTROLLER Serial Communication Module (EH-SIO) APPLICATION MANUAL NJI-443F(X)
  • Page 3 If you have any questions regarding the warranty please contact either your supplier or the local Hitachi Distributor. (Depending on failure part, examination might be impossible.)  Ordering parts or asking questions When contacting us for repair, ordering parts or inquiring about other items, please have the following details ready before contacting the place of purchase.
  • Page 4 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 5 1. Attachments CAUTION • To be used in environments stipulated in the catalogue and in this document. Usage in environments that subject the equipment to high temperatures, high humidity, dirt and dust, corrosive gas, vibrations and shocks may result in electric shocks, the outbreak of fire and malfunctions.
  • Page 6 REVISION TABLE DATE CONTENTS 2004.03 First release 2004.07 The function supported by Software Ver. 2.0 was added. - Modbus (ASCII mode) - Modbus Slave mode (I/O mapping) - Hi-Protocol mode - Simple data link mode 2004.11 The function supported by Software Ver. 2.1 was added. - Hi-Protocol mode (Transmission control procedure 2) - Self-check mode 2004.12...
  • Page 7: Table Of Contents

    Contents Chapter 1 Introduction ....................... 1-1 to 1-6 Before use ............................... 1-2 Feature ................................1-3 Supported CPU module ..........................1-5 Confirm software version of EH-SIO ......................1-6 Chapter 2 Specification...................... 2-1 to 2-2 General specification ............................2-1 Communication specification.......................... 2-2 Chapter 3 Name and function of each part ................
  • Page 8 Modbus master mode ............................ 6-29 6.3.1 Overview .............................. 6-29 6.3.2 User project structure ..........................6-30 6.3.3 Initial setting ............................6-31 6.3.4 Send Query, Receive Response ......................6-35 6.3.5 Error detection in modbus master mode ....................6-49 Modbus slave mode ............................6-50 6.4.1 Overview ..............................
  • Page 9 Appendix ........................A-1 to A-30 ASCII code list ............................... A-1 Outline of Modbus protocol ........................... A-2 A.2.1 Modbus message configuration ......................A-3 A.2.2 Function code ............................A-3 A.2.3 Error check ............................A-4 A.2.4 Response message ..........................A-6 H series protocol (Hi-Protocol) ........................A-7 A.3.1 Outline ..............................
  • Page 10 M E M O...
  • Page 11: Chapter 1 Introduction

    Chapter 1 Introduction Thank you for using the Hitachi EH-150 Programmable Controller series (It abbreviates to PLC after this.) This manual explains how to use the serial communication module (It abbreviates to EH-SIO after this.) with the Hitachi EH-150 Programmable Controller. Read this manual thoroughly and keep for installation operations, maintenance checks and other procedures.
  • Page 12: Before Use

    Chapter 1 Introduction Before use Great care has been taken in the manufacture of this product, but it is advised that the following points are checked immediately after purchase. 1. Is the model the same one that you ordered? 2. Has the product been damaged in any way? 3.
  • Page 13: Feature

    Chapter 1 Introduction Feature EH-SIO is the serial communication module with the following features.  2 communication ports There are two communication ports in EH-SIO. The port 1* and 2 can be used as RS-232C, RS-422 or 485 interface. Two communication ports can be operated independently and can assign a different function each other. * The hardware before Rev.
  • Page 14 Chapter 1 Introduction  Exclusive protocol for H / EH series (Hi-Protocol) is supported. EH-SIO can communicate with HMI (Human Machine Interface) which is supports H / EH series communication procedure (transmission control procedure 1). For example, it is convenient when using two or more touch panels to be connected. Moreover, since EH-SIO can be mounted also in an expansion base, system expansion is very flexible.
  • Page 15: Supported Cpu Module

    Chapter 1 Introduction Supported CPU module The function of EH-SIO depends on software version of CPU shown in the following table. The function of EH-SIO and the software version of EH-CPU which can be responded are shown in the following table. And all software version for EHV-CPU can use all functions for EH-SIO.
  • Page 16: Confirm Software Version Of Eh-Sio

    Chapter 1 Introduction Confirm software version of EH-SIO The software version is indicated in the main label of the module side. In addition, it can be monitored in WXus3 before initial setting is completed. * u : Unit No., s : Slot No. WXus3 : H0010 ...
  • Page 17: Chapter 2 Specification

    Chapter 2 Specification The general specification and transmission specification of EH-SIO are shown below. General specification Table 2.1 General Specification ITEM SPECIFICATION C Operating temperature 0 to 55 C –10 to 75 Preserving temperature Operating humidity No condensation 5 to 95% RH Preserving humidity No condensation 5 to 95% RH Current consumption...
  • Page 18: Communication Specification

    Chapter 2 Specification Communication specification Table 2.2 Communication specification SPECIFICATION ITEM Port 1 Port 2 Interface Conforms to Conforms to Conforms to Conforms to RS-232C RS-422 / 485 RS-232C RS-422 / 485 Transmission speed 300, 600, 1,200, 2,400, 4,800, 9,600, 19,200, 38,400, 57,600 bps Startup method One-sided startup using the host side command Transmission method...
  • Page 19: Chapter 3 Name And Function Of Each Part

    Chapter 3 Name and function of each part Name and function of each part Type EH-SIO [1] Lock button Mass Approx. 0.13 kg Dimensions (mm (in.)) [2] State display LED [3] Reset switch 30 (1.18) 95 (3.74) [4] Connector for Port1 (RS-232C or RS-422/485) [5] Connector for Port2 (RS-232C)
  • Page 20 Chapter 3 Name and function of each part  Display of LED Table 3.1 Contents of LED display Appearance Contents of display Details Color Lighting when the simple data link mode setting Simple Data Link Mode Green Lighting when MPU error (Serious failure) Watchdog Timer Error Port 1, Port 2 combined use Lighting when module error (Serious failure)
  • Page 21: Chapter 4 Installation

    Chapter 4 Installation Setup of communication setting switch Transmission speed and transmission format configuration are set up with the communication setting switch at the side of the module. There are 3 pieces of communication setting switches mounted. DIP Sw1, 4 are the setting switch for port 1 and DIP Sw2 is for port 2.
  • Page 22 Chapter 4 Installation Table 4.2 Setup of the communication setting switch (Port 1) Setup contents Details Communication I/F DIP Sw4 is used for select of communication I/F of Port 1. (RS-232C or RS-422 / 485) for Port1 ( RS-422 or 485 is switched by external wiring. ) DIP Sw4 Communication I/F for Port1 RS-422 / RS-485 Port...
  • Page 23: Installation Of Module

    Chapter 4 Installation Installation of module How to attach the module and how to remove are shown below. (1) Attach [1] Please check whether there are any abnormalities in the base side connector or the module side connector. [2] Hook the bottom part of the module to the hole in the base. [3] Press in the upper side of the module until it clicks.
  • Page 24: Connection Of Communication Port

    Chapter 4 Installation Connection of communication port 4.3.1 Connection of RS-232C interface The communication interface is selectable for both port 1 and port 2. Select RS-232C with the communication setting switch. (In case of port 1, the hardware before Rev. 10 supports RS-232C only.) Table 4.4 RS-232C interface Terminal layout...
  • Page 25 Chapter 4 Installation  The example of cable connection (1) When connecting with the general-purpose port of a personal computer EH-SIO Port (D-Sub 9pin) [1] SG [5] GND [2] CD [7] RTS [3] CS [8] CTS [4] ER [6] DSR [5] SD [2] RxD [6] RD...
  • Page 26: Connection Of Rs-422 / 485 Interface

    Chapter 4 Installation 4.3.2 Connection of RS-422 / 485 interface The port 1 and 2 can select a communication interface. When you use RS-422 or RS-485 interface, please set up with a communication setting switch. In addition, RS-422 or RS-485 interface is decided by connection of signal. Table 4.6 RS-422 / 485 Signal (Port1) Terminal layout...
  • Page 27 Chapter 4 Installation Table 4.8 RS-422/485 Signal (Port2) Terminal layout Signal Signal Name Diagram of internal circuit Send data + SD + 1) SD+ – Send data – SD – 2) SD– 3) RD+ Receive data + RD + – 4) RD–...
  • Page 28 Chapter 4 Installation  The example of cable connection The example of cable connection of RS-422 I/F and RS-485 I/F is shown below. Additional terminal block is useful for multi-drop communication. (1) When connecting in RS-422 I/F EH-SIO Port Port 1 Terminal block External device 1 External device n...
  • Page 29 Chapter 4 Installation (2) When connecting in RS-485 I/F EH-SIO Port Port 1 Terminal block External device 1 External device n [4] SD+ A(+) A(+) [5] SD– SD– B(-) B(-) Terminator  [7] RD+ (1/2W) [6] RD– RD– [1] SG The inside of [ ] Terminator is Pin No.
  • Page 30 Chapter 4 Installation M E M O 4 - 10...
  • Page 31: Chapter 5 Control Of Eh-Sio

    Chapter 5 Control of EH-SIO EH-SIO works based on the instructions from CPU module. The instruction of CPU module is made by user program. This chapter explains the command which controls EH-SIO, the register which display the status of EH-SIO, the register which controls EH-SIO.
  • Page 32 Chapter 5 Control of EH-SIO (3) Data sending from EH-SIO (Send only) If TRNS 9 command (Send command + Send data) is executed, data will be sent from EH-SIO. EHV-CPU EH-CPU EH-SIO TRNS 9 EH-SIO analyzes a command and transmits data. Send command Data Data...
  • Page 33: Trns 9 Command Format

    Chapter 5 Control of EH-SIO 5.1.2 TRNS 9 Command format TRNS 9 command consists of three parameters, d, s, and t. TRNS 9 command needs the data table area (called send data area, receiving data area) in addition to d, s, t parameters.
  • Page 34 Chapter 5 Control of EH-SIO [2] Command timeout time Set the timeout time of TRNS 9 command.  H0000 : command timeout disable  H0000 : command timeout enable. (Setting value x 10 ms) If EH-SIO does not receive data within the configured time, TRNS 9 is cancelled as command timeout error. Max.
  • Page 35 Chapter 5 Control of EH-SIO [4] Top I/O of receiving data area Set the top I/O address of receiving data area. The method to specify the data area is different according to used CPU. EH-CPU: EH-CPU Type: WR  H000A WL ...
  • Page 36 Chapter 5 Control of EH-SIO  t parameter The t parameter is used 5 bits in all. The configuration of t parameter is shown below. [0] TRNS 9 execution flag (Bit set by user) [1] TRNS 9 normal completion flag [2] TRNS 9 error flag [3] TRNS 9 initialization request flag (Bit set by user) [4] TRNS 9 initialization completion flag...
  • Page 37 Chapter 5 Control of EH-SIO  Sending data area The configuration of sending data area is shown below. The number of sending data bytes The I/O Address designated by s+9, A Please set the number of data in byte unit. Data 1 Data 2 Data 3...
  • Page 38: Input / Output Register

    Chapter 5 Control of EH-SIO Input / Output register By using an input / output register, the state of EH-SIO can be checked or EH-SIO can be reset* without using TRNS 9 command. The input / output register is assigned to the I/O area (area of 4W/4W) of EH-SIO. The input register is in WXus0-WXus3, and especially WXus0 and 1 are called status register.
  • Page 39: Register Configuration

    Chapter 5 Control of EH-SIO 5.2.1 Register configuration The function of the input / output register is shown below. Table 5.1 Function of Input / Output register Word No Direction Function WX u s 0 CPUEH-SIO Status register for port 1 The data about the state of a port 1 is set.
  • Page 40: Detail Of Input Register

    Chapter 5 Control of EH-SIO 5.2.2 Detail of input register  Configuration of status register The status register consists of 16 bits. A meaning is different for each bit. WX r u s 0 XCNT1 XHS1 XIC1 XRS1 XMDE XCDE1 XDTE1 CD1 TII1 PTE1 OBE1 IBE1 Abbreviation...
  • Page 41 Chapter 5 Control of EH-SIO  Contents of system area The system area of the input register consists of 1 word per port. The contents depend on operation mode (communication mode). In addition, when serious failure (except for a WDT error) occurs during operation, The serious failure error code is indicated in the system area for port 1 regardless of operation mode.
  • Page 42: Detail Of Output Register

    Chapter 5 Control of EH-SIO 5.2.3 Detail of output register  Configuration of control register The control register consists of 16 bits. A meaning is different for each bit. WY r u s 4 System area YCNT1 YHS1 YCV1 PRST1 Abbreviation WY r u s 5 System area...
  • Page 43: Chapter 6 Communication Mode

    Chapter 6 Communication Mode For EH-SIO, after the initial setting is complete, the communication procedure is then decided. This communication procedure is called the communication mode. EH-SIO has two communication ports which are operated independently, therefore a different communication mode can be assigned to each communication port. This chapter explains the details of each communication mode.
  • Page 44 Chapter6 Communication Mode EH-SIO will not communicate until initial setting is completed. After the initial setting is completed, the operation will start according to the setting. When the communication mode is set for free protocol mode or modbus master mode, communication is controlled by TRNS 9 command.
  • Page 45: Overview

    Chapter6 Communication Mode Free protocol mode In free protocol mode, EH-SIO works according to the command transmitted from CPU module. There are three types of commands: initial setting, data receive, and data send. 6.2.1 Overview  Data Receiving EH-SIO will start data receiving by the system, after initial setting is completed. The received data is divided according to the message composition registered in the initial setting, and is stored in a receiving buffer.
  • Page 46 Chapter6 Communication Mode  Sending data EH-SIO sends a packet to external device, shortly after receiving the packet transmitted by TRNS 9 (data sending command) from CPU module. If Message composition is registered at initial setting, EH-SIO will process a sending packet automatically and will send it.
  • Page 47: User Project Structure

    Chapter6 Communication Mode 6.2.2 User project structure Following user project structure is required in case of usage of free protocol mode of EH-SIO. TRNS 9 Initial setting Start free protocol mode operation TRNS 9 TRNS 9 Data receiving Data sending - Sending only - Sending after receiving - Receiving after sending...
  • Page 48: Initial Setting

    Chapter6 Communication Mode 6.2.3 Initial setting When the power is turned on, the EH-SIO will be in idling state (waiting for initial setting from CPU module). After the initial setting from the CPU module, operation in free protocol mode begins. Once initial setting is completed, the setup cannot be changed unless CPU module is stopped or EH-SIO is reset.
  • Page 49 Chapter6 Communication Mode  s parameter of initial setting Initializing command (specified as s+7) is H0000. Although nothing is stored in the receiving data area specified by s+B-s+D upon the performance of the initial setting command, please set during parameters in s+B to s+D. Return code Set by user System area ( 6 words )
  • Page 50 Chapter6 Communication Mode [3] Message composition / Modem line control / Data conversion type 1 word (1) Message composition Specify message format as below. If message composition is registered, EH-SIO will handle sending / receiving data automatically according to the setting. Table 6.2 Registration message composition list Setup Value Message composition...
  • Page 51 Chapter6 Communication Mode (2) Modem line control Specify whether the state of the control signal (RS, ER) is always set to high or switched by user program. Table 6.3 Control list of registration modem lines Set value Modem line control Hxx0x RS, ER always high Hxx1x...
  • Page 52 Chapter6 Communication Mode  Binary ASCII conversion type : The data stored in sending data area are changed into an ASCII code and transmitted, and the received data are changed into binary data and stored in receiving data area. CPU module EH-SIO External device 33 30 33 31 31 32 33 34...
  • Page 53 Chapter6 Communication Mode [4] Start character When message composition has a start character, start character is recommended to be specified. Start character can be registered 2 bytes max. Case of one byte : Be sure to specify a start character in high byte, and a low byte must be HFF. Effective ranges are H00-HFE.
  • Page 54 Chapter6 Communication Mode [7] Receiving timeout time Receiving timeout time is defined as time between the end of sent data and the end of received data.  H0000  Timeout disabled.  H0000  Timeout enabled. (Setting value x 10ms) The maximum timeout is HFFFF. Sent data ...
  • Page 55 Chapter6 Communication Mode  Sample program [ Initial setting ] (1) Ladder program [EH-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time WR9 = H000A I/O address of sending data area WRA = H0100 ( WR100 ) WRB = H000A...
  • Page 56 Chapter6 Communication Mode (2) Sample program description The s parameter and the sending data area parameter are set upon first scan. TRNS 9 will be performed at 2nd scan (falling of R7E3), and initial settings for basic unit (unit 0) and port 1 of slot 1 are shown in the following table.
  • Page 57: Communication Start

    Chapter6 Communication Mode 6.2.4 Communication start After initial setting is completed, EH-SIO will be waiting for data. Data will be transmitted when a transmitting command is transmitted from CPU module. However, since the monitoring of the control signal is performed when communication port is using RS-232C, data are not received unless "DR"...
  • Page 58: Receive Data

    Chapter6 Communication Mode 6.2.5 Receive data Received data is divided into packets according to the message composition registered in initial setting, and is stored in a receiving buffer. The number of effective receiving packets is displayed on an input register (for port 1: WXus2, and for port 2: WXus3).
  • Page 59 Chapter6 Communication Mode (2) When error information is read If an error occurs at data receiving, error code will be treated as one data packet. When CPU module reads the packet of error information, error flag (t+2) goes on, and error information is displayed on the return code area of s parameter.
  • Page 60 Chapter6 Communication Mode  Sample program [ Initial setting + Data receiving ] (1) Ladder program [EH-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time WR9 = H000A I/O address of sending data area WRA = H0100 ( WR100 ) WRB = H000A...
  • Page 61 Chapter6 Communication Mode [EHV-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time DR9 =ADR(WR100) … I/O address of sending data area ( WR100 ) DRB = ADR(WR200) … I/O address of receiving data area ( WR200 ) …...
  • Page 62 Chapter6 Communication Mode (2) Sample program description The s parameter and the parameter of sending data area are set upon first scan. After TRNS 9 command is completed, M0 will be ON and initial setting for the port 1 slot 1, unit 2 will be performed.
  • Page 63: Send Data

    Chapter6 Communication Mode 6.2.6 Send data There are three types of data transmission: Sending only, Receive after sending, Send after receiving. The data sending type is specified by TRNS 9 command.  Data sending Upon execution of TRNS 9 command, the specified data are transmitted from EH-SIO. When data are transmitted from EH-SIO, TRNS 9 command will be completed.
  • Page 64 Chapter6 Communication Mode  End of data sending When EH-SIO sends data properly, completion flag (t+1) will be ON, and H0020 will be set to return code area. If the transmission of data is failed, error flag (t+2) turns on, and error code is stored in the upper byte of return code area.
  • Page 65 Chapter6 Communication Mode  Receiving after sending When TRNS 9 command is executed, EH-SIO sends data and receives a reply data. When CPU module receives the data from EH-SIO, TRNS 9 command is completed.  s parameter Command for receiving after sending is H0021 Return code Set by user System area ( 6 words )
  • Page 66 Chapter6 Communication Mode  Send after receiving When TRNS 9 command is executed, EH-SIO will wait for data from an external device. If EH-SIO receives a data, EH-SIO send the specified data. (Time between receive can be configured.) When data transmission is complete, CPU module will read the data which EH-SIO received.
  • Page 67 Chapter6 Communication Mode  Sample program [ Initial setting + Receiving after sending ] (1) Ladder program [EH-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time WR9 = H000A I/O address of sending data area WRA = H0100 ( WR100 ) WRB = H000A...
  • Page 68 Chapter6 Communication Mode [EHV-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time DR9 =ADR(WR100) … I/O address of sending data area ( WR100 ) DRB = ADR(WR200) … I/O address of receiving data area ( WR200 ) …...
  • Page 69: Error Detection In Free Protocol Mode

    Chapter6 Communication Mode 6.2.7 Error detection in free protocol mode TRNS 9 command can check the execution results with t parameter and the details with s parameter. If error flag (t+2) of t parameter comes ON after TRNS 9 command execution, some type of error has occurred. Return code area The execution result of the TRNS 9 command and the executed command are stored in return code area (s parameter head word).
  • Page 70 Chapter6 Communication Mode Table 6.7 Free protocol mode abnormalities detected at time of communication Error Error Item Details code level Parity error in receiving data. Parity error Warning Framing error in receiving data. Framing error Warning Overrun error in receiving data. Overrun error Warning Check code error in receiving data.
  • Page 71: Modbus Master Mode

    Chapter 6 Communication Mode Modbus master mode In modbus master mode, EH-SIO is able to send requests (called “query” in this manual) according to the modbus protocol to an external device (a maximum of 32 sets), and receives an answer (called “response” in this manual) from external device by TRNS 9 command.
  • Page 72: User Project Structure

    Chapter 6 Communication Mode 6.3.2 User project structure Following user project structure is required in case of usage of Modbus master mode of EH-SIO. TRNS 9 Initial setting Start Modbus master mode operation TRNS 9 Query sending Response receiving Figure.6.23 User project structure (Modbus master) [ STEP 1 ] To configure communication port of EH-SIO as Modbus master mode by using TRNS9 command.
  • Page 73: Initial Setting

    Chapter 6 Communication Mode 6.3.3 Initial setting When power is turned ON, EH-SIO will be in idle state (initial setting waiting from CPU module). Operation in modbus master mode is started by initial setting from CPU module. In addition, once initial setting is completed, the setting cannot be changed, unless CPU module is stopped or EH-SIO is reset.
  • Page 74 Chapter 6 Communication Mode  Sending data area for initial setting Sending data area (head address is specified as s+9 and s+A) format is as follows: H 0 0 0 6 [1] Number of send data (bytes) [Fixed] H 0 0 1 0 [2] Modbus master mode [Fixed] (Refer to below) [3] Modbus transmission mode...
  • Page 75 Chapter 6 Communication Mode  Sample program [Initial setting] (1) Ladder program [EH-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time WR9 = H000A I/O address of sending data area WRA = H0100 ( WR100 ) WRB = H000A I/O address of receiving data area...
  • Page 76 Chapter 6 Communication Mode (2) Sample program description The s parameter and the parameter of sending data area are set upon first scan. TRNS 9 will be performed at 2nd scan (falling of R7E3), the following initial setting is configured on port 2 mounted on slot 2 of unit 3.
  • Page 77: Send Query, Receive Response

    Chapter 6 Communication Mode 6.3.4 Send Query, Receive Response  The TRNS 9 command s-parameter at time of query transmission Command (specified as s+7) of query sending is H0080 The execution result of TRNS 9 command is displayed. Return code (Set by the system.) System area (6 words) The command at the time of query transmission is H0080.
  • Page 78 Chapter 6 Communication Mode  Sample program [ Initial setting + Send Query, Receive response ] (1) Ladder program [EH-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time WR9 = H000A I/O address of sending data area WRA = H0100 ( WR100 )
  • Page 79 Chapter 6 Communication Mode [EHV-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time DR9 =ADR(WR100) … I/O address of sending data area ( WR100 ) DRB = ADR(WR200) … I/O address of receiving data area ( WR200 ) …...
  • Page 80 Chapter 6 Communication Mode  EH-SIO support function codes The function code that EH-SIO supports shown in the following table. Table 6.10 EH-SIO support functions Function Code Function Broadcasting 01 (0x01) Read Coil Status State of coil is read. 02 (0x02) Read Input Status State of input status is read.
  • Page 81 Chapter 6 Communication Mode  Function code 0x01 (Read Coil Status) The function code 01 is a query to read the state of coil of the slave system. Broadcasting is not supported. (1) Sending data area format Sending data area requires 4 words. Please set 6 bytes for head word. H 0 0 0 6 Device No.
  • Page 82 Chapter 6 Communication Mode 2) Receiving exception response When an exception response is received, error flag (t+2) turns on, and the receiving data area is as follows. Number of receive data (H0002) H 8 1 Exception code Figure 6.31 Receiving data area format (Function code 0x01 / Exception response) 3) Other errors (except for exception response) When there is no response from a slave or an abnormal factor is detected in the response, error flag (t+2) turns on, an error code is stored in the return code area of the s parameter, and the number of receiving data is cleared to...
  • Page 83 Chapter 6 Communication Mode  Function code 0x02 (Read Input Status) The function code 02 is a query to read input status of the slave. Broadcasting is not supported. (1) Sending data area format Sending data area requires 4 words. Please set 6 bytes for head word. H 0 0 0 6 Device No.
  • Page 84 Chapter 6 Communication Mode  Function code 0x03 (Read Holding Registers) The function code 03 is a query to read holding register of the slave system. Broadcasting is not supported. (1) Sending data area format Sending data area requires 4 words. Please set 6 bytes for head word. H 0 0 0 6 Device No.
  • Page 85 Chapter 6 Communication Mode  Function code 0x04 (Read Input Registers) The function code 04 is a query to read input register of slave apparatus. Broadcasting is not supported. (1) Sending data area format Sending data area requires 4 words. Please set 6 bytes for head word. H 0 0 0 6 04: Function code Device No.
  • Page 86 Chapter 6 Communication Mode  Function code 0x05 (Force Single Coil) The function code 05 is a query to change state of coil of the slave to ON/OFF (only 1 point.). In broadcasting, the state of the same coils of all slaves is changed. (1) Sending data area format Sending data area requires 4 words.
  • Page 87 Chapter 6 Communication Mode  Function code 0x06 (Preset Single Register) The function code 06 is a query to change state of the holding register of the slave. In broadcasting, the state of the same holding registers of all slaves is changed. (1) Sending data area format Sending data area requires 4 words.
  • Page 88 Chapter 6 Communication Mode  Function code 0x0F (Force Multiple Coils) Function code 0F is a query to change state of two or more coils of slave. In broadcasting, the state of the same coils of all slaves is changed. (1) Sending data area format Sending data area changes with the number of coils to change.
  • Page 89 Chapter 6 Communication Mode (2) The state of receiving data area 1) Completed properly When performance is properly, completion flag (t+1) will be ON, and nothing is stored in receiving data area. A properly execution code is stored in a return code (s+0). 2) Receiving exception response When an exception response is received, error flag (t+2) turns on, and the receiving data area is as follows.
  • Page 90 Chapter 6 Communication Mode  Function code 0x10 (Force Multiple Registers) Function code 10 is a query to change two or more holding registers of slave. In broadcasting, the state of the same holding registers of all slaves is changed. (1) Sending data area format Sending data area changes with the number of the holding registers to change.
  • Page 91: Error Detection In Modbus Master Mode

    Chapter 6 Communication Mode 6.3.5 Error detection in modbus master mode TRNS 9 command can check the execution results with t-parameter and the details with s parameter. If error flag (t+2) of t parameter comes ON after TRNS 9 command execution, some type of error has occurred. ...
  • Page 92: Modbus Slave Mode

    Supported function code and the meanings of EH-SIO are shown below. Table 6.14 Supported function and meanings Function Function Modbus Original Corresponding Hitachi PLC I/O Read continuous n points of bit output “Y” 01 (0x01) Read Coil Status Read continuous n points of bit input “X”...
  • Page 93 Chapter 6 Communication Mode  I/O mapping function The I/O mapping function was supported from software ver. 2.0. If an I/O mapping function is used, arbitrary I/O classification and addresses can be assigned to the address to H0000 - HFFFF. (The table after address translation is called mapping table.) Two mapping tables (for bits, for words) can be set up.
  • Page 94 Chapter 6 Communication Mode  Error detection (1) EH-SIO hardware error When EH-SIO detects serious error, operation is stopped. Try to push reset button in front panel or reboot the power. (2) Query error When EH-SIO detects communication error (parity error, check code error, etc) or in received query, error code will be stored, and the response will not be sent out.
  • Page 95: User Project Structure

    Chapter 6 Communication Mode 6.4.2 User project structure Following user project structure is required in case of usage of Modbus slave mode of EH-SIO. TRNS 9 Initial setting No needs user project Receiving query Sending response Figure 6.51 User project structure (Modbus slave) [ STEP 1 ] To configure communication port of EH-SIO as Modbus slave mode by using TRNS9 command.
  • Page 96: Initial Setting

    Chapter 6 Communication Mode 6.4.3 Initial setting EH-SIO becomes idle status (waiting to be initial setting by CPU module) after power ON. In modbus slave mode, EH-SIO works while CPU module in stop mode. Communication mode is cleared by reset button or rebooting the power.
  • Page 97 Chapter 6 Communication Mode  Sending data area for initial setting Parameter table for the sending data area (s+9, s+A) is as follows. [1] Number of send data (bytes) [Fixed] H 0 0 0 A [2] Modbus slave mode [Fixed] H 0 0 1 1 (Refer to below) [3] Modbus communication mode...
  • Page 98 Chapter 6 Communication Mode [4] Device address / waiting time 1 word (1) Device address Set device address in the high byte. Note : No.00 is not possible to set. (2) Waiting time [10ms] Waiting time is a time between receiving a query and sending a response. Actual waiting time is set time multiplied by 10ms.
  • Page 99 Chapter 6 Communication Mode [6] I/O Mapping information (Word) (1) The number of word table divisions (1 word) Number of word table divisions The maximum of the number of table divisions is 10. If a larger I/O code value than 10 is set up, it will become an initial setting error. I/O address (2) I/O Code / I/O address (2 word / 1 class) Address offset...
  • Page 100 Chapter 6 Communication Mode  Sample program [ Initial setting ] (1) Ladder program ( Not used I/O mapping function ) [EH-CPU] R7E3 WR7 = H0000 Initial setting command s parameter WR8 = 200 Command timeout time WR9 = H000A I/O address of sending data area WRA = H0100 (WR100 )
  • Page 101 Chapter 6 Communication Mode (2) Description of the sample program s parameters and sending data area are configured at the first scan (R7E3). When R0 is set ON, TRNS 9 is executed then port 2 in slot A, unit 4 is configured as following table. (In this example, when initial setting of EH-SIO is completed, initial setting completion flag X4A29 is set ON.
  • Page 102 Chapter 6 Communication Mode (1) Ladder program ( Word I/O mapping used ) [EH-CPU] R7E3 WR7 = H0000 Initial setting command s parameter WR8 = 200 Command timeout time WR9 = H000A I/O address of sending data WRA = H0100 ( WR100 ) WRB = H000A I/O address of receiving data...
  • Page 103 Chapter 6 Communication Mode [EHV-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time DR9 =ADR(WR100) … I/O address of sending data area ( WR100 ) DRB = ADR(WR200) … I/O address of receiving data area ( WR200 ) …...
  • Page 104 Chapter 6 Communication Mode (2) Description of the sample program s parameters and sending data area are configured at the first scan (R7E3). When R0 is set ON, TRNS 9 is executed then port 2 in slot A, unit 4 is configured as following table. (When initial setting completion flag X4A29 is ON, initial setting program is not executed.) Items Setup value...
  • Page 105: Response

    Chapter 6 Communication Mode 6.4.4 Response All explanation in this section is the responses at the time of a default (I/O mapping not used) setup.  Function code 0x01 (Read Coil Status) For EH-SIO, this function code means “Read status of output (Y)”. Broadcasting is not supported. (1) Query The start address of the coil and the number of coils are specified in the query message.
  • Page 106 Chapter 6 Communication Mode (3) Example Read the status of Y110-Y123 (14 points) in the slave 03. Y115 Y110 Y100 OFF OFF OFF OFF OFF ON ON ON Y131 Y123 Y116 Query Response Field name Example Field name Example (HEX) (HEX) Slave address Slave address...
  • Page 107 Chapter 6 Communication Mode  Function code 0x02 (Read Input Status) For EH-SIO, this function code means “Read status of input (X)”. Broadcasting is not supported. (1) Query The start address of the input bit and the number of inputs to be read are specified in the query. «...
  • Page 108 Chapter 6 Communication Mode  Function code 0x03 (Read Holding Registers) For EH-SIO, this function code means “Read status of internal output (WR)”. Broadcasting is not supported. (1) Query The start address of the internal output (WR) and the number of internal outputs to be read are specified in the query.
  • Page 109 Chapter 6 Communication Mode  Function code 0x04 (Read Input Registers) For EH-SIO, this function code means “Read status of internal output (WM)”. Broadcasting is not supported. (1) Query The start address of the internal output (WM) and the number of internal outputs to be read are specified by the query.
  • Page 110 Chapter 6 Communication Mode  Function code 0x05 (Force Single Coil) For EH-SIO, this function code means “Write 1 point output (Y)”. In case of broadcasting, the same output in each slave will be written. (1) Query The query message data field is H0000 for output ON, and HFF00 for output OFF. In case of a broadcast, please set the slave address field as 00.
  • Page 111 Chapter 6 Communication Mode  Function code 0x06 (Preset Single Register) For EH-SIO, this function code means “Write 1 word of internal output (WM)” or “Write 1 word of internal output (WR)”. In case of broadcasting, the same output in each slave will be written. «...
  • Page 112 Chapter 6 Communication Mode  Function code 0x0F (Force Multiple Coils) For EH-SIO, this function code means “Write multiple outputs (Y)”. In case of broadcasting, the same output in each slave will be written. (1) Query Please make the data field for the status of I/O number. Bit meaning 1 is ON and 0 is OFF. Data is handled as 1 byte. If data less than 1 byte is specified, set 0 to the rest area.
  • Page 113 Chapter 6 Communication Mode  Function code 0x10 (Force Multiple Registers) For EH-SIO, this function code means “Write multiple internal outputs (WR)”. In case of broadcasting, the same internal output in each slave will be written. (1) Query Please make the data field for the status of I/O number. At this time, please make data into the order of a high byte and a low byte.
  • Page 114: Error Detection In Modbus Slave Mode

    Chapter 6 Communication Mode 6.4.5 Error detection in modbus slave mode Since TRNS 9 command is not used in normal operation in case of modbus slave mode, error indication is different from other operation modes.  At initial setting The execution result is shown in t parameter and return code is in s-parameter. If error flag (t+2) of t parameter comes ON after TRNS 9 command execution, some type of error has occurred.
  • Page 115 Chapter 6 Communication Mode  While modbus slave operation Error code is indicated in high byte of status area WXus2, 3. (If error level is warning, EH-SIO keeps working.) If the next query is processed properly, error code in WXus2, 3 is cleared. If TRNS 9 command is issued while modbus slave mode, “Invalid command error (H50)”...
  • Page 116: Hi-Protocol Mode

    Chapter 6 Communication mode Hi-Protocol mode Hi-Protocol mode is a passive communication mode for EH-SIO. EH-SIO sends response command to a host computer according to the received request command from the host computer. This communication protocol between host computer and EH-SIO is dedicated communication procedure for H and EH series. (A request issued by host computer is called “request task code”...
  • Page 117 Chapter 6 Communication mode  Error detection (1) Hardware error of EH-SIO EH-SIO is able to detect hardware error by self-diagnostic. If serious error detected, EH-SIO will stop operation. In this case, reboot the power or reset EH-SIO by the reset button in front face. (2) Communication error of a request task code If EH-SIO detects communication error, such as parity error, checking code error etc., or task code error, such as illegal message frame, illegal parameter of message, EH-SIO will indicate error and send back a response task...
  • Page 118: Performance

    Chapter 6 Communication mode 6.5.2 Performance There are two communication processing for EH-SIO in CPU module. One is for port1, and the other one is for port2. These communication processing handle only the request for 1 port at 1 time. This means in case of the Hi-Protocol mode usage, the response time will be longer according to the increasing number of EH-SIO, because of the several EH-SIO processing should be done by CPU module sequentially.
  • Page 119: User Project Structure

    Chapter 6 Communication mode 6.5.3 User project structure Following user project structure is required in case of usage of Hi-Protocol mode of EH-SIO. TRNS 9 Initial setting No need user program Receiving request task code Sending response task code Figure 6.58 User Project structure (Hi-Protocol) [ STEP 1 ] To configure communication port of EH-SIO as Hi-Protocol mode by using TRNS9 command.
  • Page 120: Initial Setting

    Chapter 6 Communication mode 6.5.4 Initial setting After power activated, EH-SIO enters idle status (waiting initial setting by CPU module). EH-SIO starts Hi-Protocol mode operation by initial setting from CPU module. During Hi-Protocol mode, EH-SIO continues this mode even if CPU module is in stop mode. To change the communication mode of EH-SIO, power rebooting or reset operation of EH-SIO is requested.
  • Page 121 Chapter 6 Communication mode  Sending data area for Initial setting Parameter structure of sending data area (s+9, s+A) is as follows. [1] Number of send data (bytes) H 0 0 0 6 / H 0 0 0 8 [2] Communication mode H 0 0 2 0 [3] Transmission procedure, Usage of station number (Refer to below)
  • Page 122 Chapter 6 Communication mode [5] Expansion communication setting Expansion communication setting is supported from software ver. 2.3. Several communication parameters (length of data, type of parity, number of stop bits, checksum available / not available, and so on) can be set from CPU module by using expansion communication setting. «...
  • Page 123 Chapter 6 Communication mode (7) Existence of checksum in transmission data from host Value (b8) Existence of checksum Not existence Existence This parameter is convenient for the situation that host send the request with wrong checksum though procedure without checksum is selected. 6 - 81...
  • Page 124 Chapter 6 Communication mode  Execution of Initial setting Set command execution request bit (t+0) ON after storing required data to both s parameter and sending data area. « Note » The maximum number of EH-SIO modules specified as Hi-Protocol mode is 8 with one CPU module. ...
  • Page 125 Chapter 6 Communication mode [EHV-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time DR9 =ADR(WR100) … I/O address of sending data area ( WR100 ) DRB = ADR(WR200) … I/O address of receiving data area ( WR200 ) …...
  • Page 126: Error Detection In Hi-Protocol Mode

    Chapter 6 Communication mode 6.5.5 Error detection in Hi-Protocol mode The indication method of detected error in Hi-Protocol mode operation is different from the other mode. This reason is because of Hi-Protocol mode dose not require the TRNS 9 command except initial setting. ...
  • Page 127 Chapter 6 Communication mode  Error in Hi-Protocol mode The detected error in Hi-Protocol operation will be indicated in high byte of WX us2 and 3. (The operation will continue if the error level is not serious.) If the next task code is received properly, the error code WX us2 and 3 will be cleared.
  • Page 128: Simple Data Link Mode

    Chapter 6 Communication mode Simple data link mode Simple data link function is established by EH-SIO as a host by sending task codes “Read I/O (series N points) (A0)” and “Write I/O (series N points) (A2)” to other PLC. The functionality is similar with CPU LINK function, but the data refresh cycle is little bit longer than CPU LINK function because of using serial communication.
  • Page 129: Abstract Of Simple Data Link

    Chapter 6 Communication mode 6.6.1 Abstract of simple data link There are two modes for simple data link, the one is standard mode and the other is high speed mode. Standard mode is the mode all link data is shared with master and slave stations. In case of high speed mode, only the link area of master station is shared with slave stations.
  • Page 130 Chapter 6 Communication mode  Check link entry status First two words of master’s writing area indicates the link entry status of slaves both for standard and high speed mode. Since the status is updated with link data, it takes a time to update the status data. The content of link entry status is shown in Figure 6.64.
  • Page 131: Performance Specification

    Chapter 6 Communication mode 6.6.2 Performance specification Following table shows the performance specification of simple data link. Table 6.25 Performance specification of simple data link Items Specification Interface RS-422 Maximum number of link communications 31 stations (*1) Transmission cable length 500m / 250m Number of Per one station...
  • Page 132 Chapter 6 Communication mode « Note » - The simple data link communication can continue even if the CPU module status is in STOP. In this case, CPU scan time should be calculated as 120ms. - EH-SIO sends a request to registered slave stations. Therefore, if a slave that participates in registration cannot return a response (abnormality occurrence, cable unconnected, etc.), the refresh time will be longer than usual.
  • Page 133: User Project Structure

    Chapter 6 Communication mode 6.6.3 User project structure Following user project structure is required in case of usage of simple data link mode of EH-SIO. TRNS 9 Initial configuration Easy data link operation No needs user project Figure 6.65 User Project structure (Simple data link) [ STEP 1 ] Configure communication port of EH-SIO as simple data link mode by using TRNS 9 command.
  • Page 134: Master Configuration (Initial Setting Of Eh-Sio)

    Chapter 6 Communication mode 6.6.4 Master configuration (Initial setting of EH-SIO) EH-SIO must be configured as simple data link mode by initial setting. (This is same as other configuration, TRNS 9 command is required for EH-SIO initial setting.) EH-SIO starts simple data link operation after initial setting. Once initial setting is completed, EH-SIO continues simple data link operation even if CPU module is in stop mode.
  • Page 135 Chapter 6 Communication mode  Sending data area for Initial setting Parameter structure of sending data area (s+9, s+A) is as follows. H000E - H004A [1] Number of send data (bytes) H 0 0 3 0 / H 0 0 3 1 [2] Communication mode Refer to the next page [3] Waiting time for slave response...
  • Page 136 Chapter 6 Communication mode [4] Waiting time between stations 1 word Not used EH-SIO sends a command to each station one by one. Interval time between stations can be configurable. EH-SIO will wait specified time multiplied by 10ms and sends response to next slave station. The possible value for configuration is from 0 to 255 (H00FF).
  • Page 137 Chapter 6 Communication mode [7] Station number, words of slave station One word for one station. Specify as many words as slave station number. 1 word (1) Station number Specify station number in high byte in BCD. The valid range is from H01 to H31. If the value is 0 or more than H32 or including A to F characters, the initial setting error will be detected.
  • Page 138 Chapter 6 Communication mode  Execution of Initial setting Set command execution request bit (t+0) ON after storing required data to both s parameter and sending data area.  Completion of Initial setting (1) Completed properly H0000 is stored return code area (s+0) and completion bit (t+1) is turned ON. XIC2 and TII2 of status register are turned ON, LNK of status LED is turned ON and MB2, HP2 and MS2 of status LEDs are turned OFF.
  • Page 139 Chapter 6 Communication mode [EHV-CPU] R7E3 … WR7 = H0000 Initial setting command s parameter … WR8 = 200 Command timeout time DR9 =ADR(WR100) … I/O address of sending data area ( WR100 ) DRB = ADR(WR200) … I/O address of receiving data area ( WR200 ) …...
  • Page 140 Chapter 6 Communication mode (2) Description of sample program S parameter and sending data area are fulfilled at the first scan after power ON. At the second scan, TRNS 9 command is executed and following initial setting shown in below table will be sent to port 2 of EH-SIO module mounted on Unit 0 (basic unit) slot 1.
  • Page 141: Configuration Of Slave Station

    Chapter 6 Communication mode 6.6.5 Configuration of slave station (1) In case of EH-CPU as slave station Configure port 1 of EH-CPU as RS-422 transmission procedure 2 with station number. Step 1 : Set Dip Sw of EH-CPU at the bottom according to transmission speed of EH-SIO. Step 2 : Set parameter in special internal output WRF037 according to the table 6.27.
  • Page 142 Chapter 6 Communication mode (3) In case of EHV-CPU as slave station Configure the serial port of EHV-CPU as RS-422, transmission procedure 2 with station number by Control Editor. (4) In case of MICRO-EHV as slave station Configure the serial port on option board as transmission procedure 2 with station number by Control Editor. If MICRO-EHV is used as slave in simple data link mode, please use the option board with RS-422 communication interface.
  • Page 143: Error Detection In Simple Data Link Mode

    Chapter 6 Communication mode 6.6.6 Error detection in simple data link mode As described before, data link is operated by using Hi-Protocol communication. EH-SIO detects errors from salve stations. In case sending request has an error, error code will be stored in WRF000 in each slave station (self- diagnostic error code).
  • Page 144 Chapter 6 Communication mode  Error in simple data link mode The detected error in data link operation is separated into two categories, the one is error of EH-SIO and the other is illegal response from slave station. In case of serious error, data link operation will be stopped. In case of communication error with slave station, the operation will be continued.
  • Page 145 Chapter 7 System setup Trial Run  Check item Please check the item of Table 7.1. Table 7.1 Check item at the time of a trial run Item Contents  Is wiring of a power supply etc. right? Modules except EH-SIO ...
  • Page 146: Chapter 7 System Setup

    Chapter 7 System setup Error indication There are three error display indication in EH-SIO. The meaning and factor of each error indication are explained as below. (1) LED indication Three kinds of LED showing "error" exist in the state display LED. The error of EH-SIO can be checked visually. Table 7.2 Error LED indication State display LED Contents of abnormalities...
  • Page 147 Chapter 7 System setup (3) Return code of TRNS 9 command When TRNS 9 command is executed, an execution result is stored at the top word of s parameter as follows. Table 7.4 Abnormal factor and display Return Error Status Register Status display LED Name code...
  • Page 148: Troubleshooting

    Chapter 7 System setup Troubleshooting  Main check flow Power ON Error LED off? CPU RUN Initial setting for EH-SIO Initial Setting normal? Ladder program normal? Free protocol mode? Please refer to the flow of Please correct a ladder Free protocol mode program.
  • Page 149 Chapter 7 System setup  Check flow of Free protocol mode Data send and receive Send and receive Check the return code and the program. Send and receive Transmission speed Please set up a communication setting switch again. Transmission format configuration OK? Please set up a communication setting switch again.
  • Page 150 Chapter 7 System setup  Check flow of Modbus master mode Query transmission Response received? Exception response? Broadcast transmission? Please improve the designated address by query. Device No. agreement? Please improve the device No. of query. Sending data (Query) OK? Please improve the contents of sending data (query).
  • Page 151 Chapter 7 System setup  Check flow of Modbus slave mode Query transmission Response transmitted? Exception response? Broadcast transmission? Please improve the designated address by query. Device No. agreement? Please improve the device No. of query or the device No. of EH-SIO. Contents of query Please reconfirm the format of query.
  • Page 152 Chapter 7 System setup  Check flow of Hi-Protocol mode Task code received Response task code Transmitted? Station No. with? Station No. agreement? Connection of communication Please improve the station No. cable OK? of a request task code. Please connect a communication cable Error occurring to correctly.
  • Page 153 Chapter 7 System setup  Check flow of Simple data link mode Data link start Participating flag Data is updated All participating flag OFF? Data is updated rarely. Slave participating flag OFF? Please check a connection part with Please check the address Replace the CPU module.
  • Page 154 Chapter 7 System setup  Combination with EH-CPU (1) Combination with EH-CPU which is not supporting EH-SIO CPU modules other than EH-CPU516 / 548 are not supporting the TRNS 9 command. If TRNS 9 command is executed by these EH-CPU, an execution bit becomes being ON, and a normal completion flag / error flag does not turn on.
  • Page 155 Chapter 7 System setup  The solution for each error code Table 7.5 The solution for each error code Return Name Solution code (None) Watch dog timer error Please eliminate the source of a noise, reboot on a power supply, and see HFFxx CPU error a situation.
  • Page 156 Chapter 7 System setup M E M O 7 - 12...
  • Page 157 Chapter 8 Daily and Periodic Inspection In order to use the EH-SIO functions in the most desirable condition and maintain the system to operate normally, it is essential to conduct daily and periodic inspections. Daily inspection Verify the following items while the system is running. Table 8.1 Items for daily inspection ITEM LED display...
  • Page 158: Chapter 8 Daily And Periodic Inspection

    Chapter 8 Daily and Periodic Inspection Periodic inspection Turn off the power for the external I/O and check the following items once every six months. Table 8.2 Items for periodic inspection Part Item Check criteria Remarks Programming Check operation of All switches and display lamps device to CPU programming device...
  • Page 159: Self-Check Mode

    Chapter 8 Daily and Periodic Inspection Self-check mode The hardware self-check function is supported by software ver. 2.1. When communication is not performed correctly, the self-check function analyzes whether it is failure of EH-SIO, or it is the problem of a cable or external devices. «...
  • Page 160: Preparation Before Self-Check

    Chapter 8 Daily and Periodic Inspection 8.3.2 Preparation before self-check The loop back connector for port 1(RS-232C), port 2(RS-232C, RS-422 / 485) are required to perform self-check mode. Wiring of a loop back connector is shown in the following figure. (1) For port1 (Same connection for RS-232C and RS-422/485) EH-SIO side 5 - 6...
  • Page 161: Starting Of Self-Check Mode

    Chapter 8 Daily and Periodic Inspection 8.3.3 Starting of self-check mode (1) Operation of PLC is stopped, turn off the PLC power, and EH-SIO is removed. (2) Set the bit 7, 8 of Communication setting switch (DIP Sw1) to on. (3) Plug in above 3 connectors to communication ports.
  • Page 162: Result Of Self-Check

    Chapter 8 Daily and Periodic Inspection 8.3.4 Result of self-check When self-check mode started, the item under checking is displayed on lower 2 line of the status display LED as Table 8.4, 8.5. When a check is completed, software version indication blinks every 1s. When errors are detected, "WDE"...
  • Page 163 Chapter 8 Daily and Periodic Inspection  LED Check The LED turns on and off in order from [1] in the following figure. MDE CDE SD1 RD1 SD2 RD2 [10] [11] MB1 HP1 MB2 HP2 [12] [13] [14] [15] MS1 422 MS2 422 SERIAL I/O EH-SIO...
  • Page 164 Chapter 8 Daily and Periodic Inspection M E M O 8 - 8...
  • Page 165: Appendix

    Appendix ASCII code list Table A.1 ASCII code list ‘ TC7(DLE) (SP) TC1(SOH) “ TC2(STX) TC3(ETX) TC4(EOT) TC5(ENQ) TC8(NAK) TC6(ACK) TC9(SYN) & ‘ TC10(ETB) FE0(BS) FE1(HT) FE2(LF) SUB(EOT) FE3(VT) FE4(FF) IS4(FS) < ¥ FE5(CR) IS3(GS) IS2(RS) > IS1(US) A - 1...
  • Page 166: Outline Of Modbus Protocol

    Appendix Outline of Modbus protocol The communication system of Modbus is a single master / multi slave system. Only the master can transmit a demand (query) to designated slave or the bloadcasting query to the all slaves. The slave performs the function according to query and returns a response message.
  • Page 167: Modbus Message Configuration

    Appendix A.2.1 Modbus message configuration Modbus message configuration changes with transmission modes. (1) Message configuration of ASCII mode In case of ASCII mode, a message starts in the ASCII character of “ : ”(0x3A), and finishes it as ”CR / LF”(0x0D, 0x0A).
  • Page 168: Error Check

    Appendix A.2.3 Error check (1) LRC check The error check field based on the Longitudinal Redundancy Check (LRC) is included in the message frame in ASCII mode. The target of LRC calculation is a portion (Device address, Function code, data) except the header (colon) and the terminator (CR/LF).
  • Page 169 Appendix (2) CRC check The error check field based on the CRC system is included in the message frame in RTU mode. The target of CRC calculation is all messages (Device No., Function code, Data). The CRC code is 16-bit data generated to the block of any data length of a 8-bit unit, which is calculated by generation polynomial of CRC-16(X +1).
  • Page 170: Response Message

    Appendix A.2.4 Response message When a slave receives a query except broadcasting, the slave must return a response. Operation of slave can be defined as following four patterns. 1) Query is receivedand processed properly. 2) Query is unreceived by communication error etc. 3) Although query was received, parity, CRC or LRC error was detected.
  • Page 171: H Series Protocol (Hi-Protocol

    HMI. CPU module, COMM module, remote module, CPU link module, and Ethernet module, etc. of Hitachi H/EH series are able to handle Hi-protocol. Task code (command code) and transmission control procedures are concretely specified in Hi-protocol. The outline of Hi-Protocol is shown in Figure.
  • Page 172: Hi-Protocol Message Configuration

    Appendix A.3.2 Hi-Protocol message configuration The message format of Hi-Protocol is shown below.  Standard H protocol (Transmission control procedure 1) 1 byte ASCII code Task code Max. 503 byte  Simple H protocol (Transmission control procedure 2) ASCII code Task code Max.
  • Page 173 Appendix Table.A.7 The parameter in a message ITEM CONTENTS Response TM When PLC receives a command from host, PLC will send back a response after waiting TM x (Response timer) 10ms. Possible range is 0-F, which corresponds with 0 - 150ms. "...
  • Page 174: Basic Specification Of Transmission Control Procedure

    Appendix A.3.3 Basic specification of transmission control procedure The communication sequence of a host and PLC is shown in the following figure. The minimum cycle Task LUMP code Host Res- LUMP ponse In case of CPU “Busy” Task LUMP code Host Res- LUMP...
  • Page 175 Appendix If PLC cannot execute properly a request from a host, PLC returns a negative response NAK. Task LUMP code Host *RTC : Return code Figure.A.7 Transmission control procedure 1 Communication sequence diagram (Abnormal 1) Task code Host *RTC : Return code Figure.A.8 Transmission control procedure 2 Communication sequence diagram (Abnormal 1) Table.A.8 Return code list Error factor...
  • Page 176: Eh-Sio Support Task Code Details

    Appendix A.3.4 EH-SIO support task code details CPU status read Classification Task code CPU Control  Function Reads the CPU status, memory-load status and software version. This task code can also be executed when the CPU is not occupied.  Execution condition CPU Status STOP HALT...
  • Page 177 Appendix CPU status read Classification Task code CPU Control  Response Format 2] Read memory status (subcommand H01) H 1 0 (a) Response task code (H00 when executed normally) (b) Memory type (c) User memory capacity (number of steps) (d) Data memory capacity (number of words) (b), (c), (d) area details (response to the subcommand “H01”) Memory status Item...
  • Page 178 Appendix CPU status read Classification Task code CPU Control  Response Format 5] Read CPU specifications (subcommand H05) H 1 0 Response task code (H00 when executed normally) CPU name (16 ASCII-code characters) If it is less than 16 characters, Null (H20) are added until 16 characters are reached. EH-CPU516/548 …...
  • Page 179 Appendix Classification Task code CPU occupation / cancel CPU Control  Function Declares that the user memory will be accessed. User memory cannot be accessed by host unless the CPU is occupied in case of using H4x task code. Also, depending on the function selection, it performs the same processing as the parameter modification completion processing (task code H27).
  • Page 180 Appendix Classification Task code Forced cancel of occupation CPU Control  Function Forces the cancel of CPU occupation. This command is used in situations such as when another programming device has gone down due to an error while occupying the user memory of the CPU (function selection H00). When connecting the host to the CPU and occupying it for the first time, use function selection H01 so the local occupation status is canceled forcibly.
  • Page 181 Appendix Monitoring with I/O number designation Task code Classification I/O Control (Series N points)  Function Reads N continuous points (words) of monitor data, starting with the specified I/O number. * This task code can also be executed when the CPU is not occupied. However, the response task code will be “H02”...
  • Page 182 Appendix Forced set/reset with I/O number designation Task code Classification I/O Control (Series N points)  Function Forcibly sets and resets the designated data in N continuous points (words) of data area, starting with the designated I/O.  Execution condition CPU Status STOP HALT...
  • Page 183 Appendix Monitoring with I/O number designation Task code Classification I/O Control (Random N points)  Function Reads the monitor data by designating N random points (words) of I/O numbers. * This task code can also be executed when the CPU is not occupied. However, the response task code will be “H02”...
  • Page 184 Appendix Forced set/reset with I/O number designation Task code Classification I/O Control (Random N points)  Function Designates N points (words) of I/O numbers randomly, and forcibly sets the designated data or resets the data area.  Execution condition CPU Status STOP HALT ERROR...
  • Page 185 Appendix Monitoring with I/O number designation Classification Task code I/O Control (Series N points)  Function Reads N continuous points (words) of monitor data, starting with the designated I/O number. * This task code can also be executed when the CPU is not occupied. * The I/O data of EH-150 outside the range returns all off (0).
  • Page 186 Appendix Forced set/reset with I/O number designation Classification Task code I/O Control (Series N points)  Function Forcibly sets and resets the designated data in N continuous points (words) of data area, starting with the specified I/O. * This task code can also be executed when the CPU is not occupied. ...
  • Page 187 Appendix Monitoring with I/O number designation Task code Classification I/O Control (Random N points)  Function Reads the monitor data by designating N random points (words) of I/O numbers. This task code can also be executed when the CPU is not occupied. * The I/O data of EH-150 outside the range returns all off (0).
  • Page 188 Appendix Forced set/reset with I/O number designation Classification Task code I/O Control (Random N points)  Function Designates N points (words) of I/O numbers randomly, and forcibly sets the designated data or resets the data area. * This task code can also be executed when the CPU is not occupied. ...
  • Page 189 Appendix Table. A.9 Task code response list ( 1 / 2 ) Task Subcommand Response task code Return code Error cause code Code Code Code H10 Status Normal execution Memory status Normal execution Software version Normal execution CPU error code Normal execution Call CPU name Normal execution...
  • Page 190 Appendix Table. A.10 Task code response list ( 2 / 2 ) Task Subcommand Response task code Return code Error cause code Code Code Code H40 None Normal execution Abnormal task H01 Abnormal number H05 The requested number of points is outside code of steps/words the designated range.
  • Page 191: I/O Code List

    Appendix A.3.5 I/O Code list The list of the I/O codes used in task code is shown in the following table. Table.A.11 I/O code list I/O code Symbol Range of I/O number * 0 to H5FF5F (5FF95) 0 to H4FF5F (4FF95) 0 to H5FF5F (5FF95) 0 to H4FF5F (4FF95) 0 to HFFF *...
  • Page 192: Trns 9 Command List

    Appendix TRNS 9 Command list Table A.12 shows the command list set to s parameter (s+7) when the TRNS 9 command is executed. Table A.12 Command list set to s+7 parameter Mode Command Description (in the sending data area) Free protocol H0000 H0000 Initial setting...
  • Page 193: Trns 9 Return Code

    Appendix TRNS 9 Return code The return code of TRNS 9 command and error factors are shown in the following table. Table A.13 TRNS 9 Return code ( 1 / 2 ) Error Error Item Details code level CPU error Since error occurred in CPU, EH-SIO also stopped operation.
  • Page 194 Appendix Table A.14 TRNS 9 Return code ( 2 / 2 ) Error Error Item Details code level Parity error Warning Parity error in receiving data. Framing error Warning Framing error in receiving data. Overrun error Warning Overrun error in receiving data. Check code error Warning Check code error in receiving data.

This manual is also suitable for:

Ehv seriesHx series

Table of Contents