Omron E5CN-H Communications Manual

Omron E5CN-H Communications Manual

Digital controllers
Hide thumbs Also See for E5CN-H:
Table of Contents

Advertisement

Cat. No. H159-E1-01
E5CN-H
E5AN-H
E5EN-H
Digital Controllers
COMMUNICATIONS MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the E5CN-H and is the answer not in the manual?

Questions and answers

Summary of Contents for Omron E5CN-H

  • Page 1 Cat. No. H159-E1-01 E5CN-H E5AN-H E5EN-H Digital Controllers COMMUNICATIONS MANUAL...
  • Page 2: Preface

    No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility for errors or omissions.
  • Page 3: Read And Understand This Manual

    PRODUCTS, WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY. In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted. IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS...
  • Page 4: Disclaimers

    Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
  • Page 5: Safety Precautions

    Safety Precautions ■ Definition of Precautionary Information The following notation is used in this manual to provide precautions required to ensure safe usage of the product. The safety precautions that are provided are extremely important to safety. Always read and heed the information provided in all safety precautions. The following notation is used.
  • Page 6 ■ Safety Precautions CAUTION Do not touch the terminals while power is being supplied. Doing so may occasionally result in minor injury due to electric shock. Do not allow pieces of metal, wire clippings, or fine metallic shav- ings or filings from installation to enter the product. Doing so may occasionally result in electric shock, fire, or malfunction.
  • Page 7 CAUTION Tighten the terminal screws to between 0.74 and 0.90 N·m. Loose screws may occasionally result in fire. Set the parameters of the product so that they are suitable for the system being controlled. If they are not suitable, unexpected operation may occasionally result in property damage or accidents.
  • Page 8: Precautions For Safe Use

    Precautions for Safe Use Be sure to observe the following precautions to prevent operation failure, malfunction, or adverse affects on the performance and functions of the product. Not doing so may occasionally result in unexpected events. The product is designed for indoor use only. Do not use the product outdoors or in any of the following locations.
  • Page 9 12) A switch or circuit breaker should be provided close to this unit. The switch or circuit breaker should be within easy reach of the operator, and must be marked as a disconnecting means for this unit. 13) Always turn OFF the power supply before pulling out the interior of the product, and never touch nor apply shock to the terminals or electronic components.
  • Page 10: Conventions Used In This Manual

    Conventions Used in This Manual ■ How This Manual is Organized Overview Descriptions in this manual are separated by the communications method. Read the sections that are application to the system being used. CompoWay/F Communications Data • for CompoWay/F SYSWAY SYSWAY Modbus Communications Data...
  • Page 12: Table Of Contents

    Table of Contents Preface - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I Read and Understand this Manual - - - - - - - - - - II Warranty, Limitations of Liability - - - - - - - - - - - - II Application Considerations - - - - - - - - - - - - - - - - II Disclaimers - - - - - - - - - - - - - - - - - - - - - - - - - - - III...
  • Page 13 SECTION 3 Communications Data for CompoWay/F and SYSWAY Variable Area (Setting Range) List ............. 3-2 Status and Status 2 .................. 3-16 Status Structure ................3-16 Status 2 Structure ................3-18 Status Details ..................3-19 Status 2 Details ................. 3-20 SECTION 4 SYSWAY (E5@J and E5@X Format) Communications Procedures Data Format ....................
  • Page 14: Communications Methods

    SECTION 1 Communications Methods This section briefly describes the supported communications methods and how to wire equipment. Refer to this section when setting up equipment. Overview of Communications Methods ......1-2 Introduction.............. 1-2 Communications Specifications....... 1-3 Transmission Procedure.......... 1-3 Interface..............1-4 Wiring ..............
  • Page 15: Overview Of Communications Methods

    CompoWay/F is OMRON’s standard communications format for general serial communications. This format uses a standard frame format as well as the well-established FINS* commands used for OMRON’s PLCs. Therefore, it can simplify communications between components and the host. *FINS (Factory Interface Network service) The FINS protocol provides message communications between controllers in OMRON FA networks.
  • Page 16: Communications Specifications

    1.1 Overview of Communications Methods ■ Communications Specifications Transmission line con- RS-485: Multidrop nection RS-232C: Point-to-point RS-422: Multidrop Communications method RS-485 (2-wire, half-duplex)/RS-232C/ (See note 1.) RS-422 (4-wire, half-duplex) Synchronization method Start-stop synchronization Communications baud 1,200, 2,400, 4,800, 9,600, 19,200, 38,400 or 57,600 bps rate (See note 2.) Communications code ASCII...
  • Page 17: Interface

    SECTION 1 Communications Methods Allow a wait time of at least 2 ms before the next command is sent after the host receives a response from the E5CN/AN/EN-H. ■ Interface Communications with the host are carried out through a standard RS-485 interface, RS-232C interface, or RS-422 interface (E5AN/E5EN-H).
  • Page 18 1.1 Overview of Communications Methods ● E5CN-H Communications transceiver Host side RS-485 E5CN-H RS-485 Abbreviation Abbreviation − A (−) B (+) 6.8 V Shield E5CN-H Terminator 120 Ω End node (1/2 W) RS-485 Abbreviation A (−) A < B: "1" Mark B (+) A >...
  • Page 19 For details on the host, refer to the User’s Manual provided with the host. RS-232C A 1:1 connection is used. The maximum cable length is 15 m. To extend the transmission path, use the OMRON Z3R RS-232C Optical Interface. Use AWG24 (cross-sectional area: 0.205 mm ) to AWG14 (cross-sectional area: 2.081 mm ) shielded twisted-pair cable.
  • Page 20 1.1 Overview of Communications Methods E5AN/EN-H (No. 30) Host E5AN/EN-H (No. 0) Terminator × 2 RS-422 RS-422 RS-422 (240 Ω, 1/2 W) Shield 11 RDB 11 RDB...
  • Page 21: Communications Parameters

    SECTION 1 Communications Methods ■ Communications Parameters The E5CN/AN/EN-H’s communications specifications are set in the communi- cations setting level. These parameters are set on the E5CN/AN/EN-H’s front panel. The following table shows the communications parameters and their setting ranges. Item Code Settings Set Values...
  • Page 22: Communications Parameters

    1.1 Overview of Communications Methods Use the D or U Keys to change the parameter set values. Protocol Setting psel Communications Unit u-no Communications Baud Rate Communications Data Length (See note.) Communications Stop 56it Bits (See note.) Communications prty Parity Note: Displayed only when the eVen Protocol Setting parameter is...
  • Page 23: Setting Communications Writing

    SECTION 1 Communications Methods • Communications Stop Bits (sbit) This parameter is for setting the number of communications stop bits. Set either “1” or “2.” • Communications Parity (prty) The communications parity can be set. Set the parity to “none,” “even,” or “odd.”...
  • Page 24: Compoway/F Communications Procedures

    SECTION 2 CompoWay/F Communica- tions Procedures Read this section if you are to communicate using the CompoWay/F format. Data Format..............2-2 Command Frame........... 2-2 BCC Calculation Example ......2-3 Response Frame ........... 2-3 Communications Data ........... 2-4 End Code Example..........2-4 Structure of Command Text ..........
  • Page 25: Data Format

    SECTION 2 CompoWay/F Communications Procedures 2.1 Data Format Hexadecimal values are expressed by adding the prefix H’ before the number, e.g., H’02. Numbers shown without the H’ prefix are ASCII characters. The number underneath each item in a frame indicates the number of bytes. ■...
  • Page 26: Response Frame

    2.1 Data Format ● BCC Calculation Example The BCC (Block Check Character) is determined by calculating the exclusive OR of the bytes from the node number up to ETX. The 8-bit result is written to the BCC byte at the end of the frame. Command text Node number Sub-address 02H 0 (30H) 0 (30H) 0 (30H) 0 (30H) 0 (30H) 0 (30H)5 (35H) 0 (30H)3 (33H)
  • Page 27: Communications Data

    SECTION 2 CompoWay/F Communications Procedures ■ Communications Data Communications Set (monitor) Negative values Decimal point format values CompoWay/F 8-digit hexa- 2’s complement Decimal point is removed and the result is converted decimal to hexadecimal. Example conversion: 105.0 → 1050 → H’0000041A ■...
  • Page 28 2.1 Data Format Example 4) No Sub-address and Illegal BCC Command Node number Response Node number Sub-address End code The sub-address is “00” and the end code is “13” (BCC error).
  • Page 29: Structure Of Command Text

    SECTION 2 CompoWay/F Communications Procedures 2.2 Structure of Command Text ■ PDU Structure An MRC (Main Request Code) and SRC (Sub-Request Code) followed by the various required data is transferred to the command text. Service Request PDU MRC SRC Data The MRES (Main Response Code) and SRES (Sub-Response Code) are transferred to the response frame following the above MRC/SRC.
  • Page 30: Addresses

    2.2 Structure of Command Text The following table summarizes setup areas 0 and 1. Area Description Setup area 0 This area groups together the protect, manual control, opera- tion, adjustment, bank setting, and PID setting levels. Setup area 1 This area groups together the initial setting, communications setting, advanced function setting, and calibration levels.
  • Page 31 SECTION 2 CompoWay/F Communications Procedures Name of service Processing Echoback Test This service performs an echoback test. Operation Command This service performs operations such as RUN/STOP, executing/stop- ping AT (auto-tuning), and moving to Setup Area 1. Note: No commands will be accepted and no responses will be returned when a memory error (RAM error) has occurred or the Controller is initializing (until the Controller recognizes the process value after the power is turned ON).
  • Page 32: Detailed Description Of The Services

    2.3 Detailed Description of the Services 2.3 Detailed Description of the Services ■ Read Variable Area This service reads data from the variable area. Service Request PDU Variable Read MRC SRC Number of type position start address elements Service Request PDU Response Read data (for number MRC SRC...
  • Page 33: Write Variable Area

    SECTION 2 CompoWay/F Communications Procedures Response code Error name Cause 1103 Start address out-of- The read start address is out range error of range. 110B Response too long The number of elements exceeds the maximum. 1100 Parameter error Bit position is not “00.” 2203 Operation error EEPROM error...
  • Page 34 2.3 Detailed Description of the Services (4) Response Code Normal Completion Response code Name Description 0000 Normal completion No errors were found. Error Occurred Response code Error name Cause 1002 Command too The command is too short. short 1101 Area type error The variable type is wrong.
  • Page 35: Composite Read From Variable Area

    SECTION 2 CompoWay/F Communications Procedures ■ Composite Read from Variable Area This service reads in order the contents of specified addresses in the variable area. Service Request PDU Read Read MRC SRC Variable Variable address position address position type type 0 1 0 4 Service Response PDU Response...
  • Page 36: Composite Write To Variable Area

    2.3 Detailed Description of the Services Response code Error name Cause 1101 Area type error The variable type is wrong. 110B Response too long The number of elements exceeds the maximum. 1100 Parameter error Bit position is not “00.” 2203 Operation error EEPROM error ■...
  • Page 37 SECTION 2 CompoWay/F Communications Procedures Error Occurred Response code Error name Cause 1002 Command too The command is too short. short 1101 Area type error The variable type is wrong. 1100 Parameter error • Bit position is not “00.” • The write data is out of the setting range.
  • Page 38: Read Controller Attributes

    2.3 Detailed Description of the Services ■ Read Controller Attributes This service reads the model number and communications buffer size. Service Request PDU MRC SRC 0 5 0 3 Service Response PDU MRC SRC Response Model No. Buffer code size 0 5 0 3 0 0 D 9 (1) Model Number...
  • Page 39: Read Controller Status

    SECTION 2 CompoWay/F Communications Procedures ■ Read Controller Status This service reads the operating status and error status. Service Request PDU MRC SRC 6 0 1 Service Response PDU Operating Related Response MRC SRC status informa- code tion 6 0 1 (1) Operating Status Operating Description...
  • Page 40: Echoback Test

    2.3 Detailed Description of the Services ■ Echoback Test This service performs an echoback test. Service Request PDU MRC SRC Test data 8 0 1 0 to 200 Service Response PDU Response MRC SRC Test data code 8 0 1 0 to 200 (1) Test Data Set between 0 and 200 bytes of user-defined test data.
  • Page 41: Operation Command

    SECTION 2 CompoWay/F Communications Procedures ■ Operation Command This service performs operations such as the following: • Communications • RUN/STOP • Bank Change Writing • AT Execute/Cancel • Write Mode • Save RAM Data • Software Reset • Move to Setup Area 1 •...
  • Page 42 2.3 Detailed Description of the Services Command Command content Related Information code Auto/Manual Switch 00: Automatic mode 01: Manual mode Parameter Initialization 00: Initialize to defaults Alarm Latch Cancel 00: Alarm 1 latch cancel 01: Alarm 2 latch cancel 02: Alarm 3 latch cancel 03: HB alarm latch cancel 04: HS alarm latch cancel 05: OC alarm latch cancel...
  • Page 43 SECTION 2 CompoWay/F Communications Procedures (3) Operation Commands and Precautions ● Communications Writing Set the Communications Writing parameter to “ON: enabled” or “OFF: disabled” with the related information setting. The setting can be accepted in both setup area 0 and setup area 1. An operation error will occur, however, if enabling or disabling communications writing is set for an event input.
  • Page 44 2.3 Detailed Description of the Services ● Write Mode Set either the backup mode or RAM write mode with the related infor- mation setting. The setting can be accepted in both setup area 0 and setup area 1. The number of EEPROM (non-volatile memory) write operations is limited.
  • Page 45 SECTION 2 CompoWay/F Communications Procedures When this move is carried out from setup area 0, the display indicates the Input Type parameter in the “initial setting level.” When this operation command is executed in setup area 1, the display will not change.
  • Page 46 2.3 Detailed Description of the Services Note: When the auto/manual mode is switched with an operation command through communications and the Controller is in RAM write mode, the auto/manual status is not stored in EEPROM. Consequently, if the Controller is restar ted by performing a software reset or turning the power OFF and ON again, the auto/ manual mode is set to the last saved status.
  • Page 47 SECTION 2 CompoWay/F Communications Procedures • When AT is being executed. • When inverting direct/reverse operation is set for an event input. • When executed in manual mode. ● Program Start The simple program function can be reset/started with the related infor- mation setting.
  • Page 48: Response Code List

    2.4 Response Code List 2.4 Response Code List Normal Completion Error Response Name Description detection code priority 0000 Normal completion No errors were found. None Error Occurred Error Response Name Description detection code priority 0401 Unsupported command The service function for the relevant command is not supported.
  • Page 49 SECTION 2 CompoWay/F Communications Procedures 2-26...
  • Page 50: Communications Data For Compoway/F And Sysway

    SECTION 3 Communications Data for CompoWay/F and SYSWAY This section lists the details of the communications data in the CompoWay/F and SYSWAY communications protocols. Variable Area (Setting Range) List ....... 3-2 Status and Status 2 ............ 3-16 Status Structure........... 3-16 Status 2 Structure..........
  • Page 51: Variable Area (Setting Range) List

    SECTION 3 Communications Data for CompoWay/F and SYSWAY 3.1 Variable Area (Setting Range) List For communications using a variable type not enclosed in parentheses in the following table, the set value is double-word data (8 digits). For communications using a variable type enclosed in parentheses, the set value is single-word data (4 digits).
  • Page 52 3.1 Variable Area (Setting Range) List Variable Address Parameter name Setting (monitor) value Level type C1 (81) 0000 Operation/Adjustment Protect H'00000000 (0): No restrictions in operation and adjustment levels Protect H'00000001 (1): Move to adjustment level is prohibited. H'00000002 (2): Display and change of only “PV” and “PV/SP” parame- ters is allowed.
  • Page 53 SECTION 3 Communications Data for CompoWay/F and SYSWAY Variable Address Parameter name Setting (monitor) value Level type Standard: H'FFFFFFCE to H'0000041A ( − 5.0 to 105.0) C1 (81) 0022 MV at Stop Adjustment Heating/cooling: H'FFFFFBE6 to H'0000041A ( − 105.0 to 105.0) Position proportional (Floating or direct setting of position proportional MV OFF): H'FFFFFFFF to H'00000001 ( −...
  • Page 54 3.1 Variable Area (Setting Range) List Variable Address Parameter name Setting (monitor) value Level type Pt ( − 200.0 to 850.0 ° C/ − 300.0 to 1500.0°F) C3 (83) 0000 Input Type (See note.) H'00000000 (0): Initial Pt ( − 199.9 to 500.0 ° C/ − 199.9 to 900.0°F) H'00000001 (1): setting Pt (0.0 to 100.0 °...
  • Page 55 SECTION 3 Communications Data for CompoWay/F and SYSWAY Variable Address Parameter name Setting (monitor) value Level type C3 (83) 000D Alarm 1 Type H'00000000 (0): Alarm function OFF Initial H'00000001 (1): Upper and lower limit alarm setting H'00000002 (2): Upper limit alarm H'00000003 (3): Lower limit alarm H'00000004 (4): Upper and lower limit range alarm H'00000005 (5): Upper and lower limit alarm with standby sequence...
  • Page 56 3.1 Variable Area (Setting Range) List Variable Address Parameter name Setting (monitor) value Level type C3 (83) 0016 Event Input Assignment 1 (See note 1.) H'00000000 (0): None Initial H'00000001 (1): RUN/STOP setting H'00000002 (2): Auto/manual switch H'00000003 (3): Program Start (See note 5.) H'00000004 (4): Direct/reverse operation H'00000005 (5): SP mode change H'00000006 (6): 100% AT execute/cancel...
  • Page 57 SECTION 3 Communications Data for CompoWay/F and SYSWAY Variable Address Parameter name Setting (monitor) value Level type C3 (83) 0020 Auxiliary Output 2 Open in Alarm H'00000000 (0): Close in alarm Advanced H'00000001 (1): Open in alarm function setting C3 (83) 0021 Alarm 2 Hysteresis Temperature: H'00000001 to H'00007E90 (0.1 to 3240.0)
  • Page 58 3.1 Variable Area (Setting Range) List Variable Address Parameter name Setting (monitor) value Level type C3 (83) 0036 PV Change Color H'00000000 (0): Orange Advanced H'00000001 (1): Red function H'00000002 (2): Green setting H'00000003 (3): Red to green: When ALM1 is ON H'00000004 (4): Green to red: When ALM1 is ON H'00000005 (5): Red to green to red: Within PV stable band: Green Outside stable band: Red...
  • Page 59 SECTION 3 Communications Data for CompoWay/F and SYSWAY Variable Address Parameter name Setting (monitor) value Level type C3 (83) 004C Communications Protocol Setting H'00000000 (0): CompoWay/F (SYSWAY) Communi- (See note 1.) H'00000001 (1): Modbus cations set- ting C3 (83) 004D Send Data Wait Time (See note 1.) H'00000000 to H'00000063 (0 to 99) C3 (83)
  • Page 60 3.1 Variable Area (Setting Range) List Variable Address Parameter name Setting (monitor) value Level type C3 (83) 0050 Auxiliary Output 1 Assignment H'00000000 (0): Not assigned. Advanced H'00000001 (1): Control output (heating) function H'00000002 (2): Control output (cooling) setting H'00000003 (3): Alarm 1 H'00000004 (4): Alarm 2 H'00000005 (5): Alarm 3 H'00000006 (6): Program end output (See note 1.)
  • Page 61 SECTION 3 Communications Data for CompoWay/F and SYSWAY Variable Address Parameter name Setting (monitor) value Level type C3 (83) 0066 PID Set Automatic Selection Hysteresis H'0000000A to H'0000270F (0.10 to 99.99) Advanced function C3 (83) 0067 PV Rate of Change Calculation Period H'00000001 to H'000003E7 (1 to 999) setting C3 (83)
  • Page 62 3.1 Variable Area (Setting Range) List Variable Address Parameter name Setting (monitor) value Level type C3 (83) 0073 PV/SP Display Screen Selection H'00000000 (0): PV/SP Advanced H'00000001 (1): PV/SP/Bank No. function PV/SP/MV setting H'00000002 (2): PV/SP/MV PV/SP/Bank No. H'00000003 (3): PV/SP/Bank No. H'00000004 (4): PV/SP/MV H'00000005 (5): PV/SP/Bank No.
  • Page 63 SECTION 3 Communications Data for CompoWay/F and SYSWAY Variable Address Parameter name Setting (monitor) value Level type C4 (84) 0000 Bank 0 SP SP lower limit to SP upper limit Bank setting C4 (84) 0001 Bank 0 PID Set No. H'00000000 to H'00000008 (0 to 8) (0: Auto selection) C4 (84) 0002...
  • Page 64 3.1 Variable Area (Setting Range) List Variable Address Parameter name Setting (monitor) value Level type C5 (85) 0000 PID 1 Proportional Band Temperature: H'00000001 to H'00007E90 (0.1 to 3240.0) PID setting Analog: H'00000001 to H'0000270F (0.1 to 999.9) C5 (85) 0001 PID 1 Integral Time Standard, heating/cooling, position proportional (closed):...
  • Page 65: Status And Status 2

    SECTION 3 Communications Data for CompoWay/F and SYSWAY 3.2 Status and Status 2 The figure below shows the structure of the status data. ■ Status Structure Outputs Input error HB error Bit position 16 15 14 13 12 11 10 9 Heater overcurrent (CT1) Heater current hold (CT1) A/D converter error...
  • Page 66 3.2 Status and Status 2 HB error Operating status Event inputs Bit position 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 Event input 1 Event input 2 Event input 3 Event input 4 Write mode EEPROM Setup area...
  • Page 67: Status 2 Structure

    SECTION 3 Communications Data for CompoWay/F and SYSWAY ■ Status 2 Structure Spare Outputs Spare Outputs Bit position Work bit 1 Work bit 2 Work bit 3 Work bit 4 Work bit 5 Work bit 6 Work bit 7 Work bit 8 OC (Heater Overcurrent) Alarm (CT1) OC (Heater Overcurrent) Alarm (CT2) Control Output 1 ON/OFF Count Alarm Output...
  • Page 68: Status Details

    3.2 Status and Status 2 ■ Status Details Bit Description Bit position Status Status Heater overcurrent (CT1) Not generated Generated (lower word) Heater current hold (CT1) (See note 1.) Update Hold A/D converter error Not generated Generated HS alarm (CT1) RSP input error Not generated Generated...
  • Page 69: Status 2 Details

    SECTION 3 Communications Data for CompoWay/F and SYSWAY ■ Status 2 Details Bit Description Bit position Status Status Work bit 1 (lower word) Work bit 2 Work bit 3 Work bit 4 Work bit 5 Work bit 6 Work bit 7 Work bit 8 Spare Spare...
  • Page 70 SECTION 4 SYSWAY (E5@J and E5@X Format) Communications Procedures These communications procedures are supported to provide compatibility with the E5@J and E5@X Digital Controllers. When using a new system, we recommend using CompoWay/F communications. Data Format..............4-2 Command Frame Format ........4-2 FCS Calculation Example ......
  • Page 71: Data Format

    SECTION 4 SYSWAY (E5@J and E5@X Format) Communications Procedures 4.1 Data Format ■ Command Frame Format Communi- Header Termi- Data Text cations code nator unit num- code * CR FCS calculation range The @ character (ASCII H’40) indicates the start of block format. Communications A number within the range 0 to 99 can be set in BCD.
  • Page 72: Response Frame

    4.1 Data Format ■ Response Frame Termi- Communi- Header Text cations code nator unit num- code Name Description Priority code Parity error The sum total of bits whose received data is “1” does not match the set value of “communications parity.” Framing error Stop bit is “0.”...
  • Page 73: Sysway Command Lists

    SECTION 4 SYSWAY (E5@J and E5@X Format) Communications Procedures ■ SYSWAY Command Lists Header Data Data Category Command Remarks code code length Selecting Communi- Select communications writing Write cations Writing Write mode selection Select backup mode (See note 1.) Select RAM write mode Write None Save operation/...
  • Page 74: Command Descriptions

    4.2 Command Descriptions 4.2 Command Descriptions ■ Read Process Value This command reads the process value and status. Command Communi- Data Header Termi- cations code nator unit num- code R X 0 1 Response Communi- Header Termi- Status cations code nator unit num- code...
  • Page 75: Write Set Values

    SECTION 4 SYSWAY (E5@J and E5@X Format) Communications Procedures • Alarms 1 and 2: Cleared Note 1. Heater burnout is the status corresponding to heater burnout 1 (CT1). (3) End Code When the end code is “00,” this indicates normal completion of the command.
  • Page 76: Read Set Values And Mv Monitor

    4.2 Command Descriptions When the alarm 1 type is set to “upper and lower-limit alarm,” “upper and lower-limit range alarm,” or “upper and lower-limit alarm with standby sequence,” the alarm’s upper and lower limits are set indepen- dently. The “alarm value 1" setting is disabled and the “alarm value upper limit 1”...
  • Page 77 SECTION 4 SYSWAY (E5@J and E5@X Format) Communications Procedures (1) Header Code Header code Command Read set point Read alarm value 1/2 Read proportional band Read integral time Read derivative time Read temperature input shift val- Read heater burnout detection Read MV monitor (2) Data Code Set the data code to “02”...
  • Page 78: Select Communications Writing

    4.2 Command Descriptions ● Alarm • Even when alarms 1 and 2 are not displayed on the Controller's display, they function normally in communications. • Only alarms 1 and 2 are supported. • Alarm 3 cannot be used. ● Heater Burnout Detection Reads the Heater Burnout Detection 1 parameter.
  • Page 79 SECTION 4 SYSWAY (E5@J and E5@X Format) Communications Procedures 4-10...
  • Page 80: Modbus Communications Procedure

    SECTION 5 Modbus Communications Procedure Read this section if you are to communicate using the Modbus format. Data Format..............5-2 Command Frame........... 5-2 CRC-16 Calculation Example....5-3 Response Frame ........... 5-4 Normal Response Frame ......5-4 Error Response Frame......5-4 Error Codes ............
  • Page 81: Data Format

    SECTION 5 Modbus Communications Procedure 5.1 Data Format The data format complies with the Modbus (RTU) communications protocol, so commands from the host and responses from the E5CN/ AN/EN-H are contained in data blocks called frames. The structure of the command and response frames is described below. In the following explanations, hexadecimal values are expressed by adding the prefix H’...
  • Page 82: Calculation Example

    5.1 Data Format ● CRC-16 Calculation Example Messages are processed one byte at a time in the work memory (a 16- bit register known as the CRC register). (1)The CRC register is initialized to H’FFFF. (2)An XOR operation is performed on the content of the CRC register and the first byte of the message, and the result is returned to the CRC register.
  • Page 83: Response Frame

    SECTION 5 Modbus Communications Procedure ■ Response Frame ● Normal Response Frame Slave Function CRC-16 Data address code 2 bytes CRC-16 calculation range ● Error Response Frame Slave Function Error CRC-16 address code code 2 bytes CRC-16 calculation range The number specified in the command frame is entered as-is. Slave address This is the unit number of the Unit returning the response.
  • Page 84: Error Codes

    5.1 Data Format ■ Error Codes Error Name Description detection code priority H'01 Function code error An unsupported function code was received. H'02 Variable address error The specified variable area address is out-of-range. H'03 Variable data error The amount of data does not match the number of elements. The byte count is not 2 times the number of elements.
  • Page 85: Function List

    SECTION 5 Modbus Communications Procedure 5.2 Function List The following table lists the function codes. Function Code List Function code Name Process 03 (H'03) Read variable This function reads from the variable area. (multiple) It is possible to read two or more consecutive variables. 16 (H'10) Write variable This function writes to the variable area.
  • Page 86: Variable Area

    5.3 Variable Area 5.3 Variable Area The variable area is the region of memory used to exchange data with the E5CN/AN/EN-H through communications. Operations such as reading the process value and reading/writing parameters are performed on the variable area. On the other hand, operation commands do not use the variable area. Note: Operation commands do not use the variable area.
  • Page 87 SECTION 5 Modbus Communications Procedure Setup area 0 and setup area 1 do not correspond directly to Modbus addresses, but the following areas have a rough correspondence with one exception. Modbus addresses Setup area Area number Address range Setup area 0 00 to 0B, 20 to 2B 0000 to 0BFE, 2000 to 2B7F...
  • Page 88: Detailed Description Of The Services

    5.4 Detailed Description of the Services 5.4 Detailed Description of the Services ■ Variable Read, Multiple To read from the variable area, set the required data in the command frame, as shown in the following diagram. Command Frame Number of Slave Function Read...
  • Page 89 SECTION 5 Modbus Communications Procedure Response Frame Read data (for the Slave Function Byte number of elements) CRC-16 address code count H'03 0 to 212 (2 × 106) Name Description Slave address The value from the command frame is entered as-is. Function code This is the received function code.
  • Page 90: Variable Write, Multiple

    5.4 Detailed Description of the Services Process Value in Two-byte Mode • Address: H’2000; Read data: H’03E8 (100.0 ° C) Command: 00 00 00 01 8F CA (CRC-16) Response: 01 03 03 E8 B8 FA (CRC-16) ■ Variable Write, Multiple To write data to the variable area, set the required data in the command frame, as shown in the following diagram.
  • Page 91 SECTION 5 Modbus Communications Procedure Response Frame Slave Function Write Number of CRC-16 address code start address Elements H'10 2 bytes Name Description Slave address The value from the command frame is entered as-is. Function code This is the received function code. When the function ended normally, the function code is left as-is.
  • Page 92 5.4 Detailed Description of the Services Response Code Function Error Error name Cause code code H'90 H'02 Variable address error The write start variable address is incorrect. • The variable area number is incorrect. ◆ The amount of data does not match the H'03 Variable data error number of elements.
  • Page 93: Variable Write, Single/Operation Command

    SECTION 5 Modbus Communications Procedure ■ Variable Write, Single/Operation Command This function performs operations such as writing to the variable area (single) and operation commands (Communications Writing, RUN/ STOP, Bank Change, AT Execute/Cancel, Write Mode, Save RAM Data, Software Reset, Move to Setup Area 1, Move to Protect Level, Auto/ Manual Switch, Initialize Settings, Alarm Latch Cancel, SP Mode, Invert Direct/Reverse Operation, Program Start, and Infrared Communications Use).
  • Page 94 5.4 Detailed Description of the Services Command Command content Related information code Move to setup area 1 Move to protect level Auto/manual switch 00: Automatic mode 01: Manual mode Parameter initialization 00: Initialize to defaults Alarm latch cancel 00: Alarm 1 latch cancel 01: Alarm 2 latch cancel 02: Alarm 3 latch cancel 03: HB alarm latch cancel...
  • Page 95 SECTION 5 Modbus Communications Procedure Error Occurred Function Error code Name Description code H'86 H'02 Variable address The write variable address is incorrect. error The variable area number (2-byte data) is wrong, or the address is not 0000 or FFFF. H'03 Variable data error The write data is incorrect.
  • Page 96 5.4 Detailed Description of the Services ● RUN/STOP Set control to “run” or “stop” with the related information setting. The setting can be accepted in both setup area 0 and setup area 1. An operation error will occur, however, if RUN/STOP is set for an event input.
  • Page 97 SECTION 5 Modbus Communications Procedure Write mode Description Backup mode The data is written to EEPROM when a parameter in the operation, adjustment, bank setting, or PID setting level (excluding read-only parameters) is written using communications. RAM write mode The data is not written to EEPROM when a param- eter in the operation, adjustment, bank setting, or PID setting level (excluding read-only parameters) is written using communications.
  • Page 98 5.4 Detailed Description of the Services ● Auto/Manual Switch This operation command switches the mode to manual mode or automatic mode, based on the related information setting. This command can be accepted in setup area 0 only. An “operation error” will be generated in the following instances: •...
  • Page 99 SECTION 5 Modbus Communications Procedure ● Parameter Initialization The present settings are returned to the default values and written to EEPROM. This command can be accepted in setup area 1 only. When this command is issued in setup area 0, an “operation error” will be generated.
  • Page 100: Echoback Test

    5.4 Detailed Description of the Services ● Infrared Communications Use Select ON or OFF to enable or disable using infrared communications with the related information setting. The setting can be accepted in both setup area 0 and setup area 1. ●...
  • Page 101 SECTION 5 Modbus Communications Procedure (2) Response Code Function code Error code Name Description H'88 H'03 Variable data error The data following the function code was not the fixed data (H’00, H’00). H'08 Normal completion No errors were found. (3) Example Command and Response The following example shows the command/response for an Echoback Test command.
  • Page 102: Communications Data For Modbus

    SECTION 6 Communications Data for Modbus This section lists the details of the communications data in the Modbus communications protocol. Variable Area (Setting Range) List ....... 6-2 Status and Status 2 ............ 6-15 Status Structure........... 6-15 Status 2 Structure..........6-17 Status Details ............
  • Page 103: Variable Area (Setting Range) List

    SECTION 6 Communications Data for Modbus 6.1 Variable Area (Setting Range) List • Four-byte Mode One element uses 2 bytes of data (H'0000 to H'FFFF), so specify two-element units. Reading and writing in 4-byte units is executed by specifying an even address and specifying the number of elements in multiples of 2.
  • Page 104 6.1 Variable Area (Setting Range) List Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 0500 2500 Operation/Adjustment Protect H'00000000 (0): No restrictions in operation and adjustment levels Protect H'00000001 (1): Move to adjustment level is prohibited. H'00000002 (2): Display and change of only “PV” and “PV/SP” parameters is allowed.
  • Page 105 SECTION 6 Communications Data for Modbus Address Four- Two- Parameter name Setting (monitor) value Level byte byte mode mode Standard: H'FFFFFFCE to H'0000041A ( − 5.0 to 105.0) 0722 2711 MV at PV Error Adjustment Heating/cooling: H'FFFFFBE6 to H'0000041A ( − 105.0 to 105.0) Position proportional (Floating or direct setting of position propor- tional MV OFF): H'FFFFFFFF to H'00000001 ( −...
  • Page 106 6.1 Variable Area (Setting Range) List Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode Standard: H'FFFFFFCE to MV upper limit − 0.1 ( − 5.0 to MV upper limit − 0.1) 0A0C 2A06 MV Lower Limit (See note 1.) Adjustment Heating/cooling: H'FFFFFBE6 to H'00000000 ( −...
  • Page 107 SECTION 6 Communications Data for Modbus Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 0D22 2D11 Standard or Heating/Cooling H'00000000 (0): Standard Initial H'00000001 (1): Heating/cooling setting 0D24 2D12 Direct/Reverse Operation H'00000000 (0): Reverse operation H'00000001 (1): Direct operation 0D26 2D13 Closed/Floating...
  • Page 108 6.1 Variable Area (Setting Range) List Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 0E14 2E0A Event Input Assignment 1 H'00000000 (0): None Initial (See note 1.) H'00000001 (1): RUN/STOP setting H'00000002 (2): Auto/manual switch H'00000003 (3): Program start (See note 5.) H'00000004 (4): Direct/reverse operation H'00000005 (5): SP mode H'00000006 (6): 100% AT execute/cancel...
  • Page 109 SECTION 6 Communications Data for Modbus Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 0E48 2E24 Extraction of Square Root H'00000000 (0): OFF Initial H'00000001 (1): ON Enable setting 0E60 2E30 Travel Time H'00000001 to H'000003E7 (1 to 999) 0F00 2F00 Alarm 1 Type...
  • Page 110 6.1 Variable Area (Setting Range) List Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 0F22 2F11 Alarm 1 ON delay H'00000000 to H'000003E7 (0 to 999) Advanced function 0F24 2F12 Alarm 2 ON delay H'00000000 to H'000003E7 (0 to 999) setting 0F26 2F13...
  • Page 111 SECTION 6 Communications Data for Modbus Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 1022 3011 PV Status Display Function H'00000000 (0):OFF Advanced H'00000001 (1): Manual function H'00000002 (2): Stop setting H'00000003 (3): Alarm 1 H'00000004 (4): Alarm 2 H'00000005 (5): Alarm 3 H'00000006 (6): Alarm 1 to 3 OR status H'00000007 (7): Heater alarm...
  • Page 112 6.1 Variable Area (Setting Range) List Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 1206 3203 Monitor/Setting Item 2 H'00000000 to H'00000010 (0 to 16) Advanced * Same as for Monitor/Setting Item 1. function setting 1208 3204 Monitor/Setting Item 3 H'00000000 to H'00000010 (0 to 16) * Same as for Monitor/Setting Item 1.
  • Page 113 SECTION 6 Communications Data for Modbus Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 1348 3324 LBA Detection Time H'00000000 to H'0000270F (0 to 9999) Advanced (See note 1.) function setting 134A 3325 LBA Level Temperature: H'00000001 to H'00007E90 (0.1 to 3240.0) Analog: H'00000001 to H'0000270F (0.01 to 99.99) 134C 3326...
  • Page 114 6.1 Variable Area (Setting Range) List Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 1400 3400 Bank 0 SP SP lower limit to SP upper limit Bank setting 1402 3401 Bank 0 PID Set No. H'00000000 to H'00000008 (0 to 8) (0: Auto selection) 1404 3402 Bank 0 SP Ramp Set Value...
  • Page 115 SECTION 6 Communications Data for Modbus Address Parameter name Setting (monitor) value Level Four-byte Two-byte mode mode 1500 3500 PID 1 Proportional Band Temperature: H'00000001 to H'00007E90 (0.1 to 3240.0) PID setting Analog: H'00000001 to H'0000270F (0.1 to 999.9) 1502 3501 PID 1 Integral Time Standard, heating/cooling, position proportional (closed):...
  • Page 116: Status And Status 2

    6.2 Status and Status 2 6.2 Status and Status 2 The figure below shows the structure of the status data. ■ Status Structure Outputs Input error HB error Bit position 16 15 14 13 12 11 10 9 Heater overcurrent (CT1) Heater current hold (CT1) A/D converter error HS alarm (CT1)
  • Page 117 SECTION 6 Communications Data for Modbus HB error Operating status Event inputs Bit position 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 Event input 1 Event input 2 Event input 3 Event input 4 Write mode EEPROM...
  • Page 118: Status 2 Structure

    6.2 Status and Status 2 ■ Status 2 Structure Spare Outputs Spare Outputs Bit position Work bit 1 Work bit 2 Work bit 3 Work bit 4 Work bit 5 Work bit 6 Work bit 7 Work bit 8 OC (Heater Overcurrent) Alarm (CT1) OC (Heater Overcurrent) Alarm (CT2) Control Output 1 ON/OFF Count Alarm Output Control Output 2 ON/OFF Count Alarm Output...
  • Page 119: Status Details

    SECTION 6 Communications Data for Modbus ■ Status Details Bit Description Bit position Status Status Heater overcurrent (CT1) Not generated Generated (lower word) Heater current hold (CT1) (See note 1.) Update Hold A/D converter error Not generated Generated HS alarm (CT1) RSP input error Not generated Generated...
  • Page 120: Status 2 Details

    6.2 Status and Status 2 ■ Status 2 Details Bit Description Bit position Status Status Work bit 1 (lower word) Work bit 2 Work bit 3 Work bit 4 Work bit 5 Work bit 6 Work bit 7 Work bit 8 Spare Spare OC (Heater Overcurrent) Alarm (CT1)
  • Page 121 SECTION 6 Communications Data for Modbus 6-20...
  • Page 122: Appendix

    Appendix ASCII List ................A-2 Troubleshooting ..............A-3...
  • Page 123 Appendix ASCII List b8 b7 b6 b5 NUL DLE SPACE SOH DC1 STX DC2 " ETX DC3 EOT DC4 ENQ NAK ACK SYN & BEL ETB < >...
  • Page 124: Troubleshooting

    If communications are not functioning properly, check the items in the following table before requesting repairs. If normal operation cannot be restored even after checking everything, return the product to your OMRON representative. Problem: Communications are not possible or communications errors occur.
  • Page 125 Appendix Item Confirmation Page There is a mistake in programming in the Use a line monitor to check the commands. Check operation host device. using a sample program. The host device is detecting the absence Shorten the send data wait time in the Controller or increase of a response as an error before it the response wait time in the host device.
  • Page 126: Index

    Index addresses ................4-2 CompoWay/F FINS ........... 2-7 ............... 1-2 Modbus function code .............. 5-7 ............5-2 area definitions function list ............2-6 ............5-6 ASCII list .............. A-2 interface ..............1-4 ............1-3 Modbus ..........1-2 command descriptions ......... 4-5 command frame CompoWay/F ........... 2-2 no response Modbus ..............
  • Page 127 services details CompoWay/F ........... 2-9 list (CompoWay/F) .......... 2-7 Modbus .............. 5-9 set values Modbus .............. 5-8 ..............2-2 slave address ............5-2 status ............3-16 6-15 ................. 2-2 SYSWAY ............... 4-1 transmission procedure ........1-3 type code (variable type) ........
  • Page 128: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. H159-E1-01 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.

This manual is also suitable for:

E5en-hE5an-h

Table of Contents