Omron ZEN Communications Manual

Omron ZEN Communications Manual

Programmable relay
Hide thumbs Also See for ZEN:

Advertisement

Quick Links

Authorized Distributor:
Man. No. Z212-E1-01
Note: Specifications subject to change without notice.
Printed in Japan
0206-?M ( 0206 (?)
Man. No. Z212-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron ZEN

  • Page 1 Authorized Distributor: Man. No. Z212-E1-01 Note: Specifications subject to change without notice. Printed in Japan 0206-?M ( 0206 (?) Man. No. Z212-E1-01...
  • Page 2: Preface

    OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual. The ZEN is a compact and highly functional controller that can be used to easily automate small-scale applications. Its development has drawn on OMRON's advanced control technology and expertise in manufacturing various types of controllers.
  • Page 3: Warranty And Application Considerations

    OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for a period of one year (or other period if specified) from date of sale by OMRON. OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS.
  • Page 4 The following are some examples of applications for which particular attention must be given. This is not intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses listed may be suitable for the products: •...
  • Page 5 This document is protected by copyright and is intended solely for use in conjunction with the product. Please notify us before copying or reproducing this document in any manner, for any other purpose. If copying or transmitting this document to another, please copy or transmit it in its entirety.
  • Page 7: Precautions

    Precautions for Correct Use ........
  • Page 8 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.
  • Page 9 Precautions Precautions WARNING Serious human hazard may occasionally occur due to ignition or rupture of the lithium battery used in the Battery Unit. Do not short the battery terminals or charge, disassemble, deform under pressure, or incinerate the battery. Never use any battery that has been dropped on the floor or otherwise subjected to excessive shock.
  • Page 10 Refer to Cycle Time Calculation Method on page 130 in the ZEN Programmable Relay Operation Manual (Cat. No. Z211) and confirm that the increase in the cycle time will not affect operation. If the cycle time is too long, it may become impossible to read input signals accurately. The increase in the cycle time will be particularly noticeable when set values are written in RUN mode for a CPU Unit with communications (ZEN-10C4@R-@- V2).
  • Page 11 Store the ZEN at an ambient temperature of −40 to 75°C for LED-type CPU Units and −20 to 75°C for all other types of CPU Units. If the ZEN has been stored at −10°C or lower, allow it to stand at room temperature for 3...
  • Page 12 If the power supply is interrupted for 2 days or more (at 25°C), the internal capacitor will discharge and internal bit status and the contents of PV areas will be lost or corrupted and dates and times will be reset. When restarting operation after the power supply has been interrupted for an extended period of time, check the system in advance to confirm that no errors will occur.
  • Page 13: Conventions Used In This Manual

    Conventions Used in This Manual This user's manual describes the communications functions of CPU Units with com- munications. For information on using other functions, refer to the ZEN Programma- ble Relay Operation Manual. ■ Manual Contents Item Description SECTION 1...
  • Page 14: Revision History

    Revision History ■ Manual Revision Code A manual revision code appears as a suffix to the catalog number on the front and back cover of the manual. Man. No. Z212-E1-01 ■ Revision History The following table outlines the changes made to the manual during each revision.
  • Page 15: Table Of Contents

    Table of Contents Preface - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ii Warranty and Application Considerations - - - - - iii...
  • Page 17: 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 ......2 Introduction..............2 Communications Specifications........2 Transmission Procedure..........3 Interface..............3 Wiring .................
  • Page 18: Overview Of Communications Methods

    SECTION 1 Communications Methods 1.1 Overview of Communications Methods ■ Introduction A host computer (see note 1) can communicate with the ZEN using the CompoWay/F communications protocol. The host computer is programmed to monitor and set ZEN settings. This manual is thus written from the viewpoint of the host computer.
  • Page 19: Transmission Procedure

    Command frame Host computer Response frame Note: Allow a wait time of at least 2 ms before the next command is sent after the host computer receives a response from the ZEN. ■ Interface Use of the following Converter for RS-232C and RS-485 interface conversion is recommended.
  • Page 20: Communications Parameters

    ZEN so that it can be recognized by the host computer. The node numbers can be set from 00 to 99. Note: The same node number cannot be set for more than one ZEN. If duplicate node numbers are set, correct operation will not be possible.
  • Page 21: Setting Communications Parameters

    Set the communications parameters for the ZEN from the ZEN Support Software or from the RS-485 communications submenu of the CPU Unit. • Settings cannot be changed in RUN mode. Switch to STOP mode first using the following procedure and then set the communications parameters.
  • Page 22 SECTION 1 Communications Methods Displaying the RS-485 Communications Submenu STOP Mode The screen at the left will be displayed when the ZEN is in MO13:15 STOP I:oooooo STOP mode. (See Q:[[[[ Press the OK Button to display the Menu Screen.
  • Page 23 1.1 Overview of Communications Methods ↓ Main Menu Press the ESC Button to return to the Menu Screen. SET CLOCK LANGUAGE RS485 OTHER...
  • Page 24 SECTION 1 Communications Methods...
  • Page 25 SECTION 2 CompoWay/F Communica- tions Protocol This section describes the protocol for communications using the CompoWay/F format. Data Format..............10 Command Frame............ 10 Response Frame ............ 11 Communications Data ..........12 Structure of Command Text ........... 14 PDU Structure ............14 Addresses...............
  • Page 26: Data Format

    • Numbers prefixed with H’ are hexadecimal, e.g., H’02 is 02 hexadecimal. • The numbers below the various parts of a frame specify the number of bytes. • Unless specified, all other numbers are ASCII characters. (Refer to the Appendix for a table of ASCII characters.) ■...
  • Page 27: Response Frame

    BCC byte at the end of the frame. Command text Node number Sub-address H'02 0 (H'30) 0 (H'30) 0 (H'30) 0 (H'30) 0 (H'30) 0 (H'30) 5 (H'35) 0 (H'30) 3 (H'33) H'03 H'35 BCC = H'30+H'30+H'30+H'30+H'30+H'30+H'35+H'30+H'33+H'03 = H'35 The result of the calculation (35 hex) is written to the BCC byte.
  • Page 28: Communications Data

    Decimal point is removed and the result is converted to hexadecimal. Example conversion: 105.0 → 1050 → H’0000041A Note: Refer to Read Time Data on page 28 and Write Time Data on page 29 for information on time data. ● End Code Examples The following examples describe end codes when an error is detected in the command.
  • Page 29 The node number is missing one character. Response No response is made. Example 4 No Sub-address and Illegal BCC Command Node number Response Node number Sub-address End code The sub-address is taken as 00 and end code 13 (BCC error) is returned in the response.
  • Page 30: Structure Of Command Text

    MRC SRC MRES SRES Data • If the specified command text could not be executed, the service response PDU will contain only the MRC/SRC and MRES/SRES. Note: MRES/SRES provides the response code. MRES/SRES is not output when processing ends in a normal completion.
  • Page 31: List Of Services

    Operation Command This service switches between RUN and STOP. Note: No commands will be accepted and no responses will be returned when a memory error has occurred or the Controller is initializing (until normal operation begins after the power is...
  • Page 32: Detailed Description Of The Services

    For details on bits and applications methods, refer to 1-4 Memory Areas in the ZEN Programmable Relay Operation Manual (Cat. No. Z211). Note: Refer to Reading Work Bits and HR Bits on page 20 for details on reading work bits and HR bits.
  • Page 33: Reading Timers, Counters, And Comparators

    Timer types and time units can be read. For timers other than twin timers (normal timer operation), the data is set in the rightmost four bytes. For twin timers, the data is set in the rightmost and leftmost two bytes.
  • Page 34 SECTION 2 CompoWay/F Communications Protocol • Timer and Counter Number Specifications There is more than one timer and more than one counter, and so the leftmost two digits of the address are used to specify the applicable timer or counter. The timer and counter numbers and corresponding addresses are given in the following table.
  • Page 35 0012 to 0312 8-digit comparator constant 0000 to 0300 Note: There is only one 8-digit counter (F). Use address 0008 for the PV and address 0009 for the counting speed. • Comparator Data Formats 1. Comparison Operators for Analog Comparators The comparison pattern and operator in the variable area can be specified when reading.
  • Page 36: Reading Work Bits And Hr Bits

    Note: Always 1. Comparison Data 1 000 (H'0): 8-digit counter (F) PV ■ Reading Work Bits and HR Bits Bit positions are specified when reading Work Bits or HR Bits (0 or 1). Example Command [STX]000000101CA000002001 The bit position is specified when reading. In this example, the bit 02 is specified when reading the status of Work Bit M2.
  • Page 37: Write Variable Area

    Variable type C0 is read-only. ● Bit Position Bits positions are always 00 except for work bits and HR bits. With the ZEN, bit access supported only for work bits and HR bits. For details on bits and applications methods, refer to 1-4 Memory Areas in the ZEN Programmable Relay Operation Manual.
  • Page 38: Writing Timer And Counter Set Values

    Note: With the Write Variable Area service, command too long” errors “ do not occur. If there is sufficient data for the number of elements in the service request PDU, the error is processed as a number “...
  • Page 39 2. Multiple-day Operation: The bit is turned ON and OFF at the set days and times (operation across multiple days). 3. Pulse Operation: The bit is turn ON for the set output time at the set start time and day.
  • Page 40 3. Pulse Operation End day Start time, hour Start day Start time, minutes Output time, Output time, Always 00. minutes seconds The time data is as follows (BCD): Time data Sunday Monday Tuesday Wednesday Thursday Friday Saturday No day designated...
  • Page 41 Start day: Friday (5) Always 00. ● Calendar Timers Calendar timers are built into the ZEN. The calendar timers turn ON between the specified start and end days of the specified months. These can be written using RS-485 communications. Note: refer to 3-9 Using Calendar Timers (*) in the ZEN Programmable Relay Operation Manual (Cat.
  • Page 42: Writing Work Bits And Hr Bits

    Buffer code size 0 5 0 3 0 0 2 4 ● Model Number The model number is expressed in 10-byte ASCII. When 10 bytes are not required, pad the remaining bytes with spaces. Model number Code ZEN10C4AR-A-V2 ZEN10C4A ZEN10C4DR-D-V2 ZEN10C4D ●...
  • Page 43: Read Controller Status

    The command is too long. 2203 Operation error Unit error (Memory error occurred, or unused command was sent.) ■ Read Controller Status This service reads the operating status and error status. Service Request PDU MRC SRC 6 0 1 Service Response PDU Operating...
  • Page 44: Read Time Data

    MRC SRC Year Month Hour Min 7 0 1 Note: Each element of the time data (year, month, day of month, hour, minutes, seconds, and day of week) is expressed as 2-digit BCD data and converted to ASCI characters. Time element...
  • Page 45: Write Time Data

    Saturday (6) 20 seconds 30 minutes 23rd hour 28th November 2005 ● Year to Seconds The time data expressed in two digits of BCD data is converted to two ASCII characters. ● Response Code Normal Completion Response Name Description code...
  • Page 46 00 to 59 Example Command [STX]00000070205123123595900 Always 00. 59 seconds 59 minutes 23rd hour 31st December 2005 Response [STX]0000007020000 Normal response ● Year to Seconds The time data expressed in two digits of BCD data is converted to two ASCII characters.
  • Page 47: Echoback Test

    8 0 1 0 to 19 ● Test Data Set between 0 and 19 bytes of user-defined test data. Set a value for the test data within the ranges shown below according to the communications data length. Communications Test Data...
  • Page 48: Operation Command

    Command too long The command is too long. 2203 Operation error Unit error (Memory error occurred, or unused command was sent.) ■ Operation Command This service switches between RUN and STOP. Service Request PDU Com- Related MRC SRC mand informa-...
  • Page 49 2.3 Detailed Description of the Services 1100 Parameter error Command code and related infor- mation are wrong. 2203 Operation error C bus error or memory error...
  • Page 50: Response Code List

    1100 Parameter error • Bit position is not 00. • The write data is out of the setting range. • The command code or related information in the operation command is wrong. • The bit address is out of range.
  • Page 51: Communications Data

    SECTION 3 Communications Data This section lists the portions of the variable area that can be set with CompoWay/F communications. Variable Area (Data Range) List ........36...
  • Page 52: Variable Area (Data Range) List

    SECTION 3 Communications Data 3.1 Variable Area (Data Range) List The following tables list data ranges by variable type. When there is a section reference for a setting item, refer to that reference for details. ◆ Variable TypeC0 (Read-only) Address...
  • Page 53 3.1 Variable Area (Data Range) List Address Data name Data range (unit) Remarks Page 0005 Holding timer bit H'00000000 to H'000000FF (-) Bit 0: #0 status Bit 1: #1 Bit 2: #2 Bit 3: #3 Bit 4: #4 Bit 5: #5...
  • Page 54 (H:M) • Twin Timers (See note.) H'00010001 to H'270F270F (-) Note:The upper limit for twin timers depends on the time unit for the ON time and OFF time settings. For min:s (M:S) or h:min (H:M), the upper limit is 26E7.
  • Page 55 H'00000001 to H'000026E7 (M:S) most 2 digits of address. H'00000001 to H'000026E7 (H:M) 00.01 to 99.99 s 00 min 01 s to 99 min 59 s 00 h 01 min to 99 h 59 min ◆ Variable Type C3 Address...
  • Page 56 Data range Remarks Page 0000 Analog com- H'00000000 to H'00000069 (V) Analog comparator number speci- P.19 parator con- fied by leftmost 2 digits of address. stant 00.0 to 10.5 V ◆ Variable Type C8 Address Data name Data range Remarks Page...
  • Page 57: Appendix

    Appendix ASCII List ................. 42...
  • Page 58: Ascii List

    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 59 ..........26 read controller status ..........27 calendar timer ............25 read time data ............28 changing from RUN Mode to STOP Mode ....5 read variable area ............16 command frame ............10 reading comparators ..........18 command text ............10 reading timers, counters, and comparators ....17...

Table of Contents