Omron c200h руководство по эксплуатации

Omron C200H Operation Manual

  • Contents

  • Table of Contents

  • Troubleshooting

  • Bookmarks

Quick Links

C200H-AD002/DA002

Analog I/O Units

Operation Guide

Revised July 2000

loading

Related Manuals for Omron C200H

Summary of Contents for Omron C200H

  • Page 1
    C200H-AD002/DA002 Analog I/O Units Operation Guide Revised July 2000…
  • Page 3
    OMRON. 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.
  • Page 5: Table Of Contents

    SECTION 2 C200H-AD002 Analog Input Unit ….Before Operation …………

  • Page 6
    C200H or C200HS PC. The C200H-AD002 can convert up to eight analog inputs into digital form. The operator can select from four input ranges: 1 to 5 V, 0 to 10 V, –10 to 10 V, and 4 to 20 mA. Useful functions, such as scaling, mean value, peak value, and square root, are built-in.
  • Page 7
    PRECAUTIONS This section provides general precautions for using the Programmable Controller (PC) and Analog I/O Units. The information contained in this section is important for the safe and reliable application of the Analog I/O Units. You must read this section and understand the information contained before attempting to set up or operate a PC system and Analog I/O Units.
  • Page 8: Intended Audience

    It is extremely important that a PC and all PC Units be used for the specified purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PC System to the above-mentioned applications.

  • Page 9: Operating Environment Precautions

    Application Precautions Operating Environment Precautions Caution Do not operate the control system in the following places: • Locations subject to direct sunlight. • Locations subject to temperatures or humidity outside the range specified in the specifications. • Locations subject to condensation as the result of severe changes in tempera- ture.

  • Page 10
    Application Precautions • Interlock circuits, limit circuits, and similar safety measures in external circuits (i.e., not in the Programmable Controller) must be provided by the customer. • Always use the power supply voltage specified in this manual. An incorrect voltage may result in malfunction or burning. •…
  • Page 11: System Design

    SECTION 1 System Design This section describes the basic uses of Analog I/O Units in a control system and illustrates the type of applications in which they might be found. Introduction …………. Safety Precautions .

  • Page 12: Introduction

    Section 1-2 Introduction The C200H-AD002 Analog Input Unit is used to convert the output of analog field devices, usually sensors, to a digital form that the PC can read. The C200H-DA002 Analog Output Unit converts the digital output of the PC to ana- log signals which drive analog field devices.

  • Page 13: Basic Configuration

    For example, a preamplifier may amplify the output of a pres- sure gauge to the level required for the Analog Input Unit and a regulator may interface a heating system to control temperature. C200H-AD002 C200H-DA002 Analog Input Unit…

  • Page 14: Example Configurations

    Below are two examples of how Analog I/O Units can be used in control systems. The first diagram shows a temperature regulating system and the second shows a servomotor positioning system. C200H-AD002 Analog Input Unit C200H-DA002 Analog Output Unit Transducer SYSMAC C200HS, C200H, C200HX/HG/HE Temperature sensing element Valve controller Fuel Sensor Encoder Ç…

  • Page 15: System Considerations

    For details regarding data area allocations, refer to 2-2 and 3-2 IR and DM Bit Allocations . With the C200H, do not mount an Analog I/O Unit in the two slots adjacent to the CPU. Doing so would prevent peripheral devices such as the Programming Console from being connected.

  • Page 16
    System Considerations Section 1-5 To reduce the risk of malfunctioning due to electrical noise, wire input and output lines in separate ducts from high-voltage and power lines. For further wiring precautions, refer to the respective sections on wiring for Ana- log Input Units and Analog Output Units.
  • Page 17: C200H-Ad002 Analog Input Unit

    C200H-AD002 Analog Input Unit This section provides the information required to install and operate a C200H-AD002 Analog Input Unit. Before Operation …………

  • Page 18: Before Operation

    Lit when an input signal wire is disconnected. This indicator operates only when the input range is set to 1 to 5 V/4 to 20 mA. Functions The following table briefly outlines the basic functions of the C200H-AD002. These functions are covered in more detail in 2-3 Functions and Programming . Function…

  • Page 19
    (AR0100 to AR0109) is turned ON and then OFF again. 4. The unit number can be set to between A and F Hex (10 to 15 decimal) only when a C200H-AD002 with a lot number jj16 or later (January 1996 or later) is used with a C200HG-CPU53/CPU63 or C200HX-CPU54/CPU64 CPU Unit.
  • Page 20
    Section 2-1 Before Operation Pin Allocation Name Name Name Common (–) Input 7 — Common (–) Input 8 Current input (+) Current input (+) Voltage/Current input (+) Analog ground (AG) Voltage/Current input (+) Common (–) Input 5 21 Shield Common (–) Input 6 Current input (+) Shield…
  • Page 21
    Section 2-1 Before Operation Input Wiring Diagram Voltage input C200H-AD002 1 MΩ 1 MΩ Shield 10 kΩ Current input 1 MΩ 250 Ω 1 MΩ Shield 10 kΩ and V/I : Voltage/current input (+) : Current input (+) : Common (–)
  • Page 22
    Section 2-1 Before Operation Wiring Methods Use the connectors provided with the Unit to wire input lines. (Connec- tor: MR-34FG; Cover: MR-34L; both manufactured by Honda Communications; Connector/Cover Set: MR-34LFG). Be sure to tighten the lock screws whenever attaching the connector to the Unit. Use wires with a diameter of 0.3 mm maximum.
  • Page 23
    Section 2-1 Before Operation Input Wiring When wiring inputs, apply the following points to avoid noise interference and Considerations optimize Analog Input Unit performance. • Use shielded twisted-pair cable for external connections and power lines. • Route input cables separately from the AC cable, and do not run the Unit’s cables near a main circuit cable, high voltage cable, or a non-PC load cable.
  • Page 24: Bit And Dm Area Allocations

    UNIT OVER error will be generated and operation will be stopped. 2. The unit number can be set to between A and F Hex (10 to 15 decimal) only when a C200H-AD002 with a lot number jj16 or later (January 1996 or later) is used with a C200HG-CPU53/CPU63 or C200HX-CPU54/CPU64…

  • Page 25
    Note The unit number can be set to between A and F Hex (10 to 15 decimal) only when a C200H-AD002 with a lot number jj16 or later (January 1996 or later) is used with a C200HG-CPU53/CPU63 or C200HX-CPU54/CPU64 CPU Unit.
  • Page 26
    Bit and DM Area Allocations Section 2-2 Note When the input range is set to –10 V to +10 V, the 15 bit indicates the sign. A bit status of 0 indicates “+” and a bit status of 1 indicates “–.” There is no sign bit when the scaling or square root function is being executed.
  • Page 27
    Bit and DM Area Allocations Section 2-2 word word Input 1 scaling: lower-limit value Input 1 scaling: upper-limit value Input 2 scaling: lower-limit value Input 2 scaling: upper-limit value Input 3 scaling: lower-limit value Input 3 scaling: upper-limit value m+10 Input 4 scaling: lower-limit value m+11 Input 4 scaling: upper-limit value…
  • Page 28
    Bit and DM Area Allocations Section 2-2 DM Contents DM word(s) Bits Item Data contents 15 to 10 Not used. Limit warning mode Sets the operating mode for the limit warning function. This setting applies to all 8 inputs. 0: Mode 1 (normal warning) 1: Mode 2 (sequence warning) Refer to 2-3-8 Limit Warning Function for more details.
  • Page 29: Functions And Programming

    Be sure to perform one or the other of these steps whenever new data has been set or data has been changed. • Turning ON → OFF → ON the power to the C200H, C200HS, C200HX/HG/HE CPU.

  • Page 30
    Functions and Programming Section 2-3 Setting Method The conversion prohibit setting is made in bits 00 to 07 of DM word m. Set the corresponding bit to “1” to prohibit conversion for that input. Bit 07 0: Conversion enabled DM m 1: Conversion disabled Sampling Period The “sampling period”…
  • Page 31
    Functions and Programming Section 2-3 Inputs Input signal range Bit settings Inputs 1 to 4 +1 to +5 V Inputs 5 and 6 –10 to +10 V Inputs 7 and 8 0 to +10 V Bit 15 DM (m + 1) Set DM word m+1 to “50AA”…
  • Page 32
    Functions and Programming Section 2-3 BCD Data Conversion 0 to +10 V –10 to +10 V +1 to +5 V/+4 to +20 mA –10 V +10 V +10 V Input signal +1 V +5 V +4 mA +20 mA Input signal Sign bit (15 bit) Note…
  • Page 33
    Functions and Programming Section 2-3 2-3-5 Scaling Function The scaling function converts the digital output values to the scale defined by the specified lower-limit and upper-limit values, then outputs the scaled data. The lower-limit value is the digital output value corresponding to the minimum input value.
  • Page 34
    Functions and Programming Section 2-3 Note 1. The resolution is fixed at 1/4000 if the (upper limit – lower limit) term is great- er than 4000. 2. The resolution will be lower if the (upper limit – lower limit) term is less than 4000.
  • Page 35
    Functions and Programming Section 2-3 For example, the scaled data for –2 V is calculated as follows: (* 2) * (* 10) BCD conversion value for * 2 V + 4000 + 4000 + 1600 10 * (* 10) 7000 * 1000 * 2 V scaled data + 1600 ) 1000 + 3400 4000…
  • Page 36
    Functions and Programming Section 2-3 2-3-7 Peak Value Function Function The peak value function holds the maximum output value for every input. This function can be used in combination with the scaling, mean value, and square root functions. These functions are performed in the following order: A/D conversion →…
  • Page 37
    Functions and Programming Section 2-3 1, 2, 3… 1. The limit warning mode is set with bit 09 of DM word m. This mode setting applies to all 8 inputs. Bit 15 É É DM (m) 0: Mode 1 (normal warning) 1: Mode 2 (sequence warning) Mode 1 The output values are compared to the upper/lower limits from startup.
  • Page 38
    Functions and Programming Section 2-3 DM word Data m+33 Input 3 upper-limit value m+34 Input 4 lower-limit value m+35 Input 4 upper-limit value m+36 Input 5 lower-limit value m+37 Input 5 upper-limit value m+38 Input 6 lower-limit value m+39 Input 6 upper-limit value m+40 Input 7 lower-limit value m+41…
  • Page 39
    Functions and Programming Section 2-3 Mean Value Processing and The following diagram shows how a disconnection detection affects the results Disconnection Detection (output data) produced by the mean value function. (n+1) time time time Mean value É É É É…
  • Page 40: Data Setting And Programming Examples

    Data Setting and Programming Examples Section 2-4 Data Setting and Programming Examples 2-4-1 Data Settings The following settings are used in this example. Basic Settings Item Setting Unit number 0 (allocated words: IR 100 to IR 109 and DM 1000 to DM 1043) Inputs used Inputs 1 to 5 (The conversion prohibit bits for inputs 6 to 8 are turned ON.) conversion…

  • Page 41
    Data Setting and Programming Examples Section 2-4 2-4-2 Programming Reading Output Data The converted data (or the results of calculations performed on it) can be read from the output words IR n+1 to IR n+8 and moved to other words in memory using MOV(21) and/or XFER(70).
  • Page 42: Troubleshooting

    Troubleshooting Section 2-5 Troubleshooting Error Detection When an error occurs in an input or in the Unit itself, the error is indicated by an output to a flag in the IR, SR, or AR area. The following tables show the various errors that may occur, along with their probable causes and remedies.

  • Page 43
    Troubleshooting Section 2-5 Special I/O Unit Error Flags (AR) Item Function AR 0000 Unit #0 Error Flag When one of the CPU errors described above occurs, the AR bit turns ON for the Unit where the h AR bi ON f h U i AR 0001 Unit #1 Error Flag…
  • Page 44: C200H-Da002 Analog Output Units

    C200H-DA002 Analog Output Units This section provides the information required to install and operate a C200H-DA002 Analog Output Unit. Before Operation …………

  • Page 45: Before Operation

    Section 3-1 Before Operation Before Operation 3-1-1 Nomenclature and Functions Model label Display Unit number panel setting switch External output terminal block connectors Backplane connector Indicators Indicator Color Function Green Lit when the Analog Input Unit is operating correctly. If operation is not normal, this indicator turns OFF and Unit operation is stopped.

  • Page 46
    The following diagram shows the basic internal configuration of the Analog Out- put Unit. Switch Voltage output – Outputs 1 to 4 Photocoup- D/A con- I/O bus verter Current C200H ROM/ output – Analog DC/DC power converter supply 3-1-2 Switch Settings Unit Number Unit number setting switch The switch notch points to the unit number.
  • Page 47
    (AR0100 to AR0109) is turned OFF → ON → OFF. 4. The unit number can be set to between A and F Hex (10 to 15 decimal) only when a C200H-DA002 with a lot number jj16 or later (January 1996 or later) is used with a C200HG-CPU53/CPU63 or C200HX-CPU54/CPU64 CPU Unit.
  • Page 48
    Section 3-1 Before Operation Output Wiring The following diagram shows the external wiring of outputs for the C200H-DA002. C200H-DA002 Load Voltage output 1 – Output 1 Current output 1 – Voltage output 2 – Output 2 Current output 2 –…
  • Page 49
    Section 3-1 Before Operation Output Wiring When wiring outputs, apply the following points to avoid noise interference and Considerations optimize Analog Output Unit performance. • Use shielded twisted-pair cable for external connections and power lines. • Route output cables separately from the AC cable, and do not run the Unit’s cables near a main circuit cable, high voltage cable, or a non-PC load cable.
  • Page 50: Bit And Dm Allocations

    OVER error will be generated and operation will be stopped. 2. The unit number can be set to between A and F Hex (10 to 15 decimal) only when a C200H-AD002 with a lot number jj16 or later (January 1996 or later) is used with a C200HG-CPU53/CPU63 or C200HX-CPU54/CPU64 CPU Unit.

  • Page 51
    Troubleshooting Section 3-3 Note When the –10 to +10 V range is being used, the 15 bit serves as the sign bit. A value of 0 indicates “+” and a value of 1 indicates “–.” 3-2-1 Programming Use the MOV(21) instruction to write output data (binary data) from the CPU to the Analog Output Unit.
  • Page 52
    Troubleshooting Section 3-3 CPU error Probable causes and operations Possible remedies • The Special I/O Unit is defective. • Replace the defective Special I/O Unit. CPU waiting • The PC hasn’t begun to run. • The defective Unit should appear as $ signs only in the I/O table read opera- tion.
  • Page 53
    Troubleshooting Section 3-3 Special I/O Unit Restart Bits (AR) Turn OFF → ON → OFF the Special I/O Unit Restart Bits in the following circumstances: • After DM data has been set or replaced. • To restart Unit operation after clearing an error. The same effect can be achieved by turning ON →…
  • Page 54
    Appendix A Standard Models Analog Input Unit Model C200H, C200HS, C200HX/HG/HE C200H-AD002 Analog Output Unit Model C200H, C200HS, C200HX/HG/HE C200H-DA002…
  • Page 55
    Appendix B Specifications C200H-AD002 Analog Input Unit General Specifications All general specifications of the C200H-AD002 Analog Input Unit conform to those of the C Series. Performance Specifications Item Specifications Number of analog inputs 8 max. Input signal range (note 1) Voltage input –10 to +10 V…
  • Page 56
    Appendix B Specifications Input Specifications Converted output data (Top: Binary Parentheses: BCD) 0FA0 (4000) 0 to 10 V 1 to 5 V/4 to 20 mA –10 to +10 V 07D0 (2000) 0000 (8001) (–0001) 87D0 (A000) (–2000) 8FA0 10 V –5 V 0 V 1 V 10 V…
  • Page 57
    Appendix B Specifications C200H-DA002 Analog Output Unit All general specifications of the C200H-DA002 Analog Output Unit conform to those of the C Series. Item Specifications Number of analog outputs Output signal range Voltage outputs –10 to +10 V Current outputs 4 to 20 mA Voltage output: 0.5 Ω…
  • Page 58
    Appendix B Specifications Output Specifications Output signal +10 V (+20 mA) –10 to +10 V +4 to +20 mA (+4 mA) –10 V Digital input data (Top: Binary Parentheses: BCD) Sign bit (15 bit) Note 1. If a digital signal is input that exceeds the output signal range (max. value of +10 V or +20 mA, or min. value of –10 V or +4 mA), the analog output will remain fixed at its maximum or minimum value.
  • Page 59
    Appendix B Specifications External Dimensions Unit: mm C200H-AD002 Analog Input Unit C200H-DA002 Analog Output Unit…
  • Page 60
    Appendix B Specifications Installation Dimensions (Unit: mm) C200H-AD002 Analog Input Unit Connecting cable Approx. 200…
  • Page 61
    Appendix C Data Memory Coding Sheet C200H-AD002 Analog Input Unit Data Settings C200H-AD002 Unit number: Item Input 8 Input 7 Input 6 Input 5 Input 4 Input 3 Input 2 Input 1 Conversion prohibit setting A/D conversion data Binary or BCD…
  • Page 62
    Appendix C Data Memory Coding Sheet Data Memory Coding Sheet C200H-AD002 Unit number: DM1_00 to DM1_43 DM address Data Usage (rightmost digits) Bit 09: Limit warning mode Conversion prohibit setting (Mode 2 = 1) (prohibit = 1) Bit 08: Data type setting (BCD = 1) Input signal range (00 specifies –10 to +10 V, 01 specifies 0 to…
  • Page 63
    Appendix C Data Memory Coding Sheet C200H-AD002 Unit number: DM1_00 to DM1_43 DM address Data Usage (rightmost digits) Input 8 mean value processing: number of samples Input 1 limit warning: lower-limit value Input 1 limit warning: upper-limit value Input 2 limit warning: lower-limit value…
  • Page 64
    C200H-AD002, data type setting, C200H-DA002, protective seal, dimensions external, installation, disconnection detection, DM area allocation, C200H-AD002, , scaling function, DM area contents, C200H-AD002, Slave Racks, specifications, square root function, switches C200H-AD002, error detection C200H-DA002,…
  • Page 65
    Date Revised content June 1993 Original production January 1994 Pages ix, 2, 3, 26, and 31: Information added to reflect that the C200H-AD002 can also be used with the C200HS. October 1995 Completely revised. July 2000 Pages 3, 4, 5, 9, 13, 14, 15, 18, 32, 35,, 39, 41, and 43: Information added to reflect that the C200H-AD002 and C200H-DA002 can also be used with the C200HX/HG/HE.

Omron SYSMAC C200H-AD003 Operation Manual

  • Contents

  • Table of Contents

  • Troubleshooting

  • Bookmarks

Related Manuals for Omron SYSMAC C200H-AD003

Summary of Contents for Omron SYSMAC C200H-AD003

  • Page 1
    Cat. No. W325-E1-04 SYSMAC C200H-AD003/DA003/DA004/MAD01 Analog I/O Units…
  • Page 2
    C200H-AD003/DA003/DA004/MAD01 Analog I/O Units Operation Manual Revised June 2003…
  • Page 4
    OMRON. 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.
  • Page 6: Table Of Contents

    TABLE OF CONTENTS PRECAUTIONS ……. . . 1 Intended Audience .

  • Page 7
    About this Manual: This manual describes the installation and operation of the C200H-AD003 Analog Input Unit, the C200H-DA003/DA004 Analog Output Unit, and the C200H-MAD01 Analog I/O Unit and includes the sec- tions described below. The C200H-AD003 Analog Input Unit converts analog sensor output to digital format and transmits it to C200H, C200HS and C200HX/HG/HE PCs.
  • Page 8
    PRECAUTIONS This section provides general precautions for using the Programmable Controller (PC) and Analog I/O Units. The information contained in this section is important for the safe and reliable application of the Analog I/O Unit. You must read this section and understand the information contained before attempting to set up or operate a PC system and Analog I/O Unit.
  • Page 9: Intended Audience

    It is extremely important that a PC and all PC Units be used for the specified purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PC System to the above-mentioned applications.

  • Page 10: Operating Environment Precautions

    Application Precautions such problems, external safety measures must be provided to ensure safety in the system. • When the 24-VDC output (service power supply to the PC) is overloaded or short-circuited, the voltage may drop and result in the outputs being turned OFF.

  • Page 11
    Application Precautions • Mounting or dismounting Power Supply Units, I/O Units, CPU Units, Memory Cassettes, or any other Units. • Assembling the Units. • Setting DIP switch or rotary switches. • Connecting or wiring the cables. • Connecting or disconnecting the connectors. Caution Failure to abide by the following precautions could lead to faulty operation of the PC or the system, or could damage the PC or PC Units.
  • Page 12
    Application Precautions • Changing the operating mode of the PC. • Force-setting/force-resetting any bit in memory. • Changing the present value of any word or any set value in memory. • Resume operation only after transferring to the new CPU Unit the contents of the DM Area, HR Area, and other data required for resuming operation.
  • Page 13: System Design

    SECTION 1 System Design This section describes the features and system configuration of the C200H-AD003 Analog Input Unit, the C200H-DA003 and C200H-DA004 Analog Output Units, and the C200H-MAD01 Analog I/O Unit, and explains the operations that they have in common. Features and Functions .

  • Page 14: Features And Functions

    Features and Functions Section Features and Functions Analog Input Unit Analog I/O Unit Analog Output Units C200H-AD003 C200H-DA003 C200H-DA004 C200H-MAD01 Units for C200H, C200HS, These special-purpose Units enable highly accurate analog input and output at and C200HX/HG/HE PCs a resolution of 4,000, for C200H, C200HS, and C200HX/HG/HE PC systems. The C200H-AD003 Analog Input Unit converts analog sensor output to digital format and transmits it to C200H, C200HS and C200HX/HG/HE PCs.

  • Page 15
    Features and Functions Section Peak Value Function The peak value function holds the maximum digital conversion value for every input (including mean value processing). This function can be used with analog input. The following diagram shows how digital conversion values are affected when the peak value function is used.
  • Page 16: Basic Configuration

    Basic Configuration Section Basic Configuration The basic system configuration is shown in the following diagram, using the C200H-AD003 Analog Input Unit and the C200H-DA003 Analog Output Unit as examples. Analog Input Unit Analog Output Unit CPU Unit Sensor Regulator Temperature (Temperature control) Preamp Pressure…

  • Page 17
    Basic Configuration Section The Units that belong to the various Special I/O Unit groups are shown in the following table. Their usage is limited according to the maximum current pro- vided for the Rack and the amount of current consumed by each Unit. For de- tails, refer to the C200H, C200HS, or C200HX/HG/HE Installation Guide.
  • Page 18
    Basic Configuration Section Mounting Analog I/O Units Use the following procedure to mount an Analog I/O Unit to the Backplane. 1, 2, 3… 1. Lock the top of the Analog I/O Unit into the slot on the Backplane and rotate the Unit downwards as shown in the following diagram.
  • Page 19: Setting The Unit Number

    Setting the Unit Number Section When wiring a Unit, place a cover over the top of the Unit to prevent wire clip- pings and so on from getting inside. When the wiring has been completed, the cover must be removed to prevent heat radiation. Remove the cover after the wiring has been completed.

  • Page 20: Operating Procedure

    Operating Procedure Section Operating Procedure Follow the procedure outlined below when using Analog I/O Units. Installation and Settings 1, 2, 3… 1. Set the DIP switch on the rear panel of the Unit to normal mode. 2. Wire the Unit. 3.

  • Page 21: Section 2 C200H-Ad003 Analog Input Unit

    SECTION 2 C200H-AD003 Analog Input Unit This section provides the information required to install and operate a C200H-AD003 Analog Input Unit. Specifications …………2-1-1 General Specifications .

  • Page 22: Specifications

    Specifications Section Specifications 2-1-1 General Specifications All general specifications of the C200H-AD003 Analog Input Unit conform to those of the C200H, C200HS, and C200HX/HG/HE Series. 2-1-2 Performance Specifications Item C200H-AD003 Voltage input Current input Number of analog inputs Input signal range (note 1) 0 to 10 V 4 to 20 mA –10 to 10 V…

  • Page 23: Input Specifications

    Specifications Section 2-1-3 Input Specifications Range: 1 to 5 V (4 to 20 mA) Conversion value (16-bit binary data) 1068 0FA0 Resolution: 4,000 0000 FF38 1 V (4 mA) 5 V (20 mA) 5.2 V (20.8 mA) 0.8 V (3.2 mA) Analog input signal Range: 0 to 10 V Conversion value (16-bit binary data)

  • Page 24: Nomenclature And Functions

    Nomenclature and Functions Section Range: –10 to 10 V Conversion value (16-bit binary data) 0898 07D0 Resolution: 4,000 0000 F830 F768 –10 V +10 V –11 V +11 V Analog input signal Nomenclature and Functions Front Back Model label Indicators Unit number setting switch Operation mode switch Terminal block mounting…

  • Page 25: Indicators

    Nomenclature and Functions Section The terminal block is attached by a connector. It can be removed by loosening the black mounting screw. When removing the terminal block after wiring, re- move the wire connected to the top terminal of the right column. Check to be sure that the black terminal block mounting screw is securely tight- ened to a torque of 0.5 N S m.

  • Page 26: Operation Mode Switch

    Wiring Section Note 1. Switches A to F can be set for the C200HX/HG-CPU5j-E/6j-E. Setting numbers A to F for C200H, C200HS, C200HE, or C200HX/HG- CPU3j-E/4j-E PCs will cause an I/O UNIT OVER error and the Unit will not operate. 2.

  • Page 27: Internal Circuitry

    Wiring Section 2. The input signal ranges for individual inputs are set in the Data Memory (DM). They can be set in units of analog input numbers. 3. The COM terminal is connected to the 0-V analog circuit in the Unit. Con- necting shielded input lines can improve noise resistance.

  • Page 28: Input Wiring Example

    Wiring Section If the line breakage occurs at point A or B as shown in the preceding diagram while power is shared by the connected devices, a short-circuit line will be formed as indicated by the dotted line in the above illustration, thus generating a voltage of approximately one-third to two-thirds of the voltage output from the connected device.

  • Page 29: Input Wiring Considerations

    IR and DM Areas Section 2-3-5 Input Wiring Considerations When wiring inputs, apply the following points to avoid noise interference and optimize Analog Input Unit performance. • Use shielded twisted-pair cable for external connections and power lines. • Route input cables separately from the AC cable, and do not run the Unit’s cables near a main circuit cable, high voltage cable, or a non-PC load cable.

  • Page 30
    IR and DM Areas Section Allocation for Normal For normal mode, set the operation mode switch on the rear panel of the Unit as Mode shown in the following diagram. The allocation of IR words and bits is shown in the following table. Bits Word Output…
  • Page 31
    IR and DM Areas Section Allocation for For adjustment mode, set the operation mode switch on the rear panel of the Adjustment Mode Unit as shown in the following diagram. When the Unit is set for adjustment mode, the RUN indicator on the front panel of the Unit will flash. The allocation of IR words and bits is shown in the following table.
  • Page 32: Dm Allocation And Contents

    IR and DM Areas Section 2-4-2 DM Allocation and Contents DM Allocation SYSMAC C200H/C200HS/C200HX/HG/HE PC C200H-AD003 Analog Input Unit Data Memory (DM) Fixed data area DM words DM 1000 to 1099 Unit #0 DM (m) Use designation DM 1100 to 1199 Unit #1 Input signal range Data is automatically…

  • Page 33: Using The Functions

    Using the Functions Section Set Values and Stored Values Item Contents Use designation Do not use. Use. Input signal range 00: –10 to 10 V 01: 0 to 10 V 10: 1 to 5 V/4 to 20 mA (See note.) Same as for setting “10”…

  • Page 34: Reading Conversion Values

    Using the Functions Section For the DM word addresses, m = 1000 + 100 x unit number (Units #A to #F = Unit numbers 10 to 15). Note After making the DM settings from a Peripheral Device, it will be necessary to either power up the PC again or turn ON the Special I/O Unit Restart Bit in order to transfer the contents of the DM settings to the Special I/O Unit.

  • Page 35: Mean Value Processing

    Using the Functions Section 2-5-3 Mean Value Processing The Analog Input Unit can compute the mean value of the conversion values of analog inputs that have been previously sampled. Mean value processing in- volves an operational mean value in the history buffers, so it has no affect on the data refresh cycle.

  • Page 36
    Using the Functions Section The history buffer operational means are calculated as shown below. (In this ex- ample there are four buffers.) 1, 2, 3… 1. With the first cycle, the data is stored with Data 1 being in all the history buff- ers.
  • Page 37: Peak Value Function

    Using the Functions Section 2-5-4 Peak Value Function The peak value function holds the maximum digital conversion value for every input (including mean value processing). This function can be used with analog input. The following diagram shows how digital conversion values are affected when the peak value function is used.

  • Page 38
    Using the Functions Section The input disconnection detection signals for each input number are stored in bits 00 to 07 of IR word n+9. Specify these bits as execution conditions in order to use disconnection detection in the user’s program. Word n+9 The respective bit turns ON when a disconnection is detected for a given…
  • Page 39: Offset And Gain Adjustment

    Offset and Gain Adjustment Section Offset and Gain Adjustment This function is designed to calibrate inputs depending on the devices to be con- nected. 2-6-1 Adjustment Mode Operational Flow The following diagram shows the flow of operations when using the adjustment mode for adjusting offset and gain.

  • Page 40: Offset And Gain Adjustment Procedures

    Offset and Gain Adjustment Section Note Input adjustments can be performed more accurately in conjunction with mean value processing. 2-6-2 Offset and Gain Adjustment Procedures Specifying Input Number To specify the input number to be adjusted, write the value to the rightmost byte to be Adjusted of IR word n as shown in the following diagram.

  • Page 41
    Offset and Gain Adjustment Section The following example uses input number 1 adjustment for illustration. (The unit number is 0.) 1, 2, 3… 1. Turn ON bit 00 (the Offset Bit) of IR word n+1. (Hold the ON status.) 00000 CONT SHIFT MONTR…
  • Page 42
    Offset and Gain Adjustment Section While the Offset Bit is ON, the offset value will be saved to the Unit’s EE- PROM when the Set Bit turns ON. 5. To finish the offset adjustment, turn OFF bit 00 (the Offset Bit) of IR word n+1.
  • Page 43
    Offset and Gain Adjustment Section 2. Check whether the input devices are connected. Voltage input – Input 1 Current input – Input 1 3. Input the voltage or current so that the conversion value is maximized (0FA0 or 07D0). The following table shows the the gain adjustment voltages and currents to be input according to the input signal range.
  • Page 44
    Offset and Gain Adjustment Section Caution Do not turn OFF the power supply or restart the Unit while the Set Bit is ON (data is being written to the EEPROM). Otherwise, illegal data may be written in the Unit’s EEPROM and “Special I/O Unit Errors” may occur when the power supply is turned ON or when the Unit is restarted, causing a malfunction.
  • Page 45: Error Processing

    Error Processing Section Note The EEPROM can be overwritten 50,000 times. Error Processing 2-7-1 Troubleshooting Procedure Use the following procedure for troubleshooting Analog Input Unit errors. 1, 2, 3… 1. Error occurs. 2. Is the ERROR indicator lit? Yes: Error detected by Analog Input Unit (Refer to 2-7-2 Errors Detected by Analog Input Unit.) No: Go to the next step.

  • Page 46: Errors Detected By Cpu Unit

    Error Processing Section Note Disconnection detection (82) operates for input numbers used with a range of 1 to 5 V (4 to 20 mA). Errors indicated with 8j codes are automatically reset when proper counter- measures are taken. The errors indicated with Fj codes are cleared when the power is turned on after making the correct settings and when the Special I/O Unit Restart Bit is turned OFF, ON, and OFF again.

  • Page 47: Troubleshooting

    Error Processing Section Special I/O Unit Restart Bits Bits Functions C200HX/HG/HE C200H/HS Turning the Restart Bit 28100 AR 0100 Unit #0 Restart Bit for any Unit ON and U i ON 28101 AR 0101 Unit #1 Restart Bit then OFF again then OFF again 28102 AR 0102…

  • Page 48
    Error Processing Section Conversion Values are Probable cause Countermeasure Page Inconsistent The input signals are being Change the shielded cable affected by external noise. connection to the Unit’s COM terminal. Insert a 0.01-µF to 0.1-µF ceramic capacitor or film capacitor between the input’s (+) and (–) terminals.
  • Page 49: Section 3 C200H-Da003 And C200H-Da004 Analog Output Units

    SECTION 3 C200H-DA003 and C200H-DA004 Analog Output Units This section provides the information required to install and operate a C200H-DA003 or C200H-DA004 Analog Output Unit. Specifications …………3-1-1 General Specifications .

  • Page 50: Specifications

    Specifications Section Specifications 3-1-1 General Specifications All general specifications of the C200H-DA003/DA004 Analog Output Units conform to those of the C200H, C200HS, and C200HX/HG/HE Series. 3-1-2 Performance Specifications Item C200H-DA003 C200H-DA004 Number of analog outputs Output signal range (note 1) 0 to 10 V 4 to 20 mA –10 to 10 V 1 to 5 V…

  • Page 51: Output Specifications

    Specifications Section 3-1-3 Output Specifications Range: 1 to 5 V (4 to 20 mA) Analog output signal 5.2 V (20.8mA) 5 V (20mA) 1 V (4mA) 0.8 V (3.2mA) 0000 OFA0 1068 FF38 Resolution: 4,000 Set value (16-bit binary data) Range: 0 to 10 V Analog output signal +10.5 V…

  • Page 52: Nomenclature And Functions

    Nomenclature and Functions Section Range: –10 to 10 V Analog output signal +11 V +10V –10 V –11 V 0000 F830 07D0 Resolution: 4,000 0898 F768 Set value (16-bit binary data) Nomenclature and Functions The model shown here is the C200H-DA003 Front Back Model label…

  • Page 53: Indicators

    Nomenclature and Functions Section Check to be sure that the black terminal block mounting screw is securely tight- ened to a torque of 0.5 N S m. Fasten the mounting screw. 3-2-1 Indicators The RUN and ERROR indicators show the operating status of the Unit. The fol- lowing table shows the meanings of the indicators.

  • Page 54: Operation Mode Switch

    Wiring Section 2. If two or more Special I/O Units are assigned the same unit number, an I/O UNIT OVER error will be generated and the PC will not operate. 3-2-3 Operation Mode Switch The operation mode switch on the back of the Unit is used to set the operation mode to either normal mode or adjustment mode (for adjusting offset and gain).

  • Page 55: Internal Circuitry

    Wiring Section Current Output Model (C200H-DA004) Current output 1 (–) Current output 2 (–) Current output 1 (+) Current output 2 (+) Current output 3 (–) Current output 4 (–) Current output 3 (+) Current output 4 (+) Current output 5 (–) Current output 6 (–) Current output 5 (+) Current output 6 (+)

  • Page 56: Output Wiring Examples

    Wiring Section 3-3-3 Output Wiring Examples Voltage Output Model (C200H-DA003) C200H-DA003 (Output device) (Output device) Output 1 Output 2 Output 3 Output 4 Output 5 Output 6 Output 7 Output 8 Current Output Model (C200H-DA004) (Output device) C200H-DA004 (Output device) Output 1 Output 2 Output 3…

  • Page 57: Output Wiring Considerations

    Wiring Section Note Crimp-type terminals must be used for terminal connections, and the screws must be tightened securely. Use M3 screws and tighten them to a torque of 0.5 N S m. Fork Type M3 screw 6.0 mm max. Round Type 6.0 mm max.

  • Page 58: Ir And Dm Areas

    IR and DM Areas Section IR and DM Areas The IR and DM word addresses that each Analog Output Unit occupies are set by the unit number switch on the front panel of the Unit. (For details on setting the unit number, refer to 3-2-2 Unit Number Switch.) 3-4-1 IR Area Allocation and Contents IR Area Allocation…

  • Page 59
    IR and DM Areas Section Allocation for Normal For normal mode, set the operation mode switch on the rear panel of the Unit as Mode shown in the following diagram. The allocation of IR words and bits is shown in the following table. Bits Word Output…
  • Page 60
    IR and DM Areas Section Allocation for For adjustment mode, set the operation mode switch on the rear panel of the Adjustment Mode Unit as shown in the following diagram. When the Unit is set for adjustment mode, the RUN indicator on the front panel of the Unit will flash. The allocation of IR words and bits is shown in the following table.
  • Page 61: Dm Allocation And Contents

    IR and DM Areas Section 3-4-2 DM Allocation and Contents DM Allocation SYSMAC C200H/C200HS/C200HX/HG/HE PC C200H-DA003/DA004 Analog Output Unit Fixed data area Data Memory (DM) DM words DM 1000 to 1099 Unit #0 DM (m) Use designation DM 1100 to 1199 Unit #1 Output signal Data is automatically…

  • Page 62: Using The Functions

    Using the Functions Section 2. For the DM word addresses, m = 1000 + 100 x unit number (Units #A to #F = Unit numbers 10 to 15). Set Values and Stored Values Item Contents Use designation Do not use. Use.

  • Page 63: Output Hold Function

    Using the Functions Section For the DM word addresses, m = 1000 + 100 x unit number (Units #A to #F = Unit numbers 10 to 15). This setting is not valid for the C200H-DA004 (current output model). The output signal range for the C200-DA004 is 4 to 20 mA, regardless of the settings.

  • Page 64: Writing Set Values

    Using the Functions Section 3-5-3 Writing Set Values Analog output set values are written to IR words n+1 through n+8. Word Function Stored value 16-bit binary data Output 1 set value Output 2 set value Output 3 set value Output 4 set value Output 5 set value Output 6 set value Output 7 set value…

  • Page 65: Output Setting Errors

    Using the Functions Section The analog output when conversion is stopped will differ depending on the out- put signal range setting. (Refer to 3-5-1 Setting Outputs and Signal Ranges.) Conversion will not begin under the following conditions even if the Conversion Enable Bit is turned ON.

  • Page 66: Offset And Gain Adjustment

    Offset and Gain Adjustment Section Offset and Gain Adjustment This function is designed to calibrate outputs depending on devices to be con- nected. 3-6-1 Adjustment Mode Operational Flow The following diagram shows the flow of operations when using the adjustment mode for adjusting offset and gain.

  • Page 67: Offset And Gain Adjustment Procedures

    Offset and Gain Adjustment Section 3-6-2 Offset and Gain Adjustment Procedures Specifying Output To specify the output number to be adjusted, write the value to the rightmost byte Number to be Adjusted of IR word n as shown in the following diagram. (Rightmost) (Leftmost) Word n…

  • Page 68
    Offset and Gain Adjustment Section The following example uses output number 1 adjustment for illustration. (The unit number is 0.) 1, 2, 3… 1. Turn ON bit 00 (the Offset Bit) of IR word n+1. (Hold the ON status.) 00000 CONT SHIFT MONTR…
  • Page 69
    Offset and Gain Adjustment Section Change the set value, using the Up Bit (bit 03 of word n+1) and the Down Bit (bit 02 of word n+1). Word n+1 Up Bit Down Bit While the Up Bit is ON, the resolution will be increased by 1 every 0.5 seconds.
  • Page 70
    Offset and Gain Adjustment Section 6. To finish the offset adjustment, turn OFF bit 00 (the Offset Bit) of IR word n+1. CONT SHIFT MONTR 10100 10104 ^ ON ^OFF 10100 10104 OFF ^OFF RESET Caution Do not turn OFF the power supply or restart the Unit while the Set Bit is ON (data is being written to the EEPROM).
  • Page 71
    Offset and Gain Adjustment Section 2. Check whether the output devices are connected. Voltage output Output 1 Current output Output 1 3. Monitor IR word n+8 and check the set value while the Gain Bit is ON. 00000 SHIFT MONTR c108 0FA0 4.
  • Page 72
    Offset and Gain Adjustment Section CONT SHIFT MONTR 10102 c108 ^OFF 0FA0 The bit will remain ON until the output becomes an appropriate value, at which time, it will turn OFF. 10102 c108 PLAY 0F9F 10102 c108 0F9F RESET 5. Check the 10V/5V/20mA output, and then turn bit 04 (the Set Bit) of IR word n+1 OFF, ON, and then OFF again.
  • Page 73
    Offset and Gain Adjustment Section Clearing Offset and Gain Follow the procedure outlined below to return the offset and gain adjusted val- Adjusted Values ues to their default settings. The following example uses output number 1 adjustment for illustration. (The unit number is 0.) 1, 2, 3…
  • Page 74: Error Processing

    Error Processing Section Error Processing 3-7-1 Troubleshooting Procedure Use the following procedure for troubleshooting Analog Input Unit errors. 1, 2, 3… 1. Error occurs. 2. Is the ERROR indicator lit? Yes: Error detected by Analog Output Unit (Refer to 3-7-2 Errors Detected by Analog Output Unit.) No: Go to the next step.

  • Page 75: Errors Detected By Cpu Unit

    Error Processing Section 3-7-3 Errors Detected by CPU Unit When the CPU Unit detects an error at a Special I/O Unit, it outputs to the CPU’s SR and AR areas as shown below. Special I/O Unit Error Flag Error Contents CPU Unit status LED indicators 25415…

  • Page 76: Troubleshooting

    Error Processing Section Special I/O Unit Restart Bits Bits Functions C200HX/HG/HE C200H/HS Turning the Restart Bit 28100 AR 0100 Unit #0 Restart Bit for any Unit ON and U i ON 28101 AR 0101 Unit #1 Restart Bit then OFF again then OFF again 28102 AR 0102…

  • Page 77: Section 4 C200H-Mad01 Analog I/O Unit

    SECTION 4 C200H-MAD01 Analog I/O Unit This section provides the information required to install and operate a C200H-MAD01 Analog I/O Unit. Specifications …………4-1-1 General Specifications .

  • Page 78: Specifications

    Specifications Section Specifications 4-1-1 General Specifications All general specifications of the C200H-MAD01 Analog I/O Unit conform to those of the C200H, C200HS, and C200HX/HG/HE Series. 4-1-2 Performance Specifications C200H-MAD01 Item Voltage I/O Current I/O Input Number of analog inputs Input signal range (note 0 to 10 V 4 to 20 mA –10 to 10 V…

  • Page 79: Input Specifications

    Specifications Section 4. A/D conversion time is the time it takes for an analog signal to be stored in memory as converted data after it has been input. It takes at least one cycle before the converted data is read by the CPU Unit. D/A conversion time is the time required for converting and outputting the PC data.

  • Page 80: Output Specifications

    Specifications Section Range: –10 to 10 V Conversion value (16-bit binary data) 0898 07D0 Resolution: 4,000 0000 F830 F768 –10 V +10 V –11 V +11 V Analog input signal 4-1-4 Output Specifications Range: 1 to 5 V (4 to 20 mA) Analog output signal 5.2 V (20.8mA) 5 V (20mA)

  • Page 81
    Specifications Section Range: 0 to 10 V Analog output signal +10.5 V +10 V –0.5 V 0000 OFA0 Resolution: 4,000 FF38 1068 Set value (16-bit binary data) Range: –10 to 10 V Analog output signal +11 V +10 V –10 V –11 V 0000 F830…
  • Page 82: Nomenclature And Functions

    Nomenclature and Functions Section Nomenclature and Functions Front Back Model label Indicators Unit number setting switch Operation mode switch Terminal block mounting screw (black M3) External input terminal block (M3) Backplane connector The terminal block is attached by a connector. It can be removed by loosening the black mounting screw.

  • Page 83: Unit Number Switch

    Nomenclature and Functions Section 4-2-2 Unit Number Switch The CPU Unit and Analog I/O Unit exchange data via the IR area and the DM area. The IR and DM word addresses that each Analog Input Unit occupies are set by the unit number switch on the front panel of the Unit. Always turn off the power before setting the unit number.

  • Page 84: Wiring

    Wiring Section Wiring 4-3-1 Terminal Arrangement The signal names corresponding to the connecting terminals are as shown in the following diagram. Voltage output 1 (+) Voltage output 2 (+) Voltage/current output 1 (–) Voltage/current output 2 (–) B1 Current output 1 (+) Current output 2 (+) Current input 1 Current input 2…

  • Page 85: Line Breakage While Using Voltage Input

    Wiring Section Output Circuitry (Voltage Output) Output switch and Voltage conversion output (+) circuit Voltage output (–) AG (common to all outputs) Output Circuitry (Current Output) Internal power supply Output switch and conversion circuit Current output (+) Current output (–) AG (common to all outputs) 4-3-3 Line Breakage while Using Voltage Input Con-…

  • Page 86: I/O Wiring Example

    Wiring Section If a line breakage occurs while using the voltage input, either separate the power supply from the connected device or use an isolator for each input to avoid the following problem. If the line breakage occurs at point A or B as shown in the preceding diagram while power is shared by the connected devices, a short-circuit line will be formed as indicated by the dotted line in the above illustration, thus generating a voltage of approximately one-third to two-thirds of the voltage output from the…

  • Page 87: I/O Wiring Considerations

    Wiring Section 4. Crimp-type terminals must be used for terminal connections, and the screws must be tightened securely. Use M3 screws and tighten them to a torque of 0.5 N S m. Fork Type M3 screw 6.0 mm max. Round Type 6.0 mm max.

  • Page 88: Ir And Dm Areas

    IR and DM Areas Section IR and DM Areas 4-4-1 IR Area Allocation and Contents IR Area Allocation SYSMAC C200H/C200HS/C200HX/HG/HE PC C200H-MAD01 Analog I/O Unit (I/O refresh data area) (Work area) Normal Mode Words IR n IR 100 to 109 Unit #0 OUT refresh IR n+4…

  • Page 89
    IR and DM Areas Section Allocation for Normal For normal mode, set the operation mode switch on the rear panel of the Unit as Mode shown in the following diagram. The allocation of IR words and bits is shown in the following table. Bits Word Output…
  • Page 90
    IR and DM Areas Section Allocation for For adjustment mode, set the operation mode switch on the rear panel of the Adjustment Mode Unit as shown in the following diagram. When the Unit is set for adjustment mode, the RUN indicator on the front panel of the Unit will flash. The allocation of IR words and bits is shown in the following table.
  • Page 91: Dm Allocation And Contents

    IR and DM Areas Section 4-4-2 DM Allocation and Contents DM Allocation SYSMAC C200H/C200HS/C200HX/HG/HE PC C200H-MAD01 Analog I/O Unit (Work area) (Fixed data area) Word I/O conversion DM 1000 to 1099 DM (m) Unit #0 permission loop mode setting DM 1100 to 1199 Unit #1 Input signal range DM 1200 to 1299…

  • Page 92
    IR and DM Areas Section DM Allocation Contents The following table shows the allocation of DM words and bits for both normal and adjustment mode. Bits DM word DM (m) Not used. Ratio conversion use Not used. Use desig- Not used. Use desig- designation nation…
  • Page 93: Analog Input Functions

    Analog Input Functions Section Analog Input Functions 4-5-1 Setting Inputs and Signal Ranges Input Numbers The Analog I/O Unit only converts analog inputs specified by input numbers 1 and 2. In order to specify the analog inputs to be used, turn ON from a Peripheral Device the DM bits shown in the following diagram.

  • Page 94: Reading Conversion Values

    Analog Input Functions Section 4-5-2 Reading Conversion Values Analog input conversion values are stored for each input number, in IR words n+5 and n+6. Word Function Stored value Input 1 conversion value 16-bit binary data Input 2 conversion value For the IR word addresses, n = 100 + 10 x unit number. For Units #A to #F (10 to 15), n = 400 + 10 x (unit number –…

  • Page 95
    Analog Input Functions Section When mean value processing is used together with the peak value function, the mean value will be held. To specify whether or not mean value processing is to be used, and to specify the number of history buffers for mean data processing, use a Peripheral Device to make the settings in DM m+6 and DM m+7 as shown in the following table.
  • Page 96: Peak Value Function

    Analog Input Functions Section 4. With the fourth cycle, the Data 4 data is stored in the first history buffer. Data 4 Data 3 (Mean value Conversion value processing) Data 2 Data 1 Mean value = (Data 4 + Data 3 + Data 2 + Data 1) B 4 5.

  • Page 97: Input Disconnection Detection Function

    Analog Input Functions Section In the following example, the peak value function is in effect for input number 1, and the unit number is 0. Input condition The maximum 10004 conversion data value is held for input number 1. When mean value processing is used together with the peak value function, the mean value will be held.

  • Page 98: Analog Output Functions

    Analog Output Functions Section Analog Output Functions 4-6-1 Setting Outputs and Signal Ranges Output Numbers The Analog Output Units only convert analog outputs specified by output num- bers 1 and 2. In order to specify the analog outputs to be used, use a Peripheral Device to turn ON the DM bits shown in the following diagram.

  • Page 99: Output Hold Function

    Analog Output Functions Section 4-6-2 Output Hold Function The Analog I/O Unit stops conversion under the following circumstances, and output the value set by the output hold function. 1, 2, 3… 1. When the Conversion Enable Bit is OFF. (Refer to 4-4-1 IR Area Allocation and Contents and 4-6-4 Starting and Stopping Conversion.) 2.

  • Page 100: Starting And Stopping Conversion

    Analog Output Functions Section Use MOV(21) or XFER(70) to write values in the user program. Example 1 In this example, the set value from only one input is read. (The unit number is #0.) Input condition The set value stored in DM 0001 MOV (21) is written to IR word 101 (output DM0001…

  • Page 101: Output Setting Errors

    Ratio Conversion Function Section 4-6-5 Output Setting Errors If the analog output set value is outside of the range, a setting error signal will be stored in IR word n+9 (bits 00 and 02). To use disconnection detection with the user’s program, set these bits as execution conditions in the ladder program.

  • Page 102
    Ratio Conversion Function Section Negative Gradient (Analog output) = F – A x (Analog input) + B Conversion ∆Y ∆X Analog output ∆Y ∆X Analog input F: Output range maximum A: Ratio set value 0 to 99.99 (BCD) B: Bias 8000 to 7FFF (16-bit binary data) Specifying I/O To specify the use of Loop 1 and Loop 2 and their I/O relationships, set bits 08 to…
  • Page 103: Adjustment Mode Operational Flow

    Offset and Gain Adjustment Section Offset and Gain Adjustment This function is designed to calibrate inputs or outputs depending on devices to be connected. 4-8-1 Adjustment Mode Operational Flow The following diagram shows the flow of operations when using the adjustment mode for adjusting offset and gain.

  • Page 104: Offset And Gain Adjustment

    Offset and Gain Adjustment Section Caution Be sure to turn off the power to the PC before mounting or removing any Units. If the I/O table is registered in the PC, an I/O setting error may occur, not allowing any adjustment. In such a case, either cancel the I/O table or create the I/O table again.

  • Page 105: Input Offset And Gain Adjustment Procedures

    Offset and Gain Adjustment Section Offset Adjustment The procedure for adjusting the analog input offset is explained below. As shown in the following diagram, the offset is adjusted by sampling inputs so that the conversion value becomes 0. 0FA0 Input signal range: –10 to 10 V 10 V Offset adjustment input range…

  • Page 106
    Offset and Gain Adjustment Section 3. Input the voltage or current so that the conversion value becomes 0000. The following table shows the the offset adjustment voltages and currents to be input according to the input signal range. Input signal range Input voltage/current Input range 0 to 10 V…
  • Page 107
    Offset and Gain Adjustment Section Gain Adjustment The procedure for adjusting the analog input gain is explained below. As shown in the following diagram, the gain is adjusted by sampling inputs so that the con- version value is maximized. Gain adjustment input range 0FA0 Input signal range: 0 to 10 V…
  • Page 108
    Offset and Gain Adjustment Section 4. With the voltage or current having been input so that the conversion value for the Analog I/O Unit is maximized (0FA0 or 07D0), turn bit 04 (the Set Bit) of IR word n+1 ON and then OFF again. CONT SHIFT MONTR…
  • Page 109
    Offset and Gain Adjustment Section 2. Turn bit 04 of IR word n+1 ON and then OFF again. CONT SHIFT MONTR 10104 10105 ^OFF ^ ON 10104 10105 PLAY ^ ON 10104 10105 ^ ON RESET While the Clear Bit is ON, the default offset and gain values will be saved to the Unit’s EEPROM when the Set Bit turns ON.
  • Page 110: Output Offset And Gain Adjustment Procedures

    Offset and Gain Adjustment Section PRES VAL? c100 0000 ???? c100 0011 WRITE Bits Used for Adjusting The IR word n+1 bits shown in the following diagram are used for adjusting offset Offset and Gain and gain. Word n+1 Offset Adjustment The procedure for adjusting the analog output offset is explained below.

  • Page 111
    Offset and Gain Adjustment Section 2. Check whether the output devices are connected. Voltage output Output 1 Current output Output 1 3. Monitor IR word n+8 and check the set value while the Offset Bit is ON. 00000 SHIFT MONTR c108 0000 4.
  • Page 112
    Offset and Gain Adjustment Section CONT SHIFT MONTR 10102 c108 ^OFF 0000 The bit will remain ON until the output becomes an appropriate value, at which time, it will turn OFF. 10102 c108 PLAY FFFF 10102 c108 FFFF RESET 5. Check the 0V/1V/4mA output, and then turn bit 04 (the Set Bit) of IR word n+1 ON and then OFF again.
  • Page 113
    Offset and Gain Adjustment Section Gain Adjustment The procedure for adjusting the analog output gain is explained below. As shown in the following diagram, the set value is adjusted so that the analog output is maximized (to 10V/5V/20mA). Gain adjustment output range 10 V Output signal range: 0 to 10 V…
  • Page 114
    Offset and Gain Adjustment Section 3. Monitor IR word n+8 and check the set value while the Gain Bit is ON. 00000 SHIFT MONTR c108 0FA0 4. Change the set value so that the output voltage and output current are as shown in the following table.
  • Page 115
    Offset and Gain Adjustment Section 5. Check the 10V/5V/20mA output, and then turn bit 04 (the Set Bit) of IR word n+1 ON and then OFF again. CONT SHIFT MONTR 10104 10102 c108 ^OFF ^ OFF 0F9F 10104 10102 c108 PLAY ^ OFF 0F9F 10104 10102 c108…
  • Page 116: Troubleshooting Procedure

    Error Processing Section 2. Turn bit 04 of IR word n+1 ON and then OFF again. CONT SHIFT MONTR 10104 10105 ^OFF ^ ON 10104 10105 PLAY ^ ON 10104 10105 ^ ON RESET While the Clear Bit is ON, the default offset and gain values will be saved to the Unit’s EEPROM when the Set Bit turns ON.

  • Page 117: Error Processing

    Error Processing Section 4-9-2 Errors Detected by Analog I/O Unit When an error occurs at the Analog I/O Unit, the ERROR indicator on the front panel of the Unit lights and the error code is stored in bits 08 to 15 of IR word n+9. Word n+9 Error code Disconnection…

  • Page 118: Errors Detected By Analog I/O Unit

    Error Processing Section 4-9-3 Errors Detected by CPU Unit When the CPU Unit detects an error at a Special I/O Unit, it outputs to the CPU Unit’s SR and AR areas as shown below. Special I/O Unit Error Flag Error Contents CPU Unit status LED indicators…

  • Page 119: Restarting Special I/O Units

    Error Processing Section 4-9-4 Restarting Special I/O Units There are two ways to restart Special I/O Unit operation after having changed DM contents or having corrected the cause of an error. The first way is to power up the PC again, and the second way is to turn the Special I/O Unit Restart Bit ON and then OFF again.

  • Page 120
    Error Processing Section Value Does Not Change Probable cause Countermeasure Page as Intended The input device’s signal range Check the specifications of the does not match the input signal input device, and match the range for the relevant input number settings for the input signal ranges.
  • Page 121: A Dimensions

    Appendix A Dimensions External Dimensions Unit: mm C200H-AD003 C200H-DA003 C200H-DA004 C200H-MAD01 100.7 34.5 126.2…

  • Page 122: B Changes From Earlier Models

    Appendix B Changes From Earlier Models Differences Between C200H-AD003 and C200H-AD001/AD002 Functions Conversion Permission Setting With the C200H-AD003, in contrast to the C200H-AD001/002, use designation inputs must be set in advance to “1: Use.” A/D Conversion Data Identification Setting Only the C200H-AD002 has this function; the C200H-AD003 does not. Data is always output in 16-bit binary, and a BCD display can be created using a ladder program.

  • Page 123
    Changes From Earlier Models Appendix B Error Codes Error codes have been provided for the C200H-AD003. DM area setting errors and errors during operation are stored in the IR area when the ERR indicator lights. (Refer to 2-7-2 Errors Detected by Analog Input Unit.) BROKEN WIRE Indicator The C200H-AD003 does not have a BROKEN WIRE indicator.
  • Page 124: C Sample Programs

    Appendix C Sample Programs Sample Program 1: Obtaining Analog Input Unit Conversion Values This is a program for obtaining the Analog Input Unit’s conversion values. Individual input values are obtained by MOV(21) when their Disconnection Detection Flags turn OFF. (With the C200H-AD003, there are no causes for errors in normal mode other than disconnections, so a disconnection can be determined merely by seeing that bit 15 of word 109 is ON.) Unit Settings…

  • Page 125
    Sample Programs Appendix C Program Example Execution condition MOV(21) DM0000 Set value Reset condition 10915 Output Setting Error Flag Output Setting Error Flag Sample Program 3: Upper- and Lower-limit Alarm (Regular Monitoring) Comparisons are made to the upper and lower limits of the A/D conversion values or D/A output values from the beginning of operation.
  • Page 126
    Sample Programs Appendix C Program Example The following program can be executed only with the C200HS, C200HX/HG/HE CPU Units. Operation condition ZCP(88) Conversion value Lower limit (16-bit binary) DM0000 Upper limit (16-bit binary) DM0001 25506(=) 25503((ERR) Alarm Flag Sample Program 4: Upper- and Lower-limit Alarm (With Sequence) Comparisons are made to the upper and lower limits of the A/D conversion values or D/A output values after the value falls within the range between the upper limit and lower limit following the beginning of operation.
  • Page 127
    Sample Programs Appendix C Sample Program 5: Scaling A/D conversion values are converted into BCD data whose full scale is set by the lower-limit value data and upper- limit value data and retrieved as scaling data. The DM 0000 value will vary depending on the input signal range of the input number subject to scaling.
  • Page 128
    Sample Programs Appendix C • DM Area Setting Digital value for –5% DM0000: 00C8 DM0001: (Used for calculation) Conversion value +C8 (-5% portion) DM0002: 0000 Lower limit: BCD DM0003: 0000 Lower limit +C8 (-5% portion): BIN DM0004: 4400 Upper limit: BCD Used with SCL instruction DM0005: 1130 Upper limit +C8 (+5% portion): BIN…
  • Page 129
    Sample Programs Appendix C • DM Area Setting DM0000: 00C8 Digital value for –5% DM0001: (Used for calculation) Conversion value +C8 (-5% portion) DM0002: 0100 Lower limit: BCD DM0003: 0000 Lower limit +C8 (-5% portion): BIN DM0004: 0500 Upper limit: BCD Used with SCL instruction DM0005: 1130 Upper limit +C8 (-5% portion): BIN…
  • Page 130
    Sample Programs Appendix C Program Example The following program can be executed only with the C200HS, C200HX/HG/HE CPU Units. • Data Flow (Unit Number 0): Word 101 (AD Conversion Value) → Words 201 and 202 (Conversion Results) Execution condition MOV(21) 16-bit binary data DM0000 MOV(21)
  • Page 131
    Sample Programs Appendix C Program Example The following program can be executed only with the C200HS, C200HX/HG/HE CPU Units. • Data Flow (Unit Number 0): Word 101 (AD Conversion Value) → Word 200 (Calculation Result) Execution condition ADB(50) Conversion value + Negative number DM0000 DM0001…
  • Page 132
    Sample Programs Appendix C Program Example The following program can be executed only with the C200HS, C200HX/HG/HE CPU Units. • Data Flow (Unit Number 0): Word 101 (AD Conversion Value) → DM 0001 (Mean Value Result) Execution condition Conversion value #101 Number of samplings #0064…
  • Page 133: D Data Memory Coding Sheet

    Appendix D Data Memory Coding Sheet C200H-AD003 Setting contents DM word DM jj00 DM jj01 DM jj02 DM jj03 DM jj04 DM jj05 DM jj06 DM jj07 DM jj08 DM jj09…

  • Page 134
    Data Memory Coding Sheet Appendix D Setting contents DM word Use designation Use Designation Input signal range setting Input 1: Mean value processing setting Input 2: Mean value processing setting 0: Do not use. Input 3: Mean value processing setting 1: Use.
  • Page 135
    Data Memory Coding Sheet Appendix D C200H-DA003/DA004 Setting contents DM word DM jj00 DM jj01 DM jj02 DM jj03 DM jj04 DM jj05 DM jj06 DM jj07 DM jj08 DM jj09…
  • Page 136
    Data Memory Coding Sheet Appendix D Setting contents DM word Use designation Use Designation Output signal range setting Output 1: Output status when con- version stopped Output 2: Output status when con- version stopped Output 3: Output 0: Do not use. status when con- 1: Use.
  • Page 137
    Data Memory Coding Sheet Appendix D C200H-MAD01 Setting contents DM word DM jj00 DM jj01 DM jj02 DM jj03 DM jj04 DM jj05 DM jj06 DM jj07 DM jj08 DM jj09 DM jj10 DM jj11 DM jj12 DM jj13…
  • Page 138
    Data Memory Coding Sheet Appendix D Use Designation Setting contents DM word 0: Do not use. 1: Use Loop use Input use Output use designation designation designation Input signal Output signal range setting range setting Output 1: Output status when conversion stopped Output 2: Output status 00: Do not use.
  • Page 139: Index

    Index CPU Unit, Special I/O Unit Error Flag C200H-AD003, 34 C200H-DA003, 63 A constant, 91 C200H-DA004, 63 C200H-MAD01, DM set value, 80 C200H-MAD01, 107 adjustment mode crimp-type terminals, torque C200H-AD003, IR area allocation, 19 C200H-AD003, 16 C200H-DA003, IR area allocation, 48 C200H-DA003, 45 C200H-DA004, IR area allocation, 48 C200H-DA004, 45…

  • Page 140
    Index F–G C200H-AD003, 11 DM set value, 21 setting, 21 field devices, 4 C200H-MAD01, 67 DM set value, 80 gain adjustment function, 3 setting, 81 bits used C200H-AD003, 28 inputs C200H-DA003, 55 C200H-AD003 C200H-DA004, 55 IR adjustment mode set value, 19 C200H-MAD01 for input, 93 setting, 21 C200H-MAD01 for output, 99…
  • Page 141
    Index nomenclature output signal ranges C200H-AD003, 12 C200H-DA003, 39 C200H-DA003, 40 DM set value, 50 setting, 50 C200H-DA004, 40 C200H-DA004, 39 C200H-MAD01, 70 DM set value, 50 normal mode setting, 50 C200H-AD003, IR area allocation, 18 C200H-MAD01, 68 C200H-DA003, IR area allocation, 47 DM set value, 80 C200H-DA004, IR area allocation, 47 setting, 86…
  • Page 142
    Index settings, procedure, 8 troubleshooting C200H-AD003, 33, 35 signal names C200H-DA003, 62, 64 C200H-AD003, 14 C200H-DA004, 62, 64 C200H-DA003, 42 C200H-MAD01, 105, 108 C200H-DA004, 43 C200H-MAD01, 72 Slave Racks, 5 U–W Special I/O Unit Error Flags C200H-AD003, 34 unit number switch, 7 C200H-DA003, 63 C200H-AD003, 13 C200H-DA004, 63…
  • Page 143: 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. W325-E1-04 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.

  • Page 144
    Wegalaan 67-69, NL-2132 JD Hoofddorp The Netherlands Tel: (31)2356-81-300/Fax: (31)2356-81-388 OMRON ELECTRONICS LLC 1 East Commerce Drive, Schaumburg, IL 60173 U.S.A. Tel: (1)847-843-7900/Fax: (1)847-843-8568 OMRON ASIA PACIFIC PTE. LTD. 83 Clemenceau Avenue, #11-01, UE Square, Singapore 239920 Tel: (65)6835-3011/Fax: (65)6835-2711…
  • Page 145
    Authorized Distributor: Cat. No. W325-E1-04 Note: Specifications subject to change without notice. Printed in Japan…

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87

Cat.No. W303–E1–4

Programmable Controllers

C200HX/C200HG/C200HE

OPERATION MANUAL

C200HX/C200HG/C200HE

Programmable Controllers

Operation Manual

Revised June 2000

Notice:

OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual.

The following conventions are used to indicate and classify precautions in this manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or damage to property.

! DANGER Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.

! WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.

! Caution Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury, or property damage.

OMRON Product References

All OMRON products are capitalized in this manual. The word “Unit” is also capitalized when it refers to an OMRON product, regardless of whether or not it appears in the proper name of the product.

The abbreviation “Ch,” which appears in some displays and on some OMRON products, often means “word” and is abbreviated “Wd” in documentation in this sense.

The abbreviation “PC” means Programmable Controller and is not used as an abbreviation for anything else.

Visual Aids

The following headings appear in the left column of the manual to help you locate different types of information.

Note Indicates information of particular interest for efficient and convenient operation of the product.

1, 2, 3… 1. Indicates lists of one sort or another, such as procedures, checklists, etc.

OMRON, 1996

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.

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. Neither is any liability assumed for damages resulting from the use of the information contained in this publication.

v

TABLE OF CONTENTS

PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xiii

1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xiv

2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xiv

3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xiv

4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xv

5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xv

6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xvii

SECTION 1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1

1-1

Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2

1-2

The Origins of PC Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2

1-3

PC Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3

1-4

OMRON Product Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4

1-5

Overview of PC Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4

1-6

Peripheral Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5

1-7

Available Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6

1-8

C200HX/HG/HE Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7

SECTION 2

Hardware Considerations . . . . . . . . . . . . . . . . . . . . . . . . .

11

2-1

CPU Unit Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12

2-2

PC Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

2-3

CPU Unit Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

2-4

Memory Cassettes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

16

2-5

CPU Unit DIP Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

20

2-6

Operating without a Backup Battery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

21

SECTION 3

Memory Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

23

3-1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

24

3-2

Data Area Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

25

3-3

IR (Internal Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

29

3-4

SR (Special Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

33

3-5

AR (Auxiliary Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3-6

DM (Data Memory) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

56

3-7

HR (Holding Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

68

3-8

TC (Timer/Counter) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

68

3-9

LR (Link Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

69

3-10

UM Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

70

3-11

TR (Temporary Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

71

3-12

EM (Extended Data Memory) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

71

SECTION 4

Writing and Inputting the Program . . . . . . . . . . . . . . . . .

73

4-1

Basic Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

74

4-2

Instruction Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

74

4-3

Program Capacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

75

4-4

Basic Ladder Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

75

4-5

The Programming Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

88

4-6

Preparation for Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

91

4-7

Inputting, Modifying, and Checking the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

104

vii

TABLE OF CONTENTS

4-8

Controlling Bit Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

120

4-9

Work Bits (Internal Relays) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

122

4-10

Programming Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

124

4-11

Program Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

126

4-12

Special I/O Unit Interface Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

126

4-13

Analog Timer Unit Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

130

SECTION 5

Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

135

5-1

Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

138

5-2

Instruction Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

138

5-3

Data Areas, Definer Values, and Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

138

5-4

Differentiated Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

140

5-5

Expansion Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

141

5-6

Coding Right-hand Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

142

5-7

Instruction Set Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

145

5-8

Ladder Diagram Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

149

5-9

Bit Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

150

5-10

INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03) . . . . . . . . . . . . . . . . . . .

155

5-11

JUMP and JUMP END – JMP(04) and JME(05) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

157

5-12

END – END(01) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

158

5-13

NO OPERATION – NOP(00) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

158

5-14

Timer and Counter Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

158

5-15

Data Shifting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

171

5-16

Data Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

180

5-17

Data Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

192

5-18

Data Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

204

5-19

BCD Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

228

5-20

Binary Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

243

5-21

Special Math Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

257

5-22

Logic Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

275

5-23

Subroutines and Interrupt Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

279

5-24

Step Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

291

5-25

Special Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

300

5-26

Network Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

318

5-27

Serial Communications Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

329

5-28

Advanced I/O Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

336

5-29

Special I/O Unit Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

350

SECTION 6

Program Execution Timing . . . . . . . . . . . . . . . . . . . . . . . .

359

6-1

Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

360

6-2

Calculating Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

364

6-3

Instruction Execution Times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

367

6-4

I/O Response Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

376

SECTION 7

Program Monitoring and Execution . . . . . . . . . . . . . . . .

389

7-1

Monitoring Operation and Modifying Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

390

7-2

Programming Console Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

390

viii

TABLE OF CONTENTS

SECTION 8

Serial Communications . . . . . . . . . . . . . . . . . . . . . . . . . . .

417

8-1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

418

8-2

Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

419

8-3

RS-232C Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

426

8-4

One-to-one PC Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

430

8-5

NT Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

432

8-6 The Protocol Macro Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

433

SECTION 9

Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

443

9-1

Alarm Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

444

9-2 Programmed Alarms and Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

444

9-3 Reading and Clearing Errors and Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

444

9-4

Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

445

9-5

Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

449

9-6

Host Link Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

450

SECTION 10

Host Link Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . .

453

10-1 Host Link Command Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

454

10-2 Host Link End Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

455

10-3

Host Link Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

458

Appendices

A Standard Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

501

B Programming Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

517

C Error and Arithmetic Flag Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

523

D Word Assignment Recording Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

527

E Program Coding Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

533

F Data Conversion Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

535

G Extended ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

537

Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

539

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

555

Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

561

ix

About this Manual:

This manual describes the operation of the C200HX/HG/HE Programmable Controllers, and it includes the sections described below. Installation information is provided in the C200HX/HG/HE Programmable Controller Installation Guide. A table of other manuals that can be used in conjunction with this manual is provided in Section 1 Introduction. Provided in Section 2 Hardware Considerations is a description of the differences between the C200HS CPU Units and the new CPU Units described in this manual.

Please read this manual completely and be sure you understand the information provided before attempting to operate the C200HX/HG/HE. Be sure to read the precautions in the following section.

Section 1 Introduction explains the background and some of the basic terms used in ladder-diagram programming. It also provides an overview of the process of programming and operating a PC and explains basic terminology used with OMRON PCs. Descriptions of Peripheral Devices used with the C200HX/HG/HE PCs and a table of other manuals available to use with this manual for special PC applications are also provided.

Section 2 Hardware Considerations explains basic aspects of the overall PC configuration, describes the indicators that are referred to in other sections of this manual, and explains how to use the Memory Cassette to manage UM and IOM data.

Section 3 Memory Areas takes a look at the way memory is divided and allocated and explains the information provided there to aid in programming. It explains how I/O is managed in memory and how bits in memory correspond to specific I/O points. It also provides information on System DM, a special area in C200HX/HG/HE PCs that provides the user with flexible control of PC operating parameters.

Section 4 Writing and Entering Programs explains the basics of ladder-diagram programming, looking at the elements that make up the parts of a ladder-diagram program and explaining how execution of this program is controlled. It also explains how to convert ladder diagrams into mnemonic code so that the programs can be entered using a Programming Console.

Section 5 Instruction Set describes all of the instructions used in programming.

Section 6 Program Execution Timing explains the cycling process used to execute the program and tells how to coordinate inputs and outputs so that they occur at the proper times.

Section 7 Program Debugging and Execution explains the Programming Console procedures used to input and debug the program and to monitor and control operation.

Section 8 Communications provides an overview of the communications features provided by the C200HS.

Section 9 Troubleshooting provides information on error indications and other means of reducing down-time. Information in this section is also useful when debugging programs.

Section 10 Host Link Commands explains the host link commands that can be used for host link communications via the C200HX/HG/HE ports.

The Appendices provide tables of standard OMRON products available for the C200HX/HG/HE PCs, reference tables of instructions, a coding sheet to help in programming and parameter input, and other information helpful in PC operation.

! WARNING Failure to read and understand the information provided in this manual may result in personal injury or death, damage to the product, or product failure. Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations given.

xi

PRECAUTIONS

This section provides general precautions for using the Programmable Controller (PC) and related devices.

The information contained in this section is important for the safe and reliable application of the PC. You must read this section and understand the information contained before attempting to set up or operate a PC system.

1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xiv

2

General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xiv

3

Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xiv

4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xv

5

Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xv

6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

xvii

xiii

Safety Precautions

3

1 Intended Audience

This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent).

Personnel in charge of installing FA systems.

Personnel in charge of designing FA systems.

Personnel in charge of managing FA systems and facilities.

2 General Precautions

The user must operate the product according to the performance specifications described in the operation manuals.

Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems, railroad systems, aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used improperly, consult your OMRON representative.

Make sure that the ratings and performance characteristics of the product are sufficient for the systems, machines, and equipment, and be sure to provide the systems, machines, and equipment with double safety mechanisms.

This manual provides information for programming and operating OMRON PCs. Be sure to read this manual before attempting to use the software and keep this manual close at hand for reference during operation.

! WARNING It is extremely important that a PC and all PC Units be used for the specified purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PC System to the above mentioned applications.

3Safety Precautions

!WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing so

may result in electric shock.

! WARNING Do not touch any of the terminals or terminal blocks while the power is being supplied. Doing so may result in electric shock.

! WARNING Provide safety measures in external circuits (i.e., not in the Programmable Controller), including the following items, to ensure safety in the system if an abnormality occurs due to malfunction of the PC or another external factor affecting the PC operation. Not doing so may result in serious accidents.

Emergency stop circuits, interlock circuits, limit circuits, and similar safety measures must be provided in external control circuits.

The PC will turn OFF all outputs when its self-diagnosis function detects any error or when a severe failure alarm (FALS) instruction is executed. As a countermeasure for such errors, external safety measures must be provided to ensure safety in the system.

The PC outputs may remain ON or OFF due to deposition or burning of the output relays or destruction of the output transistors. As a countermeasure for

xiv

Application Precautions

5

such problems, external safety measures must be provided to ensure safety in the system.

When the 24-VDC output (service power supply to the PC) is overloaded or short-circuited, the voltage may drop and result in the outputs being turned OFF. As a countermeasure for such problems, external safety measures must be provided to ensure safety in the system.

!Caution Execute online edit only after confirming that no adverse effects will be caused

by extending the cycle time. Otherwise, the input signals may not be readable.

! Caution Confirm safety at the destination node before transferring a program to another node or changing contents of the I/O memory area. Doing either of these without confirming safety may result in injury.

! Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the torque specified in the operation manual. The loose screws may result in burning or malfunction.

4 Operating Environment Precautions

Do not operate the control system in the following places.

Where the PC is exposed to direct sunlight.

Where the ambient temperature is below 0° C or over 55° C.

Where the PC may be affected by condensation due to radical temperature changes.

Where the ambient humidity is below 10% or over 90%.

Where there is any corrosive or inflammable gas.

Where there is excessive dust, saline air, or metal powder.

Where the PC is affected by vibration or shock.

Where any water, oil, or chemical may splash on the PC.

!Caution The operating environment of the PC System can have a large effect on the lon-

gevity and reliability of the system. Improper operating environments can lead to malfunction, failure, and other unforeseeable problems with the PC System. Be sure that the operating environment is within the specified conditions at installation and remains within the specified conditions during the life of the system.

5 Application Precautions

Observe the following precautions when using the PC.

! WARNING Failure to abide by the following precautions could lead to serious or possibly fatal injury. Always heed these precautions.

Always ground the system to 100 Ω or less when installing the system to protect against electrical shock.

Always turn OFF the power supply to the PC before attempting any of the following. Performing any of the following with the power supply turned ON may lead to electrical shock:

Mounting or removing any Units (e.g., I/O Units, CPU Unit, etc.) or memory cassettes.

Assembling any devices or racks.

xv

Application Precautions

5

Connecting or disconnecting any cables or wiring.

!Caution Failure to abide by the following precautions could lead to faulty operation of the

PC or the system or could damage the PC or PC Units. Always heed these precautions.

Use the Units only with the power supplies and voltages specified in the operation manuals. Other power supplies and voltages may damage the Units.

Take measures to stabilize the power supply to conform to the rated supply if it is not stable.

Provide circuit breakers and other safety measures to provide protection against shorts in external wiring.

Do not apply voltages exceeding the rated input voltage to Input Units.

Do not apply voltages exceeding the maximum switching capacity to Output Units.

Always disconnect the functional ground terminal when performing withstand voltage tests.

Carefully follow all of the installation instructions provided in the manuals, including the Installation Guide.

Provide proper shielding when installing in the following locations:

Locations subject to static electricity or other sources of noise.

Locations subject to strong electromagnetic fields.

Locations subject to possible exposure to radiation.

Locations near to power supply lines.

Be sure to tighten Backplane screws, terminal screws, and cable connector screws securely.

Do not attempt to take any Units apart, to repair any Units, or to modify any Units in any way.

!Caution The following precautions are necessary to ensure the general safety of the sys-

tem. Always heed these precautions.

Provide double safety mechanisms to handle incorrect signals that can be generated by broken signal lines or momentary power interruptions.

Provide external interlock circuits, limit circuits, and other safety circuits in addition to any provided within the PC to ensure safety.

Always test the operation of the user program sufficiently before starting actual system operation.

Always confirm that there will be no adverse affects on the system before changing the PC’s operating mode.

Always confirm that there will be no adverse affects on the system before force-setting/resetting any bits in PC memory.

Always confirm that there will be no adverse affects on the system before changing any set values or present values in PC memory.

Whenever the CPU Unit has been replaced, be sure that all required memory data, such as that in the HR and DM areas, has been transferred to the new CPU Unit before starting operation.

Never pull on or place objects on cables or cords, or wires may be broken.

xvi

Conformance to EC Directives

6

6 Conformance to EC Directives

Observe the following precautions when installing the C200HX/HG/HE PCs that conform to the EC Directives.

Provide reinforced insulation or double insulation for the DC power source connected to the DC I/O Unit and for the Power Supply Unit.

Use a separate power source for the DC I/O Unit from the external power supply for the Relay Output Unit.

xvii

SECTION 1

Introduction

This section gives a brief overview of the history of Programmable Controllers and explains terms commonly used in ladderdiagram programming. It also provides an overview of the process of programming and operating a PC and explains basic terminology used with OMRON PCs. Descriptions of peripheral devices used with the C200HX/HG/HE PCs, a table of other manuals available to use with this manual for special PC applications, and a description of the new features of the C200HX/ HG/HE PCs are also provided.

1-1

Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2

1-2 The Origins of PC Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2

1-3

PC Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3

1-4

OMRON Product Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4

1-5 Overview of PC Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4

1-6

Peripheral Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5

1-7

Available Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6

1-8

C200HX/HG/HE Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7

1-8-1 C200HS and C200HX/HG/HE Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7

1-8-2 Program Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

8

1

The Origins of PC Logic

Section 1-2

1-1 Overview

A PC (Programmable Controller) is basically a CPU (Central Processing Unit) containing a program and connected to input and output (I/O) devices. The program controls the PC so that when an input signal from an input device turns ON, the appropriate response is made. The response normally involves turning ON an output signal to some sort of output device. The input devices could be photoelectric sensors, pushbuttons on control panels, limit switches, or any other device that can produce a signal that can be input into the PC. The output devices could be solenoids, switches activating indicator lamps, relays turning on motors, or any other devices that can be activated by signals output from the PC.

For example, a sensor detecting a passing product turns ON an input to the PC. The PC responds by turning ON an output that activates a pusher that pushes the product onto another conveyor for further processing. Another sensor, positioned higher than the first, turns ON a different input to indicate that the product is too tall. The PC responds by turning on another pusher positioned before the pusher mentioned above to push the too-tall product into a rejection box.

Although this example involves only two inputs and two outputs, it is typical of the type of control operation that PCs can achieve. Actually even this example is much more complex than it may at first appear because of the timing that would be required, i.e., “How does the PC know when to activate each pusher?” Much more complicated operations, however, are also possible. The problem is how to get the desired control signals from available inputs at appropriate times.

To achieve proper control, the C200HX/HG/HE PCs use a form of PC logic called ladder-diagram programming. This manual is written to explain ladderdiagram programming and to prepare the reader to program and operate the PC.

1-2 The Origins of PC Logic

PCs historically originate in relay-based control systems. And although the integrated circuits and internal logic of the PC have taken the place of the discrete relays, timers, counters, and other such devices, actual PC operation proceeds as if those discrete devices were still in place. PC control, however, also provides computer capabilities and accuracy to achieve a great deal more flexibility and reliability than is possible with relays.

The symbols and other control concepts used to describe PC operation also come from relay-based control and form the basis of the ladder-diagram programming method. Most of the terms used to describe these symbols and concepts, however, have come in from computer terminology.

Relay vs. PC Terminology The terminology used throughout this manual is somewhat different from relay terminology, but the concepts are the same.

The following table shows the relationship between relay terms and the PC terms used for OMRON PCs.

Relay term

PC equivalent

contact

input or condition

coil

output or work bit

NO relay

normally open condition

NC relay

normally closed condition

2

PC Terminology

Section 1-3

Actually there is not a total equivalence between these terms. The term condition is only used to describe ladder diagram programs in general and is specifically equivalent to one of a certain set of basic instructions. The terms input and output are not used in programming per se, except in reference to I/O bits that are assigned to input and output signals coming into and leaving the PC. Normally open conditions and normally closed conditions are explained in 4-4 Basic Ladder Diagrams.

1-3

PC Terminology

Although also provided in the Glossary at the back of this manual, the following

terms are crucial to understanding PC operation and are thus explained here.

PC

Because the C200HX/HG/HE PCs are Rack PCs, there is no one product that is

a C200HX/HG/HE PC. That is why we talk about the configuration of the PC,

because a PC is a configuration of smaller Units.

To have a functional PC, you would need to have a CPU Rack with at least one

Unit mounted to it that provides I/O points. When we refer to the PC, however, we

are generally talking about the CPU Unit and all of the Units directly controlled by

it through the program. This does not include the I/O devices connected to PC

inputs and outputs.

If you are not familiar with the terms used above to describe a PC, refer to Sec-

tion 2 Hardware Considerations for explanations.

Inputs and Outputs

A device connected to the PC that sends a signal to the PC is called an input

device; the signal it sends is called an input signal. A signal enters the PC

through terminals or through pins on a connector on a Unit. The place where a

signal enters the PC is called an input point. This input point is allocated a loca-

tion in memory that reflects its status, i.e., either ON or OFF. This memory loca-

tion is called an input bit. The CPU Unit, in its normal processing cycle, monitors

the status of all input points and turns ON or OFF corresponding input bits ac-

cordingly.

There are also output bits in memory that are allocated to output points on

Units through which output signals are sent to output devices, i.e., an output

bit is turned ON to send a signal to an output device through an output point. The

CPU Unit periodically turns output points ON or OFF according to the status of

the output bits.

These terms are used when describing different aspects of PC operation. When

programming, one is concerned with what information is held in memory, and so

I/O bits are referred to. When talking about the Units that connect the PC to the

controlled system and the places on these Units where signals enter and leave

the PC, I/O points are referred to. When wiring these I/O points, the physical

counterparts of the I/O points, either terminals or connector pins, are referred to.

When talking about the signals that enter or leave the PC, one refers to input

signals and output signals, or sometimes just inputs and outputs. It all depends

on what aspect of PC operation is being talked about.

Controlled System and

The Control System includes the PC and all I/O devices it uses to control an ex-

Control System

ternal system. A sensor that provides information to achieve control is an input

device that is clearly part of the Control System. The controlled system is the

external system that is being controlled by the PC program through these I/O devices. I/O devices can sometimes be considered part of the controlled system, e.g., a motor used to drive a conveyor belt.

3

Overview of PC Operation

Section 1-5

1-4 OMRON Product Terminology

OMRON products are divided into several functional groups that have generic names. Appendix A Standard Models list products according to these groups. The term Unit is used to refer to all of the OMRON PC products. Although a Unit is any one of the building blocks that goes together to form a C200HX/HG/HE PC, its meaning is generally, but not always, limited in context to refer to the Units that are mounted to a Rack. Most, but not all, of these products have names that end with the word Unit.

The largest group of OMRON products is the I/O Units. These include all of the Rack-mounting Units that provide non-dedicated input or output points for general use. I/O Units come with a variety of point connections and specifications.

High-density I/O Units are designed to provide high-density I/O capability and include Group 2 High-density I/O Units and Special I/O High-density I/O Units.

Special I/O Units are dedicated Units that are designed to meet specific needs. These include some of the High-density I/O Units, Position Control Units, Highspeed Counter Units, and Analog I/O Units.

Link Units are used to create Link Systems that link more than one PC or link a single PC to remote I/O points. Link Units include Remote I/O Units, PC Link Units, Host Link Units, SYSMAC NET Link Units, and SYSMAC LINK Units. SYSMAC NET Link and SYSMAC LINK Units can be used with the CPU11-E only.

Other product groups include Programming Devices, Peripheral Devices, and DIN Rail Products.

1-5 Overview of PC Operation

The following are the basic steps involved in programming and operating a C200HX/HG/HE PC. Assuming you have already purchased one or more of these PCs, you must have a reasonable idea of the required information for steps one and two, which are discussed briefly below. This manual is written to explain steps three through six, eight, and nine. The relevant sections of this manual that provide more information are listed with each of these steps.

1, 2, 3… 1. Determine what the controlled system must do, in what order, and at what times.

2.Determine what Racks and what Units will be required. Refer to the C200HX/HG/HE PC Installation Guide. If a Link System is required, refer to the appropriate System Manual.

3.On paper, assign all input and output devices to I/O points on Units and determine which I/O bits will be allocated to each. If the PC includes Special I/O Units or Link Systems, refer to the individual Operation Manuals or System Manuals for details on I/O bit allocation. (Section 3 Memory Areas)

4.Using relay ladder symbols, write a program that represents the sequence of required operations and their inter-relationships. Be sure to also program appropriate responses for all possible emergency situations. (Section 4 Writing and Inputting the Program, Section 5 Instruction Set, Section 6 Program Execution Timing)

5.Input the program and all required operating parameters into the PC. (Section 4-7 Inputting, Modifying, and Checking the Program.)

6.Debug the program, first to eliminate any syntax errors, and then to find execution errors. (Section 4-7 Inputting, Modifying, and Checking the Program, Section 7 Program Monitoring and Execution, and Section 9 Troubleshooting)

4

Peripheral Devices

Section 1-6

7. Wire the PC to the controlled system. This step can actually be started as

soon as step 3 has been completed. Refer to the C200HX/HG/HE PC Instal-

lation Guide and to Operation Manuals and System Manuals for details on

individual Units.

8. Test the program in an actual control situation and carry out fine tuning as

required. (Section 7 Program Monitoring and Execution and Section 9 Trou-

bleshooting)

9. Record two copies of the finished program on masters and store them safely

in different locations. (Section 4-7 Inputting, Modifying, and Checking the

Program)

Control System Design

Designing the Control System is the first step in automating any process. A PC

can be programmed and operated only after the overall Control System is fully

understood. Designing the Control System requires, first of all, a thorough un-

derstanding of the system that is to be controlled. The first step in designing a

Control System is thus determining the requirements of the controlled system.

Input/Output Requirements

The first thing that must be assessed is the number of input and output points

that the controlled system will require. This is done by identifying each device

that is to send an input signal to the PC or which is to receive an output signal

from the PC. Keep in mind that the number of I/O points available depends on

the configuration of the PC. Refer to 3-3 IR Area for details on I/O capacity and

the allocation of I/O bits to I/O points.

Sequence, Timing, and

Relationships

Unit Requirements

Next, determine the sequence in which control operations are to occur and the relative timing of the operations. Identify the physical relationships between the I/O devices as well as the kinds of responses that should occur between them.

For instance, a photoelectric switch might be functionally tied to a motor by way of a counter within the PC. When the PC receives an input from a start switch, it could start the motor. The PC could then stop the motor when the counter has received a specified number of input signals from the photoelectric switch.

Each of the related tasks must be similarly determined, from the beginning of the control operation to the end.

The actual Units that will be mounted or connected to PC Racks must be determined according to the requirements of the I/O devices. Actual hardware specifications, such as voltage and current levels, as well as functional considerations, such as those that require Special I/O Units or Link Systems will need to be considered. In many cases, Special I/O Units, Intelligent I/O Units, or Link Systems can greatly reduce the programming burden. Details on these Units and Link Systems are available in appropriate Operation Manuals and System Manuals.

Once the entire Control System has been designed, the task of programming, debugging, and operation as described in the remaining sections of this manual can begin.

1-6 Peripheral Devices

Programming Console

SYSMAC Support Software:

SSS

The following peripheral devices can be used in programming, either to input/ debug/monitor the PC program or to interface the PC to external devices to output the program or memory area data. Model numbers for all devices listed below are provided in Appendix A Standard Models. OMRON product names have been placed in bold when introduced in the following descriptions.

A Programming Console is the simplest form of programming device for OMRON PCs. All Programming Consoles are connected directly to the CPU Unit without requiring a separate interface.

SSS is designed to run on IBM PC/AT or compatibles and allows you to perform all the operations of the Programming Console as well as many additional ones.

5

Available Manuals

Section 1-7

PC programs can be written on-screen in ladder-diagram form as well as in mne-

monic form. As the program is written, it is displayed on a display, making con-

firmation and modification quick and easy. Syntax checks may also be per-

formed on the programs before they are downloaded to the PC.

The SSS comes on 3.5” disks.

A computer running the SSS is connected to the C200HX/HG/HE PC via the Pe-

ripheral Port on the CPU Unit using the CQM1-CIF02 or CV500-CIF01 cable.

1-7

Available Manuals

The following table lists other manuals that may be required to program and/or

operate the C200HX/HG/HE PCs. Operation Manuals and/or Operation Guides

are also provided with individual Units and are required for wiring and other

specifications.

Name

Cat. No.

Contents

GPC Operation Manual

W84

Programming procedures for the GPC

(Graphics Programming Console)

FIT Operation Manual

W150

Programming procedures for using the FIT

(Factory Intelligent Terminal)

SYSMAC Support Software Operation Manuals

W247/W248

Programming procedures for using the SSS

Data Access Console Operation Guide

W173

Data area monitoring and data modification

procedures for the Data Access Console

Printer Interface Unit Operation Guide

W107

Procedures for interfacing a PC to a printer

PROM Writer Operation Guide

W155

Procedures for writing programs to EPROM chips

Floppy Disk Interface Unit Operation Guide

W119

Procedures for interfacing PCs to floppy disk drives

Wired Remote I/O System Manual

W120

Information on building a Wired Remote I/O System

(SYSMAC BUS)

to enable remote I/O capability

Optical Remote I/O System Manual

W136

Information on building an Optical Remote I/O

(SYSMAC BUS)

System to enable remote I/O capability

PC Link System Manual

W135

Information on building a PC Link System to

automatically transfer data between PCs

Host Link System Manual

W143

Information on building a Host Link System to

(SYSMAC WAY)

manage PCs from a ‘host’ computer

SYSMAC NET Link Unit Operation Manual

W114

Information on building a SYSMAC NET Link

System and thus create an optical LAN integrating

PCs with computers and other peripheral devices

SYSMAC LINK System Manual

W174

Information on building a SYSMAC LINK System to

enable automatic data transfer, programming, and

programmed data transfer between the PCs in the

System

High-speed Counter Unit Operation Manual

W141

Information on High-speed Counter Unit

Position Control Unit Operation Manuals

NC111: W137

Information on Position Control Unit

NC112: W128

NC211: W166

Analog I/O Units Operation Guide

W127

Information on the C200H-AD001, C200H-DA001

Analog I/O Units

Analog Input Unit Operation Manual

W229

Information on the C200H-AD002 Analog Input Unit

Temperature Sensor Unit Operation Guide

W124

Information on Temperature Sensor Unit

ASCII Unit Operation Manual

W165

Information on ASCII Unit

ID Sensor Unit Operation Guide

W153

Information on ID Sensor Unit

Voice Unit Operation Manual

W172

Information on Voice Unit

Fuzzy Logic Unit Operation Manual

W208

Information on Fuzzy Logic Unit

Fuzzy Support Software Operation Manual

W210

Information on the Fuzzy Support Software which

supports the Fuzzy Logic Units

Temperature Control Unit Operation Manual

W225

Information on Temperature Control Unit

Heat/Cool Temperature Control Unit Operation

W240

Information on Heating and Cooling Temperature

Manual

Control Unit

6

C200HX/HG/HE Features

Section 1-8

Name

Cat. No.

Contents

PID Control Unit Operation Manual

W241

Information on PID Control Unit

Cam Positioner Unit Operation Manual

W224

Information on Cam Positioner Unit

1-8

C200HX/HG/HE Features

The C200HX/HG/HE CPU Units have a number of new features, but C200H and

C200HS programs can be used in the new CPU Units.

1-8-1 C200HS and C200HX/HG/HE Capabilities

The following table shows the new capabilities of the C200HX/HG/HE PCs and

compares them with those of the C200HS.

Function

Capability

C200HX/HG/HE

C200HS

Memory

User memory (UM)

C200HE-CPU11-E: 3.2K words

15.2K words

C200HE-CPUj2-E: 7.2K words

C200HG-CPUj3-E: 15.2K words

C200HX-CPUj4-E: 31.2K words

Normal DM

6,144 words (DM 0000 to DM 6143)

6,144 words

(The C200HE-CPU11-E doesn’t have

(DM 0000 to DM 6143)

DM 4096 to DM 5999.)

Fixed DM

512 words (DM 6144 to DM 6655)

512 words

(DM 6144 to DM 6655)

Expansion DM

0 to 3,000 words (DM 7000 to DM 9999)

0 to 3,000 words

(DM 7000 to DM 9999)

Extended Data Memory

6,144 words (EM 0000 to EM 6143)

None

(EM)

C200HE: None

C200HG: 6,144 words ×

1 bank

C200HX: 6,144 words ×

3 banks

I/O allocation

Expansion Racks

3 Racks

2 Racks

(2 Racks in the C200HE-CPUjj-E or

C200HX/HG-CPU3j-E/4j-E)

Group-2 Multipoint I/O

Unit numbers 0 to 9, A to F

Unit numbers 0 to 9

Units

(Incompatible with the C200HE-CPU11-E.)

(Unit numbers 0 to 9 with the

C200HE-CPUj2-E,

C200HX/HG-CPU3j-E/4j-E.)

Special I/O Units

Unit numbers 0 to 9, A to F

Unit numbers 0 to 9

(Unit numbers 0 to 9 with the

C200HE-CPUjj-E or

C200HX/HG-CPU3j-E/4j-E.)

Execution time

Basic instructions (LD)

0.104 µ s (C200HX)

0.375 µ s

0.156 µ s (C200HG)

0.313 µ s (C200HE)

MOV(21)

0.417 µ s (C200HX)

19.00 µ s

0.625 µ s (C200HG)

1.250 µ s (C200HE)

ADD(30)

16.65 µ s (C200HX/HG)

40.10 µ s

31.45 µ s (C200HE)

Other instructions

C200HX/HG:

1/3 to 2/3 of C200HS time

C200HE:

3/4 to 4/5 of C200HS time

Common processes

0.7 ms (C200HX/HG)

0.7 ms

(END(01) processing)

2.1 ms (C200HE)

I/O refresh time

Same as the C200HS, although part of

Special I/O refreshing takes 1/2 to 2/3 the

C200HS time.

7

C200HX/HG/HE Features

Section 1-8

Function

Capability

C200HX/HG/HE

C200HS

CPU Unit

RS-232C port

Available in the

Available in the

functions

C200HX/HG/HE-CPU4j-E/6j-E

C200HS-CPU2j-E

/3j-E

Clock function

Available in all except the C200HE-CPU11-E

Available in all models

SYSMAC NET Link and

Communications Boards can be installed in

Available in the

SYSMAC LINK functions

all PCs except the C200HE-CPU11-E.

C200HS-CPU3j-E

(Board model numbers:

C200HW-COM01/04-E)

Communications

Communications Boards can be installed in

Boards

all PCs except the C200HE-CPU11-E. These

Boards can provide the following functions:

SYSMAC NET Link and SYSMAC LINK,

Communications Ports (Ports 1 and 2), and

Protocol Macro functions

Special I/O Units

The IORD(––) and IOWR(––) instructions

allow data to be transferred to and from

Special I/O Units.

Interrupts

Interrupt Input Units

2 Units (16 inputs)

1 Unit (8 inputs)

Communications Board

Can be set.

interrupts

Response characteristics

Same as the C200HS, although a 1-ms

Normal mode: 10 ms

response is possible in the C200HW-SLKjj

High-speed mode: 1 ms

(Always 10 ms when a

SYSMAC NET Link or

SYSMAC LINK is used.)

PTs

NT Link (1:1) or NT Link (1:N)

NT Link (1:1)

(Up to 8 PTs can be connected from the

RS-232C port through an RS-422/485 Link

Adapter. When the C200HE-CPUjj-E with

a Communications Board is used, only 3 PTs

can be connected)

SYSMAC LINK

Service time

3.5 ms max. (1 operating level)

10.8 ms max.

(1 operating level)

Remote programming

Possible from the Peripheral Port or RS-232C

Possible from the

Ports (including Communications Boards).

Peripheral Port.

Effect on response time

None

10 ms in any mode

1-8-2 Program Compatibility

C200HS programs and Memory Cassettes can be used as is in the C200HX/

HG/HE and programs developed for the C200H can be transferred for use in the

C200HX/HG/HE very easily.

Detailed procedures for the individual steps involved in transferring programs

can be found in the SSS Operation Manuals. You will also require a

CQM1-CIF02 Connecting Cable to connect the computer running SSS to the

C200HS.

Precautions

Observe the following precautions when transferring C200H programs to the

C200HX/HG/HE.

If a C200H program including the SET SYSTEM instruction (SYS(49)) is trans-

ferred to the C200HX/HG/HE, the operating parameters set by this instruction

will be transferred to the C200HX/HG/HE’s PC Setup area (DM 6600, DM

6601, and DM 6655) and overwrite any current settings. Be sure to confirm

that the settings in these words are correct before using the PC after program

transfer.

8

C200HX/HG/HE Features

Section 1-8

If the C200H program accesses the C200H’s error log in DM 0969 to DM 0999,

the addresses of the words being accessed must be changed to DM 6000 to

DM 6030, which is the error log area for the C200HX/HG/HE.

Any programs that rely on the execution cycle time (i.e., on the time required to

execute any one part of all of the program) must be adjusted when used on the

C200HX/HG/HE, which provides a much faster cycle time.

Using Internal Memory

The following procedure outlines the steps to transfer C200H programs to the

user memory inside the C200HX/HG/HE.

1, 2, 3…

1.

Transfer the program and any other required data to the SSS work area.

This data can be transferred from a C200H CPU Unit, from floppy disk, or

from a C200HS Memory Unit.

To transfer from a C200H CPU Unit, set the PC for the SSS to the C200H,

connect the SSS to the C200H, go online, and transfer the program and any

other required data to the SSS work area. You will probably want to transfer

DM data and the I/O table, if you have created an I/O table for the C200H.

or

To transfer from floppy disk, set the PC for the SSS to the C200H in the

offline mode and load the program and any other require data to the SSS

work area. You will probably want to load DM data and the I/O table, if you

have created an I/O table for the C200H.

or

To transfer from a C200H-MP831, set the PC for the SSS to the C200H in the

offline mode and read data from the Memory Unit into the SSS work area.

2.

Go offline if the SSS is not already offline.

3.

Change the PC setting for the SSS to the C200HX/HG/HE.

4.

If you want to transfer I/O comments together with the program to the

C200HX/HG/HE, allocate UM area for I/O comments.

5.

Connect the SSS to the C200HX/HG/HE and go online.

6.

Make sure that pin 1 on the C200HX/HG/HE’s CPU Unit is OFF to enable

writing to the UM area.

7.

Transfer the program and and any other required data to the C200HX/HG/

HE. You will probably want to transfer DM data and the I/O table, if you have

created an I/O table for the C200H.

8.

Turn OFF the C200HX/HG/HE and then back ON to reset it.

9.

Test program execution before attempting actual operation.

Using Memory Cassettes

The following procedure outlines the steps to transfer C200H programs to the

C200HX/HG/HE via EEPROM or EPROM Memory Cassettes. This will allow

you to read the program data from the Memory Cassette automatically at

C200HX/HG/HE startup. The first four steps of this procedure is the same as

those used for transferring directly to the C200HX/HG/HE’s internal memory

(UM area).

1, 2, 3…

1.

Transfer the program and any other required data to the SSS work area.

This data can be transferred from a C200H CPU Unit, from floppy disk, or

from a Memory Unit.

To transfer from a C200H CPU Unit, set the PC for the SSS to the C200H,

connect the SSS to the C200H, go online, and transfer the program and any

other required data to the SSS work area. You will probably want to transfer

DM data and the I/O table, if you have created an I/O table for the C200H.

or

To transfer from floppy disk, set the PC for the SSS to the C200H in the

offline mode and load the program and any other required data to the SSS

work area. You will probably want to load DM data and the I/O table, if you

have created an I/O table for the C200H.

or

To transfer from a C200H-MP831, set the PC for the SSS to the C200H in the

offline mode and read data from the Memory Unit into the SSS work area.

9

C200HX/HG/HE Features

Section 1-8

2.Go offline if the SSS is not already offline.

3.Change the PC setting for the SSS to the C200HX/HG/HE.

4.If you want to transfer I/O comments together with the program to the C200HX/HG/HE, allocate UM area for I/O comments.

5.Allocate expansion DM words DM 7000 to DM 7999 in the UM area using the UM allocation operation from the SSS.

6.Copy DM 1000 through DM 1999 to DM 7000 through DM 7999.

7.Write “0100” to DM 6602 to automatically transfer the contents of DM 7000 through DM 7999 to DM 1000 through DM 1999 at startup.

8.To transfer to an EEPROM Memory Cassette, use the following procedure.

a)Connect the SSS to the C200HX/HG/HE and go online.

b)Make sure that pin 1 on the C200HX/HG/HE’s CPU Unit is OFF to enable writing to the UM area.

c)Transfer the program and any other require data to the C200HX/HG/HE. You will probably want to transfer DM data and the I/O table, if you have created an I/O table for the C200H. Make sure you specify transfer of the Expansion DM Area and, if desired, the I/O Comment Area.

d)Turn ON SR 27000 from the SSS to transfer UM data to the Memory Cassette and continue from step 9.

or To transfer to an EPROM Memory Cassette, use the following procedure.

a)Connect a PROM Writer to the SSS and write the data to the EPROM chip using the SSS EPROM writing operation.

b)Set the ROM type selector on the Memory Cassette to the correct capacity.

c)Mount the ROM chip to the Memory Cassette.

d)Mount a EPROM Memory Cassette to the C200HX/HG/HE.

9.Turn ON pin 2 on the C200HX/HG/HE’s DIP switch to enable automatic transfer of Memory Cassette data to the CPU Unit at startup.

10.Turn OFF the C200HX/HG/HE and then back ON to reset it and transfer data from the Memory Cassette to the CPU Unit.

11.Test program execution before attempting actual operation.

10

SECTION 2

Hardware Considerations

This section provides information on hardware aspects of the C200HX/HG/HE that are relevant to programming and software operation. These include CPU Unit Components, the basic PC configuration, CPU Unit capabilities, and Memory Cassettes. This information is covered in detail in the C200HX/HG/HE Installation Guide.

2-1

CPU Unit Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12

2-1-1

CPU Unit Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13

2-1-2

Peripheral Device Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13

2-2

PC Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

2-3

CPU Unit Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

2-4

Memory Cassettes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

16

2-4-1 Hardware and Software Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

17

2-4-2

Writing/Reading UM Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

17

2-4-3

Writing/Reading IOM Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

18

2-5 CPU Unit DIP Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

20

2-6 Operating without a Backup Battery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

21

11

CPU Unit Components

Section 2-1

2-1 CPU Unit Components

The following diagram shows the main CPU Unit components.

Communications Board (The C200HW-COM06-E is mounted to this CPU Unit.)

Indicators

Memory Cassette DIP switch

Peripheral port

Memory Cassette

RS-232C port

The CPU Unit has a compartment to connect the Memory Cassette to the CPU

Unit. The Memory Cassette works as a RAM together with the built-in RAM of the

CPU Unit.

Peripheral Port

A peripheral device can be connected to the peripheral port.

RS-232C Port

The CPU Unit has a built-in RS-232C port.

Communications Board

The CPU Unit has a compartment to connect the Communications Board to the

CPU Unit.

DIP Switch

The PC operates according to the DIP switch settings of the CPU Unit. The DIP

switch of the CPU Unit for the C200HX/HG/HE has six pins. For the function of

each of the pins, refer to the following table. (All six pins are OFF when the PC is

shipped.)

1

2

3

4

5

6

ON

OFF ON

Pin

Setting

Function

1

ON

Data cannot be written to the UM area.

OFF

Data can be written to the UM area.

2

ON

Memory Cassette data is read automatically at startup.

OFF

Memory Cassette data is not read automatically at startup.

3

ON

Programming Console displays messages in English.

OFF

Programming Console displays messages in Japanese.

4

ON

The expansion instructions can be set.

OFF

The expansion instructions cannot be set (default setting).

5

ON

Sets the following conditions for the communications port (including

when a CQM1-CIF02 is connected to the Peripheral Port):

1 start bit, 7 data bits, even parity, 2 stop bit, 9,600 bps baud rate

OFF

Cancels the above settings.

6

ON

Programming Console is in expansion terminal mode (AR 0712 is

turned ON).

OFF

Programming Console is in normal mode (AR 0712 is turned OFF).

12

CPU Unit Components

Section 2-1

2-1-1 CPU Unit Indicators

CPU Unit indicators provide visual information on the general operation of the PC. Although not substitutes for proper error programming using the flags and other error indicators provided in the data areas of memory, these indicators provide ready confirmation of proper operation.

Indicator

Meaning

RUN (green)

Lit when the PC is operating normally.

ERR (red)

Flashes if the PC detects any non-fatal error in operation. The PC

will continue operating.

Lit if the PC detects any fatal error in operation. The PC will stop

operating. After the PC stops operating, the RUN indicator will be

OFF and all output signals of the Output Units will be interrupted

(turned OFF).

INH (orange)

Lit when the Load OFF flag (AR bit) is ON, in which case all

output signals of the Output Units will be interrupted (turned

OFF).

COMM

Flashes when the CPU Unit is communicating with the device

(orange)

connected to the peripheral port or RS-232C port.

2-1-2 Peripheral Device Connection

A Programming Console or IBM PC/AT running SSS can be used to program

and monitor the C200HX/HG/HE PCs.

Programming Console

A C200H-PR027-E or CQM1-PRO01-E Programming Console can be con-

nected as shown in the diagram. The C200H-PR027-E is connected via the

C200H-CN222 or C200H-CN422 Programming Console Connecting Cable,

which must be purchased separately. A Connecting Cable is provided with the

CQM1-PRO01-E.

Data Access Console

A C200H-DAC01 Data Access Console can be connected via the C200H-

CN222 or C200H-CN422 Programming Console Connecting Cable, which must

be purchased separately. The following operations are not available when the

C200H-DAC01 is used with the C200HX/HG/HE:

Set value read and change

Error message display

13

Omron C200HE, C200HG, C200HX User Manual

CPU Unit Components

Section 2-1

IBM PC/AT with SSS

An IBM PC/AT or compatible computer with SYSMAC Support Software can be

connected as shown in the diagram.

C200H-LK201-V1

C200HX/HG/HE

Mounted

directly

Host Link Unit

RS-232C

Peripheral

port

port

C200H-CN222/422

XW2Z-200S/500S

CQM1-CIF02

(2 m/4 m)

(See note)

Programming Console

Connecting Cable

Connecting Cable

Connecting Cable

Peripheral

Support

Device

Software

IBM PC/AT or Compatible

C500-ZL3AT1-E

SYSMAC Support Software

Programming Console for

Data Access Console for

Programming Console

C200H

C200H

C200H-PRO27-E

C200H-DAC01

CQM1-PRO01-E

Note The connector of the XW2Z-200S/500S Connecting Cable is a male 25-pin terminal. An adapter is required for the 9-pin male D-sub terminal on the IBM PC/AT or compatible side.

14

CPU Unit Capabilities

Section 2-3

2-2 PC Configuration

The basic PC configuration consists of two types of Rack: a CPU Rack and Expansion I/O Racks. The Expansion I/O Racks are not a required part of the basic system. They are used to increase the number of I/O points. An illustration of these Racks is provided in 3-3 IR Area. A third type of Rack, called a Slave Rack, can be used when the PC is provided with a Remote I/O System.

CPU Racks

A C200HX/HG/HE CPU Rack consists of three components: (1) The CPU Back-

plane, to which the CPU Unit and other Units are mounted. (2) The CPU Unit,

which executes the program and controls the PC. (3) Other Units, such as I/O

Units, Special I/O Units, and Link Units, which provide the physical I/O terminals

corresponding to I/O points.

A C200HX/HG/HE CPU Rack can be used alone or it can be connected to other

Racks to provide additional I/O points. The CPU Rack provides three, five, eight,

or ten slots to which these other Units can be mounted depending on the back-

plane used.

Expansion I/O Racks

An Expansion I/O Rack can be thought of as an extension of the PC because it

provides additional slots to which other Units can be mounted. It is built onto an

Expansion I/O Backplane to which a Power Supply and up to ten other Units are

mounted.

An Expansion I/O Rack is always connected to the CPU Unit via the connectors

on the Backplanes, allowing communication between the two Racks. Up to three

Expansion I/O Racks (two with the C200HE PCs) can be connected in series to

the CPU Rack.

Unit Mounting Position

Only I/O Units and Special I/O Units can be mounted to Slave Racks. All I/O

Units, Special I/O Units, Group-2 High-density I/O Units, Remote I/O Master

Units, PC and Host Link Units, can be mounted to any slot on all other Racks.

Interrupt Input Units must be mounted to Backplanes with the “-V2” suffix on the

model number.

Refer to the C200HX/HG/HE Installation Guide for details about which slots can

be used for which Units and other details about PC configuration. The way in

which I/O points on Units are allocated in memory is described in 3-3 IR Area.

2-3

CPU Unit Capabilities

The following table shows the capabilities of the C200HX/HG/HE CPU Units.

The CPU4j-E and CPU6j-E CPU Units are equipped with RS-232C ports.

Item

C200HE-

C200HG-

C200HX-

CPU11-E

CPU32-E/

CPU33-E/

CPU53-E/

CPU34-E/

CPU54-E/

42-E

43-E

63-E

44-E

64-E

Program capacity

3.2K words

7.2K words

15.2K words

31.2K words

DM capacity

4K words

6K words

6K words

6K words

EM capacity

None

6K words ×

1 bank

6K words ×

3 banks

Basic instruction execution time

0.3 µ s min.

0.15 µ s min.

0.1 µ s min.

Max. number of Expansion I/O Racks

2 Racks

2 Racks

3 Racks

2 Racks

3 Racks

Max. number of Group-2 High-density I/O

None

10 Units

10 Units

16 Units

10 Units

16 Units

Units

Max. number of Special I/O Units

10 Units

10 Units

16 Units

10 Units

16 Units

Clock function

No

Yes

Yes

Yes

Communications Board Slot

No

Yes

Yes

Yes

15

Memory Cassettes

Section 2-4

2-4 Memory Cassettes

Memory Cassette Functions

1, 2, 3…

Compatible Memory

Cassettes

The C200HX/HG/HE comes equipped with a built-in RAM for the user’s program, so a normal program be created even without installing a Memory Cassette. An optional Memory Cassette can be used to store the program, PC Setup, I/O comments, DM area and other data area contents. Refer to the C200HX/ HG/HE Installation Guide for details on installing Memory Cassettes.

The Memory Cassette can be used to store and retrieve UM and IOM data; UM stored in the Memory Cassette can also be compared to the UM in the PC.

1.The contents of UM (user memory) can be stored in the Memory Cassette for later retrieval or verification. If pin 2 of the CPU Unit DIP switch is set to ON, the contents of the Memory Cassette are automatically retrieved when the PC is turned ON.

The UM area contains the ladder program, fixed DM (such as the PC Setup), expansion DM, I/O comments, the I/O table, and the UM area allocation information.

2.The contents of the PC’s I/O memory (IOM) can be stored in the Memory Cassette for later retrieval.

IOM includes the IR area, SR area, LR area, HR area, AR area, timer and counter PVs, DM 0000 through DM 6143, and EM 0000 through EM 6143.

UM and IOM data is completely compatible between the C200HX/HG/HE and the C200HS data, except the portion of the C200HX/HG/HE data areas that exceed the capacity of the C200HS and the new instructions (BXF2(––), IEMS(––), IORD(––), IOWR(––), PMCR(––), STUP(––), and XFR2(––)) that aren’t supported by the C200HS CPU Unit. Data area addresses and instructions that aren’t supported by the C200HS can’t be used in the C200HS. IOM data can’t be retrieved to the PC’s RAM unless the size of the IOM in the Memory Cassette matches the size of the IOM in the PC.

There are two types of Memory Cassette available: EEPROM and EPROM. The following table shows the Memory Cassettes which can be used with the C200HX/HG/HE PCs.

Memory

Capacity

Model number

Comments

EEPROM

4K words

C200HW-ME04K

The EEPROM Memory Cassette

can be used to write and read UM

8K words

C200HW-ME08K

and I/O data to the CPU Unit. It does

not require any backup power sup-

16K words

C200HW-ME16K

ply and will retain its data even after

32K words

C200HW-ME32K

it is removed from the CPU Unit.

EPROM

16K or 32K

C200HS-MP16K

The EPROM chip is not included

words

with the Memory Cassette; it must

be purchased separately.

27256 equivalent (ROM-JD-B): 16K

27512 equivalent (ROM-KD-B): 32K

Note 1. Data stored in EEPROM won’t be reliable after the contents have been overwritten 50,000 times.

2.Use a standard PROM writer to write a program to the EPROM Memory Cassette. Connect an EPROM to the EPROM Memory Cassette before installing the EPROM Memory Cassette to the CPU Unit. The EPROM Memory Cassette will lose its data if it is removed from the CPU Unit.

16

Memory Cassettes

Section 2-4

2-4-1 Hardware and Software Settings

Switch Settings

SR Area Flags and Control

Bits

The hardware and software settings related to Memory Cassette operations are described below.

Switch 1 on the Memory Cassette is turned OFF when the Memory Cassette is shipped. Check the setting on switch 1 before installation.

Memory

Switch 1

Function

Cassette

setting

EEPROM

ON

The data in the Memory Cassette is write-protected.

OFF

The data in the Memory Cassette can be overwritten.

EPROM

ON

27512-equivalent ROM-KD-B EPROM

(32K words, 150 ns access time)

OFF

27256-equivalent ROM-JD-B EPROM

(16K words, 150 ns access time)

SR 269 through SR 273 contain flags and control bits related to Memory Cassette contents and operation. Refer to 3-4 SR (Special Relay) Area for details.

2-4-2 Writing/Reading UM Data

Note

Writing UM Data to a

Memory Cassette

1, 2, 3…

Reading UM Data from a Memory Cassette

1, 2, 3…

Use the following procedures to transfer UM data to or from a Memory Cassette. (A PROM writer is required to write data to an EPROM Memory Cassette. Refer to the SYSMAC Support Software Operation Manual for details.)

UM contains the ladder program, fixed DM (such as the PC Setup), expansion DM, I/O comments, the I/O table, and the UM area allocation information.

Use the following procedure to write UM data to an EEPROM Memory Cassette.

1.Before turning ON the C200HX/HG/HE’s power supply, make sure that switch 1 on the Memory Cassette is set to OFF.

2.Turn ON the C200HX/HG/HE and write the ladder program or read an existing program from a data disk.

3.Switch the C200HX/HG/HE to PROGRAM mode.

4.Use a host computer running SSS or a Programming Console to turn ON SR 27000 (the Save UM to Cassette Bit). The data will be written from the PC to the Memory Cassette. SR 27000 will be turned OFF automatically after the data transfer has been completed.

5.If you want to write-protect the data on the Memory Cassette, turn OFF the PC and set switch 1 of the Memory Cassette to ON. If this switch is ON, data in the Memory Cassette will be retained even if SR 27000 is turned ON.

There are two ways to read UM data from a Memory Cassette: automatic transfer at startup or a one-time transfer using a Peripheral Device.

(There is no function that automatically writes data to the Memory Cassette.)

Automatic Transfer at Startup:

1.Turn ON pin 2 of the CPU Unit’s DIP switch.

2.Install the Memory Cassette containing the data into the C200HX/HG/HE.

3.Turn ON the C200HX/HG/HE’s power supply. The contents of the Memory Cassette will be transferred to the CPU Unit automatically. A memory error will occur if the data couldn’t be transferred.

One-time Transfer using a Peripheral Device:

1, 2, 3… 1. Install the Memory Cassette containing the data into the C200HX/HG/HE.

2.Turn ON the C200HX/HG/HE and switch it to PROGRAM mode.

3.Use a host computer running SSS or a Programming Console to turn ON SR 27001 (the Load UM from Cassette Bit). The data will be read from the Memory Cassette to the PC. SR 27001 will be turned OFF automatically after the data transfer has been completed.

17

Memory Cassettes

Section 2-4

Comparing UM Data on a

Use the following procedure to the UM data on an Memory Cassette to the UM

Memory Cassette

data in the PC.

1, 2, 3… 1. Switch the C200HX/HG/HE to PROGRAM mode.

2.Use a host computer running SSS or a Programming Console to turn ON SR 27002 (the Compare UM to Cassette Bit). The data will be compared between the PC and the Memory Cassette. SR 27002 will be turned OFF automatically after the data comparison has been completed.

3.Use a host computer running SSS or a Programming Console to check the status of SR 27003 (the Comparison Results Flag).

Note If data verification is executed in a mode other than the PROGRAM mode, an operation continuance error (FAL90) will occur and 27002 will turn ON (1). Although 27003 will also turn ON, comparison will not be performed. If data comparison is executed without mounting the Memory Cassette, 27003 will turn ON

(1).

2-4-3 Writing/Reading IOM Data

Use the following procedures to transfer IOM data to or from a Memory Cassette. (A PROM writer is required to write data to an EPROM Memory Cassette. Refer to the SYSMAC Support Software Operation Manual for details.)

IOM includes the IR area, SR area, LR area, HR area, AR area, timer and counter PVs, DM 0000 through DM 6143, and EM 0000 through EM 6143.

The capacity of the Memory Cassette must match the memory capacity of the CPU Unit when IOM data is transferred to or from a Memory Cassette. The memory requirements are as follows:

Writing IOM: CPU Unit’s capacity Memory Cassette’s capacity

Reading IOM: CPU Unit’s capacity = Amount of IOM data in Memory Cassette

Note In C200HS PCs, the data transfer will be performed even if the memory capacities don’t match, an error which can easily go unnoticed.

The following table shows the Memory Cassette capacity required to store 1 or more banks of EM.

Memory Cassette capacity

Number of EM banks

4K words

None (A 4K-word Memory Cassette can’t be used to

store other IOM data, either.)

8K words

None

16K words

1 bank (Only EM bank 0 can be stored.)

32K words

3 banks (EM banks 0 through 2 can be stored.)

Bits 08 through 15 of SR 273 indicate the EM bank number of the IOM data stored in the Memory Cassette.

Writing IOM Data to a Memory Cassette

1, 2, 3…

Content of

Meaning

SR 27308 to SR 27315

00

There is no Memory Cassette installed, no IOM data in

the Memory Cassette, or no EM data in the Memory Cas-

sette.

01

The Memory Cassette contains IOM data that includes

EM bank 0 only.

04

The Memory Cassette contains IOM data that includes

EM banks 0 through 2.

Use the following procedure to write IOM data to an EEPROM Memory Cassette.

1.Before turning ON the C200HX/HG/HE’s power supply, make sure that switch 1 on the Memory Cassette is set to OFF.

18

Memory Cassettes

Section 2-4

Reading IOM Data from a Memory Cassette

2.Turn ON the C200HX/HG/HE and switch it to PROGRAM mode.

3.Use a host computer running SSS or a Programming Console to turn ON SR 27300 (the Save IOM to Cassette Bit). The data will be written from the PC to the Memory Cassette. SR 27300 will be turned OFF automatically after the data transfer has been completed.

4.If you want to write-protect the data on the Memory Cassette, turn OFF the PC and set switch 1 of the Memory Cassette to ON. If this switch is ON, data in the Memory Cassette will be retained even if SR 27300 is turned ON.

Use the following procedure to read IOM data from a Memory Cassette. The contents of the error history (DM 6000 through DM 6030) can’t be read from the Memory Cassette.

Note There is no function that automatically reads IOM data from the Memory Cassette.

1, 2, 3… 1. Install the Memory Cassette containing the data into the C200HX/HG/HE.

2.Turn ON the C200HX/HG/HE and switch it to PROGRAM mode.

3.Use a host computer running SSS or a Programming Console to turn ON SR 27301 (the Load IOM from Cassette Bit). The data will be read from the Memory Cassette to the PC. SR 27301 will be turned OFF automatically after the data transfer has been completed.

19

CPU Unit DIP Switch Section 2-5

2-5

CPU Unit DIP Switch

The 6 pins on the DIP switch control 6 of the CPU Unit’s operating parameters.

Pin

Item

Setting

Function

1

Memory protect

ON

The UM area1 cannot be overwritten from a Peripheral Device.

OFF

The UM area1 can be overwritten from a Peripheral Device.

2

Automatic transfer of Memory

ON

The contents of the Memory Cassette will be automatically

Cassette contents

transferred to the internal RAM at start-up.

OFF

The contents will not be automatically transferred.

3

Message language

ON

Programming Console messages will be displayed in English.

OFF

Programming Console messages will be displayed in the language

stored in system ROM. (Messages will be displayed in Japanese with

the Japanese version of system ROM.)

4

Expansion instruction setting

ON

Expansion instructions will be set by user. Normally ON when using a

host computer for programming/monitoring.

OFF

Expansion instructions will be set to defaults.

5

Communications parameters

ON

Standard communications parameters (see note 1) will be set for the

following serial communications ports.

Built-in RS-232C port

Peripheral port (only when a CQM1-CIF01/-CIF02 Cable is con-

nected. Does not apply to Programming Console.)

Note 1. Standard communications parameters are as follows:

Serial communications mode: Host Link or peripheral bus;

start bits: 1; data length: 7 bits; parity: even; stop bits: 2;

baud rate: 9,600 bps

2. The CX-Programmer running on a personal computer can

be connected to the peripheral port via the peripheral bus

using the above standard communications parameters.

OFF

The communications parameters for the following serial

communications ports will be set in PC Setup as follows:

Built-in RS-232C port: DM 6645 and DM 6646

Peripheral port: DM 6650 and DM 6651

Note When the CX-Programmer is connected to the peripheral port

with the peripheral bus, either set bits 00 to 03 of DM 6650 in the

Fixed DM Area to 0 Hex (for standard parameters), or set bits 12

to 15 of DM 6650 to 0 Hex and bits 00 to 03 of DM 6650 to 1 Hex

(for Host Link or peripheral bus ) separately.

6

Expansion TERMINAL mode

ON

Expansion TERMINAL mode (Programming Console); AR 0712 ON.

setting when AR 0712 is ON

OFF

Normal mode (Programming Console); AR 0712: OFF

Note 1. The UM area contains the ladder program, fixed DM (including the PC Setup), expansion DM, I/O comments, the I/O table, and the UM area allocation information.

2. All six pins are set to OFF when the PC is shipped.

20

Operating without a Backup Battery

Section 2-6

2-6 Operating without a Backup Battery

An EEPROM or EPROM Memory Cassette can be used together with various memory settings to enable operation without a backup battery. The following conditions must be met.

1, 2, 3… 1. The user program must be written to an EPROM or EEPROM Memory Cassette.

2.The clock cannot be used. (A battery is required to run the internal clock.)

3.The PC Setup must be set to not detect low battery voltage.

4.The system must be designed to run properly even if DM area data is lost.

5.The Output OFF Bit (SR 25215) must be programmed to remain OFF. (The status of this bit will be unstable without a battery.)

25314 (Always OFF Flag)

25215

6.The Forced Status Hold Bit (SR 25211) and Data Retention Control Bit (SR 25212) must be set to be cleared in the PC Setup. (The status of these bits will be unstable without a battery.)

7.The DIP switch on the CPU Unit must be set so that pin 1 is OFF and pin 2 is ON.

If these conditions can be met, use the following procedures to operate without a backup battery.

EEPROM Memory Cassette

1, 2, 3… 1. Allocate UM area using the SYSMAC Support Software (SSS) if you want to use Expansion DM for Special I/O Units or if you want to store I/O comments in the PC.

2.Write and transfer the user program, including a line using the Always OFF Flag (SR 25314) to ensure that the Output OFF Bit (SR 25215) remains OFF.

25314 (Always OFF Flag)

25215

3.Set the following in the PC Setup

DM 6601 = 0000 (To reset Forced Status Hold Bit (SR 25211) and I/O Status Hold Bit (SR 25212) at startup)

DM 6655 bits 12 to 15 = 1, bits 4 to 7 = 0 (To not detect low battery voltage) DM 6600 and DM 6602 to DM 6654 = As required by the application.

4.Set Fixed DM (including the Communications Board settings in DM 6144 to DM 6599) and Expansion DM as required by the application.

5.Check operation.

6.Mount the Memory Cassette in the CPU Unit.

7.Switch to PROGRAM mode.

8.Turn ON SR 27000 to transfer the program, Fixed DM, and the PC Setup to the Memory Cassette. (This bit will automatically reset itself if turned ON from a Programming Console. It will need to be turned OFF by clearing forced status if it is set from the SSS.)

9.Turn ON the write protect switch on the Memory Cassette.

10.Turn OFF pin 1 and turn ON pin 2 on the DIP switch on the CPU Unit to automatically transfer the program, Fixed DM, and the PC Setup from the Memory Cassette when power is turned ON.

21

Operating without a Backup Battery

Section 2-6

EPROM Memory Cassette

1, 2, 3… 1. Allocate UM area using the SYSMAC Support Software (SSS) if you want to use Expansion DM for Special I/O Units or if you want to store I/O comments in the PC.

2.Write and transfer the user program, including a line using the Always OFF Flag (SR 25314) to ensure that the Output OFF Bit (SR 25215) remains OFF.

25314 (Always OFF Flag)

25215

3.Set the following in the PC Setup

DM 6601 = 0000 (To reset Forced Status Hold Bit (SR 25211) and I/O Status Hold Bit (SR 25212) at startup)

DM 6655 bits 12 to 15 = 1, bits 4 to 7 = 0 (To not detect low battery voltage) DM 6600 and DM 6602 to DM 6654 = As required by the application.

4.Set Fixed DM (including the Communications Board settings in DM 6144 to DM 6599) and Expansion DM as required by the application.

5.Check operation.

6.Transfer the program, Fixed DM, and the PC Setup to the SSS.

7.Write the program, Fixed DM, and the PC Setup to ROM using the SSS and a PROM writer.

8.Mount the ROM onto the Memory Cassette.

9.Mount the Memory Cassette in the CPU Unit.

10.Turn OFF pin 1 and turn ON pin 2 on the DIP switch on the CPU Unit to automatically transfer the program, Fixed DM, and the PC Setup from the Memory Cassette when power is turned ON.

22

SECTION 3

Memory Areas

Various types of data are required to achieve effective and correct control. To facilitate managing this data, the PC is provided with various memory areas for data, each of which performs a different function. The areas generally accessible by the user for use in programming are classified as data areas. The other memory area is the UM Area, where the user’s program is actually stored. This section describes these areas individually and provides information that will be necessary to use them. As a matter of convention, the TR area is described in this section, even though it is not strictly a memory area.

3-1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

24

3-1-1

Data Area Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

24

3-1-2

IR/SR Area Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

25

3-2

Data Area Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

25

3-3

IR (Internal Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

29

3-4

SR (Special Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

33

3-4-1

SYSMAC NET/SYSMAC LINK System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

38

3-4-2

Remote I/O Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39

3-4-3

Link System Flags and Control Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

40

3-4-4

Forced Status Hold Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

41

3-4-5

I/O Status Hold Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

42

3-4-6

Output OFF Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

42

3-4-7

FAL (Failure Alarm) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

42

3-4-8

Low Battery Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

42

3-4-9

Cycle Time Error Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

43

3-4-10

I/O Verification Error Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

43

3-4-11

First Cycle Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

43

3-4-12

Clock Pulse Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

43

3-4-13

Step Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44

3-4-14

Group-2 Error Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44

3-4-15

Special Unit Error Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44

3-4-16

Instruction Execution Error Flag, ER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44

3-4-17

Arithmetic Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44

3-4-18

Interrupt Subroutine Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

45

3-4-19

RS-232C Port Communications Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

45

3-4-20

Peripheral Port Communications Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

46

3-4-21

Memory Cassette Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

46

3-4-22

Data Transfer Error Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

47

3-4-23

Ladder Diagram Memory Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

47

3-4-24

Memory Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

47

3-4-25

Data Save Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3-4-26

Transfer Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3-4-27

PC Setup Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3-4-28

Clock and Keyboard Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3-4-29

Group-2 Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3-4-30

Special I/O Unit Restart Bits and Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3-5

AR (Auxiliary Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3-5-1

Restarting Special I/O Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

50

3-5-2

Slave Rack Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

51

3-5-3

Group-2 Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

51

3-5-4

Optical I/O Unit and I/O Terminal Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

51

3-5-5

SYSMAC LINK System Data Link Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

52

3-5-6

Error History Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

52

3-5-7

Active Node Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

52

3-5-8

SYSMAC LINK/SYSMAC NET Link System Service Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

53

3-5-9

Calendar/Clock Area and Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

53

3-5-10

TERMINAL Mode Key Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

54

3-5-11

Power OFF Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

54

3-5-12

SYSMAC LINK – Peripheral Device Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

54

3-5-13

Cycle Time Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

55

3-5-14

Link Unit Mounted Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

55

3-5-15

CPU Unit-mounting Device Mounted Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

55

3-5-16

FPD Trigger Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

55

3-5-17

Data Tracing Flags and Control Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

55

3-5-18

Cycle Time Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

55

3-6

DM (Data Memory) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

56

3-6-1

Expansion DM Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

57

3-6-2

Special I/O Unit Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

58

3-6-3

Error History Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

58

3-6-4

PC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

60

3-6-5

Communications Board Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

65

3-6-6

Special I/O Unit Area Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

67

3-7

HR (Holding Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

68

3-8

TC (Timer/Counter) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

68

3-9

LR (Link Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

69

3-10

UM Area

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

70

3-11

TR (Temporary Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

71

3-12

EM (Extended Data Memory) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

71

3-12-1

Using the EM Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

71

3-12-2

The Current EM Bank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

72

23

Introduction Section 3-1

3-1

Introduction

3-1-1

Data Area Overview

Details, including the name, size, and range of each area are summarized in the

following table. Data and memory areas are normally referred to by their acro-

nyms, e.g., the IR Area, the SR Area, etc.

Area

Size

Range

Comments

Internal Relay Area 1

3,776 bits

IR 000 to IR 235

Refer to 3-1-2 IR/SR Area Overview and 3-3 IR

(Internal Relay) Area for more details.

Special Relay Area 1

312 bits

SR 236 to SR 255

Refer to 3-1-2 IR/SR Area Overview and 3-4 SR

(Special Relay) Area for more details.

Special Relay Area 2

704 bits

SR 256 to SR 299

Internal Relay Area 2

3,392 bits

IR 300 to IR 511

Refer to 3-1-2 IR/SR Area Overview and 3-3 IR

(Internal Relay) Area for more details.

Temporary Relay Area

8 bits

TR 00 to TR 07

Used to temporarily store and retrieve execution

conditions when programming certain types of

branching ladder diagrams.

Holding Relay Area

1,600 bits

HR 00 to HR 99

Used to store data and to retain the data values

when the power to the PC is turned OFF.

Auxiliary Relay Area

448 buts

AR 00 to AR 27

Contains flags and bits for special functions. Re-

tains status during power failure.

Link Relay Area

1,024 bits

LR 00 to LR 63

Used for data links in the PC Link System.

(These bits can be used as work words or work

bits when not used in the PC Link System.)

Timer/Counter Area

512 counters/

TC 000 to TC 511

Used to define timers and counters, and to

timers

access completion flags, PV, and SV.

TIM 000 through TIM 015 are refreshed via

interrupt processing as high-speed timers.

Data Memory Area

6,144 words

DM 0000 to DM 6143

Read/Write

DM 6031 is used for indirect DM addressing and

EM bank information and should not be written

by the user.

1,000 words

DM 0000 to DM 0999

Normal DM.

2,600 words

DM 1000 to DM 2599

Special I/O Unit Area

3,400 words

DM 2600 to DM 5999

Normal DM.

31 words

DM 6000 to DM 6030

History Log

(44 words)

DM 6100 to DM 6143

Link test area (reserved)

Fixed DM Area

512 words

DM 6144 to DM 6599

Fixed DM Area (read only)

56 words

DM 6600 to DM 6655

PC Setup

Extended Data Memory

6,144 words

EM 0000 to EM 6143

The amount of EM area memory depends on the

Area

PC model being used. PCs are available with no

EM, one 6,144-word bank, or three 6,144-word

banks.

Like DM, the EM memory can be accessed in

word units only and EM area data is retained

when the power to the PC is turned OFF.

Work Bits and Words

When some bits and words in certain data areas are not being used for their in-

tended purpose, they can be used in programming as required to control other

bits. Words and bits available for use in this fashion are called work words and

work bits. Most, but not all, unused bits can be used as work bits. Those that can

be used are described area-by-area in the remainder of this section. Actual ap-

plication of work bits and work words is described in Section 4 Writing and Input-

ting the Program.

Flags and Control Bits

Some data areas contain flags and/or control bits. Flags are bits that are auto-

matically turned ON and OFF to indicate particular operation status. Although

24

Data Area Structure

Section 3-2

some flags can be turned ON and OFF by the user, most flags are read only; they

cannot be controlled directly.

Control bits are bits turned ON and OFF by the user to control specific aspects of

operation. Any bit given a name using the word bit rather than the word flag is a

control bit, e.g., Restart bits are control bits.

3-1-2

IR/SR Area Overview

When designating a data area, the acronym for the area is always required for

any area except the IR and SR areas. Although the acronyms for the IR and SR

areas are given for clarity in text explanations, they are not required, and not en-

tered, when programming.

The IR and SR areas are divided into two 256-word sections; the boundary be-

tween these sections is located in the SR area between SR 255 and SR 256.

When the SR area is used as an operand in an instruction, the operand cannot

cross over this boundary. Also, basic instructions that access bits in the second

section (SR 25600 through IR 51115) have somewhat longer execution times.

Area

Range

Comments

IR Area 1

I/O Area 1

IR 000 to IR 029

I/O words are allocated to the CPU Rack and

Expansion I/O Racks by slot position.

Group-2 High-density I/O Unit

IR 030 to IR 049

Allocated to Group-2 High-density I/O Units and to

and B7A Interface Unit Area

B7A Interface Units 0 to 9.

SYSMAC BUS and

IR 050 to IR 099

Allocated to CompoBus/D outputs and Remote

CompoBus/D Output Area

I/O Slave Racks 0 to 4.

Special I/O Unit Area 1

IR 100 to IR 199

Allocated to Special I/O Units 0 to 9.

Optical I/O Unit and I/O

IR 200 to IR 231

Allocated to Optical I/O Units and I/O Terminals.

Terminal Area

Work Area

IR 232 to IR 235

For use as work bits in the program.

SR Area 1

SR 23600 to SR 25507

Contains system clocks, flags, control bits, and

status information.

SR Area 2

SR 256 to SR 299

Contains flags, control bits, and status informa-

tion. SR 290 to SR 297 are used as I/O words by

MCRO(99).

IR Area 2

I/O Area 2

IR 300 to IR 309

These I/O words are allocated to a third

Expansion I/O Rack by slot position.

Work Area

IR 310 to IR 329

For use as work bits in the program.

Group-2 High-density I/O Unit

IR 330 to IR 341

Allocated to Group-2 High-density I/O Units.

Area 2

Work Area

IR 342 to IR 349

For use as work bits in the program.

CompoBus/D Input Area

IR 350 to IR 399

Allocated to CompoBus/D inputs.

Special I/O Unit Area 2

IR 400 to IR 459

Allocated to Special I/O Units A to F.

Work Area

IR 460 to IR 511

For use as work bits in the program.

Note 1. Refer to 3-3 IR (Internal Relay) Area for more details on the IR area.

Refer to 3-4 SR (Special Relay) Area for more details on the SR area.

2.Bits in IR Area 1 and IR Area 2 can can be used in programming as work bits when not used for their allocated purpose.

3-2 Data Area Structure

When designating a data area, the acronym for the area is always required for any but the IR and SR areas. Although the acronyms for the IR and SR areas are often given for clarity in text explanations, they are not required, and not entered, when programming. Any data area designation without an acronym is assumed to be in either the IR or SR area. Because IR and SR addresses run consecutively, the word or bit addresses are sufficient to differentiate these two areas.

25

Data Area Structure

Section 3-2

An actual data location within any data area but the TC area is designated by its

address. The address designates the bit or word within the area where the de-

sired data is located. The TC area consists of TC numbers, each of which is used

for a specific timer or counter defined in the program. Refer to 3-8 TC Area for

more details on TC numbers and to 5-14 Timer and Counter Instructions for in-

formation on their application.

The rest of the data areas (i.e., the IR, SR, HR, DM, AR, and LR areas) consist of

words, each of which consists of 16 bits numbered 00 through 15 from right to

left. IR words 000 and 001 are shown below with bit numbers. Here, the content

of each word is shown as all zeros. Bit 00 is called the rightmost bit; bit 15, the

leftmost bit.

The term least significant bit is often used for rightmost bit; the term most signifi-

cant bit, for leftmost bit. These terms are not used in this manual because a

single data word is often split into two or more parts, with each part used for dif-

ferent parameters or operands. When this is done, the rightmost bits of a word

may actually become the most significant bits, i.e., the leftmost bits in another

word,when combined with other bits to form a new word.

Bit number

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

IR word 000

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

IR word 001

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

The DM area is accessible by word only; you cannot designate an individual bit

within a DM word. Data in the IR, SR, HR, AR, and LR areas is accessible either

by word or by bit, depending on the instruction in which the data is being used.

To designate one of these areas by word, all that is necessary is the acronym (if

required) and the two-, three-, or four-digit word address. To designate an area

by bit, the word address is combined with the bit number as a single fouror five-

digit address. The following table show examples of this. The two rightmost dig-

its of a bit designation must indicate a bit between 00 and 15, i.e., the rightmost

digit must be 5 or less the next digit to the left, either 0 or 1.

The same TC number can be used to designate either the present value (PV) of

the timer or counter, or a bit that functions as the Completion Flag for the timer or

counter. This is explained in more detail in 3-8 TC Area.

Area

Word designation

Bit designation

IR

000

00015 (leftmost bit in word 000)

SR

252

25200 (rightmost bit in word 252)

DM

DM 1250

Not possible

TC

TC 215 (designates PV)

TC 215 (designates completion flag)

LR

LR 12

LR 1200

Data Structure

Word data input as decimal values is stored in binary-coded decimal (BCD);

word data entered as hexadecimal is stored in binary form. Each four bits of a

word represents one digit, either a hexadecimal or decimal digit, numerically

equivalent to the value of the binary bits. One word of data thus contains four

digits, which are numbered from right to left. These digit numbers and the corre-

sponding bit numbers for one word are shown below.

Digit number

3

2

1

0

Bit number

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

Contents

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

When referring to the entire word, the digit numbered 0 is called the rightmost digit; the one numbered 3, the leftmost digit.

26

Data Area Structure

Section 3-2

Converting Different Forms

of Data

Decimal Points

When inputting data into data areas, it must be input in the proper form for the intended purpose. This is no problem when designating individual bits, which are merely turned ON (equivalent to a binary value of 1) or OFF (a binary value of 0). When inputting word data, however, it is important to input it either as decimal or as hexadecimal, depending on what is called for by the instruction it is to be used for. Section 5 Instruction Set specifies when a particular form of data is required for an instruction.

Binary and hexadecimal can be easily converted back and forth because each four bits of a binary number is numerically equivalent to one digit of a hexadecimal number. The binary number 0101111101011111 is converted to hexadecimal by considering each set of four bits in order from the right. Binary 1111 is hexadecimal F; binary 0101 is hexadecimal 5. The hexadecimal equivalent would thus be 5F5F, or 24,415 in decimal (163 x 5 + 162 x 15 + 16 x 5 + 15).

Decimal and BCD are easily converted back and forth. In this case, each BCD digit (i.e., each group of four BCD bits) is numerically equivalent of the corresponding decimal digit. The BCD bits 0101011101010111 are converted to decimal by considering each four bits from the right. Binary 0101 is decimal 5; binary 0111 is decimal 7. The decimal equivalent would thus be 5,757. Note that this is not the same numeric value as the hexadecimal equivalent of 0101011101010111, which would be 5,757 hexadecimal, or 22,359 in decimal (163 x 5 + 162 x 7 + 16 x 5 + 7).

Because the numeric equivalent of each four BCD binary bits must be numerically equivalent to a decimal value, any four bit combination numerically greater than 9 cannot be used, e.g., 1011 is not allowed because it is numerically equivalent to 11, which cannot be expressed as a single digit in decimal notation. The binary bits 1011 are of course allowed in hexadecimal are a equivalent to the hexadecimal digit C.

There are instructions provided to convert data either direction between BCD and hexadecimal. Refer to 5-18 Data Conversion for details. Tables of binary equivalents to hexadecimal and BCD digits are provided in the appendices for reference.

Decimal points are used in timers only. The least significant digit represents tenths of a second. All arithmetic instructions operate on integers only.

Signed and Unsigned Binary Data

This section explains signed and unsigned binary data formats. Many instructions can use either signed or unsigned data and a few (CPS(––), CPSL(––), DBS(––), DBSL(––), MBS(––), and MBSL(––)) use signed data exclusively.

Unsigned binary

Unsigned binary is the standard format used in OMRON PCs. Data in this manu-

al are unsigned unless otherwise stated. Unsigned binary values are always

positive and range from 0 ($0000) to 65,535 ($FFFF). Eight-digit values range

from 0 ($0000 0000) to 4,294,967,295 ($FFFF FFFF).

Digit value

163

162

161

160

Bit number

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

Contents

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

27

Data Area Structure

Section 3-2

Signed Binary

Signed binary data can have either a positive and negative value. The sign is

indicated by the status of bit 15. If bit 15 is OFF, the number is positive and if bit 15

is ON, the number is negative. Positive signed binary values range from 0

($0000) to 32,767 ($7FFF), and negative signed binary values range from

–32,768 ($8000) to –1 ($FFFF).

Sign indicator

163

162

161

160

Digit value

Bit number

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

Contents

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Converting Decimal to Signed Binary

Eight-digit positive values range from 0 ($0000 0000) to 2,147,483,647 ($7FFF FFFF), and eight-digit negative values range from –2,147,483,648 ($8000 0000) to –1 ($FFFF FFFF).

The following table shows the corresponding decimal, 16-bit hexadecimal, and 32-bit hexadecimal values.

Decimal

16-bit Hex

32-bit Hex

2147483647

7FFFFFFF

2147483646

7FFFFFFE

.

.

.

.

.

.

.

.

.

32768

00008000

32767

7FFF

00007FFF

32766

7FFE

00007FFE

.

.

.

.

.

.

.

.

.

2

0002

00000002

1

0001

00000001

0

0000

00000000

–1

FFFF

FFFFFFFF

–2

FFFE

FFFFFFFE

.

.

.

.

.

.

.

.

.

–32767

8001

FFFF8001

–32768

8000

FFFF8000

–32769

FFFF7FFF

.

.

.

.

.

.

.

.

.

–2147483647

80000001

–2147483648

80000000

Positive signed binary data is identical to unsigned binary data (up to 32,767) and can be converted using BIN(100). The following procedure converts negative decimal values between –32,768 and –1 to signed binary. In this example –12345 is converted to CFC7.

28

IR (Internal Relay) Area

Section 3-3

1. First take the absolute value (12345) and convert to unsigned binary:

Bit number

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

Contents

0

0

1

1

0

0

0

0

0

0

1

1

1

0

0

1

2.

Next take the complement:

Bit number

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

Contents

1

1

0

0

1

1

1

1

1

1

0

0

0

1

1

0

3.

Finally add one:

Bit number

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

Contents

1

1

0

0

1

1

1

1

1

1

0

0

0

1

1

1

Reverse the procedure to convert negative signed binary data to decimal.

3-3

IR (Internal Relay) Area

The IR area is used both as data to control I/O points, and as work bits to manipu-

late and store data internally. It is accessible both by bit and by word. In the

C200HX/HG/HE PC, the IR area is comprised of words IR 000 to IR 235 (IR

area 1) and IR 300 to IR 511 (IR area 2). Basic instructions have somewhat long-

er execution times when they access IR area 2 rather than IR area 1.

Words in the IR area that are used to control I/O points are called I/O words. Bits

in I/O words are called I/O bits. Bits in the IR area which are not assigned as I/O

bits can be used as work bits. IR area work bits are reset when power is inter-

rupted or PC operation is stopped.

Area

Range

IR Area 1

I/O Area 1

IR 000 to IR 029

Group-2 High-density I/O Unit Area 1

IR 030 to IR 049

and B7A Interface Unit Area

SYSMAC BUS and CompoBus/D Output

IR 050 to IR 099

Area

Special I/O Unit Area 1

IR 100 to IR 199

Optical I/O Unit and I/O Terminal Area

IR 200 to IR 231

Work Area

IR 232 to IR 235

IR Area 2

I/O Area 2

IR 300 to IR 309

Work Area

IR 310 to IR 329

Group-2 High-density I/O Unit Area 2

IR 330 to IR 341

Work Area

IR 342 to IR 349

CompoBus/D Input Area

IR 350 to IR 399

Special I/O Unit Area 2

IR 400 to IR 459

Work Area

IR 460 to IR 511

I/O Words

If a Unit brings inputs into the PC, the bit assigned to it is an input bit; if the Unit

sends an output from the PC, the bit is an output bit. To turn ON an output, the

output bit assigned to it must be turned ON. When an input turns ON, the input bit

assigned to it also turns ON. These facts can be used in the program to access

input status and control output status through I/O bits.

Input Bit Usage

Input bits can be used to directly input external signals to the PC and can be used

in any order in programming. Each input bit can also be used in as many instruc-

tions as required to achieve effective and proper control. They cannot be used in

29

IR (Internal Relay) Area

Section 3-3

instructions that control bit status, e.g., the OUTPUT, DIFFERENTIATION UP,

and KEEP instructions.

Output Bit Usage

Output bits are used to output program execution results and can be used in any

order in programming. Because outputs are refreshed only once during each

cycle (i.e., once each time the program is executed), any output bit can be used

in only one instruction that controls its status, including OUT, KEEP(11),

DIFU(13), DIFD(14) and SFT(10). If an output bit is used in more than one such

instruction, only the status determined by the last instruction will actually be out-

put from the PC.

See 5-15-1 Shift Register – SFT(10) for an example that uses an output bit in two

‘bit-control’ instructions.

Word Allocation for Racks I/O words are allocated to the CPU Rack and Expansion I/O Racks by slot position. One I/O word is allocated to each slot, as shown in the following table. Since each slot is allocated only one I/O word, a 3-slot rack uses only the first 3 words, a 5-slot rack uses only the first 5 words, and an 8-slot rack uses only the first 8 words. Words that are allocated to unused or nonexistent slots are available as work words.

Left side of rack

Right side of a 10-slot rack

Rack

Slot 1

Slot 2

Slot 3

Slot 4

Slot 5

Slot 6

Slot 7

Slot 8

Slot 9

Slot 10

CPU

IR 000

IR 001

IR 002

IR 003

IR 004

IR 005

IR 006

IR 007

IR 008

IR 009

1st Expansion

IR 010

IR 011

IR 012

IR 013

IR 014

IR 015

IR 016

IR 017

IR 018

IR 019

2nd Expansion

IR 020

IR 021

IR 022

IR 023

IR 024

IR 025

IR 026

IR 027

IR 028

IR 029

3rd Expansion

IR 300

IR 301

IR 302

IR 303

IR 304

IR 305

IR 306

IR 307

IR 308

IR 309

Unused Words

Allocation for Special I/O Units and Slave Racks

Any words allocated to a Unit that does not use them can be used in programming as work words and bits. Units that do not used the words assigned to the slot they are mounted to include Link Units (e.g., Host Link Units, PC Link Units, SYSMAC NET Link Units, etc.), Remote I/O Master Units, Special I/O Units, Group-2 High-density I/O Units, B7A Interface Units, and Auxiliary Power Supply Units.

In most C200HX/HG/HE PCs, up to sixteen Special I/O Units may be mounted in any slot of the CPU Rack or Expansion I/O Racks. (A limited number of Special I/O Units can be installed in Remote I/O Slave Racks, too.) Each Special I/O Unit is allocated ten words based on its unit number (0 to F).

Up to ten Special I/O Units may be mounted in the C200HE-CPUjj-E and C200HG/HX-CPU3j-E/4j-E PCs. Each Unit is allocated ten words based on its unit number (0 to 9).

Unit number

I/O words

PC Restrictions

0

IR 100 to IR 109

None

1

IR 110 to IR 119

2

IR 120 to IR 129

3

IR 130 to IR 139

4

IR 140 to IR 149

5

IR 150 to IR 159

6

IR 160 to IR 169

7

IR 170 to IR 179

8

IR 180 to IR 189

9

IR 190 to IR 199

30

IR (Internal Relay) Area

Section 3-3

Unit number

I/O words

PC Restrictions

A

IR 400 to IR 409

Not available in C200HE-CPUjj-E and

C200HG/HX-CPU3j-E/4j-E PCs.

B

IR 410 to IR 419

C

IR 420 to IR 429

D

IR 430 to IR 439

E

IR 440 to IR 449

F

IR 450 to IR 459

Note I/O words that aren’t allocated to Special I/O Units can be used as work words.

Up to five Slave Racks may be used, whether one or two Masters are used. IR area words are allocated to Slave Racks by the unit number on the Unit, as shown in the following tables.

Allocation for Optical I/O Units and I/O Terminals

Allocation for Remote I/O Master and Link Units

Bit Allocation for I/O Units

Unit number

I/O words

0

IR 050 to IR 059

1

IR 060 to IR 069

2

IR 070 to IR 079

3

IR 080 to IR 089

4

IR 090 to IR 099

The C500-RT001/002-(P)V1 Remote I/O Slave Rack may be used, but it requires 20 I/O words, not 10, and therefore occupies the I/O words allocated to 2 C200H Slave Racks, both the words allocated to the unit number set on the rack and the words allocated to the following unit number. When using a C200HX/ HG/HE CPU Unit, do not set the unit number on a C500 Slave Rack to 4, because there is no unit number 5. With the C500 Slave Rack, I/O words are allocated only to installed Units, from left to right, and not to slots as in the C200HX/ HG/HE Racks.

I/O words between IR 200 and IR 231 are allocated to Optical I/O Units and I/O Terminals by unit number. The I/O word allocated to each Unit is IR 200+n, where n is the unit number set on the Unit.

Remote Master I/O Units and Host Link Units do not use I/O words, and the PC Link Units use the LR area, so words allocated to the slots in which these Units are mounted are available as work words.

An I/O Unit may require anywhere from 8 to 16 bits, depending on the model. With most I/O Units, any bits not used for input or output are available as work bits. Transistor Output Units C200H-OD213 and C200H-OD411, as well as Triac Output Unit C200H-OA221, however, uses bit 08 for the Blown Fuse Flag. Transistor Output Unit C200H-OD214 uses bits 08 to 11 for the Alarm Flag. Bits 08 to 15 of any word allocated to these Units, therefore, cannot be used as work bits.

Bit Allocation for Interrupt Input Units

The Interrupt Input Unit uses the 8 bits of the first I/O word allocated to its slot in the CPU Rack. (An Interrupt Input Unit will operate as a normal Input Unit when installed in an Expansion I/O Rack.) The other 24 bits allocated to its slot in the CPU Rack can be used as work bits.

31

IR (Internal Relay) Area

Section 3-3

Allocation for Group-2 High-density I/O Units and B7 Interface Units

Group-2 High-density I/O Units and B7A Interface Units are allocated words between IR 030 and IR 049 according to I/O number settings made on them and do not use the words allocated to the slots in which they are mounted. For 32-point Units, each Unit is allocated two words; for 64-point Units, each Unit is allocated four words. The words allocated for each I/O number are in the following tables. Any words or parts of words not used for I/O can be used as work words or bits in programming.

32-point Units

64-point Units

I/O number

Words

I/O number

Words

0

IR 30 to IR 31

0

IR 30 to IR 33

1

IR 32 to IR 33

1

IR 32 to IR 35

2

IR 34 to IR 35

2

IR 34 to IR 37

3

IR 36 to IR 37

3

IR 36 to IR 39

4

IR 38 to IR 39

4

IR 38 to IR 41

5

IR 40 to IR 41

5

IR 40 to IR 43

6

IR 42 to IR 43

6

IR 42 to IR 45

7

IR 44 to IR 45

7

IR 44 to IR 47

8

IR 46 to IR 47

8

IR 46 to IR 49

9

IR 48 to IR 49

9

Cannot be used.

A

IR 330 to IR 331

A

IR 330 to IR 333

B

IR 332 to IR 333

B

IR 332 to IR 335

C

IR 334 to IR 335

C

IR 334 to IR 337

D

IR 336 to IR 337

D

IR 336 to IR 339

E

IR 338 to IR 339

E

IR 338 to IR 341

F

IR 340 to IR 341

F

Cannot be used.

When setting I/O numbers on the High-density I/O Units and B7A Interface Units, be sure that the settings will not cause the same words to be allocated to more than one Unit. For example, if I/O number 0 is allocated to a 64-point Unit, I/O number 1 cannot be used for any Unit in the system.

Group-2 High-density I/O Units and B7A Interface Units are not considered Special I/O Units and do not affect the limit to the number of Special I/O Units allowed in the System, regardless of the number used.

The words allocated to Group-2 High-density I/O Units correspond to the connectors on the Units as shown in the following table.

Unit

Word

Connector/row

32-point Units

m

Row A

m + 1

Row B

64-point Units

m

CN1, row A

m + 1

CN1, row B

m + 2

CN2, row A

m + 3

CN2, row B

Note 1. Group-2 High-density I/O Units and B7A Interface Units cannot be mounted to Slave Racks.

2.Refer to the Installation Guide for limitations on the number of Special I/O Units that can be mounted to Slave Racks.

32

SR (Special Relay) Area

Section 3-4

3-4 SR (Special Relay) Area

The SR area contains flags and control bits used for monitoring PC operation, accessing clock pulses, and signalling errors. SR area word addresses range from 236 through 299; bit addresses, from 23600 through 29915.

The SR areas is divided into two sections. The first section ends at SR 255 and the second section begins at SR 256. When an SR area word is used as an operand in an instruction, the operand mustn’t cross over this boundary. Basic instructions that access bits in the SR Area 2 have longer execution times.

Area

Range

SR Area 1

SR 23600 to SR 25507

SR Area 2

SR 25600 to SR 29915

The following table lists the functions of SR area flags and control bits. Most of

these bits are described in more detail following the table. Descriptions are in

order by bit number except that Link System bits are grouped together.

Unless otherwise stated, flags are OFF until the specified condition arises, when

they are turned ON. Restart bits are usually OFF, but when the user turns one

ON then OFF, the specified Link Unit will be restarted. Other control bits are OFF

until set by the user.

Not all SR words and bits are writeable by the user. Be sure to check the function

of a bit or word before attempting to use it in programming.

Word(s)

Bit(s)

Function

236

00 to 07

Node loop status output area for operating level 0 of SYSMAC NET Link System

08 to 15

Node loop status output area for operating level 1 of SYSMAC NET Link System

237

00 to 07

Completion code output area for operating level 0 following execution of

SEND(90)/RECV(98) for SYSMAC LINK/SYSMAC NET Link System or CMCR(––) for a PC

Card

08 to 15

Completion code output area for operating level 1 following execution of

SEND(90)/RECV(98) for SYSMAC LINK/SYSMAC NET Link System or CMCR(––) for a PC

Card

238 and 241

00 to 15

Data link status output area for operating level 0 of SYSMAC LINK or SYSMAC NET Link

System

242 and 245

00 to 15

Data link status output area for operating level 1 of SYSMAC LINK or SYSMAC NET Link

System

246

00 to 15

Not used

247 and 248

00 to 07

PC Link Unit Run Flags for Units 16 through 31 or data link status for operating level 1

08 to 15

PC Link Unit Error Flags for Units 16 through 31 or data link status for operating level 1

249 and 250

00 to 07

PC Link Unit Run Flags for Units 00 through 15 or data link status for operating level 0

08 to 15

PC Link Unit Error Flags for Units 00 through 15 or data link status for operating level 0

251

00

Remote I/O Error Read Bit

Writeable

01 to 02

Not used

03

Remote I/O Error Flag

04 to 06

Slave Rack number and unit number of Remote I/O Unit, Optical I/O Unit, or I/O Terminal

with error

07

Not used

08 to 15

Master’s unit number and word allocated to Remote I/O Unit, Optical I/O Unit, or I/O Terminal

with error (Hexadecimal)

33

SR (Special Relay) Area

Section 3-4

Word(s)

Bit(s)

Function

252

00

SEND(90)/RECV(98) Error Flag for operating level 0 of SYSMAC LINK or SYSMAC NET

Link System or CMCR(––) Error Flag for PC Card

01

SEND(90)/RECV(98) Enable Flag for operating level 0 of SYSMAC LINK or SYSMAC NET

Link System or CMCR(––) Enable Flag for PC Card

02

Operating Level 0 Data Link Operating Flag

03

SEND(90)/RECV(98) Error Flag for operating level 1 of SYSMAC LINK or SYSMAC NET

Link System or CMCR(––) Error Flag for PC Card

04

SEND(90)/RECV(98) Enable Flag for operating level 1 of SYSMAC LINK or SYSMAC NET

Link System or CMCR(––) Enable Flag for PC Card

05

Operating Level 1 Data Link Operating Flag

06

Rack-mounting Host Link Unit Level 1 Communications Error Flag

07

Rack-mounting Host Link Unit Level 1 Restart Bit

08

Peripheral Port Restart Bit

09

RS-232C Port Restart Bit

10

PC Setup Clear Bit

11

Forced Status Hold Bit

12

Data Retention Control Bit

13

Rack-mounting Host Link Unit Level 0 Restart Bit

14

Not used.

15

Output OFF Bit

253

00 to 07

FAL number output area (see error information provided elsewhere)

08

Low Battery Flag

09

Cycle Time Error Flag

10

I/O Verification Error Flag

11

Rack-mounting Host Link Unit Level 0 Communications Error Flag

12

Remote I/O Error Flag

13

Always ON Flag

14

Always OFF Flag

15

First Cycle Flag

254

00

1-minute clock pulse bit

01

0.02-second clock pulse bit

02

Negative (N) Flag

03

MTR Execution Flag

04

Overflow Flag (for signed binary calculations)

05

Underflow Flag (for signed binary calculations)

06

Differential Monitor End Flag

07

Step Flag

08

HKY Execution Flag

09

7SEG Execution Flag

10

DSW Execution Flag

11

Interrupt Input Unit Error Flag

12

Reserved by system (not accessible by user)

13

Interrupt Program Error Flag

14

Group-2 Error Flag

15

Special Unit Error Flag (includes Special I/O, PC Link, Host Link, Remote I/O Master Units)

34

SR (Special Relay) Area

Section 3-4

Word(s)

Bit(s)

Function

255

00

0.1-second clock pulse bit

01

0.2-second clock pulse bit

02

1.0-second clock pulse bit

03

Instruction Execution Error (ER) Flag

These flags are turned OFF when the END(01)

instruction is executed, so their status can’t be

04

Carry (CY) Flag

monitored from a Programming Console.

05

Greater Than (GR) Flag

Refer to Appendix C for a table showing which

06

Equals (EQ) Flag

instructions affect these flags.

07

Less Than (LE) Flag

08 to 15

Reserved by system (used for TR bits)

256 to 261

00 to 15

Reserved by system

262

00 to 15

Longest interrupt subroutine (action) execution time (0.1-ms units)

263

00 to 15

Number of interrupt subroutine (action) with longest execution time. (8000 to 8255)

(Bit 15 is the Interrupt Flag)

264

00 to 03

RS-232C Port Error Code

0: No error

1: Parity error

2: Framing error

3: Overrun error

04

RS-232C Port Communications Error

05

RS-232C Port Send Ready Flag

06

RS-232C Port Reception Completed Flag

07

RS-232C Port Reception Overflow Flag

08 to 11

Peripheral Port Error Code in General I/O Mode

0: No error

1: Parity error

2: Framing error

3: Overrun error

12

Peripheral Port Communications Error in General I/O Mode

13

Peripheral Port Send Ready Flag in in General I/O Mode

14

Peripheral Port Reception Completed Flag in General I/O Mode

15

Peripheral Port Reception Overflow Flag in General I/O Mode

265

00 to 15

NT Link (1:N) Mode

Bits 00 to 07: Communicating with PT Flags for Units 0 to 7

Bits 08 to 15: Registering PT Priority Flags for Units 0 to 7

RS-232C Mode

Bits 00 to 15: RS-232C Port Reception Counter

266

00 to 15

Peripheral Reception Counter in RS-232C Mode

267

00 to 04

Reserved by system (not accessible by user)

05

Host Link Level 0 Send Ready Flag

06 to 12

Reserved by system (not accessible by user)

13

Host Link Level 1 Send Ready Flag

14 to 15

Reserved by system (not accessible by user)

268

00 to 15

Communications Board Error Information

269

00 to 07

Memory Cassette Contents 00: Nothing; 01: UM; 02: IOM; 03: HIS

08 to 10

Memory Cassette Capacity

0: 0 KW (no cassette); 2: 4 or 8 KW; 3: 16 KW; 4: 32 KW

11 to 13

Reserved by system (not accessible by user)

14

EEPROM Memory Cassette Protected or EPROM Memory Cassette Mounted Flag

15

Memory Cassette Flag

35

SR (Special Relay) Area

Section 3-4

Word(s)

Bit(s)

Function

270

00

Save UM to Cassette Bit

Data transferred when the Bit is turned ON in

PROGRAM mode. Bit will automatically turn OFF.

01

Load UM from Cassette Bit

A non-fatal error will occur if these bits are turned

ON in RUN or MONITOR modes.

02

Compare UM to Cassette Bit

03

Comparison Results

0: Contents identical; 1: Contents differ or comparison not possible

04 to 10

Reserved by system (not accessible by user)

11

Transfer Error Flag: Transferring

Data will not be transferred from UM to the Memory

SYSMAC NET data link table on UM

Cassette if an error occurs (except for Board

during active data link.

Checksum Error). Detailed information on checksum

errors occurring in the Memory Cassette will not be

12

Transfer Error Flag: Not PROGRAM

output to SR 272 because the information is not

mode

needed. Repeat the transmission if SR 27015 is ON.

13

Transfer Error Flag: Read Only

14

Transfer Error Flag: Insufficient

Capacity or No UM

15

Transfer Error Flag: Board Checksum

Error

271

00 to 07

Ladder program size stored in Memory Cassette

Ladder-only File: 04: 4 KW; 08: 8 KW; 12: 12 KW; … (32: 32 KW)

00: No ladder program or a file other than a ladder program has been stored.

08 to 15

Ladder program size and type in CPU Unit (Specifications are the same as for bits 00 to 07.)

272

00 to 10

Reserved by system (not accessible by user)

11

Memory Error Flag: PC Setup Checksum Error

12

Memory Error Flag: Ladder Checksum Error

13

Memory Error Flag: Instruction Change Vector Area Checksum Error

14

Memory Error Flag: Memory Cassette Online Disconnection

15

Memory Error Flag: Autoboot Error

273

00

Save IOM to Cassette Bit

Data transferred to Memory Cassette when Bit is

turned ON in PROGRAM mode. Bit will automatically

01

Load IOM from Cassette Bit

turn OFF. An error will be produced if turned ON in

any other mode.

02

Set this bit to 0.

03 to 07

Reserved by system (not accessible by user)

08 to 11

Contains the EM bank number when the Memory Cassette contains IOM data.

12

Transfer Error Flag: Not PROGRAM

Data will not be transferred from IOM to the Memory

mode

Cassette if an error occurs (except for Read Only

Error).

13

Transfer Error Flag: Read Only

14

Transfer Error Flag: Insufficient

Capacity or No IOM

15

Always 0.

36

SR (Special Relay) Area

Section 3-4

Word(s)

Bit(s)

Function

274

00

Special I/O Unit #0 Restart Flag

These flags will turn ON during restart processing.

These flags will not turn ON for Units on Slave

01

Special I/O Unit #1 Restart Flag

Racks.

02

Special I/O Unit #2 Restart Flag

03

Special I/O Unit #3 Restart Flag

04

Special I/O Unit #4 Restart Flag

05

Special I/O Unit #5 Restart Flag

06

Special I/O Unit #6 Restart Flag

07

Special I/O Unit #7 Restart Flag

08

Special I/O Unit #8 Restart Flag

09

Special I/O Unit #9 Restart Flag

10

Special I/O Unit #A Restart Flag

11

Special I/O Unit #B Restart Flag

12

Special I/O Unit #C Restart Flag

13

Special I/O Unit #D Restart Flag

14

Special I/O Unit #E Restart Flag

15

Special I/O Unit #F Restart Flag

275

00

PC Setup Error (DM 6600 to DM 6605)

01

PC Setup Error (DM 6613 to DM 6623)

02

PC Setup Error (DM 6645 to DM 6655)

03

Reserved by system (not accessible by user)

04

Changing RS-232C Setup Flag

05

Reserved by system (not accessible by user)

06 to 07

Reserved by system (not accessible by user)

08 to 15

Reserved by system (not accessible by user)

276

00 to 07

Minutes (00 to 59)

Indicates the current time in BCD.

08 to 15

Hours (00 to 23)

277 to 279

00 to 15

Used for keyboard mapping. See page 412.

280

00 to 15

Group-2 High-density I/O Unit Error Flags for Units 0 to F

(AR 0205 to AR 0214 also function as Error Flags for Units 0 to 9.)

281

00 to 15

Special I/O Unit Restart Bits for Units 0 to F

(Units 0 to 9 can also be restarted with Special I/O Unit Restart Bits AR 0100 to AR 0109.)

To restart a Special I/O Unit, either use for force-set/reset operation to turn the Restart Bit ON

and OFF, or turn OFF the power and then turn it ON again.

Follow the same procedure as above for starting PC Link Units.

282

00 to 15

Special I/O Unit Error Flags for Units 0 to F

(AR 0000 to AR 0009 also function as Error Flags for Units 0 to 9.)

283 to 286

00 to 15

Communications Board monitoring area

287 to 288

00 to 15

Communications Board interrupt data area

289

00 to 07

Communications Board general monitoring area

08

Communications Board Port A Instruction Execution Flag

09 to 10

Used by Communications Board Port A instructions

11

Communications Board Port A Instruction Abort Bit

12

Communications Board Port B Instruction Execution Flag

13 to 14

Used by Communications Board Port B instructions

15

Communications Board Port B Instruction Abort Bit

290 to 293

00 to 15

Macro Area inputs.

294 to 297

00 to 15

Macro Area outputs.

298 to 299

00 to 15

Reserved by system (not accessible by user)

37

SR (Special Relay) Area

Section 3-4

3-4-1 SYSMAC NET/SYSMAC LINK System

Loop Status

SR 236 provides the local node loop status for SYSMAC NET Systems, as

shown below.

Bit in SR 236

Level 0

07

06

05

04

03

02

01

00

Level 1

15

14

13

12

11

10

09

08

Status/

1

1

Central Power Supply

1

Loop Status

Reception Status

1

Meaning

0: Connected

11: Normal loop

0: Reception enabled

1: Not connected

10: Downstream backloop

1: Reception disabled

01: Upstream backloop

00: Loop error

Completion Codes

SR 23700 to SR23707 provide the SEND/RECV completion code for operating

level 0 and SR 23708 to SR 23215 provide the SEND/RECV completion code for

operating level 1. The completion codes are as given in the following tables.

SYSMAC LINK

Code

Item

Meaning

00

Normal end

Processing ended normally.

01

Parameter error

Parameters for network communication instruction is

not within acceptable ranges.

02

Unable to send

Unit reset during command processing or local node

in not in network.

03

Destination not in

Destination node is not in network.

network

04

Busy error

The destination node is processing data and cannot

receive the command.

05

Response timeout

The response monitoring time was exceeded.

06

Response error

There was an error in the response received from

the destination node.

07

Communications

An error occurred in the communications controller.

controller error

08

Setting error

There is an error in the node address settings.

09

PC error

An error occurred in the CPU Unit of the destination

node.

SYSMAC NET

Code

Item

Meaning

00

Normal end

Processing ended normally.

01

Parameter error

Parameters for network communication instruction is

not within acceptable ranges.

02

Routing error

There is a mistake in the routing tables for

connection to a remote network.

03

Busy error

The destination node is processing data and cannot

receive the command.

04

Send error (token

The token was not received from the Line Server.

lost)

05

Loop error

An error occurred in the communications loop.

06

No response

The destination node does not exist or the response

monitoring time was exceeded.

07

Response error

There is an error in the response format.

38

Loading…

Понравилась статья? Поделить с друзьями:
  • Спец мелирование капус инструкция по применению
  • Тата 613 руководство по ремонту
  • Лазолван сироп от кашля для детей инструкция отзывы
  • Линекс форте инструкция по применению взрослым капсулах до еды или
  • Сабельник чай инструкция по применению цена