Omron CP1H CPU Operation Manual
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Cat. No. W450-E1-06
SYSMAC CP Series
CP1H-X40D_-_
CP1H-XA40D_-_
CP1H-Y20DT-D
CP1H CPU Unit
OPERATION MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Omron CP1H CPU

  • Page 1 Cat. No. W450-E1-06 SYSMAC CP Series CP1H-X40D_-_ CP1H-XA40D_-_ CP1H-Y20DT-D CP1H CPU Unit OPERATION MANUAL...
  • Page 3 CP1H-X40D@-@ CP1H-XA40D@-@ CP1H-Y20DT-D CP1H CPU Unit Operation Manual Revised March 2009...
  • Page 5  OMRON, 2005 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.
  • Page 6 Unit upgrades. Notation of Unit Versions The unit version is given to the right of the lot number on the nameplate of the on Products products for which unit versions are being managed, as shown below.
  • Page 7 Unit version Use the above display to confirm the unit version of the CPU Unit. Unit Manufacturing Information In the IO Table Window, right-click and select Unit Manufacturing informa- tion - CPU Unit. The following Unit Manufacturing information Dialog Box will be displayed.
  • Page 8 U n i t s . P l a c e t h e a p p r o p r i a t e l a b e l...
  • Page 9 Functions Supported by Unit Version for CP-series CPU Units Functions Supported by Functionality is the same as that for CS/CJ-series CPU Units with unit version Unit Version 1.0 and 1.1 3.0. The functionality added for CS/CJ-series CPU Unit unit version 4.0 is not supported.
  • Page 11: Table Of Contents

    Built-in Analog I/O Area (XA CPU Units Only) ....... . .
  • Page 12 Serial Communications ........... . . Analog Adjuster and External Analog Setting Input.......
  • Page 13 SECTION 8 LCD Option Board ....... . . 457 Features ..............
  • Page 14 Appendices.........
  • Page 15: About This Manual

    The CP Series is centered around the CP1H CPU Units and is designed with the same basic architec- ture as the CS and CJ Series. The Special I/O Units and CPU Bus Units of the CJ Series can thus be used.
  • Page 16 Section 4 describes the structure and functions of the I/O Memory Areas and Parameter Areas. Section 5 describes the CP1H’s interrupt and high-speed counter functions. Section 6 describes all of the advanced functions of the CP1H that can be used to achieve specific application needs.
  • Page 17: Related Manuals

    Related Manuals The following manuals are used for the CP-series CPU Units. Refer to these manuals as required. Cat. No. Model numbers Manual name Description W450 CP1H-X40D@-@ SYSMAC CP Series Provides the following information on the CP Series: CP1H-XA40D@-@ CP1H CPU Unit •...
  • Page 18 xviii...
  • Page 19 WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY. In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted. IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS...
  • Page 20 The following are some examples of applications for which particular attention must be given. This is not intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses listed may be suitable for the products: •...
  • Page 21 PERFORMANCE DATA Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual application requirements.
  • Page 22 xxii...
  • Page 23: Precautions

    Conformance to EC Directives ........
  • Page 24: Intended Audience

    !WARNING It is extremely important that a PLC and all PLC Units be used for the speci- fied 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 PLC System to the above-mentioned appli- cations.
  • Page 25 As a countermeasure for such errors, external safety measures must be provided to ensure safety in the system. • The PLC or outputs may remain ON or OFF due to deposits on or burning of the output relays, or destruction of the output transistors. As a counter- measure for such problems, external safety measures must be provided to ensure safety in the system.
  • Page 26: Operating Environment Precautions

    !Caution When connecting the PLC to a computer or other peripheral device, either ground the 0 V side of the external power supply or do not ground the external power supply at all. Otherwise the external power supply may be shorted depending on the connection methods of the peripheral device.
  • Page 27: Application Precautions

    • Locations subject to possible exposure to radioactivity. • Locations close to power supplies. !Caution The operating environment of the PLC System can have a large effect on the longevity and reliability of the system. Improper operating environments can lead to malfunction, failure, and other unforeseeable problems with the PLC System.
  • Page 28 Doing either of these may break the cables. • Do not place objects on top of the cables. Doing so may break the cables. • When replacing parts, be sure to confirm that the rating of a new part is correct.
  • Page 29 • Wire correctly according to specified procedures. • Do not connect pin 6 (+5V) on the RS-232C Option Board on the CPU Unit to any external device other than the NT-AL001 or CJ1W-CIF11 Con- version Adapter. The external device and the CPU Unit may be damaged.
  • Page 30: Conformance To Ec Directives

    • If the I/O Hold Bit is turned ON, the outputs from the PLC will not be turned OFF and will maintain their previous status when the PLC is switched from RUN or MONITOR mode to PROGRAM mode.
  • Page 31: Conformance To Ec Directives

    The CP1H PLCs conforms to the Common Emission Standards (EN61131-2) of the EMC Directives. However, noise generated by relay output switching may not satisfy these Standards. In such a case, a noise filter must be con- nected to the load side or other appropriate countermeasures must be pro- vided external to the PLC.
  • Page 32 100 to 200 V, insert the varistor between the con- tacts. When switching a load with a high inrush current such as an incandescent lamp, suppress the inrush current as shown below. Countermeasure 1 Countermeasure 2...
  • Page 33: Conditions For Meeting Emc Directives When Using Cp-Series Relay Expansion I/O Units

    Minimum impedance: 90 Ω at 25 MHz, 160 Ω at 100 MHz Recommended Connection Method 1,2,3... 1. Cable Connection Method 2. Connection Method As shown below, connect a ferrite core to each end of the CP1W-CN811 I/O Connecting Cable. SYSMAC CP1H AC100-240V...
  • Page 34 Conformance to EC Directives xxxiv...
  • Page 35: Features And System Configuration

    System Expansion........
  • Page 36: Features And Main Functions

    The SYSMAC CP1H is an advanced high-speed, package-type Programma- ble Controller. While the CP1H employs the same architecture as the CS/CJ Series and provides the same I/O capacity of 40 I/O points as the CPM2A, the CP1H is approximately ten times faster.
  • Page 37 • The CPU Unit has 4 analog voltage/current inputs and 2 analog voltage/ current outputs built in. • The CP1H can be expanded to a maximum total of 320 I/O points by using CP-series Expansion I/O Units. • Using CP-series Expansion Units also allows extra functions (such as temperature sensor inputs) to be added.
  • Page 38 Features and Main Functions Section 1-1 CPU Unit with In place of the X CPU Units' more numerous built-in I/O points, the Y CPU Dedicated Pulse I/O Unit provides dedicated pulse I/O terminals (1 MHz). Terminals: Y 12 built-in inputs (Functions Pulse inputs can be assigned.) (See note.)
  • Page 39 500 kHz (differ- ential phases) Pulse out- Built-in I/O termi- Unit version 1.0 and earlier: 2 axes; 100 kHz, 2 axes, 30 kHz 2 axes, 100 kHz puts nal allocation Unit version 1.1 and later: 4 axes, 100 kHz...
  • Page 40: Features

    RS-422A/485 Option Board Board Faster Processing • Top-class performance has been achieved in a micro PLC, with an Speed (All Models) instruction processing speed equivalent to the CJ1M. • Approximately 500 instructions are processed at high speed. • Program creation and control are simplified by using function blocks (FB)
  • Page 41 (Functions can be assigned.) High-speed counter (4 axes) 100 kHz (single phase) Note Settings in the PLC Setup determine whether each input point is to be used as a normal input, interrupt input, quick-response input, or high-speed counter. • Y CPU Units...
  • Page 42 CPU Unit's built-in out- puts. Four axes (X,Y, Z, and θ) can be controlled. A 1-MHz speed pulse rate is also possible for Y CPU Units. • X and XA CPU Units Pulse outputs for 4 axes at 100 kHz maximum are provided as standard features.
  • Page 43 PLS2 instruction. Positioning Changes during Speed Control (Interrupt Feeding) While speed control in continuous mode is in effect, it is possible to change to positioning in independent mode by executing a PULSE OUTPUT (PLS2) instruction. By this means, interrupt feeding (moving a specified amount) can...
  • Page 44 By using quick-response inputs, built-in inputs up to a minimum input signal width of 30 µs can be read regardless of the cycle time. Inputs (All Models) The maximum number of points is 8 for X and XA CPU Units and 6 for Y CPU Units. (See note.) Note For each input, a PLC Setup parameter determines whether it is to be used as a normal input, interrupt input, quick-response input, or high-speed counter.
  • Page 45 By adjusting the analog adjuster with a Phillips screwdriver, the value in the Analog Adjustment Auxiliary Area can be changed to any value between 0 and 255. This makes it easy to change set values such as timers and counters without Programming Devices.
  • Page 46 A maximum of two Serial Communications Boards each with one RS-232C Two Serial Ports (All port or one RS-422A/485 port can be added. With a total of up to three ports, Models) including the USB port, this makes it possible to simultaneously connect a computer, PT, CP1H, and/or various components, such as an Inverter, Tem- perature Controller, or Smart Sensor.
  • Page 47 Modbus-RTU Inverter (2) By using the serial PLC Links (available for all models), a maximum of 10 words of data per CPU Unit can be shared independently of the program among a maximum of nine CPU Units (CP1H-CP1H-CJ1M) using RS- 422A/485 Option Boards.
  • Page 48 ON. This allows programs and initial values (such as recipe setup data) in the DM Area to be saved in the CPU Unit without the need to maintain a backup bat- tery.
  • Page 49: System Configuration

    A maximum of two CJ-series Special I/O Units or CPU Bus Units can be con- for CJ-series Special nected via a CJ Unit Adapter. It is also possible to connect to upper level and lower level networks, and to expand the system by using analog I/O.
  • Page 50: Optional Products

    Option units supported OMRON FINS/TCP, Board FINS/UDP protocol. Serial When serial communications are required for a CP1H CPU Unit, an RS-232C Communications or RS-422A/485 Option Board can be added. Expansion This enables connection by serial communications to NS-series PTs, Bar Code Readers, components such as Inverters, and computers without USB ports (such as when using the CX-Programmer).
  • Page 51: System Expansion

    POWER PERIPHERAL ERR/ALM CP1W-CN811 BKUP I/O Connecting Cable MEMORY 100CH 101CH Up to seven Units can be added, and the maximum number of I/O points per Unit is 40, so the maximum total number of expansion I/O points is 280.
  • Page 52 CPM1A-20EDT CP1W-20EDT1 8 transistor outputs (sourcing) 00 01 02 03 04 05 06 07 08 09 10 11 CPM1A-20EDT1 00 01 02 03 04 05 06 07 CP1W-16ER None 16 relay outputs 280 g max. CPM1A-16ER CP1W-16ET 16 transistor outputs (sinking) 225 g max.
  • Page 53 Pt100, JPt100 CP1W-TS102 4 inputs CPM1A-TS102 DeviceNet I/O CPM1A-DRT21 As a DeviceNet Slave, 32 inputs and 32 out- 200 g max. Link Unit puts are allocated. CompoBus/S CP1W-SRT21 As a CompoBus/S slave, 8 inputs and 8 out- 200 g max.
  • Page 54 Section 1-2 System Configuration Number of Allocated Words and Current Consumption for Expansion Units and Expansion I/O Units Unit name Model I/O words Current Input Output 5 VDC 24 VDC Expansion I/O Units 40 I/O points CP1W-40EDR 0.080 A 0.090 A...
  • Page 55: System Expansion With Cj-Series Units

    1-2-3 System Expansion with CJ-series Units A maximum of two CJ-series Special I/O Units or CPU Bus Units can be con- nected. In order to connect them, a CP1W-EXT01 CJ Unit Adapter and a CJ1W-TER01 End Cover are required. These Units make it possible to add serial communication functions, such as network communications or protocol macros.
  • Page 56 Expansion I/O Units and CJ-series Units As shown in the diagram below, use a DIN Track to mount the CP1H CPU Unit and CJ-series Units, and use CP1W-CN811 I/O Connecting Cable to connect the Expansion Units or Expansion I/O Units.
  • Page 57: Restrictions On System Configuration

    Units, Expansion I/O Units, and CJ-series Units must be no more than 2 A for 5 V and 1 A for 24 V and the total power consumption must be no more than 30 W. For CPU Units with AC power supply, the current consumption from external 24-VDC power supply output must be included.
  • Page 58 Units with DC Power and Transistor Outputs (CP1H-X40DT(1)-D, CP1H- XA40DT(1)-D, and CP1H-Y40DT(1)-D), use a power supply voltage of 24 VDC ±10% if connecting more than three Expansion I/O Units or if the ambient temperature is greater than 45°C. Mounting Restriction...
  • Page 59: Connecting Programming Devices

    CP-series Programmable Controllers. (See note.) Note A Programming Console cannot be used with CP-series Program- mable Controllers. Devices can be connected to the USB port or to a serial port. 1-3-1 Connecting to a USB Port Connect the computer running the CX-One Support Software (e.g., the CX- Programmer) using commercially available USB cable to a standard periph- eral USB port.
  • Page 60 Windows XP and Windows 2000. Windows XP Turn ON the power supply to the CP1H, and connect USB cable between the USB port of the computer and the peripheral USB port of the CP1H. After the cable has been connected, the computer will automatically recognize the device and the following message will be displayed.
  • Page 61 Connecting Programming Devices Section 1-3 2. The following window will be displayed. Select the Install from a list of spe- cific location Option and then click the Next Button. 3. The following window will be displayed. Click the Browse Button for the In- clude this location in the search Field, specify C:\Program Files\ OMRON\CX-Server\USB\win2000_XP\Inf, and then click the Next Button.
  • Page 62 Section 1-3 Connecting Programming Devices 4. Ignore the following window if it is displayed and click the Continue Any- way Button. 5. The following window will be displayed if the installation is completed nor- mally. Click the Finish Button. Windows 2000 Turn ON the power supply to the CP1H, and connect USB cable between the USB port of the computer and the peripheral USB port of the CP1H.
  • Page 63 Section 1-3 Connecting Programming Devices 1,2,3... 1. The following message will be displayed. Click the Next Button. 2. The following window will be displayed.
  • Page 64 Section 1-3 Connecting Programming Devices 3. Select the Search for a suitable driver for the device (recommended) Op- tion and then click the Next Button. The following window will be displayed. From the list in the window, select the Specify location Checkbox and then click the Next Button.
  • Page 65 Section 1-3 Connecting Programming Devices 5. A search will be made for the driver and the following window will be dis- played. Click the Next Button. The driver will be installed. 6. After the driver has been successfully installed, the following window will...
  • Page 66 Connection Setup Using the CX-Programmer 1,2,3... 1. Select CP1H as the device type in the Change PLC Dialog Box and con- firm that USB is displayed in the Network Type Field. 2. Click the OK Button to finish setting the PLC model. Then connect to the...
  • Page 67 If the USB driver installation fails for some reason or is cancelled in progress, Driver the USB driver must be reinstalled. Checking USB Driver Status 1,2,3... 1. Display the Device Manager on the computer. 2. If USB Device is displayed for Other devices, it means that the USB driver installation has failed.
  • Page 68: Connecting To A Serial Port

    Support Software. • Windows 98: If the USB cable is disconnected while online, an error message may be displayed on a blue screen. If that occurs, it will be necessary to re- boot the computer. 1-3-2...
  • Page 69 7 bits, even parity, and 2 stop bits. Note When a Serial Communications Option Board is mounted in Option Board Slot 1, it is called “Serial Port 1.” When mounted in Option Board Slot 2, it is called “Serial Port 2.”...
  • Page 70: Function Charts

    Analog inputs 4 inputs (XA models only) 0 to 5 V, 1 to 5 V, 0 to 10 V, −10 to 10 V, 4 to 20 mA, 0 to 20 mA Resolution: 1/6,000 or 1/12,000 Conversion time: 1 ms/input Analog outputs 2 outputs 0 to 5 V, 1 to 5 V, 0 to 10 V, −10 to 10 V, 4 to 20 mA, 0 to 20 mA...
  • Page 71: Cpu Units

    CIO 0 and 1, bits 00 to 03: Used as origin search-related inputs. • Origin inputs: CIO 0, bits 02 to 03 (line driver); CIO 1, bits 02 to 03 (open collector); CIO 1 (bits 00 to 01) • Origin proximity inputs: Word 0, bits 00/01; word 1, bits 04/05 Origin return Execute the ORG instruction to move from any position to the origin.
  • Page 72 Units CPM1A-MAD11 Analog I/O Unit (Resolution: 1/6,000) • Two analog inputs: 0 to 5 V, 1 to 5 V, 0 to 10 V, −10 to +10 V, 0 to 20 mA, or 4 to 20 mA • One analog output: 1 to 5 V, 0 to 10 V, −10 to +10 V,...
  • Page 73: Function Blocks

    Function blocks allow complex programming units to be reused easily. Once standard program sections have been created as function blocks and saved in files, they can be reused just by placing a function block in a program and set- ting the parameters for the function block's I/O. Reusing standardized function blocks reduces the time required for programming/debugging, reduces coding errors, and makes programs easier to understand.
  • Page 74 The I/O operands are displayed as local variable names in the program, so Design the program is like a “black box” when entering or reading the program and no extra time is wasted trying to understand the internal algorithm. Different Processes Easily...
  • Page 75: Nomenclature And Specifications

    I/O Memory Details ........
  • Page 76: Part Names And Functions

    BKUP PRPHL POWER Power is ON. (Green) Not lit Power is OFF. The CP1H is executing a program in either RUN or (Green) MONITOR mode. Not lit Operation is stopped in PROGRAM mode or due to a fatal error. ERR/ALM...
  • Page 77 By applying 0 to 10 V of external voltage, it is possible to adjust the value of A643 within a range of 0 to 256. This input is not isolated. (Refer to 6- 2 Analog Adjuster and External Analog Setting Input.)
  • Page 78 While setting this switch, be very careful not to damage the wiring on the PCB. (10) Memory Cassette Slot Used for mounting a CP1W-ME05M Memory Cassette. When mounting a Memory Cassette, remove the dummy cassette.
  • Page 79 Input terminals Used to connect input devices. (12) Option Board Slots The following Option Boards can be mounted in either slot 1 or slot 2. • CP1W-CIF01 RS-232C Option Board • CP1W-CIF11/CIF12 RS-422A/485 Option Board • CP1W-DAM01 LCD Option Board •...
  • Page 80: Cp1W-Cif01 Rs-232C Option Boards

    Units or CPU Bus Units can be connected 2-1-2 CP1W-CIF01 RS-232C Option Boards RS-232C Option Boards can be mounted to Option Board slots 1 or 2 on the CPU Unit. When mounting an Option Board, first remove the slot cover. Grasp both of the cover's up/down lock levers at the same time to unlock the cover, and then pull the cover out.
  • Page 81: Cp1W-Cif11/Cif12 Rs-422A/485 Option Boards

    CPU Unit. When mounting an Option Board, first remove the slot cover. Grasp both of the cover's up/down lock levers at the same time to unlock the cover, and then pull the cover out. Then to mount the Option Board, check the alignment and firmly press it in until it snaps into place.
  • Page 82: Specifications

    (2) To disable the echo-back function, set pin 5 to ON (RS control enabled). (3) When connecting to a device on the N side in a 1: N connection with the 4-wire method, set pin 6 to ON (RS control enabled).
  • Page 83 10 to 57 Hz, 0.075-mm amplitude, 57 to 150 Hz, acceleration: 9.8 m/s in X, Y, and Z directions for 80 minutes each (time coefficient of 8 minutes × coefficient factor of 10 = total time of 80 minutes) Shock resistance...
  • Page 84 Expansion I/O Unit × 7 Units) Expansion I/O Unit × 7 Units) Number of connectable CJ-series 2 Units Units (CPU Bus Units or Special I/O Units only. Basic I/O Units cannot be used. A CP1W- EXT01CJ Unit Adapter is required.) Built-in Normal I/O 40 terminals...
  • Page 85 2-digit 7-segment LED display (red) • At startup: The Unit version is displayed. • When a CPU Unit error occurs: The error code and error details are displayed in order (fatal error, non-fatal error). • When a special instruction is executed: The DISPLAY 7-SEGMENT LED WORD...
  • Page 86: I/O Memory Details

    15,360 bits (960 words): CIO 2000.00 to CIO 2959.15 (words CIO 2000 to CIO 2959) I/O Unit Area Serial PLC Link Area 1,440 bits (90 words): CIO 3100.00 to CIO 3189.15 (words CIO 3100 to CIO 3189) DeviceNet Area 9,600 bits (600 words): CIO 3200.00 to CIO 3799.15 (words CIO 3200 to CIO 3799) Work bits 4,800 bits (300 words): CIO 1200.00 to CIO 1499.15 (words CIO 1200 to CIO 1499)
  • Page 87: I/O Specifications For Xa And X Cpu Units

    DM Area 32 Kwords: D0 to D32767 Note Initial data can be transferred to the CPU Unit's built-in flash memory using the data memory initial data transfer function. A setting in the PLC Setup can be used so that the data in flash memory is transferred to RAM at startup.
  • Page 88 Section 2-2 Specifications Setting Input Functions in Functions for the normal input terminals in the built-in inputs can be individu- the PLC Setup ally allocated by making selections in the PLC Setup. Input Input operation High-speed counter Origin search function...
  • Page 89: Input Specifications

    Input bits: CIO 1.04 to CIO 1.11 Input LED Internal 4.7 kΩ circuits Inputs CIO 0.00 to CIO 0.11 and CIO 1.00 to CIO 1.11 can be used not only as normal inputs but also as high-speed counter, interrupt, or quick-response inputs.
  • Page 90 Up/down input mode Differential phase mode 20.0 µs min. 10.0 µs min. 2.5 µs 2.5 µs min. min. Input bits: CIO 0.00 to CIO 0.03 and CIO 1.00 to CIO 1.03 : 2.5 µs min. 50 µs 50 µs min. min.
  • Page 91 Section 2-2 Specifications Interrupt Inputs and Input bits CIO 0.00 to CIO 0.03 and CIO 1.00 to CIO 1.03 can be used not Quick-response Inputs only as normal inputs but also as interrupt or quick-response inputs depend- ing on the settings in the PLC Setup.
  • Page 92: Output Specifications

    Internal circuits Maximum 250 VAC: 2 A 24 VDC: 2 A Under the worst conditions, the service life of output contacts is as shown above. The service life of relays is as shown in the following diagram as a guideline.
  • Page 93 CIO 101.02 to CIO 101.01 CIO 101.07 Max. switching capac- 4.5 to 30 VDC, 300 mA/output, 0.9 A/common, 3.6 A/Unit (See notes 2 and 3.) Min. switching capacity 4.5 to 30 VDC, 1 mA Leakage current 0.1 mA max. Residual voltage 0.6 V max.
  • Page 94 Common terminal current (A) Ambient temperature (°C) !Caution Do not connect a load to an output terminal or apply a voltage in excess of the maximum switching capacity. Pulse Outputs (CIO 100.00 to CIO 100.07) Item Specification Max.
  • Page 95: Built-In Analog I/O Specifications (Xa Cpu Units Only)

    Section 2-2 Specifications Note (1) The load for the above values is assumed to be the resistance load, and does not take into account the impedance for the connecting cable to the load. (2) Due to distortions in pulse waveforms resulting from connecting cable im- pedance, the pulse widths in actual operation may be smaller than the values shown above.
  • Page 96 4 inputs (4 words allocated) Input Sec- inputs tion 0 to 5 V, 1 to 5 V, 0 to 10 V, or −10 to 10 V Input signal 0 to 20 mA or 4 to 20 mA range Max. rated input ±15 V ±30 mA...
  • Page 97: I/O Specifications For Y Cpu Units

    CIO 0 CIO 1 Normal input terminals Setting Input Functions in Functions for the normal input terminals in the built-in inputs can be individu- the PLC Setup ally allocated by making selections in the PLC Setup. Note High-speed counter terminals are line -river inputs, so they cannot be used as normal inputs.
  • Page 98 Normal input Pulse 0 origin proxim- ity input signal Note Set using the MSKS instruction in direct mode or counter mode. Input Specifications Special High-speed Counter Inputs Item High-speed counter inputs, phase A and High-speed counter inputs, phase Z...
  • Page 99 B0+/B0− B-phase pulse Direction input Decrement Normal input B1+/B1− input pulse input Z0+/Z0− Z-phase pulse input or hardware reset input (Can be used as ordi- Z1+/Z1− nary inputs when high-speed counter is not being used.)
  • Page 100 50 µs min. min. Interrupt Inputs and The following inputs can be used not only as normal inputs but also as inter- Quick-response Inputs rupt or quick-response inputs depending on the settings in the PLC Setup. Input bit Interrupt inputs Quick-response inputs CIO 0.00...
  • Page 101 CIO 101 terminals Normal output terminals Setting Output Functions Pulses can be output from the normal output terminals in the built-in outputs by Instructions and PLC by executing pulse output instructions. Setup To use the ORIGIN SEARCH (ORG) instruction, all of the pulse output set- tings in the PLC Setup must be set.
  • Page 102 Circuit configuration CWn+ CWn− CCWn+ CCWn− !Caution Connect a load of 20 mA or less to the output load. Connecting a load exceeding 20 mA may cause the Unit to malfunction. Normal Outputs Item Specification CIO 100.04 to CIO 100.07 CIO 101.00 and...
  • Page 103 Common terminal current (A) Ambient temperature (°C) !Caution Do not connect a load to an output terminal or apply a voltage in excess of the maximum switching capacity. Pulse Outputs (CIO 100.04 to CIO 100.07) Item Specification Max.
  • Page 104: Cp-Series Expansion I/O Unit I/O Specifications

    CO M Note (1) This setting can be changed to 0, 0.5, 1/2, 4, 8, 16, or 32 ms in the PLC Setup. For the CPM1A-40EDR/EDT/EDT1, it is fixed at 16 ms. (2) Do not apply voltage in excess of the rated voltage to the input terminal...
  • Page 105 Section 2-2 Note (1)Under the worst conditions, the service life of output contacts is as shown above. The service life of relays is as shown in the following diagram as a guideline. 120 VAC resistive load 24 VDC τ = 7 ms 120 VAC cosφ...
  • Page 106 ■ Output Load Current and Ambient Temperature (CPM1A-16ER/CP1W-32ER/16ER) With the CPM1A-16ER/CP1W-32ER/16ER, the load current is restricted depending on the ambient temperature. Design the system considering the load current based on the following graph. Ambient temperature (°C) Transistor Output (Sinking or Sourcing)
  • Page 107 (2) If the ambient temperature is maintained below 50°C, up to 0.9 A/com- mon can be used. 50 55 (°C) Ambient temperature !Caution Do not connect a load to an output terminal or apply a voltage in excess of the maximum switching capacity.
  • Page 108: Cp1H Cpu Unit Operation

    • A CX-Programmer operation can be used to transfer DM Area initial values from RAM to the built-in flash memory. • The PLC Setup can be set so that DM Area initial values are trans- ferred from the built-in flash memory to RAM when the power supply...
  • Page 109 There can be up to 32 cyclic tasks and up to 256 interrupt tasks. Cyclic tasks are executed in the order of the task numbers.
  • Page 110 PLC to remote PLCs connected on other networks must be regis- tered in all the CPU Units in network PLCs to send and receive data between networks. These tables are called the routing tables. The routing tables con- sist of the relay network table and local network table.
  • Page 111 CX-Programmer or PT is used to transfer or edit data, edit the program online, or transfer data from a Memory Cassette.
  • Page 112: Flash Memory Data Transfers

    This data is automatically transferred from RAM to flash mem- parameter data ory when a project is transferred from the CX-Programmer, when the data is written to RAM from a PT or other external device, or when the data is transferred from a Memory Cas- sette.
  • Page 113 This data is automatically read to RAM when power is turned parameter data DM Area data Reading this data when power is turned ON can be enabled or disabled in the PLC Setup. Comment memory When the project is transferred from the CX-Programmer,...
  • Page 114: Memory Cassette Data Transfers

    Memory Cassette Data Transfers Writing to a Memory Cassette Data Method Source User program and Data is written to a Memory Data in the built-in flash mem- parameter data Cassette using write opera- ory is written to the Memory tions from the CX-Program- Cassette.
  • Page 115 DM Area data originally from RAM is trans- ferred to RAM. CPU Unit Power turned ON with SW2 turned ON Built-in flash memory Memory Cassette User program User program User program...
  • Page 116: Cpu Unit Operation

    CPU Unit Operation 2-4-1 General Flow The following flowchart shows the overall operation of the CPU Unit. First the user program is executed and then I/O is refreshed and peripheral servicing is performed. These processes are then repeated in cyclic fashion.
  • Page 117: I/O Refreshing And Peripheral Servicing

    CP-series Expansion I/O Units and I/O words in the CIO Area • Refreshing between CJ-series Special I/O Units and CJ-series CPU Bus Units and the words allocated to these in the CIO Area (and for CPU Bus Units, words allocated in the DM Area) All I/O refreshing is performed in the same cycle (i.e., time slicing is not used).
  • Page 118: I/O Refresh Methods

    CJ-series Special I/O Unit, CJ-series CPU Bus Unit, USB port, serial port, and communications port servicing is allocated 4% of the previous cycle time by default (the default can be changed) for each service. If servicing is sepa- rated over many cycles, delaying completion of the servicing, set the same allocated time (same time for all services) rather than a percentage under execute time settings in the PLC Setup.
  • Page 119 Note IORF(097) has a relatively long execution time which increases with the num- ber of words being refreshed. Be sure to consider the affect of this time on the overall cycle time. Refer to the CP Series CP1H Programmable Controllers...
  • Page 120: Initialization At Startup

    • Restore the user program. (See note 3.) Note (1) The I/O memory is held or cleared according to the status of the IOM Host Bit and the setting for IOM Hold Bit Status at Startup in the PLC Setup (read only when power is turned ON).
  • Page 121: Cpu Unit Operating Modes

    • Any task that has not yet been executed, will be in disabled status (INI). Executed if inter- rupt condition is • A task will go to READY status if the task is set to go to READY status at star- met. tup or the TASK ON (TKON) instruction has been executed for it.
  • Page 122: Operating Mode Changes And I/O Memory

    MONITOR to RUN Note 1. The following processing is performed if the I/O Memory Hold Bit is ON. Outputs from Output Units will be turned OFF when operation stops even if I/O bit status is held in the CPU Unit.
  • Page 123: Power Off Operation

    85% or less to return to 85% or higher is less than 10 ms for AC power or the time it takes the rated voltage at 90% or less to return to 90% or higher is less than 2 ms for DC power.
  • Page 124: Description Of Operation

    CPU reset signal Power OFF detection time: The time from when the power supply voltages drops to 85% or less of the rated voltage for AC power or 90% for DC power until the power OFF condition is detected. Holding time for 5 V internal power supply after power OFF detection: The maximum time that the 5 V internal power supply voltage will be maintained after the power OFF condition is detected.
  • Page 125: Computing The Cycle Time

    Computing the Cycle Time Computing the Cycle Time 2-7-1 CPU Unit Operation Flowchart The CPU Unit processes data in repeating cycles from the overseeing pro- cessing up to peripheral servicing as shown in the following diagram. Power ON Checks Unit connection status.
  • Page 126: Cycle Time Overview

    • Fixed peripheral servicing time in the PLC Setup Note 1. The cycle time is not affected by the number of tasks that are used in the user program. The tasks that affect the cycle time are those cyclic tasks that are READY in the cycle.
  • Page 127 Details Processing time and fluctuation cause Services events for CJ-series Special I/O If a uniform peripheral servicing time hasn’t been set in the PLC Setup for Units. this servicing, 4% of the previous cycle’s cycle time (calculated in step (3)) will be allowed for peripheral servicing.
  • Page 128: Minimum Cycle Time

    Minimum Cycle Time Set the minimum cycle time to a non-zero value to eliminate inconsistencies in I/O responses. A minimum cycle time can be set in the PLC Setup between 1 and 32,000 ms in 1-ms increments. Minimum cycle time...
  • Page 129: I/O Refresh Times For Plc Units

    32-bit binary (0 to FFFF FFFF, or 0 to 429,496,729.5 ms). (A265 is the leftmost word.) The average cycle time for the past eight cycles can be read from the CX-Pro- grammer. Note The following methods are effective in reducing the cycle time.
  • Page 130 Note The refresh time for I/O built into the CPU Unit is included in the overseeing time. When pulse output ports 2 and 3 are used, the cycle time increases in propor-...
  • Page 131: Cycle Time Calculation Example

    Section 2-7 Computing the Cycle Time Cycle time rate of increase (%) from pulse output ports 2 and 3 = Output fre- quency (kHz) × 0.1. Examples: 30 kHz: Approx. 3% 100 kHz: Approx. 10% 2-7-5 Cycle Time Calculation Example The following example shows the method used to calculate the cycle time when CP-series Expansion I/O Units only are connected to a CP1H CPU Unit.
  • Page 132: I/O Response Time

    The I/O response time is the time it takes from when an input turns ON, the data is recognized by the CPU Unit, and the user program is executed, up to the time for the result to be output to an output terminal. The length of the I/O response time depends on the following conditions.
  • Page 133: Interrupt Response Times

    20 ms Minimum I/O response time = 1 ms + 20 ms + 0.1 ms = 21.1 ms Maximum I/O response time = 1 ms + (20 ms × 2) + 0.1 ms = 41.1 ms Input Response Input response times can be set in the PLC Setup. Increasing the response Times time reduces the effects of chattering and noise.
  • Page 134 The length of the interrupt response time for scheduled interrupt tasks is 1 ms max. There is also an error of 80 µs in the time to the first scheduled interrupt (0.5 ms min.). Note...
  • Page 135: Serial Plc Link Response Performance

    The response times for CPU Units connected via a Serial PLC Link (master to slave or slave to master) can be calculated as shown below. If a PT is in the Serial PLC Link, however, the amount of communications data will not be fixed and the values will change.
  • Page 136: Pulse Output Change Response Time

    76 µs PLS2: triangular 2-7-11 Pulse Output Change Response Time The pulse output change response time is the time for any change made by executing an instruction during pulse output to actually affect the pulse output operation. Pulse output instruction Change response time 57 µs + 1 pulse output time...
  • Page 137: Installation And Wiring

    Mounting in a Panel ........
  • Page 138: Fail-Safe Circuits

    When a fatal error occurs, all outputs from Output Units will be turned OFF even if the IOM Hold Bit has been turned ON to protect the contents of I/O memory. (When the IOM Hold Bit is ON, the outputs will retain their previous status after the PLC has been switched from RUN/MONITOR mode to PRO- GRAM mode.)
  • Page 139: Installation Precautions

    3-2-1 Installation and Wiring Precautions Always consider the following factors when installing and wiring the PLC to improve the reliability of the system and make the most of the CP1H func- tions. Ambient Conditions Do not install the PLC in any of the following locations.
  • Page 140 Maintenance • The PLC will be easiest to install and operate if it is mounted at a height of about 1,000 to 1,600 mm. !Caution Do not touch the power supply or the area around the I/O terminals while power is being supplied or immediately after power has been turned OFF.
  • Page 141: Mounting

    DIN Track installation. Surface Installation Even if a DIN Track is not used, a CP1H CPU Unit and CP-series Expansion Units or Expansion I/O Units can be mounted using M4 screws. For restric- tions on the number of Expansion Units and Expansion I/O Units that can be connected, refer to 1-2 System Configuration.
  • Page 142 Section 3-3 Mounting DIN Track Installation CJ-series Special I/O Units or CPU Bus Units must be mounted to a DIN Track, along with the CP1H CPU Unit. Secure the DIN Track with screws in at least three places. CJ1W-TER01 CP1W-EXT01...
  • Page 143 Wiring Ducts Whenever possible, route I/O wiring through wiring ducts. Install the duct so that it is easy to wire from the I/O Units through the duct. It is handy to have the duct at the same height as the Racks.
  • Page 144 Mounting Routing Wiring Ducts Install the wiring ducts at least 20 mm between the tops of the Racks and any other objects, (e.g., ceiling, wiring ducts, structural supports, devices, etc.) to provide enough space for air circulation and replacement of Units.
  • Page 145: Connecting Cp-Series Expansion Units And Expansion I/O Units

    Mounting Dimensions 140±0.5 100±0.2 Four, M4 For the dimensions of Units other than CP1H CPU Units, refer to Appendix B Dimensions Diagrams. Mounting Height The mounting height is approximately 90 mm. When a cable is connected to an Option Board, however, the additional height must be factored in.
  • Page 146 10 mm min. 25 mm max. 15 mm max. 1,2,3... 1. Remove the cover from the CPU Unit's or the Expansion I/O Unit's expan- sion connector. Use a flat-blade screwdriver to remove the cover from the Expansion I/O Connector. Expansion connector cover 2.
  • Page 147: Connecting Cj-Series Units

    Connect an End Cover to the Unit on the end on the right. 1,2,3... 1. After the CPU Unit has been mounted to the DIN Track, mount a CJ Adapt- PFP-M End Plate DIN Track...
  • Page 148: Din Track Installation

    3. Attach the End Cover to the Unit on the far right side of the Rack. Note Attach the End Cover to the Unit on the far right side of the Rack. An I/O bus error will occur and CP1H CPU Unit will not operate in either RUN or MONI- TOR mode if the End Cover is not connected.
  • Page 149 Section 3-3 Mounting 2. Lower the Units so that they catch on the top of the DIN Track, and then press them forward all the way to the DIN Track at the bottom. 3. Press in all of the DIN Track mounting pins to securely lock the Units in place.
  • Page 150: Wiring Cp1H Cpu Units

    Wiring CP1H CPU Units Note (1) Do not remove the protective label from the top of the Unit until wiring has been completed. This label prevents wire strands and other foreign mat- ter from entering the Unit during wiring procedures.
  • Page 151: Wiring Power Supply And Ground Lines

    LG: Functional ground terminal GR: Protective ground terminal Ground (100 Ω or less) • Wire a separate circuit for the power supply circuit so that there is no volt- age drop from the inrush current that flows when other equipment is turned ON.
  • Page 152 • To prevent electrical shock when short-circuiting between the LG and GR terminals, always use a ground of 100 Ω or less. • Do not connect ground lines to other devices or to the frame of a building. Doing so will reverse the effectiveness of the ground and instead have a bad influence.
  • Page 153: Wiring Built-In I/O

    For the DC power supply connected to a DC-power-supply CPU Unit, use a power supply with a minimum output holding time of 10 ms. (4) Do not pull on the cables or bend the cables beyond their natural limit. Do- ing either of these may break the cables.
  • Page 154 Section 3-4 Wiring CP1H CPU Units Connecting I/O Use the following information for reference when selecting or connecting input Devices devices. DC Input Devices Connectable DC Input Devices (for DC Output Models) Contact output CP1H Two-wire DC output CP1H Sensor...
  • Page 155 Wiring CP1H CPU Units Section 3-4 • The circuit below should not be used for I/O devices with a voltage output. Sensor power supply Output CP1H − Precautions when When using a two-wire sensor with a 24-V DC input device, check that the fol- Connecting a Two-wire DC lowing conditions have been met.
  • Page 156 0.00 and a 100-ms timer delay (the time required for an OMRON Proximity Sensor to stabilize) is created in the program. After the Completion Flag for the timer turns ON, the sensor input on input bit CIO 0.01 will cause output bit CIO 100.00 to turn ON.
  • Page 157: Wiring Safety And Noise Controls

    In-floor duct Conduits Suspended duct If the I/O wiring and power wiring must be routed in the same duct, use shielded cables and connect the shields to the GR terminal to reduce noise. Inductive Loads When an inductive load is connected to an I/O Unit, connect a surge suppres- sor or diode in parallel with the load as shown below.
  • Page 158: Wiring Methods

    Power cables Power lines Ground to 100 Ω or less • If the I/O wiring and power cables must be placed in the same duct, they must be shielded from each other using grounded steel sheet metal. PLC power supply cable...
  • Page 159 Lower Terminal Block CP1H-X40DT1-D CIO 100 CIO 101 (Sourcing Transistor Output) NC 00 01 03 COM COM COM COM CIO 100 CIO 101 To use as pulse outputs, make the setting under Pulse Output 0 to 3 in the PLC Setup.
  • Page 160: Example I/O Wiring For Y Cpu Units

    Setup. Set the high-speed counters to be used under Enable using the high- speed counters with Built-in Input - High Speed Counter 2 and 3 - Use high speed counter 2 and 3. For details on high-speed counter inputs, refer to 2-2- 5 I/O Specifications for Y CPU Units.
  • Page 161: Pulse Input Connection Examples

    Section 3-5 3-5-3 Pulse Input Connection Examples For a 24-VDC Open- This example shows the connections to an encoder with phase-A, phase-B, collector Encoder and phase Z inputs. CP1H CPU Unit (X or Y CPU Unit) (Differential phase input mode)
  • Page 162: Pulse Output Connection Examples

    This example shows a connection to a motor driver. Always check the specifi- cations of the motor driver before actually connecting it. For open-collector output, use a maximum of 3 m of wiring between the CP1H CPU Unit and the motor driver.
  • Page 163 In this example, a 5-V input motor driver is used with a 24-VDC power supply. Be careful to ensure that the Position Control Unit output current does not damage the input circuit at the motor driver and yet is sufficient to turn it ON. Take into account the power derating for the 1.6-kΩ resistance.
  • Page 164: Wiring Built-In Analog I/O (Xa Cpu Units Only)

    The values inside the parentheses are for using pulse and direction outputs. 3-5-5 Wiring Built-in Analog I/O (XA CPU Units Only) XA CPU Units come with an analog I/O terminal block. To use the analog I/O, first set the voltage/current input switch and then mount the terminal block. XA CPU Unit...
  • Page 165 (1) When using a current input, turn ON voltage/current input switch pins IN1 to IN4, and make the suitable setting in the PLC Setup. (2) For any inputs that are not to be used, set them to not be used by clearing the selection of the Use checkbox.
  • Page 166 Section 3-5 Wiring Methods circuiting the plus and minus terminals. If the range is set for 1 to 5 V and 4 to 20 mA, however, the Open-circuit Detection Flag will turn ON when the plus and minus terminals are short-circuited.
  • Page 167: Cp-Series Expansion I/O Unit Wiring

    CP-series Expansion I/O Unit Wiring I/O Wiring Precautions To enable using the analog I/O under optimal conditions, be careful of the fol- lowing points for noise reduction. • Use 2-conductor shielded twisted-pair cable for the I/O wiring, and do not connect the shield.
  • Page 168 Section 3-6 CP-series Expansion I/O Unit Wiring 40-point I/O Units (CP1W-40ED@@/CPM1A-40ED@@) Input Wiring CIO m+1 CIO m+2 24 VDC − − NC COM 01 CIO m+1 CIO m+2 Output Wiring CP1W-40EDR/CPM1A-40EDR (Relay Output) NC COM COM COM 03 COM 06 COM...
  • Page 169 Section 3-6 CP-series Expansion I/O Unit Wiring CP1W-40EDT1/CP1A-40EDT1 (Sourcing Transistor Output) NC COM COM COM 03 COM 06 COM COM 06 4.5 to 30 VDC 32-point Output Units (CP1W-32E@@) Output Wiring CP1W-32ER (Relay Outputs) Upper Terminal Block Lower Terminal Block...
  • Page 170 COM COM COM COM CIO n+1 CIO n+2 CIO n+3 CIO n+4 20-point I/O Units (CP1W-20ED@@/CPM1A-20ED@@) Input Wiring CIO m+1 24 VDC − − COM 01 CIO m+1 Output Wiring CP1W-20EDR1/CPM1A-20EDR1 (Relay Output) COM COM COM 03 COM 06 250 VAC 24 VDC...
  • Page 171 Section 3-6 CP-series Expansion I/O Unit Wiring CP1W-20EDT/CPM1A-20EDT (Sinking Transistor Output) COM COM COM 03 COM 06 CP1W-20EDT1/CP1A-20EDT1 (Sourcing Transistor Output) COM COM COM 03 COM 06 16-point Output Units (CP1W-16E@@/CPM1A-16E@@) Output Wiring CP1W-16ER/CPM1A-16ER (Relay Outputs) Unit Lower Terminal Block...
  • Page 172 Input Wiring Unit Upper Terminal Block Unit Lower Terminal Block 24 VDC − − COM 01 The Unit's upper terminal block COM − and lower terminal block COM are connected internally, but connect them − externally as well. 24 VDC...
  • Page 173 Section 3-6 CP-series Expansion I/O Unit Wiring 8-point Output Units (CP1W-8E@/CPM1A-8E@) Output Wiring CP1W-8ER/CPM1A-8ER (Relay Output) Unit Upper Terminal Block Unit Lower Terminal Block CP1W-8ET/CPM1A-8ET (Sinking Transistor Output) Unit Upper Terminal Block Unit Lower Terminal Block 4.5 to 30 VDC −...
  • Page 174 Section 3-6 CP-series Expansion I/O Unit Wiring...
  • Page 175: I/O Memory Allocation

    Overview of I/O Memory Area........
  • Page 176: Overview Of I/O Memory Area

    4-1-1 I/O Memory Area This region of memory contains the data areas that can be accessed as instruction operands. I/O memory includes the CIO Area, Work Area, Holding Area, Auxiliary Area, DM Area, Timer Area, Counter Area, Task Flag Area, Data Registers, Index Registers, Condition Flag Area, and Clock Pulse Area.
  • Page 177 3. Index registers and data registers can be used either individually by task or they can be shared by all the tasks (the default is individual use by task). 4. Timer PVs can be refreshed indirectly by force-setting/resetting the Timer Completion Flags.
  • Page 178: Overview Of The Data Areas

    Units. Words that aren’t used in data links may be used in programming. Data Link Area These words are used when the Controller Link auto-setting area is set to the link area or for PLC links. Words that aren’t used in data links may be used in programming.
  • Page 179 Work Area before using words in the Internal I/O Area or other unused words in the CIO Area. It is possible that these words will be assigned to new functions in future versions of the CPU Units. The parts of the CIO Area that are labelled “Not used”...
  • Page 180 Section 4-1 Overview of I/O Memory Area Note H512 to H1535 are used as a Function Block Holding Area. These words can be used only for function block instances (internally allocated variable area). These words cannot be specified as instruction operands in the user program.
  • Page 181 Overview of I/O Memory Area Section 4-1 Timer PVs The PVs are read and written as words (16 bits). The PVs count up or down as the timer operates. Counter Area (C) There are two parts to the Counter Area: the Counter Completion Flags and the Counter Present Values (PVs).
  • Page 182: Clearing And Holding I/O Memory

    Hot Start/Hot Stop Functions Operating Mode Changes Hot Start Turn ON the IOM Hold Bit to retain all data* in I/O memory when the CPU Unit is switched from PROGRAM mode to RUN/MONITOR mode to start program execution. I/O memory...
  • Page 183 PLC Power ON In order for all data* in I/O memory to be retained when the PLC is turned ON, the IOM Hold Bit must be ON and it must be protected in the PLC Setup using the IOM Hold Bit Status at Startup parameter.
  • Page 184: I/O Area And I/O Allocations

    The starting words for inputs and outputs are predetermined for CP1H CPU Unit. Input bits in CIO 0 and CIO 1 and output bits in CIO 100 and CIO 101 are automatically allocated to the built-in I/O on the CPU Unit. CP-series...
  • Page 185: Allocations To Built-In General Purpose I/O On The Cpu Unit

    For X and XA CPU Units, a total of 24 input bits are allocated: 12 bits in CIO 0 from bit 00 to bit 11 and 12 bits in CIO 1 from bit 00 to bit 11. Bits 12 to 15 in CIO 0 and CIO 1 are always cleared and cannot be used as work bits.
  • Page 186: Allocations To Cp1H Y Cpu Units (12 Inputs/8 Outputs)

    Allocation area for 12-input or 24-input Unit As shown above, a total of 12 input bits in CIO 0 and CIO 1 are allocated for the Y CPU Unit. Unused bits in CIO 0 and CIO 1 are always cleared and can- not be used as work bits.
  • Page 187 CIO n+1 (bits 00 to 07) ■ I/O Bit Addresses Units 8 Input Points (CP1W-8ED/CPM1A-8ED) Eight input bits are allocated in one word (bits 00 to 07 in CIO m). Inputs Do not use. Only one word (8 bits) is allocated to an 8-input Expansion Input Unit. No out- put words are allocated.
  • Page 188: Expansion Units

    Units with 32 Output Points (CP1W-32E@@) Thirty-two output bits are allocated in four words (bits 00 to 07 in CIO n, bits 00 to 07 in CIO n+1, bits 00 to 07 in CIO n+2 and bits 00 to 07 in CIO n+3). Output bits Can be used as work bits.
  • Page 189 CPM1A-TS101 CP1W-TS102 4 words CIO m to CIO m+3 None CPM1A-TS102 DeviceNet I/O Link Units CPM1A-DRT21 2 words CIO m to CIO m+1 2 words CIO n to CIO n+1 CompoBus/S I/O Link CP1W-SRT21 1 word CIO m 1 word...
  • Page 190: I/O Allocation Examples

    CIO 106.00 to CIO 106.07 None None None If there is a Unit that does not use input or output words, the words are allo- cated to the next Unit. Example 2: Including a CPM1A-TS002/TS102 Temperature Sensor Unit CPU Unit...
  • Page 191: Built-In Analog I/O Area (Xa Cpu Units Only)

    PROGRAM and RUN or MONITOR mode when the built-in analog output is being used and the I/O Memory Hold Bit is set to ON to retain analog values output externally, the values will change; the analog values out- put externally will not be retained while Memory Cassette data is being trans- ferred or verified.
  • Page 192: Data Link Area

    (bits CIO 1000.00 to CIO 1199.15). Words in the Link Area are used for data links when LR is set as the data link area for Controller Link Networks. It is also used for PLC Links. Words in the Link Area can be used in the program when LR is not set as the data link area for Controller Link Networks and PLC Links are not used.
  • Page 193: Cpu Bus Unit Area

    1. When the operating mode is changed from PROGRAM to RUN or MONI- TOR mode or vice-versa and the IOM Hold Bit is OFF 2. When the power is cycled and the IOM Hold Bit is OFF or not protected in the PLC Setup 3.
  • Page 194: Special I/O Unit Area

    The Special I/O Unit Area contains 960 words with addresses ranging from CIO 2000 to CIO 2959. Words in the Special I/O Unit Area are allocated to transfer data, such as the operating status of the Unit. Each Unit is allocated 10 words based on its unit number setting.
  • Page 195: Serial Plc Link Area

    Serial PLC Link Area The Serial PLC Link Area contains 90 words with addresses ranging from CIO 3100 to CIO 3189 (bits CIO 3100.00 to CIO 3189.15). Words in the Serial PLC Link Area can be used for data links with other PLCs.
  • Page 196 Section 4-8 DeviceNet Area The following words are allocated to the DeviceNet Unit when the remote I/O slave function is used with fixed allocations. Area Output Area Input Area (master to slaves) (slaves to master) Fixed Allocation Area 1 CIO 3370...
  • Page 197: Internal I/O Area

    Note 1. If a Holding Area bit is not used for the self-maintaining bit, the bit will be turned OFF and the self-maintaining bit will be cleared when the power is reset.
  • Page 198: Auxiliary Area (A)

    H1.00 Unit Reset input There are no restrictions in the order of using bit address or in the number of N.C. or N.O. conditions that can be programmed. 4-11 Auxiliary Area (A) The Auxiliary Area contains 960 words with addresses ranging from A0 to A959).
  • Page 199: Timers And Counters

    TR 0 0.01 0.04 0.05 0.02 0.03 TR 0 0.04 0.05 In this example, a TR bit is used when an output is connected to a branch point without a separate execution condition. Operand Instruction 0.01 0.02 0.00 0.00 TR 0 0.01...
  • Page 200 MONITOR mode or vice-versa. The PV and Completion Flag will be cleared when power is cycled. 2. If the IOM Hold Bit (A50012) is ON and the PLC Setup’s IOM Hold Bit Sta- tus at Startup setting is set to protect the IOM Hold Bit, the PV and Com- pletion Flag will be retained when the PLC’s power is cycled.
  • Page 201: Counter Area (C)

    Completion Flag. Restrictions There are no restrictions in the order of using counter numbers or in the num- ber of N.C. or N.O. conditions that can be programmed. Counter PVs can be read as word data and used in programming.
  • Page 202: Data Memory Area (D)

    D32767. This data area is used for general data storage and manipulation and is accessible only by word. Data in the DM Area is retained when the PLC’s power is cycled or the PLC’s operating mode is changed from PROGRAM mode to RUN/MONITOR mode or vice-versa.
  • Page 203 When a “*” character is input before a DM address, the content of that DM word is treated as BCD and the instruction will operate on the DM word at that BCD address. Only part of the DM Area (D0 to D09999) can be indirectly addressed with BCD values 0000 to 9999.
  • Page 204: Index Registers

    Index Registers CPU Bus Units (D30000 to D31599) Each CPU Bus Unit is allocated 100 words (based on unit numbers 0 to F). Refer to the Unit’s operation manual for details on the function of these words. With some CPU Bus Units such as Ethernet Units, initial settings must be reg- istered in the CPU Unit’s Parameter Area;...
  • Page 205 MOVR(560) or MOVRW(561). Note It is possible to specify regions outside of I/O memory and generate an Illegal Access Error when indirectly addressing memory with Index Registers. Refer to Appendix E Memory Map for details on the limits of PLC memory addresses.
  • Page 206 ,IR2 +5 , IR2 When the operand is treated as a bit, the leftmost 7 digits of the Index Reg- ister specify the word address and the rightmost digit specifies the bit num- ber. In this example, MOVR(560) sets the PLC memory address of CIO 13 (0C000D hex) in IR2.
  • Page 207: Using Index Registers

    The SRCH(181), MAX(182), and MIN(183) instructions can output the PLC memory address of the word with the desired value (search value, maximum, or minimum) to IR0. In this case, IR0 can be used in later instructions to access the contents of that word.
  • Page 208 If, for example, instruction A above is a comparison instruction, table data could be read from start to the end of the table to compare all of the data with a specific value. In this way, blocks of user-defined processing can be freely created depending by applying Index Registers.
  • Page 209: Precautions For Using Index Registers

    Each Index Register task is processed independently, so they do not affect each other. For example, IR0 used in Task 1 and IR0 used in Task 2 are differ- ent. Consequently, each Index Register task has 16 Index Registers.
  • Page 210 FINS commands, write a program to store Index Register values from each task to another area (e.g., DM area) at the end of each task, and to read Index Register values from the storage words (e.g., DM area) at the beginning of each task.
  • Page 211: Data Registers

    Index Registers when addressing words indirectly. The value in a Data Register can be added to the PLC memory address in an Index Register to specify the absolute memory address of a bit or word in I/O memory.
  • Page 212 1. When the operating mode is changed from PROGRAM mode to RUN/MONITOR mode or vice-versa and the IOM Hold Bit is OFF 2. When the power is cycled and the IOM Hold Bit is OFF or not protected in the PLC Setup IOM Hold Bit Operation If the IOM Hold Bit (A500.12) is ON, the Data Registers won’t be cleared...
  • Page 213: Task Flags

    Note The CX-Programmer treats condition flags as global symbols beginning with All Condition Flags are cleared when the program switches tasks, so the sta- tus of the ER and AER flags are maintained only in the task in which the error occurred.
  • Page 214 Turned ON when there is a carry in the result of an arithmetic opera- tion or a “1” is shifted to the Carry Flag by a Data Shift instruction. The Carry Flag is part of the result of some Data Shift and Symbol Math instructions.
  • Page 215: Clock Pulses

    Flag status (CCS(282) and CCL(283)). These can be used to access the sta- tus of the Condition Flags at other locations in a task or in a different task. The following example shows how the Equals Flag is used at a different loca- tion in the same task.
  • Page 216 The Clock Pulses are read-only; they cannot be overwritten from instructions or the CX-Programmer. The Clock Pulses are cleared at the start of operation. Using the Clock Pulses The following example turns CIO 100.00 ON and OFF at 0.5 s intervals. 100.00 Instruction Operand 100.00...
  • Page 217: Basic Cp1H Functions

    External Interrupts ........
  • Page 218: Interrupt Functions

    This function executes an interrupt task at a fixed time interval measured by the CPU Unit’s built-in timer. The time interval units can be set to 10 ms, 1 ms, or 0.1 ms. The minimum timer SV is 0.5 ms.
  • Page 219 Creating an Interrupt Task Program 1,2,3... 1. Select NewPLC1 [CP1H] Offline in the project workspace, right-click, and select Insert Program in the pop-up menu. A new program called NewProgram2 (unassigned) will be inserted in the project workspace. 2. Right-click NewProgram2 (unassigned) and select Properties from the pop-up menu to display the Program Properties Window.
  • Page 220 Section 5-1 Interrupt Functions If you click the X Button in the upper-right corner of the window, you can cre- ate the program that will be executed as interrupt task 140. The programs allocated to each task are independent and an END(001) instruction must be input at the end of each program.
  • Page 221 The interrupt occurs during processing of the +B instruction and the result is saved temporarily without being written to the destination word (D0). The interrupt task transfers the value of #0010 to D0, but the saved result of the +B instruction (1235) is written to D0 when processing returns to the cyclic task.
  • Page 222: Input Interrupts (Direct Mode)

    The following diagrams show the input bits and terminals that are used for the Terminal Allocations input interrupt function in each CPU Unit. X/XA CPU Units The 8 input bits CIO 0.00 to CIO 0.03 and CIO 1.00 to CIO 1.03 can be used for input interrupts.
  • Page 223 Interrupt task 147 04 to 11 Normal inputs 16 to 23 --- Y CPU Units The 6 input bits CIO 0.00 to CIO 0.01 and CIO 1.00 to CIO 1.03 can be used for input interrupts. Input Terminal Arrangement Input...
  • Page 224 Interrupt Functions Setting the Input Functions in the PLC Setup Normally, bits CIO 0.00 to CIO 0.01 and CIO 1.00 to CIO 1.03 are used as normal inputs. When using these inputs for input interrupts, use the CX-Pro- grammer to change the input’s setting in the PLC Setup.
  • Page 225 Interrupt Functions PLC Setup Click the Built-in Input Tab to display the Interrupt Input settings (at the bottom of the tab). Set the input function to Interrupt for each input that will be used as an input interrupt. Note (1) Interrupt Input settings IN0 to IN7 correspond to input interrupt numbers 0 to 7.
  • Page 226 1,2,3... 1. Connect an input device to input 0.00. 2. Use the CX-Programmer to set input 0 as an input interrupt in the PLC Set- 3. Use the CX-Programmer to create the program to use for interrupt pro- cessing and allocate the program to interrupt task 140.
  • Page 227: Input Interrupts (Counter Mode)

    Refer to 5-1-2 Input Interrupts (Direct Mode) for details. • The counter input mode can be set to up or down (incrementing or decre- menting) with MSKS(690). • The counter-mode input interrupts start the same interrupt tasks (140 to 147) as the direct-mode input interrupts.
  • Page 228 Note The input interrupt (counter mode) function is one of the input interrupt func- tions and executes an interrupt based on the pulse count. If the input pulse frequency is too high, interrupts will occur too frequently and prevent normal cyclic task processing.
  • Page 229 Settings 1,2,3... 1. Connect an input device to input 0.00. 2. Use the CX-Programmer to set input 0.01 as an input interrupt in the PLC Setup. 3. Use the CX-Programmer to create the program to use for interrupt pro- cessing and allocate the program to interrupt task 141.
  • Page 230: Scheduled Interrupts

    Section 5-1 Interrupt Functions When CIO 0.01 goes from OFF to ON 200 times, processing of the cyclic task that is currently being executed will be interrupted and processing of interrupt task 141 will start. When the interrupt task processing is completed, process- ing of the interrupted ladder program will restart.
  • Page 231 Scheduled Interrupt Interval Setting Note (1) Set a scheduled interrupt time (interval) that is longer than the time re- quired to execute the corresponding interrupt task. (2) If the scheduled time interval is too short, the scheduled interrupt task will be executed too frequently, which may cause a long cycle time and ad- versely affect the cyclic task processing.
  • Page 232 0.5 to 999.9 ms 4: Start without reset Writing the Scheduled Create the program for interrupt task 2 (scheduled interrupt 0), which is exe- Interrupt Task’s Program cuted by the input interrupt. Always put an END(001) instruction at the last address of the program.
  • Page 233: High-Speed Counter Interrupts

    2 5-1-5 High-speed Counter Interrupts This function executes the specified interrupt task (0 to 255) when the CP1H CPU Unit’s built-in high-speed counter PV matches a pre-registered value (target value comparison) or lies within a pre-registered range (range compar- ison).
  • Page 234 Section 5-1 Interrupt Functions PLC Setup Click the Built-in Input Tab to and set the high-speed counters that will be used for interrupts. PLC Setup Item Setting Use high speed counter 0 to 3 Use counter Counting mode Linear mode Circular mode (ring mode) Circular Max.
  • Page 235 The CPU Unit’s built-in inputs can be set for high-speed counter inputs in the PLC Setup’s Built-in Input Tab. (When an input is set for use as a high-speed counter input, the corresponding words and bits cannot be used for general- purpose (normal) inputs, input interrupts, or quick-response inputs.)
  • Page 236 The CPU Unit’s built-in inputs can be set for high-speed counter inputs in the PLC Setup’s Built-in Input Tab. (When an input is set for use as a high-speed counter input, the corresponding words and bits cannot be used for general- purpose (normal) inputs, input interrupts, or quick-response inputs.)
  • Page 237 For details, refer to 5-2 High-speed Counters. REGISTER CTBL(882) compares the PV of a high-speed counter (0 to 3) to target values COMPARISON TABLE or target value ranges and executes the corresponding interrupt task (0 to Instruction: 255) when the specified condition is met.
  • Page 238 The range comparison table requires a continuous block of 40 words because comparison conditions 1 to 8 require 5 words each (2 words for the upper range value, 2 words for the lower range value, and one word for the interrupt task number).
  • Page 239 Change the PV. #0003 Stop pulse output. First word of NV and NV+1 contain the new PV when C is set to #0002 new PV (change the PV). New PV Setting in NV and NV+1 New PV (rightmost 4 digits)
  • Page 240 Software reset (continue comparing) Input Setting Up/Down inputs 2. Set the range comparison table starting at word D20000. Even though range 1 is the only range being used, all 40 words must still be dedicated to the range comparison table. Word Setting...
  • Page 241 #0000 (Not used and don’t need to be set.) D20009 #FFFF Disables range 2. D20014 #FFFF Set the fifth word for ranges 3 to 7 (listed at left) to #FFFF to disable those ranges. D20019 D20024 D20029 D20034 D20035 to...
  • Page 242: High-Speed Counters

    An external interrupt task performs interrupt processing in the CPU Unit in response to an input from a CJ-series Special I/O Unit or CPU Bus Unit con- nected to the CPU Unit. The reception of these interrupts is always enabled.
  • Page 243: High-Speed Counter Specifications

    • The counting mode can be set to linear mode or circular (ring) mode. • The counter reset method can be set to Z phase signal + software reset, software reset, Z phase signal + software reset (continue comparing), or software reset (continue comparing).
  • Page 244 Count values Linear mode: 80000000 to 7FFFFFFF hex Ring mode: 00000000 to Ring SV (The Ring SV (Circular Max. Count) is set in the PLC Setup and the setting range is 00000001 to FFFFFFFF hex.) High-speed counter PV storage locations...
  • Page 245 PV will not be changed even if pulse inputs are received for the counter. Counter Input Modes Differential Phase Mode The differential phase mode uses two phase signals (phase A and phase B) (4x) and increments/decrements the count according to the status of these two signals.
  • Page 246 No change • Only up-differentiated pulses (rising edges) can be counted. Note The count of the high-speed counter can be monitored to see if it is currently being incremented or decremented. The count in the current cycle is com- pared with the count in the previous cycle to determine if it is being incre- mented or decremented.
  • Page 247 00000001 and FFFFFFFF hex. Restrictions • There are no negative values in ring mode. • If the max. ring count is set to 0 in the PLC Setup, the counter will operate with a max. ring count of FFFFFFFF hex. Reset Methods...
  • Page 248 Counter Reset Bit only at the beginning of the PLC cycle during the oversee- ing processes. Reset processing is performed at the same time. The OFF-to- ON transition will not be recognized if the Reset Bit goes OFF again within the same cycle.
  • Page 249: Procedure

    High-speed Counters 5-2-3 Procedure • High-speed counters 0 to 3 on X/XA CPU Units and high-speed counters 2 and 3 on Y CPU Units: 24 VDC input, Response Select high-speed counter 0 to 3. frequency: 50 kHz for single-phase, 100 kHz for differential phase •...
  • Page 250: Plc Setup

    Section 5-2 High-speed Counters 5-2-4 PLC Setup The settings for high-speed counters 0 to 3 are located in the Built-in Input Tab of the CX-Programmer’s PLC Settings Window. Settings in the Built- in Input Tab Item Setting Use high speed counter 0 to 3 Use counter...
  • Page 251 The CPU Unit’s built-in inputs can be set for high-speed counter inputs in the PLC Setup’s Built-in Input Tab. (When an input is set for use as a high-speed counter input, the corresponding words and bits cannot be used for general- purpose (normal) inputs, input interrupts, or quick-response inputs.)
  • Page 252 The CPU Unit’s built-in inputs can be set for high-speed counter inputs in the PLC Setup’s Built-in Input Tab. (When an input is set for use as a high-speed counter input, the corresponding words and bits cannot be used for general- purpose (normal) inputs, input interrupts, or quick-response inputs.)
  • Page 253: Pulse Input Connection Examples

    Section 5-2 High-speed Counters 5-2-6 Pulse Input Connection Examples Encoders with 24 VDC Open-collector Outputs This example shows how to connect an encoder that has phase-A, phase-B, and phase-Z outputs. X/XA CPU Unit (Differential Input Mode) Phase A Black (High-speed counter 0: Phase A, 0 V)
  • Page 254: Ladder Program Example

    Counting Pulse Inputs • High-speed counter 0 is used. • When the edge of the workpiece is detected, the counter PV is reset by a phase-Z pulse. • The workpiece is passes inspection if the final count is between 30,000 and 30,300, otherwise the workpiece fails.
  • Page 255 10 and 11 Not used. (normal input) CIO 1 00 to 11 Not used. (normal input) Note The high-speed counter inputs are enabled when the Use high speed counter 0 Option is selected in the PLC Setup’s Built-in Input Tab. Output Terminals Output terminal Usage...
  • Page 256 Range Comparison Table Settings The inspection standards data is set in the DM Area with the CX-Programmer. Even though range 1 is the only range being used, all 40 words must still be dedicated to the range comparison table. Word...
  • Page 257: Additional Capabilities And Restrictions

    #0000 (Not used and don’t need to be set.) D10009 #FFFF Disables range 2. D10014 #FFFF Set the fifth word for ranges 3 to 7 (listed at left) to #FFFF to D10019 disable those ranges. D10024 D10029 D10034 D10035 to...
  • Page 258 The specified interrupt task will be executed when the high- speed counter PV matches the registered target value. • Up to 48 target values (between 1 and 48) can be registered in the com- parison table. • A different interrupt task can be registered for each target value.
  • Page 259 Section 5-2 High-speed Counters Set the target values so that they do not occur at the peak or trough of count value changes. Match Match Target value 1 Target value 1 Target value 2 Target value 2 Match Match not recognized.
  • Page 260 If the High-speed Counter Gate Bit is turned ON, the corresponding high- speed counter will not count even if pulse inputs are received and the counter PV will be maintained at its current value. Bits A53108 to A53111 are the High-speed Counter Gate Bits for high-speed counters 0 to 3.
  • Page 261 The pulse frequency input to a high-speed counter can be converted to a rota- tional speed (r/min) or the PV of the counter can be converted to the total number of rotations. The converted value is output as 8-digit hexadecimal.
  • Page 262: Pulse Outputs

    Unit version 1.1 and later Pulse outputs 0, 1, 2, 3: 1 Hz to 100 kHz (Unit version 1.0 and earlier: Pulse outputs 0 and 1: 1 Hz to 100 kHz; pulse outputs 2 and 3: 1 Hz to 30 kHz) •...
  • Page 263 ■ Use Variable Duty Factor Pulse Outputs for Lighting, Power Control, Etc. The PULSE WITH VARIABLE DUTY FACTOR instruction (PWM(891)) can be used to output variable duty factor pulses from the CPU Unit's built-in outputs for applications such as lighting and power control.
  • Page 264: Pulse Output Specifications

    X/XA CPU Units: Unit version 1.1 and later: Pulse outputs 0, 1, 2, 3: 1 Hz to 100 kHz (1 Hz units) Unit version 1.0 and earlier: Pulse outputs 0 and 1: 1 Hz to 100 kHz (1 Hz units)
  • Page 265 Pulse Outputs Item Specifications Frequency acceleration and decel- Set in 1 Hz units for acceleration/deceleration rates from 1 Hz to 65,635 Hz (every 4 eration rates ms). The acceleration and deceleration rates can be set independently only with PLS2(887). Changing SVs during instruction...
  • Page 266: Pulse Output Terminal Allocations

    Section 5-3 Pulse Outputs 5-3-3 Pulse Output Terminal Allocations The following diagrams show the terminals that can be used for pulse outputs in each CPU Unit. X/XA CPU Units ■ Output Terminal Block Arrangement Lower Terminal Block (Example: Transistor Outputs)
  • Page 267 Section 5-3 Pulse Outputs ■ Setting Functions Using Instructions and PLC Setup Output When the When a pulse output instruction When the origin search When the PWM terminal instructions to (SPED, ACC, PLS2, or ORG) is executed function is enabled in...
  • Page 268 Section 5-3 Pulse Outputs ■ Setting Input Functions in the PLC Setup Input Input operation High-speed counters Origin search terminal block Word Normal inputs Interrupt inputs Quick-response High-speed counter Pulse output origin inputs operation enabled. (Use search function high speed counter @ enabled for pulse Option selected.)
  • Page 269 Normal output terminals Origin search 1 (Error counter reset output) Origin search 3 (Error counter reset output) ■ Setting Functions using Instructions and PLC Setup Input terminal When the When a pulse output instruction (SPED, ACC, When the origin search...
  • Page 270 ■ Input Terminal Block Arrangement Pulse output 3: Origin proximity input signal Pulse output 2: Origin input signal Pulse output 0: Origin input signal (line driver) Upper Terminal Block Pulse output 0: Origin input signal (open collector) Dedicated high-speed counter terminals Pulse output 0: Origin proximity input signal −...
  • Page 271 Option selected.) enabled for pulse outputs 0 and 1. CIO 1 00 Normal input 6 Interrupt input 2 Quick-response High-speed counter 3 (phase-Z/reset) Pulse 3: Origin input input 2 signal Normal input 7 Interrupt input 3 Quick-response...
  • Page 272: Pulse Output Patterns

    Stop Error Codes A444 A445 A438 A439 5-3-4 Pulse Output Patterns The following tables show the kinds of pulse output operations that can be performed by combining various pulse output instructions. Continuous Mode (Speed Control) Starting a Pulse Output...
  • Page 273 •Port Pulse frequency speed speed smoothly quency from the SPED(885) •Continu- smoothly during operation present frequency (Continu- Target frequency at a fixed rate. The ous) Acceleration/ •Target fre- deceleration frequency can be ↓ rate quency accelerated or Present frequency ACC(888) decelerated.
  • Page 274 Section 5-3 Pulse Outputs Stopping a Pulse Output Operation Example Frequency changes Description Procedure application Instruction Settings Stop pulse Immediate Stops the pulse out- SPED(885) •Port Pulse frequency output stop put immediately. or ACC(888) •Stop (Continu- pulse out- Present frequency ous) ↓...
  • Page 275 Note Triangular Control If the specified number of pulses is less than the number required just to reach the target frequency and return to zero, the function will automatically reduce the acceleration/deceleration time and perform triangular control (acceleration and deceleration only.) An error will not occur.
  • Page 276 SPED(885) The target position Time (Indepen- •Port (specified number dent) of pulses) is not •“CW/ Execution of SPED(885) changed. CCW” or (independent mode) SPED(885) (independent “Pulse + mode) executed again to direction” change the target •Indepen-...
  • Page 277 •Accelera- eration rates. target posi- tion rate (The target position is not tion must be changed. The original tar- •Decelera- specified in get position is specified tion rate absolute again.) coordinates.
  • Page 278 Note When the Execution of CCW” or settings can- PLS2(887) ACC(888) executed to change the not be “Pulse + target frequency. (The target position is changed direction” not changed, but the acceleration/ without main- deceleration rates are changed.) •Accelera- taining the...
  • Page 279 Section 5-3 Pulse Outputs Stopping a Pulse Output Operation Example applica- Frequency changes Description Procedure tion Instruction Settings Stop pulse Immediate stop Stops the pulse out- PULS(886) •Stop output put immediately ↓ Pulse frequency pulse out- (Number of and clears the num-...
  • Page 280 The pulse output PV's coordinate system (absolute or relative) is selected Absolute Coordinates automatically, as follows: • When the origin is undetermined, the system operates in relative coordi- nates. • When the origin has been determined, the system operates in absolute coordinates.
  • Page 281 Pulse Outputs Section 5-3 Relationship between the The following table shows the pulse output operation for the four possible Coordinate System and combinations of the coordinate systems (absolute or relative) and the pulse Pulse Specification output (absolute or relative) specified when PULS(886) or PLS2(887) is exe- cuted.
  • Page 282 80000000 to 7FFFFFFF hex Operations Affecting the Origin Status (Established/Not Established Status) The following table shows the operations that can affect the origin status (ori- gin established or no-origin), such as changing the operating mode and exe- cuting certain instructions.
  • Page 283 Pulse outputs will stop when either the CW or CCW limit input signals turns ON. It is also possible to select whether or not the established origin will be cleared when a CW or CCW limit input signal turns ON for an origin search or other pulse output function.
  • Page 284 The same type of S-curve acceleration/deceleration can be used for ACC(888) as well. Note The curve for S-curve acceleration/deceleration is formed by applying a cubic equation to the straight line of the set acceleration/deceleration rates (a cubic polynomial approximation). The curve’s parameters cannot be changed.
  • Page 285 Pulse source clock frequency by an integer ratio. (The source clock frequency for ports 0 and 1 is 20 MHz and the frequency for ports 2 and 3 is 16.4 MHz.) Output Function Consequently, there may be a slight difference between the set frequency and the actual frequency, and that difference increases as the frequency increases.
  • Page 286 Equations Source clock frequency Actual frequency (kHz) = Dividing ratio (Clock frequency x 2) + Set frequency Dividing ratio = INT Set frequency (kHz) x 2 The INT function extracts an integer from the fraction. The non-integer remainder is rounded.
  • Page 287: Origin Search And Origin Return Functions

    2.998 to 2.999 2.999 5-3-5 Origin Search and Origin Return Functions The CP1H CPU Units have two functions that can be used to determine the machine origin for positioning. 1,2,3... 1. Origin Search The ORG instruction outputs pulses to turn the motor according to the pat- tern specified in the origin search parameters.
  • Page 288 The origin location can be determined after using either method. The CP1H CPU Units are also equipped with the origin return function, which can be executed to return the system to the origin after the origin location has been determined by one of the methods above.
  • Page 289 The limit inputs must be connected to available normal input terminals or terminals and output from the ladder program. • Enable the origin search function for pulse output 0 to 3 by setting the Origin Search Function Enable/Disable setting to 1. • Limit Input Signal Settings Limit Input Signal Operation and Undefine Origin Settings •...
  • Page 290 Section 5-3 Pulse Outputs ■ Limit Input Signal Setting Specify in the following PLC Setup whether to use the CW/CCW limit input signals only for origin searches or for all pulse output functions. These set- tings affect all pulse outputs.
  • Page 291 (0 to 9,999 ms) operation Note An origin search will not be started unless the origin search proximity speed is less than the origin search high speed and unless the origin search/return ini- tial speed is less than the origin search proximity speed.
  • Page 292 Driver's positioning complete signal is used.) Note There are stepping motor drivers that are equipped with a positioning com- pleted signal like a Servo driver. Operating modes 1 and 2 can be used with these stepping motor drivers. ■ Remarks: Operations Detecting the Origin During Deceleration from High...
  • Page 293 Section 5-3 Pulse Outputs When the Origin Input Signal is received, the pulse output will be stopped and the Error Counter Reset Signal will be output for about 20 to 30 ms. Origin Input Signal (Phase-Z signal) Pulse output Error Counter Reset Signal Approx.
  • Page 294 Operating Mode 1 with Origin Proximity Input Signal Reverse (Origin Detection Method Setting = 0) When the deceleration time is short, the Origin Input Signal can be detected immediately after the Origin Proximity Input Signal goes from ON to OFF. Set a Origin Proximity Input Signal dog setting that is long enough (longer than the deceleration time.)
  • Page 295 This operating mode is the same as mode 1, except the Positioning Com- pleted Signal (INP) from the Servo Driver is used. Connect the Positioning Completed Signal from the Servo Driver to a normal input (origin search 0 to 3 input).
  • Page 296 Proximity speed for origin search Initial speed Start when Stop ORG(889) is executed. Origin Detection Method 1: Origin Proximity Input Signal Reversal Not Required Deceleration starts when Origin Proximity Input Signal goes OFF→ON. Origin Proximity Input Signal After the Origin Proximity Input Signal has gone from OFF→ON→OFF, the motor is stopped when...
  • Page 297 Mode and Origin origin search operation and origin detection method settings. Detection Method Settings These examples have a CW origin search direction. (The search direction and limit input signal direction would be different for an origin search in the CCW direction.)
  • Page 298 Start Stop CW limit input signal (See note.) Start Stop Start Note When the limit input signal is received, the motor stops without decel- eration, reverses direction, and accelerates. 1: Origin Prox- Origin Proximity imity Input Sig- Input Signal nal reversal not Origin Input required.
  • Page 299 CW limit input signal Stop (See note.) Start Limit stop Start (error code 0200) Note When the limit input signal is received, the motor stops without deceleration. 1: Origin Proximity Input Origin Proximity Signal reversal not Input Signal required. Origin Input...
  • Page 300 Stop Start Start Limit stop (error code 0201) Note When the limit input signal is received, the motor stops without deceleration. Specifying the Origin Sets the direction to move when detecting the Origin Input Signal. Search Direction (CW or Typically, the origin search is performed so that the Origin Input Signal's rising CCW Direction) edge is detected when moving in the origin search direction.
  • Page 301 The actual monitoring time will be the Positioning Monitor Time rounded up to the nearest 10-ms unit + 10 ms max. If the Positioning Monitor Time is set to 0, the function will be disabled and the Unit will continue waiting for the Positioning Completed Signal to come ON. (A Positioning Timeout Error will not be generated.)
  • Page 302: Related Auxiliary Area Flags

    If an error occurs that stops pulse output, the pulse output's Output Stopped Error Flag will be turned ON and the Pulse Output Stop Error Code will be written to Error Code word. Use these flags and error codes to identify the cause of the error.
  • Page 303 Corrective action Operation after error Origin Input Signal 0202 During an origin search in oper- Take one or both of the following Decelerates to a Error ating mode 0, the Origin Input steps so that the Origin Input stop, Signal was received during the...
  • Page 304 Section 5-3 Pulse Outputs Origin Search Examples Operation Connect a Servo Driver and execute an origin search based on the Servomo- tor's built-in encoder phase-Z signal and a Origin Proximity Input Signal. Conditions • Operating mode: 1 (Uses the Servomotor encoder's phase-Z signal as the Origin Input Sig- nal.)
  • Page 305 Pulse Output 0 Origin Search Deceleration Rate 0032 hex (50 Hz/4 ms) Pulse Output 0 Limit Input Signal Type 1: NO Pulse Output 0 Origin Proximity Input Signal Type 1: NO Pulse Output 0 Origin Input Signal Type 1: NO...
  • Page 306: Origin Return

    Moves the motor to the origin position from any other position. The origin return operation is controlled by ORG(889). The origin return operation returns the motor to the origin by starting at the specified speed, accelerating to the target speed, moving at the target speed, and then decelerating to a stop at the origin position.
  • Page 307 Sets the motor's starting speed when the origin return is executed. Specify Initial Speed the speed in the number of pulses per second (pps). Origin Return Target Sets the motor's target speed when the origin return is executed. Specify the Speed speed in the number of pulses per second (pps).
  • Page 308: Pulse Output Procedures

    (Origin return and CW/CCW method: #1000, Origin search and pulse + direction method: #1100) Note An instruction execution error will occur if the origin is not determined (relative coordinate system) when ORG(889) is executed to perform an origin return operation.
  • Page 309 Unit version 1.1 and later: Pulse outputs 0 to 3: 1 Hz to 100 kHz (1 Hz units) Unit version 1.0 and earlier: Pulse outputs 0 and 1: 1 Hz to 100 kHz (1 Hz units) Pulse outputs 2 and 3: 1 Hz to 30 kHz (1 Hz units) •...
  • Page 310: Instructions Used For Pulse Outputs

    Instructions used for Pulse Outputs The pulse output functions can be used by executing the pulse control instruc- tions in the ladder program. For some instructions, the PLC Setup must be set in advance. The following instructions can be combined for positioning and speed control.
  • Page 311 Pulse Outputs Section 5-3 The following table shows the kinds of pulse outputs controlled by each instruction. Instruction Function Positioning (independent mode) Speed control Origin (continuous mode) search Pulse Pulse output with Pulse Pulse output acceleration/deceler- output output without ation...
  • Page 312 Section 5-3 Pulse Outputs SET PULSES: PULS(886) PULS(886) is used to set the pulse output amount (number of output pulses) for pulse outputs that are started later in the program using SPED(885) or ACC(888) in independent mode. PULS(886) P: Port specifier...
  • Page 313 Either independent mode positioning or constant mode speed control is possi- ble when used in combination with PULS(886). ACC(888) can also be exe- cuted during pulse output to change the target frequency or acceleration/ deceleration rate, enabling smooth (sloped) speed changes.
  • Page 314 PLS2(887) tion rate, and output a specified number of pulses. Only independent mode positioning is supported. PLS2(887) can also be executed during pulse output to change the number of output pulses, target frequency, acceleration rate, or deceleration rate. PLS2(887) P: Port specifier...
  • Page 315 #0001: Absolute pulse output Bits 4 to 7 Direction 0 hex: CW 1 hex: CCW Bits 8 to 11 Pulse output method (See note.) 0 hex: CW/CCW 1 hex: Pulse + direction Bits 12 to 15 Not used. (Always 0 hex.)
  • Page 316 First starting fre- F and F+1 contain the starting frequency setting, in units quency word of 1 Hz. (F contains the rightmost 4 digits and F+1 con- tains the leftmost 4 digits.) X/XA CPU Units: Unit version 1.1 and later: •...
  • Page 317 PLC Setup parameters must be set before performing an origin search or ori- gin return operation. Origin Search Positions the system to the origin based on the origin proximity input and ori- gin input signals. Origin Return Returns the system from its present position to the pre-established origin.
  • Page 318 P: Port specifier C: Control data D: First destination word Note This section explains the functions related to pulse outputs only. For details on the PRV(881) instruction’s high-speed counter or interrupt functions, refer to 5-1 Interrupt Functions or 5-2 High-speed Counters. Operand...
  • Page 319 Contents First Reading PV After the pulse output PV is read, the 8-digit hexadecimal desti- data is stored in D and D+1. (D contains the rightmost 4 (D and D+1) nation digits and D+1 contains the leftmost 4 digits.) word...
  • Page 320 It is possible to start another operation during acceleration/deceleration and start another positioning instruction during positioning. Instruction being Starting instruction executed (❍: Can be executed., ×: Instruction Error occurs and Error Flag goes ON) INI(880) SPED(885) SPED(885) ACC(888) ACC(888)
  • Page 321: Variable Duty Factor Pulse Outputs (Pwm(891) Outputs)

    PWM (Pulse Width Modulation) pulse outputs can be output with a specified duty factor. The duty factor is the ratio of the pulse's ON time and OFF time in one pulse cycle. Use the PWM(891) instruction to generate variable duty fac- tor pulses from a built-in output.
  • Page 322: Example Pulse Output Applications

    Execute PWM(891). Restrictions on the PWM(891) Outputs • In the Y CPU Units, PWM outputs 0 and 1 cannot be used for pulse out- puts 2 and 3 if the origin search function is enabled for pulse outputs 2 and 3.
  • Page 323 ■ PLC Setup Built-in Input Settings PLC Setup setting details Use built-in input 0.00 as the interrupt input. Pulse Output 0 Settings PLC Setup setting details Do not use high-speed counter 0. Do not use the pulse output 0 origin search function.
  • Page 324 Built-in Input 0 Interrupt Task (Interrupt Task 140) A280.04 MSKS(690) Pulse Output 0 Scheduled interrupt 2 #0014 Output In-progress (Reset start) Flag Scheduled interrupt time #0005 (5 x 0.1 ms* = 0.5 ms) * Select 0.1 ms for the setting units in the PLC Setup.
  • Page 325 100 Hz Start input (1.04) Instructions Used PLS2(887) Preparation ■ PLC Setup There are no settings that need to be made in the PLC Setup. DM Area Settings PLS2(887) Settings (D00000 to D00007) Setting details Address Data Acceleration rate: 300 Hz/4 ms...
  • Page 326 • Absolute pulses can be specified when the origin position has been deter- mined. • If a target frequency that cannot be reached has been set, the target fre- quency will be reduced automatically, i.e., triangular control will be per- formed.
  • Page 327 Starts and stops (decelerate to a stop) the high-speed jog opera- tions. Preparation ■ PLC Setup There are no settings that need to be made in the PLC Setup. DM Area Settings Settings to Control Speed while Jogging (D0 to D1 and D10 to D15)
  • Page 328 1.04 A281.04 SPED(885) Low-speed Pulse Output Pulse output 1 #0001 CW Start in Progress Specifies CW/CCW output method, #0000 CW side, and continuous mode. Target frequency SET 200.00 200.00 1.04 SPED(885) Low-speed Low-speed #0001 CW output in CW Start progress...
  • Page 329: Cutting Long Material Using Fixed Feeding

    Cutting Long Material Using Fixed Feeding Specifications and Operation ■ Outline In this example, first jogging is used to position the material and then fixed- distance positioning is used to feed the material. 10,000 Hz Acceleration: 1,000 Hz/4 ms (03E8 hex)
  • Page 330 Built-in I/O other than pulse outputs are used. ■ Operation 1,2,3... 1. The workpiece is set at the starting position using the Jogging Switch Input (IN 1.04). 2. The workpiece is feed the specified distance (relative) using the Position- ing Switch Input (IN 1.05).
  • Page 331 Section 5-3 Pulse Outputs Settings for PLS2(887) for Fixed-distance Feeding (D10 to D20) Setting details Address Data Acceleration rate: 1,000 Hz/4 ms #03E8 Deceleration rate: 1,000 Hz/4 ms #03E8 Target frequency: 10,000 Hz #2710 #0000 Number of output pulses: 50,000 pulses...
  • Page 332 1.06 Cutter Finished Cutter activated A280.03 101.00 Pulse Output Completed Flag Counting Feed Operations A280.03 Pulse Output 0000 Completed Flag Count Value in 1.05 Positioning Switch Cutting Operation C0000 101.01 Finished Emergency Stop (Pulse Output Stopped) 1.07 (880) Emergency Stop...
  • Page 333 1. PLS22(887) used a relative pulse setting. This enables operation even if the origin is not defined. The present position in A276 (lower 4 digits) and A277 (upper 4 digits) is set to 0 before pulse output and then contains the specified number of pulses.
  • Page 334 Section 5-3 Pulse Outputs 3. The system is returned to the original position. Origin (servo Origin limit phase Z) proximity limit 1. Origin search 2. Fixed-distance positioning repeated 50,000 Hz (C350 hex) 10000 (2710 hex) Acceleration/ 3. Return to start...
  • Page 335 PCB Storage Completed Input (CIO 0.03). 4. Storing PCBs is repeated until the stocker is full. 5. The number of PCBs in the stocker is counted with counter C0 by counting the number of times the stocker is raised.
  • Page 336 Section 5-3 Pulse Outputs 6. When the stocker is full, it is moved (CIO 1.01) and only the conveyor is lowered (absolute positioning) when stoker movement is completed (CIO 0.03). The operation can be canceled and pulse output stopped at any point using the Emergency Switch Input (CIO 0.05).
  • Page 337 Section 5-3 Pulse Outputs Setting details Address Data Starting frequency: 100 Hz #0000 #0000 Number of Repeats of Fixed-distance Positioning Operation (D20) Setting details Address Data Number of repeats of fixed-distance positioning operation #0015 (number of PCBs in stocker)
  • Page 338 Lift positioning positioning start @PLS2(887) completed W0.03 #0000 #0000 Lift positioning progress W0.04 A280.03 Lift positioning completed Pulse Output Completed Flag Counter for Number of Lifts (Number of PCBs stored) W0.04 Lift positioning 0000 completed W0.09 #0100 Lower positioning completed...
  • Page 339 Emergency Stop (Pulse Output Stopped) 0.05 @INI(880) #0000 Emergency stop #0003 switch Repeat Limit Input Settings Limit inputs are allocated to external sensors using the following programming. A540.08 0.06 CW limit input signal Built-in input A540.09 0.07 CCW limit input...
  • Page 340 ■ Operation Pattern 1,2,3... 1. An origin search is performed. 2. A workpiece is grasped and moved to position A. 3. The workpiece is grasped at one position and moved back and forth to sev- eral assembly positions. 1. Origin search 50000...
  • Page 341 Section 5-3 Pulse Outputs Wiring Example Using SmartStep A-series Servo Driver, XW2Z Cables, and XW2B I/O Terminal Origin Search Switch (CIO 0.04) Emergency Stop Switch (CIO 0.05) SMARTSTEP A-series Servo Driver X axis R88A-CPU00@S and resistor Y axis SMARTSTEP A-series Servo Driver...
  • Page 342 ZCOM Pulse 0 origin input signal (CIO 0.00) 24VIN 24 VDC Servo Driver RUN input Pulse 0 origin proximity input signal (CIO 0.01) RESET Servo Driver alarm reset input Origin search switch (CIO 0.04) OGND Emergency stop switch (CIO 0.05)
  • Page 343 3. An emergency stop can be performed using the Emergency Stop Input (CIO 0.05) Preparation ■ PLC Setup Setting details Enable origin search function for pulse output 0. Note The origin search enable setting is read when the power supply is turned ON.
  • Page 344 #07D0 Target frequency: 100,000 Hz #86A0 #0001 Number of output pulses: 5,000 pulses #1388 #0000 PLS2(887) Settings to Move from Position A to Position B Setting details Address Data X axis Acceleration rate: 2,000 Hz/4 ms #07D0 Deceleration rate: 2,000 Hz/4 ms...
  • Page 345 #07D0 Target frequency: 100,000 Hz #86A0 #0001 Number of output pulses: 50,000 pulses #C350 #0000 PLS2(887) Settings to Move from Position A to Position C Setting details Address Data X axis Acceleration rate: 2,000 Hz/4 ms #07D0 Deceleration rate: 2,000 Hz/4 ms...
  • Page 346 Origin W0.00 Search Switch W0.00 W1.14 Origin Search start W1.15 RSET Origin W0.00 Search completed Operation 1: Positioning to A W0.00 W0.01 W0.01 W1.00 Positioning to A start W2.00 RSET Positioning W0.01 to A completed Operation 2: Positioning to B W0.01...
  • Page 347 D completed Operation 5: Positioning to A W0.06 W0.07 W0.07 W3.02 Positioning to A start W2.00 RSET Positioning W0.07 to A completed Origin Search Start and Completion for X and Y Axis W1.14 @ORG (889) Origin Search start @ORG (889)
  • Page 348 Section 5-3 Pulse Outputs A280.05 A281.05 W1.15 Origin Search completed No Origin No Origin Flag Flag Positioning to A Start and Completion for X and Y axis W1.00 @PLS2 (887) Positioning to A start W3.00 Positioning to A start W3.01...
  • Page 349 (887) A280.03 A281.03 W2.02 Positioning to C completed Pulse pulse output output completed completed Positioning to D Start and Completion for X and Y axis W1.03 @PLS2 (887) Positioning to D start @PLS2 (887) A280.03 A281.03 W2.03 Positioning to D...
  • Page 350 Section 5-3 Pulse Outputs Limit Input Setting CW limit input 0.04 A540.08 signal X axis Built-in input IN6 CCW limit input 0.05 A540.09 signal X axis Built-in input IN7 CW limit input 0.08 A541.08 signal Y axis Built-in input IN8 CCW limit input 0.09...
  • Page 351 (IN0) ■ Operation 1,2,3... 1. Speed control is used to feed wrapping material to the initial position when the Start Switch (CIO 1.04) is activated. 2. When the Marker Sensor Input (IN0) is received, PLS2(887) is executed in interrupt task 140.
  • Page 352 ■ PLC Setup Setting details Enable using built-in input IN0 as an interrupt input. Note The interrupt input setting is read when the power supply is turned ON. ■ DM Area Settings Speed Control Settings to Feed Wrapping Material to Initial Position...
  • Page 353 [OP2] Emergency [OP3] stop <0.00> switch <0.01> Program for Interrupt Task [Program Name: New Program2] 000000 (000000) [Section Name: Section1] Interrupt Task for Master Sensor ON Starting interrupt Feed [OP1] CF113 PLS2 (887) [OP2] P_On [OP3] Always [OP4] ON Flag...
  • Page 354: Quick-Response Inputs

    The following diagrams show the input bits and terminals that can be used for Quick-Response quick-response inputs in each CPU Unit. Inputs X/XA CPU Units The 8 input bits CIO 0.00 to CIO 0.03 and CIO 1.00 to CIO 1.03 can be used as quick-response inputs.
  • Page 355 Input interrupt 7 Quick-response input 7 04 to 11 Normal inputs 16 to 23 --- Y CPU Units The 6 input bits CIO 0.00 to CIO 0.01 and CIO 1.00 to CIO 1.03 can be used as quick-response inputs. Input Terminal Arrangement Quick-response input 3...
  • Page 356 Quick-response Inputs Setting the Input Functions in the PLC Setup Normally, bits CIO 0.00 to CIO 0.01 and CIO 1.00 to CIO 1.03 are used as normal inputs. When using these inputs for input interrupts, use the CX-Pro- grammer to change the input’s setting in the PLC Setup.
  • Page 357: Analog I/O (Xa Cpu Units)

    Section 5-5 Analog I/O (XA CPU Units) Analog I/O (XA CPU Units) The XA CPU Units of the CP1H CPU Units are equipped with 4 built-in analog inputs and 2 built-in analog outputs. Built-in analog inputs (A/D) Built-in analog Analog Voltage/Current...
  • Page 358 −10 to 10 V Input Analog Input Signal Ranges When the resolution is set to 1/6,000, the −10 to 10-V range corresponds to hexadecimal values F448 to 0BB8 (−3,000 to 3,000). The entire data range is F31C to 0CE4 (−3,300 to 3,300).
  • Page 359 FED4 (−300) 0 to 5 V Input When the resolution is set to 1/6,000, the 0 to 5-V range corresponds to hexa- decimal values 0000 to 1770 (0 to 6,000). The entire data range is FED4 to 189C (−300 to 6,300).
  • Page 360 FED4 (−300) 0 to 20 mA Inputs When the resolution is set to 1/6,000, the 0 to 20-mA range corresponds to hexadecimal values 0000 to 1770 (0 to 6,000). The entire data range is FED4 to 189C (−300 to 6,300).
  • Page 361 6,000) correspond to an analog voltage range of 0 to 10 V. When the resolution is set to 1/12,000, the hexadecimal values 0000 to 2EE0 (0 to 12,000) correspond to an analog voltage range of 0 to 10 V. The entire output range is −0.5 to 10.5 V.
  • Page 362 6,000) correspond to an analog voltage range of 0 to 5 V. When the resolution is set to 1/12,000, the hexadecimal values 0000 to 2EE0 (0 to 12,000) correspond to an analog voltage range of 0 to 5 V. The entire output range is −0.25 to 5.25 V.
  • Page 363 The open-circuit detection function is activated when the input range is set to Function for Analog 1 to 5 V and the voltage drops below 0.8 V, or when the input range is set to 4 Inputs to 20 mA and the current drops below 3.2 mA. When the open-circuit detec- tion function is activated, the converted data will be set to 8,000.
  • Page 364 I/O points.) • Set the analog input range: Set the PLC Setup. 0 to 5 V, 1 to 5 V, 0 to 10 V, or −10 to 10 V (Each input is set independently.) • Set the analog output range: 0 to 20 mA or 4 to 20 mA (Each output is set independently.)
  • Page 365 I/O points. • The input range can be set to −10 to 10 V, 0 to 10 V, 1 to 5 V, 0 to 5 V, 0 to 20 mA or 4 to 20 mA.
  • Page 366 (1) Use 2-conductor shielded twisted-pair cable for the I/O wiring, and do not connect the shield. (2) If an input is not being used, connect (short) the input’s + and − terminals. (3) Wire I/O lines apart from power lines (AC power supply lines, three-phase power lines, etc.).
  • Page 367 2 24 VDC Example: If analog input device 2 is outputting 5 V and the same power sup- ply is being used for both devices as shown above, approximately 1/3, or 1.6 V, will be applied to the input for input device 1.
  • Page 368 1 to 5 V, open-circuit detection may not be possible. Also, if a disconnec- tion occurs at point C in the diagram, the negative (-) side will be used in for both devices and open-circuit detection will not be possible.
  • Page 369 1 to 5 V or 4 to 20 mA. For any other fatal errors in the CPU Unit, 1 V or 4 mA will be output if the output range is 1 to 5 V or 4 to 20 mA.
  • Page 370 Section 5-5 Analog I/O (XA CPU Units)
  • Page 371: Advanced Functions

    Memory Cassette Functions ........
  • Page 372: Serial Communications

    Section 6-1 Serial Communications Serial Communications 6-1-1 Overview The CP1H CPU Units support the following serial communications functions. Protocol Connected devices Description Serial Serial port 1 port 2 No-protocol Standard devices supporting serial communications Communicates with standard devices with an RS-232C or...
  • Page 373 1:1 connec- tions.) RS-232C NT Link CP1H CPU Unit Host Link Host computer or OMRON PT (Programmable Terminal) 1) Various control commands such as reading and writing I/O memory, changing the operating mode, and force- Personal computer setting/resetting bits can be...
  • Page 374: No-Protocol Communications

    (e.g., no retry processing, data type conversion, or process branching based on received data). The communica- tions mode for the serial port must be set for no-protocol communications in the PLC Setup. No-protocol communications are used to send data in one direction to or from standard devices that have an RS-232C or RS-422A/485 port using TXD(236) or RXD(235).
  • Page 375 256 bytes max. 256 bytes max. 256 bytes max. • When more than one start code is used, the first start code will be effec- tive. • When more than one end code is used, the first end code will be effective.
  • Page 376: Modbus-Rtu Easy Master Function

    Section 6-1 Serial Communications Note A setting can be made to delay the transmission of data after the execution of TXD(236). Delay time Transmission Time Execution of TXD(236) Refer to the SYSMAC CP Series CP1H CPU Unit Programming Manual (W451) for more details on TXD(236) and RXD(235).
  • Page 377 Modbus-RTU commands are stored in the DM Area in D32200 to D32249 for Words for the serial port 1 and in D32300 to D32349 for serial port 2. When a response is received after turning ON the Modbus-RTU Master Execution Bit, it is stored...
  • Page 378 The Modbus-RTU command set in the DM fixed allocation words for the Mod- and Bits bus-RTU Easy Master is automatically sent when the Modbus-RTU Master Execution Bit is turned ON. The results (normal or error) will be given in corre- sponding flags. Word...
  • Page 379: Communications: Smart Active Parts And Function Blocks

    Responses are also converted in the same way. Note Serial ports 1 and 2 on the CP1H CPU Unit can be used to convert to the fol- lowing protocols. • CompoWay/F...
  • Page 380 2804 FINS header Modbus-RTU command Modbus-RTU command The serial gateway functionality is enabled when serial port 1 or 2 is set to the Serial Gateway Mode. Contents of FINS header • Destination network address(DNA) a) When the routing table for network control of serial communication...
  • Page 381: Serial Plc Links

    Serial PLC Links cannot be used on serial ports 1 and 2 at the same time. If one port is set as a Serial PLC Link slave or master, it will not be possible to set the other port for a Serial PLC Link. A PLC Setup error will occur if an...
  • Page 382 • Complete link method • Polling Unit link method Complete Link Method The data from all nodes in the Serial PLC Links are reflected in both the Poll- ing Unit and the Polled Units. (The only exceptions are the address allocated...
  • Page 383 Example: Complete Link Method, Highest Unit Number: 3 In the following diagram, Polled Unit No. 2 is either a PT or is a Unit not present in the network, so the area allocated for Polled Unit No. 2 is undefined in all nodes.
  • Page 384 Serial Communications Example: Polling Unit Link Method, Highest Unit Number: 3 In the following diagram, Polled Unit No. 2 is a PT or a Unit not participating in the network, so the corresponding area in the Polling Unit is undefined.
  • Page 385 Polling Unit CIO 3100 CIO 3100 to CIO 3100 to CIO 3100 to CIO 3101 CIO 3102 CIO 3109 Polled Unit No. 0 CIO 3101 CIO 3102 to CIO 3103 to CIO 3110 to CIO 3103 CIO 3105 CIO 3119 Polled Unit No.
  • Page 386 Unit number 0 to 7 Note Both serial ports cannot be used for PLC Links at the same time. If both ports are set for PLC Links (either as polling node or polled node), a PLC Setup set- ting error (non-fatal error) will occur and the PLC Setup Setting Error Flag (A40210) will turn ON.
  • Page 387 • Turns OFF when the changes to settings are completed. Note In the same way as for the existing 1:N NT Link, the status (communicating/ not communicating) of PTs in Serial PLC Links can be checked from the Poll- ing Unit (CPU Unit) by reading the Serial Port 1 Communicating with PT Flag...
  • Page 388 • Turns OFF when the changes to settings are completed. Note In the same way as for the existing 1:N NT Link, the status (communicating/ not communicating) of PTs in Serial PLC Links can be checked from the Poll- ing Unit (CPU Unit) by reading the Serial Port 2 Communicating with PT Flag...
  • Page 389: N Nt Links

    Set the PT as follows: 1,2,3... 1. Select NT Link (1:N) from Comm. A Method or Comm. B Method on the Memory Switch Menu under the System Menu on the PT Unit. 2. Press the SET Touch Switch to set the Comm. Speed to High Speed.
  • Page 390: Host Link Communications

    Section 6-1 Serial Communications 6-1-7 Host Link Communications The following table shows the host link communication functions available in CP1H PLCs. Select the method that best suits your application. Command Command type Communications method Configuration flow Create frame in the host com-...
  • Page 391 Reads the contents of the specified number of timer/counter PVs (present values) starting from the specified timer/counter. T/C STATUS READ Reads the status of the Completion Flags of the specified number of timers/ counters starting from the specified timer/counter. DM AREA READ Reads the contents of the specified number of DM Area words starting from the specified word.
  • Page 392 LINK AREA WRITE Writes the specified data (word units only) to the Link Area, starting from the specified word. HR AREA WRITE Writes the specified data (word units only) to the Holding Area, starting from the specified word.
  • Page 393 Undefined com- This response is returned if the header code of a command was not recog- mand nized. (response only) FINS Commands The following table lists the FINS commands. Refer to the FINS Commands Reference Manual (W227) for more details.
  • Page 394: Analog Adjuster And External Analog Setting Input

    Setting the value for timer T100 in A642 makes it possible to use T100 as a variable timer with a range of 0 to 25.5 s (0 to 255). A change in the set value is reflected with the next scan.
  • Page 395: External Analog Setting Input

    Setting the value for timer T101 in A643 makes it possible to use T101 as a variable timer with a range of 0 to 25.6 s (0 to 256). A change in the set value is reflected with the next scan.
  • Page 396: 7-Segment Led Display

    When an error occurs at the CPU Unit, the error code is displayed. If multiple errors occur simultaneously, they are prioritized for display in order of impor- tance. Then, as each error is cleared, the error code for the next one is dis- played.
  • Page 397 When the analog adjuster is used to change a set value, that value is dis- Display played in the 7-segment LED from 00 to FF hex (0 to 255). The set value is displayed regardless of the operating mode of the CP1H CPU Unit. The dis- play is cleared when the set value remains unchanged for at least 4 seconds.
  • Page 398: Battery-Free Operation

    In that case it is necessary to set the required values in the ladder program. It is also possible to save to the built-in flash memory in advance the DM initial values that are to be set for the DM on RAM at startup.
  • Page 399 Required) 1,2,3... 1. First set in the DM Area the data that is to be set as initial values at startup. 2. Execute a backup to flash memory from the CX-Programmer's Memory Cassette Transfer/Data Memory Backup Dialog Box.
  • Page 400: Memory Cassette Functions

    CPU Unit. Also, the CX- Programmer can be used to save all of the data in the DM Area to the flash memory for use as initial values when the power supply is turned ON. Neither...
  • Page 401: Mounting And Removing A Memory Cassette

    Therefore it is not possible to simultaneously store multiple items of the same type of data (e.g., two user programs). Also, the data can only be read to a CPU Unit. It cannot be directly managed from a personal computer like files.
  • Page 402 7-segment LED are flashing (i.e., during a data transfer or verifica- tion). Doing so could make the Memory Cassette unusable. (3) The Memory Cassette is small, so be careful to not let it be dropped or lost when it is removed.
  • Page 403: Operation Using The Cx-Programmer

    1. Select PLC - Edit - Memory Cassette/DM. The following Memory Cassette Transfer/Data Memory Backup Dialog Box will be displayed. 2. Under Transfer Data Area, check whatever types of data are to be trans- ferred. 3. Execute any of the following operations.
  • Page 404: Memory Cassette Data Transfer Function

    Memory Cassette Data Transfer Function Writing from the CPU The CX-Programmer's Memory Cassette function can be used to write data Unit to the Memory from the CPU Unit to the Memory Cassette. The data to be written can be individually specified. Cassette CX-Programmer...
  • Page 405 CPU Unit. Cassette at Startup Mount a Memory Card and set DIP switch pin SW2 to ON, and then turn the power OFF and back ON. All valid data in the Memory Card will be automatically transferred to the CPU Unit.
  • Page 406 While the BKUP and 7-segment LED indicators are flashing, 1) do not turn OFF the power supply to the PLC and 2) do not remove the Memory Cas- sette. If either of these is done, in the worst case it may make the Memory Cassette unusable.
  • Page 407 1,2,3... 1. Prepare a Memory Cassette with the required data stored. 2. With the power supply turned OFF to the CPU Unit, remove the cover from the Memory Cassette slot and insert the Memory Cassette. 3. Open the cover for the CPU Unit's PERIPHERAL section and set DIP switch pin SW2 to ON.
  • Page 408: Program Protection

    Program Protection 7. Remove the Memory Cassette, and replace the Memory Cassette slot cov- 8. Return the setting of DIP switch pin SW2 to OFF, and close the cover. 9. Turn the power supply to the CPU Unit back ON.
  • Page 409 Task Read Protection 3. If an incorrect password is input five times consecutively, read protection will not be released even if the correct password is input on the sixth at- tempt and displaying and editing the entire user program or the specified tasks will be disabled for two hours.
  • Page 410 1. If the CX-Programmer is used to read a task with task read protection ap- plied, an error will occur and the task will not be read. Likewise, if the PT Ladder Monitor function is used to read a password protected task, an er-...
  • Page 411: Write Protection

    The user program can be write-protected by turning ON pin 1 of the CPU Using the DIP Switch Unit’s DIP switch. When this pin is ON, it won’t be possible to change the user program or parameter area (e.g., PLC Setup and routing tables) from the CX- Programmer.
  • Page 412 BCD. The format is the same as that for the User Program Date given above. Write-protection The program (or selected tasks) can also be write-protected if the write pro- Using Passwords tection option is selected from the CX-Programmer when a password is being registered for the entire program or those selected tasks.
  • Page 413: Protecting Program Execution Using The Lot Number

    6-6-3 Protecting Program Execution Using the Lot Number The lot number is stored in A310 and A311 and can be used to prevent the program from being executed on a CPU Unit with the wrong lot number. The lot number stored in A310 and A311 cannot be changed by the user.
  • Page 414 Section 6-6 Program Protection X, Y, and Z in the lot number are converted to 10, 11, and 12, respectively, in A310 and A311. Some examples are given below. Lot number A311 A310 01805 0005 0801 30Y05 0005 1130 Application Examples...
  • Page 415: Failure Diagnosis Functions

    3. The error code and time of occurrence are stored in the Error Log. 4. The error indicator on the front of the CPU Unit will flash or light. 5. If FAL(006) has been executed, the CPU Unit will continue operating.
  • Page 416 ON. Time Monitoring FPD(269) starts timing when it is executed and turns ON the Carry Flag if the Function diagnostic output isn’t turned ON within the specified monitoring time. The Carry Flag can be programmed as the execution condition for an error pro- cessing block.
  • Page 417: Simulating System Errors

    Use the following procedure. 1,2,3... 1. Set the FAL or FALS number to use for simulation in A529. A529 is used when simulating errors for both FAL(006) and FALS(007). 2. Set the FAL or FALS number to use for simulation as the first operand of FAL(006) or FALS(007).
  • Page 418: Output Off Bit

    Generate a battery error using FAL number 100. Note Use the same methods as for actual system errors to clear the simulated sys- tem errors. Refer to the 11-2 Troubleshooting for details. All system errors simulated with FAL(006) and FALS(007) can be cleared by cycling the power supply.
  • Page 419: Clock

    Section 6-8 Clock Clock A clock is built into the CP1H CPU Unit and is backed up by a battery. The current data is stored in the following words and refreshed each cycle. Name Addresses Function Clock data: A351.00 to A351.07...
  • Page 420 CALENDAR ADD CADD(730) Adds time to the calendar data in the speci- fied words. CALENDAR SUBTRACT CSUB(731) Subtracts time from the calendar data in the specified words. CLOCK ADJUSTMENT DATE(735) Changes the internal clock setting to the set-...
  • Page 421: Using Cp-Series Expansion Units And Expansion I/O Units

    CompoBus/S I/O Link Units........
  • Page 422: Connecting Cp-Series Expansion Units And Expansion I/O Units

    CPM1A-DA041 Analog Output Units, and CPM1A-TS002 and CPM1A-TS102 Temperature Sensor Units are allocated four words in the I/O area, however, so when any of these Units is included the total number of Expansion Units and Expansion I/O Units must be reduced.
  • Page 423: Analog Input Units

    Each CP1W-AD041/CPM1A-AD041 Analog Input Unit provides four analog inputs. • The analog input signal ranges are 0 to 5 V, 1 to 5 V, 0 to 10 V, -10 to +10 V, 0 to 20 mA, and 4 to 20 mA. The resolution is 1/6,000. The open-circuit detection function is activated in the ranges of 1 to 5 V and 4 to 20 mA.
  • Page 424 Connected to the next Expansion Unit or Expansion I/O Unit to enable ex- pansion. Main Analog Input Analog Input Units are connected to a CP1H CPU Unit. A maximum of seven Unit Specifications Units can be connected, including other Expansion Units and Expansion I/O Units.
  • Page 425: Analog Input Signal Ranges

    I/O signals. Current consumption 5 VDC: 100 mA max.; 24 VDC: 90 mA max. Analog Input Signal Analog input data is digitally converted according to the input signal range as Ranges shown below. Note When the input exceeds the specified range, the A/D conversion data will be...
  • Page 426 0000 (0) ment. 10 V 11 V F448 (−3000) F31C (−3300) ■ 0 to 10 V Inputs Voltage in the 0 to 10 V range Converted data Hexadecimal (Decimal) corresponds to hexadecimal values 0000 to 1770 (0 to 189C (6300) 6,000).
  • Page 427 The open-circuit detection function is activated when the input range is set to Function 1 to 5 V and the voltage drops below 0.8 V, or when the input range is set to 4 to 20 mA and the current drops below 3.2 mA. When the open-circuit detec- tion function is activated, the converted data will be set to 8,000.
  • Page 428 • Select input signals using range codes. • Set use of averaging. • Read A/D conversion values from input words (m+1 to m+4). • For current inputs, confirm that there is no open circuit. Writing Set Data and Reading A/D...
  • Page 429 (3) Separate wiring from power lines (AC power supply lines, high-voltage lines, etc.) (4) When there is noise in the power supply line, install a noise filter on the input section and the power supply. (5) Refer to the following information on open circuits when using voltage in-...
  • Page 430 1/3 to 1/2. If the 1 to 5-V range is being used, the open-circuit detec- tion function will not operate. Also, if there is an open circuit at C, the open-cir- cuit detection function will not operate because the negative sides are the same.
  • Page 431 • The Analog Input Unit will not start converting analog I/O values until the range code has been written. • Once the range code has been set, it is not possible to change the setting while power is being supplied to the CPU Unit. To change the I/O range, turn the CPU Unit OFF then ON again.
  • Page 432: Analog Output Units

    Each CP1W-DA041/CPM1A-DA041 Analog Output Unit provides four analog outputs. • The analog output signal ranges are 1 to 5 V, 0 to 10 V, -10 to +10 V, 0 to 20 mA, and 4 to 20 mA. The resolution is 1/6,000. The open-circuit detec- tion function is activated in the ranges of 1 to 5 V and 4 to 20 mA.
  • Page 433 COM4 Output common 4 2. Expansion I/O Connecting Cable Connected to the CPU Unit or previous Expansion Unit. The cable is pro- vided with the Unit and cannot be removed. Note Do not touch the cables during operation. Static electricity may cause operat- ing errors.
  • Page 434: Analog Output Signal Ranges

    I/O signals. Current consumption 5 VDC: 80 mA max.; 24 VDC: 124 mA max. Analog Output Signal The analog values depend on the output signal ranges, as shown in the fol- Ranges lowing diagrams. Note When the output exceeds the specified range, the output signal will be fixed at...
  • Page 435: Analog Output Units

    ■ −10 to 10 V The hexadecimal values F448 to 0BB8 (–3000 to 3000) correspond to an ana- log voltage range of –10 to 10 V. The entire output range is –11 to 11 V. Spec- ify a negative voltage as a two’s complement.
  • Page 436 Analog Output Units ■ 0 to 20 mA The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog current range of 0 to 20 mA. The entire output range is 0 to 21 mA. 21 mA 20 mA...
  • Page 437 (1) Separate wiring from power lines (AC power supply lines, high-voltage lines, etc.) (2) When there is noise in the power supply line, install a noise filter on the input section and the power supply. (3) When external power is supplied (when range codes are set), or when the power is interrupted, there may be a pulse status analog output of up to 1 ms.
  • Page 438 0 V or 0 mA will be output in the 0 to 10 V, -10 to +10 V, and 0 to 20 mA ranges, and 1 V or 4 mA will be output in the 1 to 5 V and 4 to 20 mA ranges.
  • Page 439 0 V or 0 mA. If a CPU Unit fatal error occurs when analog outputs are set in the 1 to 5 V or 4 to 20 mA range, 0 V or 0 mA will be output for a CPU error I/O bus error, and 1 V or 1 mA will be output for all other errors.
  • Page 440: Analog I/O Units

    Each CPM1A-MAD01 Analog I/O Unit provides 2 analog inputs and 1 analog output. • The analog input range can be set to 0 to 10 VDC, 1 to 5 VDC, or 4 to 20 mA with a resolution of 1/256.
  • Page 441 I OUT VIN1 COM1 I IN2 VOUT I IN1 V IN2 COM2 Note When using current inputs, short terminal V IN1 with I IN1 and ter- minal V IN2 with I IN2. V OUT Voltage output I OUT Current output...
  • Page 442 5 VDC: 66 mA max., 24 VDC: 66 mA max. Note (1) The conversion time is the total time for 2 analog inputs and 1 analog out- put. (2) With analog outputs it is possible to use both voltage outputs and current outputs at the same time.
  • Page 443 Section 7-4 Analog I/O Units Analog I/O Signal Ranges Analog Input Signal Ranges 0 to 10 V inputs 1 to 5 V inputs 4 to 20 mA inputs Conversion value Conversion value Conversion value 0 mA 4 mA 10 V...
  • Page 444 • Write the range code. Create a ladder program • Analog input: 0 to 10 V, 1 to 5 V, 4 to 20 mA • Analog output: 0 to 10 V, −10 to 10 V, 4 to 20 mA • Analog input: Read converted data.
  • Page 445 (3) Wire away from power lines (AC power supply wires, power lines, etc.) (4) When an input is not being used, short V IN and I IN to the COM terminal. (5) Use crimp terminals. (Tighten terminals to a torque of 0.5 N·m.)
  • Page 446 1 to 5 V/4 to 20 mA • The voltage/current selection is made by switching the wiring. • Write the range code to the Analog I/O Unit output word (n + 1) in the first cycle of program execution. First Cycle Flag A200.11...
  • Page 447 The Open-circuit Detection Flag is turned ON if the input signal range is set to 1 to 5 V or 4 to 20 mA and the input signal falls below 1 V or 4 mA. (Open cir- cuits are not detected when the input signal range is set to 0 to 10 V.)
  • Page 448 Analog output data will be 0 V or 0 mA until the range code has been written. After the range code has been written, the analog output data will be 0 V or 4 mA if the range is 0 to 10 V, −10 to 10 V, or 4 to 20 mA.
  • Page 449 MOV(021) Handling Unit Errors • When an error occurs in the Analog I/O Unit, analog input data will be 0000 and 0 V or 4 mA will be output as the analog output. • CP-series Expansion Unit/Expansion I/O Unit errors are output to bits 0 to 6 of word A436.
  • Page 450 1 analog output. • The analog input range can be set to 0 to 5 VDC, 1 to 5 VDC, 0 to 10 VDC, −10 to 10 VDC, 0 to 20 mA, or 4 to 20 mA. The inputs have a resolution of 1/6000.
  • Page 451 (OFF: Average processing not performed; ON: Average processing performed) Main Analog I/O Unit Analog I/O Units are connected to the CP1H CPU Unit. Up to seven Units can Specifications be connected, including any other Expansion Units and Expansion I/O Units that are also connected.
  • Page 452 No isolation between analog I/O signals. Current consumption 5 VDC: 83 mA max., 24 VDC: 110 mA max. Analog I/O Signal Analog I/O data is digitally converted according to the analog I/O signal range Ranges as shown below. Note When the input exceeds the specified range, the AD converted data will be...
  • Page 453 0 to 10 V The 0- to 10-V range corresponds to the hexadecimal values 0000 to 1770 (0 to 6000). The entire data range is FED4 to 189C (−300 to 6300). A negative voltage is expressed as a two’s complement.
  • Page 454 0 to 20 mA The 0- to 20-mA range corresponds to the hexadecimal values 0000 to 1770 (0 to 6000). The entire data range is FED4 to 189C (−300 to 6300). A negative voltage is expressed as a two’s complement.
  • Page 455 Ranges The hexadecimal values F448 to 0BB8 (−3000 to 3000) correspond to an ana- log voltage range of −10 to 10 V. The entire output range is −11 to 11 V. Spec- ify a negative voltage as a two’s complement.
  • Page 456 The open-circuit detection function is activated when the input range is set to Function for Analog 1 to 5 V and the voltage drops below 0.8 V, or when the input range is set to 4 Inputs to 20 mA and the current drops below 3.2 mA. When the open-circuit detec- tion function is activated, the converted data will be set to 8,000.
  • Page 457 • Connect the Analog I/O Unit. Connect the Unit. • Analog inputs: 0 to 5 VDC, 1 to 5 VDC, 0 to 10 VDC, –10 to Set the I/O ranges. 10 VDC, 0 to 20 mA, or 4 to 20 mA •...
  • Page 458 Analog I/O Units Section 7-4 Note Word (n + 1) can be used for either the range code or the analog output set value. Connecting the Analog I/O This section describes how to connect an Analog I/O Unit to the CPU Unit.
  • Page 459 (2) When an input is not being used, short the + and − terminals. (3) Separate wiring from power lines (AC power supply lines, high-voltage lines, etc.) (4) When there is noise in the power supply line, install a noise filter on the input section and the power supply terminals.
  • Page 460 1 to 5 V, open-circuit detection may not be possible. Also, if a disconnec- tion occurs at point C in the diagram, the negative (-) side will be used in for both devices and open-circuit detection will not be possible.
  • Page 461 0 V or 0 mA will be output. • After the range code has been set, 0 V or 0 mA will be output for the 0 to 10-V, −10 to 10-V, or 0 to 20-mA ranges, and 1 V or 4 mA will be output for the 1 to 5-V and 4 to 20-mA ranges until a convertible value has been written to the output word.
  • Page 462 After the range code has been written, the analog output data will be 0 V or 0 mA if the range is 0 to 10 V, −10 to 10 V, or 0 to 20 mA, or it will be 1 V or 4 mA if the range is 1 to 5 V or 4 to 20 mA.
  • Page 463: Temperature Sensor Units

    The inputs can be from thermocouples or platinum resistance thermometers. CP1W-TS002/TS102 and CPM1A-TS002/TS102 Temperature Sensor Units are each allocated four input words, so no more than three Units can be con- nected. Up to 14 temperature sensor input points can be connected by using...
  • Page 464: Main Specifications

    Used to connect temperature sensors such as thermocouples or plati- num resistance thermometers. (2) DIP Switch Used to set the temperature unit (°C or °F) and the number of decimal places used. (3) Rotary Switch Used to set the temperature input range. Make the setting according to the specifications of the temperature sensors that are connected.
  • Page 465 Unit operation. Static electricity may cause operating errors. The Temperature Sensor Unit’s DIP switch and rotary switch are used to set the temperature unit, to select 2-decimal-place Mode is to be used, and to set the temperature input range. DIP Switch...
  • Page 466 Section 7-5 Temperature Sensor Units DIP Switch Settings The DIP switch is used to set the temperature unit (°C or °F) and the number of decimal places used. Setting °C Temperature unit °F Number of decimal Normal (0 or 1 digit after the decimal places used (See note.)
  • Page 467 Thermocouples Sensors CP1W-TS001/CPM1A-TS001 Either K or J thermocouples can be connected, but both of the thermocouples must be of the same type and the same input range must be used for each. Input 0 Input 1 Input 0 Input 1 −...
  • Page 468 Platinum Resistance Thermometers CP1W-TS101/CPM1A-TS101 One or two Pt or JPt platinum resistance thermometers can be connected, but both of the thermometers must be of the same type and the same input range must be used for each. Input 0 Input 1...
  • Page 469 Converted temperature data from input 2 Converted temperature data from input 3 ”m” is the last input word allocated to the CPU Unit, Expansion I/O Unit, or Expansion Unit connected immediately before the Temperature Sensor Unit. • Negative values are stored as 2’s complements.
  • Page 470 After power is turned ON, approximately 1 s is required for the first conversion data to be stored in the input word. During that period, the data will be 7FFE. Therefore, create a program as shown below, so that when operation begins simultaneously with startup it will wait for valid conversion data.
  • Page 471 2. The following programming example shows how to convert the data for temperature input 0 to BCD and store the result in D0 and D1. “0001” is stored in D1 when the input data is a negative value. The following system configuration is used.
  • Page 472 Programming with BCD(24) Instruction Always ON P_On Detects completion of input 0 initialization. CMP(020) #7FFE 1000.00 ON when input 0 has been initialized Execution condition 1000.00 Detects an open-circuit alarm or Unit CMP(020) error by checking whether the error code...
  • Page 473 0: If data non-negative, "0000" stored in D1. 1: If data negative, "0001" stored in D1. Two-decimal-place If pin 2 on the DIP switch is turned ON, values are stored to two decimal Mode places. In this case, temperature data is stored as 6-digit signed hexadecimal (binary) data with 4 digits in the integer portion and 2 digits after the decimal point.
  • Page 474 Always 0 1: °F 1: Rightmost 1: Error Leftmost/Rightmost Flag: Indicates whether the leftmost or rightmost 3 digits are provided. Indicates whether the temperature is in °C or °F. Temperature Unit Flag: Open-circuit Flag: Turns ON (1) when an open-circuit is detected. The temperature data will be 7FF FFF if this flag is ON.
  • Page 475 Temperature Sensor Units Section 7-5 Example 2 −100.12°C Temperature: ×100: −10012 Temperature Data: FFD8E4 (hexadecimal for −10012) Leftmost 3 Digits and Flags ×16 ×16 ×16 Flags Bits 11 to 08 07 to 04 03 to 00 Data Normal Temperature Flags °C...
  • Page 476 (2) Be sure that the data is read at least once every 125 ms to allow for the CPU Unit’s cycle time and communications time. Correct data may not be obtained if the read cycle is greater than 125 ms.
  • Page 477 SET 2000.02 Data rearrangement completed. 2000.02 2002.07 (non-negative data) BCDL(059) If the temperature data is non-negative, the binary data in CIO 202 and CIO 201 is 2001 converted to BCD and placed in D101 and D100 2002.07 (negative data) D100.
  • Page 478: Compobus/S I/O Link Units

    BD L N C ( BS-) N C Special flat cable or VCTF cable From the standpoint of the CP1H CPU Unit, the 8 input bits and 8 output bits allocated to the CompoBus/S I/O Link Unit are identical to input and output bits allocated to Expansion I/O Units even though the CompoBus/S I/O Link Unit does not control actual inputs and outputs.
  • Page 479 The following CompoBus/S terminals are provided: CompoBus/S com- munications data high/low terminals, NC terminals for communications power supply plus (+) and minus (-), and an NC terminal. (Power is sup- plied internally for this Unit, so the NC terminals for communications...
  • Page 480 (4) Expansion I/O Connecting Cable Connected to the expansion connector of a CP1H CPU Unit or a CP- series Expansion Unit or Expansion I/O Unit. The cable is provided with the CompoBus/S I/O Link Unit and cannot be removed.
  • Page 481: Operating Procedure

    As shown below, when “m” is the last allo- cated input word and “n” is the last allocated output word, the CompoBus/S I/ O Link Unit is allocated “m+1” as its input word and “n+1” as its output word. CompoBus/S I/O Link Unit...
  • Page 482 Determining the Node Node Number Number and Making DIP • The CompoBus/S I/O Link Unit is a Slave Unit with 8 input bits and 8 out- Switch Settings put bits. The node number setting is made using the DIP switch; the inputs and outputs share the same node number.
  • Page 483 Section 7-6 CompoBus/S I/O Link Units DIP Switch Settings Use the DIP switch to set the CompoBus/S I/O Link Unit’s node number, com- munications mode, and the status of output data when a communications error occurs. Contents Pin labels NODE NUMBER...
  • Page 484: Devicenet I/O Link Units

    Connecting a CPM1A-DRT21 DeviceNet I/O Link Unit (with 32 inputs and 32 outputs as built-in I/O) to function as a slave allows the CP1H to be used as a DeviceNet slave. A maximum of three DeviceNet I/O Link Units can be con- nected to the CP1H to create I/O Links for up to 192 points (96 inputs and 96 outputs) between the CP1H and the DeviceNet master.
  • Page 485 Holds remote outputs when communications error occurs. Note When using Expansion Unit/Expansion I/O Unit Error Flags (A436) in the program, set pin 4 on the DIP switch to ON. If communica- tions are set to be cleared, the timing for clearing outputs and set-...
  • Page 486 • Power not supplied. (5) Expansion I/O Connecting Cable Connected to the expansion connector of a CP1H CPU Unit or a CP- series Expansion Unit or Expansion I/O Unit. The cable is included with the DeviceNet Unit and cannot be removed.
  • Page 487 If a communications error occurs while the slave is on standby, the appropri- ate bit in word A436 will turn ON. The appropriate bit is determined by the order in which the Expansion Units and Expansion I/O Units are connected.
  • Page 488 CPU Unit I/O Allocation I/O words are allocated to the DeviceNet I/O Link Unit in the same way as to Expansion I/O Units or other Expansion Units, i.e., the next available input and output words are allocated. As shown below, when “m” is the last allo- cated input word and “n”...
  • Page 489 Use rotary switches SW2 and SW3 to set DeviceNet node number. The set- Switch Settings ting range is from 00 to 63, and 64 to 99 cannot be set. Rotary switch settings go into effect when the power is turned ON.
  • Page 490 I/O Response Time Refer to the DeviceNet Slaves Operation Manual (W347) for details on the response time. The data read/write time for one cycle for the CPM1A-DRT21 is approximately 0.5 ms. Add a maximum of 1 ms to the I/O response time.
  • Page 491: Lcd Option Board

    Screen Transitions........
  • Page 492: Features

    Normally the backlight is green. The automatic cutout time for the backlight can be set to occur from 2 to 30 minutes, or even set permanently to OFF or ON position. The contrast level can also be adjusted.
  • Page 493: Specifications

    Backlight color Green / Red Display language English / Japanese (Katakana) Ambient operating temperature 0 to 55°C Ambient operating humidity 10% to 90% (with no condensation) Atmosphere No corrosive gas. Humidity[%] (65 , 90%) (70 , 60%) (75 , 40%) Temperature[˚C]...
  • Page 494: Part Names

    Press and hold the button, the column cursor will move for- ward continuously. Move the line cursor up. Change numerals and parameters. Press and hold the button, the line cursor will move up contin- uously and the parameters will increase continuously. Move the line cursor down. Change numerals and parame- ters.
  • Page 495: Installation And Removing

    The following processing explains how to install and remove a LCD Option Board. !Caution Always turn OFF the power supply to the CPU Unit and wait until all the oper- ation indicators go out before installing or removing the LCD Option Board.
  • Page 496: Basic Operation

    Basic Operation 8-5-1 Startup According to the operation status of the LCD Option Board, it will display dif- ferent screens when the CPU Unit power is turned ON. Normal Startup When the CPU Unit power is turned ON, the LCD Option Board will initialize hardware and check EEPROM, then check communication between the LCD Option Board and the CPU Unit.
  • Page 497: Screen Transitions

    1. The screen will be displayed after making settings in the Setup Mode. 2. The Message Screen will disappeared automatically after control bit is OFF. 3. In the Setup Mode, if there is no operation for 10 minutes, LCD will auto- matically switch to the Monitor Mode.
  • Page 498 User Monitor Screen 1 Note 1. When one control bit is ON, the Clock Screen or the User Monitor Screen will switch to the Message Screen automatically. 2. If another control bit is ON when the Clock Screen or the User Monitor Screen is diplayed, the display will switch to another Message Screen.
  • Page 499: Operation Examples

    Screen after one of the control bit is OFF. If another control bit is smaller, the display will swtich to the Clock Screen after one of the control bit is OFF. 5. When no less than one control bit are ON at the same time, the Message Screen whose Screen No.
  • Page 500 D10002, D10003 to D10004 with unsigned decimal number will be displayed. 1,2,3... 1. Line 1 will display the default address D00000 in I/O memory, Line 2 to 4 will display one word data on D00000, D00001, D00002 with hex number when entering the Monitor Screen of I/O memory.
  • Page 501: Lcd Option Board Function

    Section 8-6 LCD Option Board Function 3. Use the Forward button to move the column cursor to the data of I/O memory. Use the Down or Up button to change the value of each digit. 4. Press the OK button to save the setting.
  • Page 502 Refer to Page 478 for details. Error History Display the list of error history and the details of each error. It is possible to display up to 20 screens. User can also monitor the occurring errors. Refer to Page 480 for details.
  • Page 503 • Load user settings from DM area. • Save user settings to DM area. So user can save the user settings to the DM area of the PLC from one LCD Option Board and load to other LCD Option Boards from the DM area.
  • Page 504: Plc Mode

    There is a choice of 3 PLC modes-RUN/MON/PRG. The line cursor will point to the present PLC mode. The present mode is RUN. 3. Press the Down button to select PROGRAM. 4. Press the OK button, then LCD will update the present mode to PRG.
  • Page 505: I/O Memory Setting

    Line 2 to 4 will display one word data on D00000, D00001, D00002 with hex number. 6. Use the Forward button to move the column cursor to the digit to be set. Use the Up button to change the leading word address to 10001.
  • Page 506 Signed decimal number & Unsigned decimal number 8. Use the Forward button to move the column cursor to the data length po- sition. Press the Down or Up button to select the data length LW. Select the data length in the following table.
  • Page 507 4. Press the Down button to select WR. 5. Press the OK button to enter the Monitor Screen of I/O memory WR. 6. Use the Forward button to move the column cursor to the data length po- sition. Press the Down or Up button to select the data length LW.
  • Page 508 LCD Option Board Function Section 8-6 8. Press the Forward button to move the column cursor to the digit to be set. Use the Down or Up button to change the data to 12345678. 9. Press the OK button to save the setting.
  • Page 509 LCD Option Board Function 14. Use the Up button to change the bit address to 05. 15. Use the Forward button to move the column cursor to the bit flag position. The present setting is the default setting. Select the bit flag in the following table.
  • Page 510 Note Before changing the CPU Unit Operating Mode, make sure that the present PLC mode is PRG. If PLC is in RUN or MON mode, the CPU Unit Operating Mode is unchangeable. 6. Press the OK button to save the setting.
  • Page 511 After the address is changed, the value of PLC Setup will be updated im- mediately. 7. Use the Forward button to move the column cursor to the value of PLC Setup. Use the Up button to change the value to 0195.
  • Page 512 Section 8-6 LCD Option Board Function 8. Press the OK button to save the setting. 9. Press the ESC or OK button to return to the PLC Setup Screen. 8-6-5 Analog Displaying Analog Settings Example Monitor the external analog setting input with unsigned decimal number.
  • Page 513 7. Press the ESC button to return to the previous screen. 8-6-6 Error This function can display the list of error history and the details of each error. It is possible to display up to 20 screens. User can also monitor the occurring errors in the Error Monitor Screen.
  • Page 514 Section 8-6 LCD Option Board Function 6. If there is more than one error, press the Down button to scroll the screen and display the details of the next error. 7. Press the ESC button to return to the Error History Screen.
  • Page 515 9. Press the OK button to clear the memory error in the list. Note Only one error that occurs the earliest in the list will be cleared one time. 10. If the memory error itself has not been eliminated, when the Error Monitor...
  • Page 516 • Memory Cassette should be equipped into the PLC. Otherwise LCD can- not operate Memory Cassette. • Make sure that the PLC mode is PRG. If the PLC is in RUN or MON mode, the operation of Memory Cassette cannot be executed.
  • Page 517 6. Press the OK button to start loading. A rate of loading will be displayed in the screen. 7. When the rate comes up to 0%, the loading is finished. Then it will display a complete screen. Saving Data from PLC to Memory Cassette Example Save data from the PLC to Memory Cassette.
  • Page 518 8. Press the OK button to start saving. A rate of saving will be displayed in the screen. 9. When the rate comes up to 0%, the saving is finished. Then it will display a complete screen. Comparing Data between PLC and MC Example Compare the data between the PLC and Memory Cassette.
  • Page 519 7. Press the OK button to start comparing. A rate of comparison will be displayed in the screen. 8. When the rate comes up to 0%, the comparing is finished. Then it will dis- play a result of comparison. Clearing Memory Cassette Example Clear the data in Memory Cassette.
  • Page 520 Selecting Cancel will result in a return to the previous menu. 7. Press the OK button to start clearing. A rate of clearance will be displayed in the screen. 8. When the rate comes up to 0%, the clearing is finished. Then it will display a complete screen. 8-6-8 User Monitor Screen This function can set or delete User Monitor Screen.
  • Page 521 I/O memory name 5. Use the Up button to change the Screen No. to 2. 6. Use the Forward button to move the column cursor to the monitor flag position. Select the monitor flag in the following table. Monitor flag...
  • Page 522 000.00 to 959.15 Text string 10. Press the Up button to select DM. 11. Use the Forward button to move the column cursor to the memory address position. The present setting is the default address. 12. Move the column cursor to the digit to be set.
  • Page 523 User Monitor Screen. 2. One line setting will take 1 or 2 lines of space. If word or bit name length is more than 5 characters or data length is a LongWord, it will take 2 lines of space.
  • Page 524 Section 8-6 LCD Option Board Function Example 2 Display a text string "elevator" on the User Monitor Screen 2, Line 4, after the setting in example 1. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select UserMonitor.
  • Page 525 2. Press the Forward + OK button simultaneously to enter the Data Change Screen. The column cursor will be flashing on the digit before the value. 3. Use the Forward button to move the column cursor to the digit to be set.
  • Page 526 Only when the cursor is on the digit before the value, press the Down or Up button to b move the cursor to other lines. 7. Use the Forward button to move the column cursor to the sign position. Press the Down or Up button to change the sign to -.
  • Page 527 2. Use the Down button to move the cursor to line 2. 3. Use the Forward button to move the column cursor to the bit state position. 4. Press the Down or Up button to change the bit state to ON.
  • Page 528 6. Use the Up button to change the Screen No. to 2. Note Press and hold the UP button until the Screen No. changes to ALL, all the User Monitor Screen will be deleted if the setting is confirmed. 7. Press the OK button to delete the screen.
  • Page 529: Message Screen

    LCD Option Board Function 8-6-9 Message Screen This function can set or delete Message Screen. It is possible to register up to 16 screens. User can monitor the text message in the Message Screen when control bit is ON. Creating New Message Screen Example When control bit W100.01 is ON, the Message Screen 2 will display the data...
  • Page 530 Section 8-6 LCD Option Board Function 6. Use the Forward button to move the column cursor to the position of lead- ing word address. The present setting is the default address. The following table shows the default address and the setting range for each screen when the leading word address is D09000.
  • Page 531 The text message is stored in the DM area. One character is 1 byte and one DM word is 2 bytes, so 24 DM words need to be used to store one screen message. But not all of the area can be used.
  • Page 532 Section 8-6 LCD Option Board Function Select the character codes in the following table. Upper bits Lower bits...
  • Page 533 The present setting is Screen 01. Note Press and hold the UP button until the Screen No. changes to ALL, all the User Monitor Screen will be deleted if the setting is confirmed. 6. Press the OK button to delete the screen.
  • Page 534 Word type Word address 5. Use the Up button to change the Timer No. to 16. The following table shows the relation between the Timer No. and the con- trol bit when the word address is W001. Timer No. Control bit W001.00...
  • Page 535 Section 8-6 LCD Option Board Function 6. Use the Forward button to move the column cursor to the timer flag position. Press the Up button to select the timer flag Y. Select the timer flag in the following table. Timer flag...
  • Page 536 Section 8-6 LCD Option Board Function 13. Use the Forward button to move the column cursor to the position of word address. The present setting is the default address. 14. Move the column cursor to the digit to be set.
  • Page 537 Word address 6. Use the Up button to change the Timer No. to 6. 7. Use the Forward button to move the column cursor to the timer flag posi- tion. Press the Up button to select the timer flag Y.
  • Page 538 14. Press the ESC or OK button to return to the Calander Timer Screen. Note 1. If a timer is in use, when the timer switch turns ON, the LCD Option Board will send command to PLC one time every 1 second to make control bit ON, when the timer switch turns OFF, the LCD Option Board will send com- mand to PLC one time every 1 second to make control bit OFF.
  • Page 539 Section 8-6 LCD Option Board Function Weekly Timer Calendar Timer Note Set the OFF date to 1 October, the Calendar Timer will turn OFF at 24:00 September.
  • Page 540: Data Backup

    Section 8-6 LCD Option Board Function 8-6-11 Data Backup User can save the user settings to DM memory area from one LCD Option Board and load to other LCD Option Boards from the DM memory area. Note Please do not take the DM area (D8000 to D8999) for other use.
  • Page 541 7. Press the OK button to start loading. A rate of loading will be displayed in the screen. 8. When the rate comes up to 100%, the loading is finished. Then it will dis- play a complete screen. 9. Press the ESC or OK button to restart the LCD Option Board.
  • Page 542 7. Press the OK button to display a save confirming screen. 8. Press the OK button to start saving. A rate of saving will be displayed in the screen. 9. When the rate comes up to 100%, the saving is finished. Then it will display a complete screen.
  • Page 543: Language Selection

    Section 8-6 LCD Option Board Function 8-6-12 Language Selection Display for the LCD Option Board is available in 2 languages - English and Japanese. Example Change the display language from English to Japanese. 1,2,3... 1. Switch to the Setup Mode.
  • Page 544: Plc Cycle Time

    The average cycle time of the CPU Unit will be displayed. 5. Press the Down button to display the max. cycle time of the CPU Unit. 6. Press the Down button to display the min. cycle time of the CPU Unit.
  • Page 545: Plc Clock Setting

    5. Press the OK button to enter the Clock Setup Screen. The present date, time and week of the CPU Unit will be displayed. 6. Use the Forward button to move the column cursor to the position of PLC time.
  • Page 546: Plc System Information

    4. Press the Down button to select SystemInfo. 5. Press the OK button to enter the System Information Screen. Line 1 to 3 will display the CPU Unit model, line 4 the lot No. 6. Press the Down button to display the CPU Unit version.
  • Page 547: Lcd Backlight Setting

    Backlight mode Backlight is always ON. Backlight is always OFF. 6. Use the Forward button to move the column cursor to the position of timer inerval. Use the Up button to change the timer interval to 05. 7. Press the OK button to save the setting.
  • Page 548: Lcd Contrast Setting

    The contrast level of LCD display is 1 to 16. 6. Use the Up button to change the level to 08. 7. Press the OK button to save the setting. 8. Press the ESC or OK button to return to the previous menu.
  • Page 549: Lcd Factory Setting

    Section 8-6 LCD Option Board Function 8-6-18 LCD Factory Setting This function can initialize the factory setting of the LCD Option Board. The operation method will be shown in the following example. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select Other.
  • Page 550: Trouble Shooting

    Do not repair the LCD Option Board by yourself. 8-7-2 Communication Error Message during Operation When communication error occurs, the error message will be displayed at the LCD Option Board and the red backlight will blink. Error message Probable cause...
  • Page 551: Deleting Eeprom Error

    According to the error message, the setting of User Monitor Screen 2, line 4 is corrupted. 2. Press the ESC button to exit the screen. Once the EEPROM Error Screen has disappeared, the display will return to normal. 3. Enter the User Monitor Setup Screen 2, line 4.
  • Page 552 Section 8-7 Trouble Shooting...
  • Page 553: Ethernet Option Board

    DM Area Allocation ........
  • Page 554: Ethernet Option Board Function Guide

    1. Please use CX-Programmer version 8.1 or higher (CX-ONE version 3.1 or higher). 2. Please use CX-Integrator version 2.33 or higher (CX-ONE version 3.1 or higher) to make the routing table. Except making the routing table for CP1W-CIF41, other functions, such as trans- ferring the parameters and network structure, are not supported by CX-Integrator.
  • Page 555: Connecting The Cx-Programmer To Plcs Online Via Ethernet

    UDP/IP version of the FINS communications service or use the TCP/IP ver- Address sion of the FINS communications service. It is possible to connect online to a PLC using the CX-Programmer from a computer serving as a temporarily connected node or a permanent DHCP cli- ent.
  • Page 556: Receiving Data From Omron Plcs Using Ethernet

    FINS/UDP is simpler than for FINS/TCP, giving FINS/UDP certain advantages in terms of performance. Another feature of FINS/UDP is that it can be used for broadcasting. On the other hand, with FINS/UDP it is necessary to provide measures, such as retries, for handling communications errors. Connecting through Use the TCP/IP version of the FINS communications service (i.e., FINS/TCP),...
  • Page 557: Differential Monitoring

    FINS message applications is longer than the existing Ethernet Unit. Various Protocols Available on Ethernet A variety of protocols make a wide range of applications for use on an Ether- net network. The protocols that can be selected include receiving commands by OMRON’s standard protocol FINS and reading Ethernet Option Board set-...
  • Page 558: System Configuration

    Devices Required for Constructing a Network The basic configuration for a 100Base-TX Ethernet System consists of one hub to which nodes are attached in star form using twisted-pair cable. The devices shown in the following table are required to configure a network with 100Base-TX-type CP1W-CIF41, so prepared them in advance.
  • Page 559: Specifications

    If two CP1W-CIF41 Ethernet Option Boards are mounted in the CP1L/H system, the CP1W- CIF41 mounted on option board slot 1 will be abnormal and ERR indicator will be ON, the CP1W- CIF41 on option board slot 2 will work normally.
  • Page 560: Fins Communications

    TCP/UDP, and remote port numbers. It is created automatically when power is turned ON to the PLC or when the unit is restarted, and it is automatically changed when a connection is established by means of the FINS/TCP method or when a FINS command received.
  • Page 561: Overview Of Fins Communication Service

    UDP/IP and TCP/IP together on the same network. Using TCP/IP makes FINS communications highly reliable. • Even if the IP address and UDP port number of the host computer (a DHCP client computer) are changed, it is still possible for the host com- puter to send FINS commands to PLCs on the Ethernet network and to receive responses.
  • Page 562: Part Names

    Section 9-6 Part Names Part Names Label Attach the label here to show IP address and subnet mask. Ethernet Connector Used to connect the Ethernet twisted-pair cable. LED Indicators Display the operating status of the Option Board. LED Indicators Indicator...
  • Page 563: Comparison With Previous Models

    Note Limited by the CP1W-CIF41 inner bus protocol (Toolbus, 115200kbps), the system response per- formance is longer than the existing Ethernet Unit. Please consider the FINS command process- ing time and buffer limitation when using the CP1W-CIF41 Ethernet Option Board.
  • Page 564: Installation And Initial Setup

    1. When using this method, always leave the local IP address of system setup in the Ethernet Option Board set to the value of 0.0.0.0. If this area contains any other value, any setting made in the allocated CIO words will be overwritten with it.
  • Page 565 The following processing explains how to install and remove an Ethernet Option Board. !Caution Always turn OFF the power supply to the CPU unit and wait until all the oper- ation indicators go out before installing or removing the Ethernet Option Board.
  • Page 566: Network Installation

    Section 9-8 Installation and Initial Setup 3. For CPU Units with 30, 40 or 60 I/O points, switch DipSW4 of the CPU unit to ON, if the Ethernet Option Board is mounted on the Option Board slot 1 (left side). Switch DipSW5 of the CPU unit to ON, if the Ethernet Option Board is mounted on the Option Board slot 2 (right side).
  • Page 567 Precautions on Laying Twisted-pair Cable Basic Precautions • Press the cable connector in firmly until it locks into place at both the hub and the Ethernet Option Board. • After laying the twisted-pair cable, check the connection with a 10Base-T cable tester.
  • Page 568 !Caution Allow enough space for the bending radius of the twisted-pair cable. 1,2,3... 1. Lay the twisted-pair cable. 2. Connect the cable to the hub. Be sure to press in the cable until it locks into place. Request cable installation from a qualified professional.
  • Page 569: Web Browser Setting Function

    Japanese page: http://(Ethernet Option Board’s IP address)/J00.htm Chinese page: http://(Ethernet Option Board’s IP address)/C00.htm In this example, use the following procedure to set the IP address using Inter- net Explorer version 6.0 and the Ethernet Option Board’s English Web pages.
  • Page 570 Section 9-8 Installation and Initial Setup 3. Select Settings from the menu on the left side of the window to display the Settings Menu. 4. Select 1. IP address and Protocols - System to display System menu. 5. Make the required settings (i.e., the IP address in this example).
  • Page 571: Memory Allocations

    0: The link between hubs is terminated. 1: A link is established between hubs. Reserved Always 1. !Caution Bit 15 is used for detect power condition of PLC, so do not change it at any time. Otherwise the CP1W-CIF41 Ethernet Option Board will generate error.
  • Page 572: Error Status

    Section 9-9 Memory Allocations Error Status The status of errors that occur at the Ethernet Option Board is reflected as shown in the following diagram. 15 14 13 12 11 10 IP address setting error IP address table error IP router table error...
  • Page 573: Dm Area Allocation

    These data will be allocated to the DM area of PLC. The beginning DM chan- nel n is calculated by the following equation. Note 1. DM area from n to n+154 can only display all of the settings stared in the unit. Modification in this area is invalid to the CP1W-CIF41 Ethernet Option Board.
  • Page 574: Mode Setting

    Always 0. FINS/TCP and FINS/UDP Port Number 15 14 13 12 11 10 9 FINS/TCP port number (hex) FINS/UDP port number (hex) When displaying 0000, the port number is 9600. IP Address 15 14 13 12 11 10 9 (1)(2) (3)(4)
  • Page 575 IP Address Table Records Each IP address table record has 6 bytes. The max number of records is 32. The configuration of the 6 bytes of data in each record is as shown in the fol- lowing diagram. 6 bytes...
  • Page 576 ON or the Ethernet Option Board restarted. If the local IP address in the system setup is set to 0.0.0.0, this area will act as an IP address setting area. The value will be read by the Ethernet Option Board when the power is turned ON or the Ethernet Option Board restarted and is used as the local IP address.
  • Page 577: Web Browser Setup And Display

    9-10-1 Multi-language Function The WEB server supports the multi-language function. The supported lan- guages are English, Chinese and Japanese. Before setting, users should select the appropriate language in the following ULC. English page: http://(Ethernet Option Board’s IP address)/E00.htm Japanese page: http://(Ethernet Option Board’s IP address)/J00.htm Chinese page: http://(Ethernet Option Board’s IP address)/C00.htm...
  • Page 578 Subnet Mask Set the subnet mask for the Ethernet Option Board. 255.255.255.0 This is required if a method other than the IP address table method is used for address conversion. FINS Node Address Set the local FINS node address for the Ethernet Option Board.
  • Page 579 When this option is selected, if the FINS/TCP connection is set to a Unchecked server, and if an IP address other than 0.0.0.0 is set to destination IP address, any connection request from other than the setting IP address will be denied.
  • Page 580 Set the password for accessing the Ethernet ETHERNET Option Board’s settings and status monitor- ing information. Port Number Set the port No. used to connect to the Web browser. The functions of the buttons are as follows. Button Function Transfer Transfer the entered values from the personal computer to the Ethernet Option Board.
  • Page 581 Web Browser Setup and Display 9-10-5 IP Address Table Set the IP address table that defines the relationship between FINS node addresses and IP addresses. With FINS/UDP, this is enabled only when the IP address table method is set to the IP address conversion method.
  • Page 582 Section 9-10 Web Browser Setup and Display 9-10-6 IP Router Table Set the IP router table when the Ethernet Option Board is to communicate through the IP router with nodes on another IP network segment. Item Contents Default IP Network Set the network ID from the IP address.
  • Page 583 Shows the connection number. This is a network API used when TCP is used for the FINS communica- tions service. Up to 2 can be used at a time, and they are identified by connection numbers 1 to 2. The Ethernet Option Board can thus simultaneously execute the FINS communications service by TCP with up to 2 remote nodes.
  • Page 584: Unit Information

    Version Show the version information of the Ethernet Option Board. IP Address Show the IP address of the Ethernet Option Board. Subnet Mask Show the subnet mask of the Ethernet Option Board. FINS/UDP Port Number Show the FINS/UDP port number of the Ethernet Option Board.
  • Page 585: Unit Status

    Error Flags Indicate the operating status and errors that occurred when the Ethernet Option Board is turned ON. Total Number of Packets Show the total number of packets received by the Ether- Received net Option Board. Total Number of Receive...
  • Page 586: Fins Status

    If the connection is the FINS/TCP, show the connection number (1 to 4). TCP Status If the connection is the FINS/TCP, show the current con- nection status. The details of TCP status are listed as the following table. Status Meaning CLOSED Connection closed...
  • Page 587: Error Log

    Show the error recorder number. Error Code Show the error code of the error recorder. Detail Code Show the detail error code of the error recorder. Date Show the date of the error recorder. The functions of the buttons are as follows.
  • Page 588: Trouble Shooting

    • Error in the CPU unit Error Log Table Each error is recorded as one record in an error log table. Up to 64 records can be saved. If more than 20 errors occur, the oldest errors will be deleted from the error log and the most recent error will be recorded.
  • Page 589 Reconstruct the network Responses failed) or correct the routing tables so that commands Bit 15: ON are sent to within a 3- level Bits 08 to 14: DNA network range. Bits 00 to 07: DA1 0111 Command too long (send...
  • Page 590 Option Board error Arbitrary Restart the CPU Unit. If Saved the problem persists, replace the Ethernet Option Board. 0602 Option Board memory error 01: Read 04:System Restart the CPU Unit. If Saved error setup the problem persists, (except 06:Error log...
  • Page 591: Trouble-Shooting With Indicators And Error Code Display

    IP addresses. • Host IDs that are all 0 or all 1. • Network IDs that are all 0 or all 1. • Subnetwork IDs that are all 1. • Addresses beginning with 127 (7F hex).
  • Page 592 Refer to operation manual and set the error FINS/TCP are FINS/TCP setting correctly. incorrect. 9-11-3 Error Status The status of errors that occur at the Ethernet Option Board is reflected in CIO relation area, Refer to 9-9-1 CIO Area Allocation, Error Status for details.
  • Page 593: Sample Application

    ■ System Configuration Example 1: No Routing In this example, an online connection is made by FINS/UDP to a PLC on an Ethernet network (PLC1 in the diagram below) from a CX-Programmer / CX- Integrator connected to the Ethernet network.
  • Page 594 Ethernet Option Board IP address 192.168.250.2 Port number 9600 Note Limited by the CP1W-CIF41 inner bus protocol (Toolbus), the frame length and response monitor time are different from the existing Ethernet unit. Inputs to the CX-Programmer’s Setup Window Change PLC Settings...
  • Page 595 Section 9-12 Sample Application Network Settings (Network Tab) Network Settings (Driver Tab)
  • Page 596 ■ System Configuration Example 2: Using Routing Tables In this example, an online connection is made via the Ethernet to a PLC on a Controller Link network (PLC3 in the diagram below) from a CX-Programmer / CX-Integrator connected to the Ethernet network.
  • Page 597 30/40/60 252(0xFC hex) • Relay Network Table In order to relay from PLC2/3 to the final network number 2, it is neces- sary to relay via node address 1 on relay network number 2. Final network number Relay network number Relay node address 2.
  • Page 598 Section 9-12 Sample Application...
  • Page 599: Program Transfer, Trial Operation, And Debugging

    10-2 Trial Operation and Debugging........
  • Page 600: Program Transfer

    GRAM modes, but not in RUN mode. Note Turn ON the Forced Status Hold Bit (A500.13) and the IOM Hold Bit (A500.12) at the same time to retain the status of bits that have been force-set or reset when switching the operating mode.
  • Page 601 When the CPU Unit detects that a bit set by the CX-Programmer has changed from OFF to ON or from ON to OFF, the results are indicated in the Differenti- ate Monitor Completed Flag (A508.09). The Flag will turn ON when conditions set for the differential monitor have been met.
  • Page 602 Trial Operation and Debugging 10-2-3 Online Editing The Online Editing function is used to add to or change part of a program in a CPU Unit directly from the CX-Programmer when the CPU Unit is in MONI- TOR or PROGRAM mode. This function is designed for minor program changes without stopping the CPU Unit.
  • Page 603 5. Select Program - Online Edit - Send Changes The instructions will be check and, if there are no errors, they will be transferred to the CPU Unit. The instructions in the CPU Unit will be overwritten and cycle time will be increased at this time.
  • Page 604: Tracing Data

    2. Sampled data (after step 1 above) will be traced when the trace trigger condition is met, and the data just after the delay (see note 1) will be stored in Trace Memory.
  • Page 605 A scheduled data trace will sample data at fixed intervals. Specified sampling interval is 10 to 2,550 ms in 10-ms units. Do not use the TRSM(045) instruc- tion in the user program and be sure to set the sampling period higher than 0. One-cycle Data Trace A one-cycle data trace will sample I/O refresh data after the end of all cyclic tasks.
  • Page 606 Description Sampling Start Bit A508.15 Use the CX-Programmer to turn ON this bit to start sampling. This bit must be turned ON from the CX-Programmer. Do not turn this bit ON and OFF from the user program. Note: The bit will be turned OFF when the Data Trace has been completed.
  • Page 607: Troubleshooting

    11-4 Troubleshooting Unit Errors ........
  • Page 608: Error Classification And Confirmation

    Other than the above. PRPHL Flashing Communications (either sending or receiving) are in (yellow) progress through the peripheral port. Not lit Other than the above. Note Do not turn OFF the CPU Unit power supply when this indicator is lit.
  • Page 609 0.1. The display switches at intervals of approximately 1 s. • If two or more errors occur at the same time, the most serious error will be displayed first. When that error is cleared, the next most serious error will be displayed.
  • Page 610 → 0.1. → → 0.0. CPU Bus Unit setup → 0.1. → → 9.0. PLC system + routing tables + CPU Bus Unit setup → 0.2. → → 0.0. Memory Cassette transfer error at startup 8.0. → c.a. → →...
  • Page 611 UM overflow error 8.0. → 9.f. → Cycle time too long c.1. → 0.1. → FALS instruction executed for FALS number 001 c.2. → 0.0. → FALS instruction executed for FALS number 256 c.2. → f.f. → FALS instruction executed for FALS number 511...
  • Page 612 Battery error Auxiliary Area ■ Error Code Storage Word The error code is stored in A400 when an error occurs. If two or more errors occur at the same time, the most serious error will be stored. ■ Error Flags Flags that indicate the type of error are allocated in the Auxiliary Area.
  • Page 613: Troubleshooting

    Use the following procedure to check error details and remove the cause of the error if the CPU Unit does not operate when the power supply is ON, oper- ation suddenly stops and the error indicator (ERR/ALM indicator) lights, or if...
  • Page 614: Error Processing Flowchart

    Unit may be faulty. 1,2,3... 1. Confirm the Unit rating (i.e., is it 24 VDC or 100 to 240 VAC?) and see if the supply power matches the rating. 2. Check the wiring to see if it is correct and that nothing is disconnected.
  • Page 615: Fatal Errors

    BKUP PRPHL There may be a CPU error or a fatal error if operation stops (i.e., the RUN indi- cator turns OFF) and the ERR/ALM indicator lights. Error code for fatal errors will be updated on the 7-segment display. If a CPU error occurs, the 7-seg- ment display will remain unlit or the display will freeze.
  • Page 616 I/O bus error details, A404 Duplicate Number Error A duplicate unit number error occurs for CJ-series Units. Turn OFF the power supply and make sure the same unit number is not set for more than one Unit. 8.0. → e.9. → →...
  • Page 617 →6.0.→0.0.→ The number of CP-series Expansion Units and Expansion I/O Units exceeds the restriction. Connect a maximum of seven Units. →e.0.→0.0.→ The number of CJ-series Units exceeds the restriction. Mount a maximum of two Units. ■ Reference Information Error flag Too Many I/O Points Flag, A401.11...
  • Page 618 8.0.→f.0.→ →0.1.→0.0.→ Instruction Processing Error If the PLC Setup has been set to stop operation for an instruction error, the Error Flag will be turned ON when an instruction cannot be executed due to a problem in the operand data.
  • Page 619 This error occurs when the cycle time PV exceeds the maximum 8.0.→9.f.→ cycle time set in the PLC Setup. Review the program to decrease the cycle time or change the maximum cycle time set in the PLC Setup. Refer to the Maximum Interrupt Task Processing Time (A440) and study the maximum cycle time.
  • Page 620: Cpu Errors

    Error information None Note Just as when a CPU error occurs, the RUN indicator will turn OFF and the ERR/ALM indicator will light when a fatal error occurs. Connecting the CX- Programmer, however, is possible for fatal errors but not for CPU errors. If the CX-Programmer cannot be connected (online), a CPU error has probably occurred.
  • Page 621 An interrupt task error occurs when the Detect Interrupt task errors set- unit number 0 ting in the PLC Setup is set to Detect and an attempt is made to refresh a Special I/O Unit from an interrupt task with IORF(097) while the Unit’s I/O →8.0.→0.f.→...
  • Page 622 0.0.→9.b.→ →0.0.→0.0.→ PLC Setup A set value error occurred in the PLC Setup. Internal address: 0000 hex The address of the error is stored in A406 in 16-bit binary. →0.1.→f.f.→ PLC Setup Correct the PLC Setup with correct values. Internal address: 01FF hex ■...
  • Page 623 If the PLC Setup is set to detect battery errors, this error will occur 0.0.→f.7.→ when there is an error in the battery in the CPU Unit (i.e., the volt- age is low or a battery is not mounted). Check the battery connec- tions.
  • Page 624: Other Errors

    An error has occurred in the communications between the RS- 232C port and connected device. Confirm that the RS-232C port settings in the PLC Setup are correct. Check the cable wiring. If a host computer is connected, check the serial port settings and...
  • Page 625: Error Log

    A104) is deleted, the 19 errors stored in A105 to A199 shift one record, and the newest record is stored in A195 to A199. The number of records stored in the error log is stored in the Error Log Pointer (A300). The Error Log Pointer is not incremented after 20 records have been stored.
  • Page 626: Troubleshooting Unit Errors

    Error occurs in units of 8 or 16 points. I/O bit turns ON. All bits in one Unit do not turn ON. Special I/O Units Refer to the operation manual for the Special I/O Unit to troubleshoot any other errors. Symptom Cause...
  • Page 627 Section 11-4 Troubleshooting Unit Errors Symptom Cause Remedy Input irregularly turns ON/ (1) External input voltage is low or unstable. Adjust external input voltage to within rated OFF. range. (2) Malfunction due to noise. Take protective measures against noise, such as: •...
  • Page 628 Adjust voltage to within rated range. (3) Terminal block screws are loose. Tighten screws (4) Faulty terminal block connector contact. Replace terminal block connector. (5) An overcurrent (possibly caused by a Replace fuse or Unit. short at the load) resulted in a blown fuse for the output or the Unit is faulty.
  • Page 629: Inspection And Maintenance

    12-1-1 Inspection Points........
  • Page 630: Inspections

    Inspection is recommended at least once every six months to a year, but more frequent inspections will be necessary in adverse environments. Take immediate steps to correct the situation if any of the conditions in the fol- lowing table are not met.
  • Page 631: Unit Replacement Precautions

    • Check the new Unit to make sure that there are no errors. • If a faulty Unit is being returned for repair, describe the problem in as much detail as possible, enclose this description with the Unit, and return the Unit to your OMRON representative.
  • Page 632: Replacing User-Serviceable Parts

    I/O memory while the main power supply is OFF. If the battery is not installed or battery voltage drops too low, the internal clock will stop and the data in RAM will be lost when the main power supply goes OFF.
  • Page 633 Section 12-2 Replacing User-serviceable Parts Low Battery Indications The ERR/ALM indicator on the front of the CPU Unit will flash when the bat- tery is nearly discharged. ERR/ALM indicator When the ERR/ALM indicator flashes, connect the CX-Programmer to the peripheral port and read the error messages. If a low battery message appears on the CX-Programmer (see note 1) and the Battery Error Flag (A402.04) is ON (see note 1), first check whether the battery is properly con-...
  • Page 634 1,2,3... 1. Turn OFF the power to the CPU Unit. or If the CPU Unit has not been ON, turn it ON for at least five minutes and then turn it OFF. Note If power is not turned ON for at least five minutes before replacing the...
  • Page 635: Appendices

    • The CP1H is supported by CX-Program- Ver. 6.1 from a Windows environment mer version 6.1 or higher. • Use an off-the-shelf USB cable to connect the computer running the CX-Program- mer to the USB port on the CP1H CPU Unit.
  • Page 636 Name and appearance Model Application Remarks RS-232C Option Board CP1W-CIF01 Mounted in option slot 1 or 2 on the CPU Unit to function as an RS-232C port. COMM RS-422A/485 Option CP1W-CIF11/ Mounted in option slot 1 or 2 on the CPU...
  • Page 637 CPM1A-20EDT1 16-point Output Units CP1W-16ER None 16 relay outputs CPM1A-16ER CP1W-16ET 16 transistor outputs, 00 01 02 03 04 05 06 07 sinking 16ER 00 01 02 03 04 05 06 07 CP1W-16ET1 16 transistor outputs, sourcing 8-point Input Units...
  • Page 638 Resolution: 1/256 Analog I/O Unit CP1W-MAD11 2 analog inputs 0 to 5 V, 1 to 5 V, 0 to 10 V, −10 to +10 V, 0 to CPM1A-MAD11 20 mA, 4 to 20 mA 1 analog output 1 to 5 V, 0 to 10 V, −10 to +10 V, 0 to 20 mA, 4 to...
  • Page 639 CJ1W-MAD42 4 analog inputs and 2 analog outputs: Resolution can be set to 1/8000. 0 to 5 V, 1 to 5 V, 0 to 10 V, −10 to +10 V, 4 to 20 mA Resolution: 1/4000 Process I/O Tempera- CJ1W-PTS51 Thermocouple inputs R, S, K, J, T, L, or B;...
  • Page 640 Standard Models Name and appearance Model Specifications Remarks High-speed Counter Unit CJ1W-CT021 Two counter channels, 10 kHz, 50 kHz, or 500 kHz ID Sensor Units CJ1W-V600C11 Connects to one Read/Write Head. CJ1W-V600C12 Connects to two Read/Write Heads. CompoBus/S Master Unit CJ1W-SRM21...
  • Page 641 I/O Connecting Cable CP1W-CN811 Used to install CP-series Expansion Units and Expansion I/O Units in a second row. Only one I/O Connecting Cable can be used in each PLC. This I/O Connecting Cable is required to connect both CJ-series and CP-series Units.
  • Page 642 Appendix A Standard Models...
  • Page 643: Dimensions Diagrams

    Appendix B Dimensions Diagrams X, XA, and Y CPU Units Four, 4.5 dia. holes...
  • Page 644 Appendix B Dimensions Diagrams Optional Products CP1W-CIF01/CIF11/CIF12 Option Boards 0.15 16.5 35.9 13.5 16.5 19.7 0.15 16.5 35.9 13.5 15.7 16.5 0.15 36.4...
  • Page 645 Appendix B Dimensions Diagrams CP1W-DAM01 LCD Option Board 0.45 20.9 20.6 13.3 CP1W-CIF41 Ethernet Option Board 36.4 >ABS+PC< CP1W-ME05M Memory Cassette 18.6 14.7...
  • Page 646 Appendix B Dimensions Diagrams Expansion I/O Units 40-point I/O Units (CP1W/CPM1A-40EDR/40EDT/40EDT1) 110 100 90 40EDR Four, 4.5 dia. holes 32-point Output Units (CP1W-32ER/32ET/32ET1) 32ER Four ∅4.5 holes...
  • Page 647 Appendix B Dimensions Diagrams 20-point I/O Units (CP1W/CPM1A-20EDR1/20EDT/20EDT1) 00 01 02 03 04 05 06 07 08 09 10 11 100±0.2 20EDR1 00 01 02 03 04 05 06 07 76±0.2 Two, 4.5 dia. holes 16-point Output Unit (CP1W16ER/16ET/16ET1/CPM1A-16ER) 90 100±0.2 76±0.2...
  • Page 648 Appendix B Dimensions Diagrams Expansion Units CPM1A-MAD01/ CP1W/CPM1A-MAD11 Analog I/O Units 100±0.2 100±0.2 MAD01 I OUT V IN1 COM1 I IN2 V OUT I IN1 V IN2 COM2 56±0.2 76±0.2 Two, 4.5 dia. holes Two, 4.5 dia. holes CP1W/CPM1A-TS@@@ Temperature Sensor Units 100±0.2...
  • Page 649 Appendix B Dimensions Diagrams CPM1A-DRT21 DeviceNet I/O Link Unit 100±0.2 56±0.2 Two, 4.5 dia. holes CP1W/CPM1A-SRT21 CompoBus/S I/O Link Unit COMM 100±0.2 SRT21 BD H NC(BS+) BD L NC(BS-) 56±0.2 Two, 4.5 dia. holes...
  • Page 650 Appendix B Dimensions Diagrams Products Related to Using CJ-series Units CP1W-EXT01 CJ Unit Adapter 16.4 65.5 65.5 CJ1W-TER01 End Cover 14.7...
  • Page 651 Appendix B Dimensions Diagrams CJ-series Special I/O Units and CPU Bus Units CJ1W-MCH71 79.8 70.9...
  • Page 652 Appendix B Dimensions Diagrams...
  • Page 653: Auxiliary Area Allocations By Function

    Address Description Access Updated Status of DIP A395.12 The status of pin 6 on the DIP switch on the front of the CPU Unit Read-only Switch Pin 6 is written to this flag every cycle. Manufacturing Lot A310 and The manufacturing lot number is stored in 5 digits hexadecimal. X,...
  • Page 654 Read/Write • Retained when power is turned ON. Counter SV Sets the count value at which the interrupt task will start. The corre- • Retained when opera- sponding interrupt task will start when the interrupt counter has tion starts. counted this number of pulses.
  • Page 655 PLC in last cycle to determine the direction. OFF: Decrementing ON: Incrementing High-speed Counter When the reset method is set to Phase-Z signal + Read/Write • Cleared when power is turned ON. Reset Bit Software reset, the corresponding high-speed counter's PV will be reset if the phase-Z signal is received while this bit is ON.
  • Page 656 PV range: 80000000 to 7FFFFFFF hex (-2,147,483,648 to 2,147,483,647) • Cleared when operation starts. When pulses are being output in the CW direction, the PV • Updated each cycle during over- is incremented by 1 for each pulse.
  • Page 657 ON: Outputting pulses. stops. • Updated when pulse output starts or stops. Pulse Output Stop If a Pulse Output Stop Error occurs, the error code is writ- Read-only • Cleared when power is turned Error Code ten to this word.
  • Page 658 PROGRAM to RUN or MONITOR, for example). Initial Task Execution Flag A200.15 ON when a task is executed for the first time, i.e., when it Read-only changes from INI to RUN status. Task Started Flag A200.14...
  • Page 659: Data Tracing

    5A. Output Control Name Address Description Access Updated Output OFF Bit A500.15 Turn this bit ON to turn OFF all outputs from the CPU Read/write Unit, CP-series Units, and Special I/O Units. Differentiate Monitor Name Address Description Access Updated Differentiate Monitor Com- A508.09...
  • Page 660: Comment Memory

    Error Log Area (A100 to A199). Error Log Pointer Reset Bit A500.14 Turn this bit ON to reset the Error Log Pointer (A300) to Read/write Error Code A400...
  • Page 661 Description Access Updated Other Fatal Error Flag A401.00 ON when a fatal error that is not defined for A401.01 to A401.15 occurs. Detailed information is output to the bits of A314. OFF: No other fatal error ON: Other fatal error Program Error Flag A401.09...
  • Page 662 10 ms during I/O refreshing of a Special I/O Unit. This flag will also be turned ON if an attempt is made to refresh a Special I/O Unit’s I/O from an interrupt task with IORF(097) while the Unit’s I/O is being updated by cyclic I/O refreshing (duplicate refreshing).
  • Page 663 Read-only Number Flags A417.15 CPU Unit and an CPU Bus Unit, the CPU Bus Unit Error Flag (A402.07) is turned ON and the bit in A417 corre- sponding to the unit number of the Unit where the error occurred is turned ON. Bits 00 to 15 correspond to unit numbers 0 to F.
  • Page 664 Name Address Description Access Updated Clock Data The clock data from the clock built into the CPU Unit is stored here in BCD. Read-only A351.00 to A351.07 Seconds: 00 to 59 (BCD) A351.08 to A351.15 Minutes: 00 to 59 (BCD) A352.00 to A352.07...
  • Page 665 Description Access Updated User Program Date A90 to A93 These words contain in BCD the date and time that the Read-only user program was last overwritten. A90.00 to A90.07: Seconds (00 to 59) A90.08 to A90.15: Minutes (00 to 59) A91.00 to A91.07: Hour (00 to 23)
  • Page 666 OFF the next time the Memory Cassette is accessed normally (initialized, written, read, or compared). A342.12: ON when the data in the CPU Unit is not the same as the data in the Memory Cassette when a verification operation is performed.
  • Page 667 UM Read Protection A99.12 Indicates when UM read protection cannot be released Read-only Release Enable Flag because an incorrect password was input five times con- secutively. OFF: Protection can be released ON: Protection cannot be released Task Read Protection A99.13...
  • Page 668 Delay accessing them for at least one cycle. First Cycle Flags after Net- A215.00 to Each flag will turn ON for just one cycle after a communi- Read-only work Communications Error A215.07 cations error occurs. Bits 00 to 07 correspond to ports 0 to 7.
  • Page 669 These flags indicate what kind of error has occurred at Read/write A528.15 the serial port 1. Serial Port 1 Send Ready A392.13 ON when the serial port 1 is able to send data in no-pro- Read-only Flag tocol mode. (No-protocol Mode) Serial Port 1 Reception A392.14...
  • Page 670 These flags indicate what kind of error has occurred at Read/write A528.07 the serial port 2. RS-232C Port Send Ready A392.05 ON when the serial port 2 is able to send data in no-pro- Read-only Flag tocol mode. (No-protocol mode) RS-232C Port Reception A392.06...
  • Page 671 OFF: Execution normal or still in progress. Note DM fixed allocation words for Modbus-RTU Easy Master for serial port 1: D32200 to D32299 DM fixed allocation words for Modbus-RTU Easy Master for serial port 2: D32300 to D32399 Instruction-related Information...
  • Page 672 OMRON FB Library to execute FINS messages or DeviceNet explicit messages communications. The values set in the Settings for OMRON FB Library in the PLC Setup will be automatically stored in the related Auxiliary Area words A580 to A582 and used by...
  • Page 673: Auxiliary Area Allocations By Address

    Free used after the power is turned ON. 10 ms after Running power is A value of 0000 hex is set when the Timer turned ON power is turned ON and this value is automatically incremented by 1 every 10 ms.
  • Page 674 These words contain in BCD the Retained Retained --- Date date and time that the parameters were last overwritten. The format is the same as above. A99.00 UM Read Pro- Indicates whether the entire user OFF: UM not Retained Retained When pro-...
  • Page 675 20 most recent errors can be Aux. Area stored. word with Each error record occupies 5 words; details or the function of these 5 words is as 0000. follows: Seconds: 1) Error code (bits 0 to 15) 00 to 59, BCD...
  • Page 676 (port busy) flag as an execution condition to pre- vent the instructions from being exe- cuted simultaneously. (The flag for a given port is turned OFF while a network instruction with that port number is being executed.) A202.15 Network Com-...
  • Page 677 A214.07 Network Com- been completed. Bits 00 to 07 corre- communica- munications spond to ports 0 to 7. Use the Used tions finish Finished Communications Port Number stored only in A218 to determine which flag to OFF: Other access.
  • Page 678 Present Cycle These words contain the present 0 to Time cycle time in 8-digit hexadecimal with FFFFFFFF: A265 the leftmost 4 digits in A265 and the 0 to rightmost 4 digits in A264. 429,496,729. 5 ms A270 High-speed Contains the PV of high-speed...
  • Page 679 Counter 0 speed counter is currently being used for incremented or decremented. The high-speed Count Direc- counter PV for the current cycle is counter, tion compared with the PLC in last cycle valid dur- to determine the direction. ing counter operation.
  • Page 680 The high-speed Count Direc- counter PV for the current cycle is counter, tion compared with the PC in last cycle to valid dur- determine the direction. ing counter operation. OFF: Decrementing ON: Incrementing A276...
  • Page 681 ON: Stop error occurred. put stop error occurs. A281 A281.00 Pulse Output This flag will be ON when pulses are Cleared Refreshed 1 Accel/Decel being output from pulse output 1 each cycle Flag according to an ACC(888) or...
  • Page 682 A281.02 Pulse Output ON when the number of output Cleared Refreshed 1 Output pulses for pulse output 1 has been when the Amount Set set with the PULS(886) instruction. PULS(886) instruction Flag Cleared when operation starts or is exe- stops.
  • Page 683 (A298 and A299 contain the program tasks: 8000 to address where program execution 80FF (task 0 was stopped.) to 255) A295 A295.08 Instruction This flag and the Error Flag (ER) will ON: Error Cleared Cleared When pro- A294, Processing be turned ON when an instruction...
  • Page 684 The Error Log Pointer can be cleared to 00 by turning A500.14 (the Error Log Reset Bit) ON. When the Error Log Pointer has reached 14 hex (20 decimal), the next record is stored in A195 to A199 when the next error occurs.
  • Page 685 A501.15 ON: Initializ- (A501.00 to A501.15) is turned ON or the power is turned ON. (Reset to 0 Bits 00 to 15 correspond to unit num- automatically bers 0 to 15. after initializa- Use these flags in the program to tion.)
  • Page 686 Counter 2 speed counter is currently being used for incremented or decremented. The high-speed Count Direc- counter PV for the current cycle is counter, tion compared with the PLC in last cycle valid dur- to determine the direction. ing counter operation.
  • Page 687 The high-speed Count Direc- counter PV for the current cycle is counter, tion compared with the PC in last cycle to valid dur- determine the direction. ing counter operation. OFF: Decrementing ON: Incrementing...
  • Page 688 (SPED(885), ACC(888), or PLS2(887)) is executed. A326 A326.00 Pulse Output This flag will be ON when pulses are Cleared Refreshed 2 Accel/Decel being output from pulse output 2 each cycle Flag according to an ACC(888) or...
  • Page 689 ON: Stop error occurred. put stop error occurs. A327 A327.00 Pulse Output This flag will be ON when pulses are Cleared Refreshed 3 Accel/Decel being output from pulse output 3 each cycle Flag according to an ACC(888) or...
  • Page 690 ON or the power is turned ON. (Reset to 0 The bits in these words correspond automatically to unit numbers 0 to 95 as follows: after initializa- A330.00 to A330.15: Units 0 to 15 tion.) A331.00 to A331.15: Units 16 to 31 ---- A335.00 to A335.15: Units 80 to 95...
  • Page 691 OFF the next time the Memory Cas- sette is accessed normally (initial- ized, written, read, or compared). A342.12 Memory Cas- ON the data in the CPU Unit is not OFF: Match Retained Cleared sette Mis- the same as the data in the Memory...
  • Page 692 2. (Not valid in Periph- when error OFF: No error eral Bus Mode or NT Link mode.) occurs. A392.05 Serial Port 2 ON when the serial port 2 is able to ON: Able-to- Retained Cleared Written Send Ready send data in no-protocol mode.
  • Page 693 PT in NT Link or Serial is a nor- OFF: Not PLC Link mode. communicat- response Bits 0 to 7 correspond to units 0 to 7. to the token. A393.08 Serial Port 2 The corresponding bit will be ON for...
  • Page 694 1 is communicating in NT umn. OFF: Priority Flags link mode. not registered Bits 0 to 7 correspond to units 0 to 7. These flags are written when the pri- ority registration command is received. A394.00 Serial Port 1...
  • Page 695 CPU Unit operation will stop and the A298 and ERR/ALM indicator on the front of A299 the CPU Unit will light. The task num- ber where the error occurred will be stored in A294 and the program address will be stored in A298 and A299.
  • Page 696 ON: Error Cleared Cleared Refreshed A404 Flag when error • When an error occurs in a data OFF: No error occurs. (fatal error) transfer between the CPU Unit and a CP-series Expansion Unit or Expansion I/O Unit. If this hap- pens, 0A0A hex will be output to A404.
  • Page 697 10 ms during error) (Detect I/O refreshing of a Special I/O Unit. Interrupt This flag will also be turned ON if an Task attempt is made to refresh a Special Errors set- I/O Unit’s I/O from an interrupt task ting) with IORF(097) while the Unit’s I/O is...
  • Page 698 OFF: No error Transfer Error occurs during automatic transfer. An power is Flag error will occur if there is a transfer turned ON. error, the specified file does not exist, or the Memory Cassette is not installed. (This flag will be turned OFF when the error is cleared by turning the power OFF.
  • Page 699 Special I/O Unit’s unit num- duplication ber has been duplicated. Bits A411.00 to A416.15 correspond to unit numbers 000 to 05F (0 to 95). CPU Unit operation will stop and the ERR/ALM indicator on the front of the CPU Unit will light.
  • Page 700 Error Cause Error Flag) is ON, this flag indicates cated refresh- A426.00 Flag the cause of the error. The CPU Unit will continue operating and the ERR/ A426.11 ALM indicator on the front of the CPU Unit will flash. This flag turns ON when an attempt...
  • Page 701 A439 Pulse Output If a Pulse Output Stop Error occurs Retained Cleared Refreshed 3 Stop Error for pulse output 3, the error code is when ori- Code stored. gin search starts. Refreshed when a pulse out- put stop error occurs.
  • Page 702 Flags, Word Bits mode Settings change A500 A500.12 IOM Hold Bit Turn this bit ON to preserve the sta- ON: Retained Retained See tus of the I/O Memory when shifting Function Function Setup OFF: Not from PROGRAM to RUN or MONI- column.
  • Page 703 Completed ing execution of differentiation moni- established Flag toring. OFF: Not yet (This flag will be cleared to 0 when established differentiation monitoring starts.) A508.11 Trace Trig- ON when a trigger condition is estab- ON: Trigger Retained Cleared ger Monitor...
  • Page 704 A526.00 Serial Port 2 Turn this bit ON to restart the serial OFF to ON: Retained Cleared Restart Bit port 2. (Do not use this bit when the Restart port is operating in Peripheral Bus Mode.) This bit is turned OFF automatically when the restart processing is com- pleted.
  • Page 705 2 is restarted. parity error. (These flags are not valid in periph- Bit 03: ON for eral bus mode and only bit 5 is valid framing error. in NT Link mode.) Bit 04: ON for PLC Link Polling Unit: overrun error.
  • Page 706 Flags, Word Bits mode Settings change A531 A531.08 High-speed When a counter's Gate Bit is ON, the Retained Cleared Counter 0 counter's PV will not be changed Gate Bit even if pulse inputs are received for the counter. A531.09 High-speed...
  • Page 707 0 Posi- input signal used in the origin search tioning for pulse output 0. The input signal Completed from the servo driver is output to this Signal bit from the ladder program to enable using the signal. A541 A541.00 Pulse Out-...
  • Page 708 Monitoring Time Note These Auxiliary Area bits/words are not to be written by the user. The number of resends and response monitoring time must be set by the user in the FB communications instructions settings in the PLC Setup, particularly when using function blocks from the OMRON FB Library to execute FINS messages or DeviceNet explicit messages communications.
  • Page 709 Unit 0, OFF: Not settings have been changed. Port 2 Set- changing tings Chang- It is also possible for the user to indicate ing Flag a change in serial port settings by turn- ing these flags ON. A620.03 Communica- ON: Changing...
  • Page 710 15, Ports changing 1 to 4 Set- tings Chang- ing Flag A640 A640.00 Serial Port 2 Turn ON this bit to send a command Turned ON: Retained Cleared DM fixed Modbus- and receive a response for serial port 2 Execution...
  • Page 711 Word Bits mode Settings change A720 to Power ON These words contain the time at which See at left. Retained Retained Written A722 Clock Data 1 the power was turned ON one time when before the startup time stored in words power is A510 to A511.
  • Page 712 DM Initial values area was not spec- (failed to save) Error Flag ified when starting to transfer DM initial values from the DM Area to the DM ini- tial value area in flash memory. A751.13 DM Initial ON when an error occurred in transfer-...
  • Page 713 Area Speci- fication Note The following flags are provided in a special read-only area and can be specified with the labels given in the table. These flags are not contained in the Auxiliary Area. Refer to 4-18 Condition Flags and 4-19 Clock Pulses for details.
  • Page 714 Error record The following data would be generated in an error record if a memory error (error code 80F1) occurred on 1 April 1998 at 17:10:30 with the error located in the PLC Setup (04 hex). The following data would be generated in an error record if an FALS error with FALS number 001 occurred on...
  • Page 715 3. The contents of the error flags for a duplicate number error are as follows: Bits 00 to 07: Unit number (binary), 00 to 5F hex for Special I/O Units, 00 to 0F hex for CPU Bus Units Bits 08 to 14: All zeros.
  • Page 716 A202.00 to A202.07: Communications Port Enabled Flags Port 0 SEND Port 1 PMCR Port 7 Instruction Network communications in- execution struction executed for port 0. A202.00 A202.00 The program is designed so that CMND(490) will be executed only when A202.00 is ON.
  • Page 717 Stored Stored Stored Error record 20 next A501.00 to A501.15: CPU Bus Unit Restart Bits and A302.00 to A302.15: CPU Bus Unit Initialization Flags Automatically turned OFF by system. Example: Unit No. 1 CPU Bus Unit Restart Bits A501.01 (or at startup) CPU Bus Unit Initialization Flags A302.01...
  • Page 718 A295.11 Illegal Area Access Error Flag A295.10 Indirect DM Addressing Error Flag A295.09 Instruction Processing Error Flag (ER A295.08 Flag goes ON) A426.15: Interrupt Task Error Cause Flag Special I/O Unit Interrupt task 10 ms max. IORF(097) instruction I/O refresh...
  • Page 719: Memory Map

    Parameter Areas: These areas contain CPU Unit system setting data, such as the PLC Setup, CPU Bus Unit Setups, etc. An illegal access error will occur if an attempt is made to access any of the parameter areas from an instruction in the user program.
  • Page 720 Appendix E Memory Map Memory Map Note Do not access the areas indicated Reserved for system. Classification PLC memory User addresses Area addresses (hex) Parameter 00000 to 0B0FF PLC Setup Area areas Routing Table Area CPU Bus Unit Setup Area...
  • Page 721: Connections To Serial Communications Option Boards

    Reducing Electrical Noise for External Wiring Observe the following precautions when wiring communications cables, PLC power lines, and high-power lines. When multi-conductor signal cable is being used, avoid using I/O wires and other control wires in the same cable. • If wiring racks are running in parallel, allow at least 300 mm between the racks.
  • Page 722 Appendix F Connections to Serial Communications Option Boards • If the I/O wiring and power cables must be placed in the same duct, they must be shielded from each other using grounded steel sheet metal. PLC power supply and general control...
  • Page 723 Appendix F Connections to Serial Communications Option Boards Connections for Host Link Communications Port connections for Host Link communications are shown in the following table. Up to 32 nodes can be con- nected for 1:N connections. Port Config- Schematic diagram, RS-232C ports...
  • Page 724 XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m !Caution Do not use the 5-V power from pin 6 of the RS-232C Option Board for anything but the NT-AL001 Link Adapter. Using this power supply for any other external device may damage the RS-232C...
  • Page 725 Pin 2: ON (terminating resistance) Pin 3: OFF Pin 4: OFF Pin 5: OFF Pin 6: ON Note We recommend using the following NT-AL001 Link Adapter Connecting Cables to connect to NT-AL001 Link Adapters. XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m...
  • Page 726 Appendix F Connections to Serial Communications Option Boards 1:1 Connections Using RS-422A/485 Port CPU Unit Computer NT-AL001 Link Adapter Signal RS-422A Signal Signal Signal /485 Shield Option Board RS-232C Interface 4-wire Terminating resistance ON D-sub, 9-pin Terminal block connector (male)
  • Page 727 Board D-sub, 9-pin D-sub, 9-pin connector (male) connector (male) • Communications Mode: Host Link (unit number 0 only for Host Link) NT Link (1:N, N = 1 Unit only) • OMRON Cables with Connectors: XW2Z-200T-1: 2 m XW2Z-500T-1: 5 m 1:1 Connections from RS-422A/485 to RS-422A/485 Ports (See note 2.)
  • Page 728 (1) RS-422A/485 Option Board settings: Terminating resistance ON, 4-wire. (2) The terminating resistant setting shown above is an example for the NT631/NT631C. The setting method varies with the PT. Refer to the manual for you PT for details. 1:N, 4-wire Connections from RS-422A/485 to RS-422A/485 Ports...
  • Page 729 5-V power Note (1) The maximum cable length for RS-232C is 15 m. The RS-232C standard, however, does not cover baud rates above 19.2 Kbps. Refer to the manual for the device being connected to confirm support. (2) The combined cable length for RS-422A/485 is 500 m including branch lines.
  • Page 730 5-V power Note (1) The maximum cable length for RS-232C is 15 m. The RS-232C standard, however, does not cover baud rates above 19.2 Kbps. Refer to the manual for the device being connected to confirm support. (2) The CP1W-CIF11 is a non-isolated board, so the maximum transmission distance is 50 m. The CP1W-CIF12 is an isolated board, so the maximum transmission distance is 500m.
  • Page 731 RS-232C: Terminal Block Shield Signal Terminal D-sub, 9-pin connector (male) Connections to a Host Computer CPU Unit Computer RS232-C Option Board D-sub, 9-pin connector (male) Connections to a Personal Computer with RTS-CTS Flow Control CPU Unit RS-232C Option Board Computer...
  • Page 732 Pin 4: OFF Pin 5: OFF Pin 5: OFF Pin 6: ON Pin 6: OFF Note We recommend using the following NT-AL001 Link Adapter Connecting Cables to connect to NT-AL001 Link Adapters. XW2Z-200T-1: 2 m XW2Z-500T-1: 5 m Connections to a Modem...
  • Page 733 Pin 2: ON Terminating resistance Pin 3: ON 2-wire Pin 4: ON Pin 5: OFF Pin 6: ON Note We recommend using the following NT-AL001 Link Adapter Connecting Cables to connect to NT-AL001 Link Adapters. XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m...
  • Page 734 Appendix F Connections to Serial Communications Option Boards 1:1 Connections Using RS-422A/485 Ports Device supporting Device supporting RS-422A/485 RS-422A/485 communications communications (4-wire) (2-wire) CPU Unit Serial Communications Board/Unit Signal Signal Pin Signal Pin Shield Signal Shield RS-422A /485 in- RS-422A...
  • Page 735 Appendix F Connections to Serial Communications Option Boards 1:N Connections Using RS-422A/485 Ports Device supporting RS-422A/485 CPU Unit communications (2-wire) Signal Signal RS-422A/ 485 inter- RS-422A/ face Option Board Terminal block Device supporting RS-422A/485 communications (2-wire) Signal RS-422A/ 485 inter-...
  • Page 736 Board D-sub, 9-pin D-sub, 9-pin connector (male) connector (male) • Communications Mode: Host Link (unit number 0 only for Host Link) NT Link (1:N, N = 1 Unit only) • OMRON Cables with Connectors: XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m...
  • Page 737 (1) RS-422A/485 Option Board settings: Terminating resistance ON, 4-wire. (2) The terminating resistant setting shown above is an example for the NT631/NT631C. The setting method varies with the PT. Refer to the manual for you PT for details. 1:N, 2-wire Connections from RS-422A/485 to RS-422A/485 Ports...
  • Page 738 Note The CP1W-CIF11 is not insulated, so the total transmission distance for the whole transmission path is 50 m max. If the total transmission distance is greater than 50 m, use the RS-422A/485 port on the CP1W-CIF12 directly, or the insulated NT-AL001, and do not use the CP1W-CIF11. If the CP1W-CIF12 or NT-AL001 is used, the total transmission distance for the whole transmission path is 500 m max.
  • Page 739: Connection Examples

    Pin No. 4: OFF Pin No. 4: OFF Pin No. 4: OFF Pin No. 5: OFF (No RS control for RD.) Pin No. 5: OFF (No RS control for RD.) Pin No. 5: OFF (No RS control for RD.) Pin No. 6: ON (With RS control for SD.) Pin No.
  • Page 740 3. Connect the shield of the communications cable to the Hood (FG) terminal of the RS-232C connector on the Option Board. At the same time, ground the ground (GR) terminal of the CPU Unit to 100 Ω or less. 4. A connection example is shown below.
  • Page 741 CO-HC-ESV-3Px7/0.2 Hirakawa Hewtech Corp. 2. Connect the shield of the communications cable to the FG terminal on the RS-422A/485 Option Board. At the same time, ground the ground (GR) terminal of the CPU Unit to 100 Ω or less. Note Always ground the shield only at the RS-422A/485 Option Board end. Grounding both ends of the shield may damage the device due to the potential difference between the ground terminals.
  • Page 742 XW2Z-070T-1 XW2Z-200T-1 It is recommended that one of these cables be used to connect the RS-232C port on the Option Board to the NT-AL001 RS-232C/RS-422 Link Adapter. The recommended wiring for these cables is shown below. • Wiring for the Recommended Cables (XW2Z-070T-1 and XW2Z-200T-1, 10-conductor Cables)
  • Page 743 See the following diagrams for the length of the cable portion to be cut in each step. Shield Connected to Hood (FG) 1. Cut the cable to the required length. 2. Remove the specified length of the sheath from the cable using a knife. Be careful not to scratch the braided shield. 25 mm (RS-422A) 40 mm (RS-232C) 3.
  • Page 744 Soldering iron Heat-shrinking tube Inside diameter: 1.5 mm, l = 10 4. Return the heat-shrinking tube to the soldered portion, then heat the tube to shrink it in place. Heat-shrinking tube Assembling Connector Hood Assemble the connector hood as shown below.
  • Page 745 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
  • Page 746 Connections to Serial Communications Option Boards Appendix F...
  • Page 747: Plc Setup

    (See note.) mode Monitor: MONITOR 8001 hex mode Run: RUN mode 8002 hex Note A Programming Console cannot be connected to the CP1H. If the default setting, “Use programming console,” is set, the CPU Unit will start in RUN mode.
  • Page 748: Background Execution Settings

    0: Port 0 At start of operation 00 to 0 hex cal number) 7: Port 7 7 hex Comms Instructions Settings in FB: Settings for Communications Instructions in Function Blocks Name Default Settings When setting is read Internal Bits Settings...
  • Page 749 Appendix G PLC Setup Timings: Time and Interrupt Settings Cycle Time Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Watch Cycle Time Use default. Use default. At start of operation (default 1000 ms) (Default: 1 s) Use user setting.
  • Page 750: Input Constant Settings

    Appendix G PLC Setup Input Constant Settings Input Constant (0-17CH): Input Constant Settings for CIO 0 to CIO 17 Name Default Settings When setting is read Internal Bits Settings by CPU Unit address 0CH: CIO 0 8 ms No filter (0 ms)
  • Page 751 Communications Settings Standard Standard (9600; 1,7,2,E) Every cycle (9600; 1,7,2,E) (The standard settings are as follows: 9,600 baud, 1 start bit, 7-bit data, even parity, and 2 stop bits.) Custom Mode Host Link Host Link Every cycle 08 to...
  • Page 752 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address NT Link (1:N): 1:N NT Links 2-2-1 Baud 9,600 38,400 (standard) Every cycle 00 to 00 hex (disabled) 115,200 (high speed) 0A hex...
  • Page 753 8,1,O: 8-bit data, 1 stop D hex bit, odd parity 8,1,N: 8-bit data, 1 stop E hex bit, no parity 50: 50 × 100 ms = 5 s 2-5-3 Response Every cycle 08 to 00 hex 50 × 100 ms = Timeout 1: 1 ×...
  • Page 754 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address PC Link (Slave) 2-6-1 Baud 9,600 bps 38,400 (standard) Every cycle 00 to 00 hex (disabled) 115,200 (high speed) 0A hex 2-6-2...
  • Page 755 Communications Settings Standard Standard (9600; 1,7,2,E) Every cycle (9600 ; 1,7,2,E) (The standard settings are as follows: 9,600 baud, 1 start bit, 7-bit data, even parity, and 2 stop bits.) Custom Mode Host Link Host Link Every cycle 08 to...
  • Page 756 38,400 bps 08 hex 57,600 bps 09 hex 115,200 bps 0A hex 2-3-2 Format 7,2,E: 7-bit 7,2,E: 7-bit data, 2 stop Every cycle 00 to 0 hex (data data, 2 stop bits, even parity length, bits, even parity 7,2,O: 7-bit data, 2 stop...
  • Page 757 8,1,O: 8-bit data, 1 stop D hex bit, odd parity 8,1,N: 8-bit data, 1 stop E hex bit, no parity 50: 50 × 100 ms = 5 s 2-5-3 Response Every cycle 08 to 00 hex 50 × 100 ms = Timeout 1: 1 ×...
  • Page 758 PLC Setup Appendix G Name Default Settings When setting is read Internal Bits Settings by CPU Unit address PC Link (Slave) 2-6-1 Baud 9,600 bps 38,400 (standard) Every cycle 00 to 00 hex (disabled) 115,200 (high speed) 0A hex 2-6-2...
  • Page 759 Appendix G PLC Setup Peripheral Service Settings Set Time to All Events: Time Setting for Services Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Set time to all events Default Default At start of operation (4% of cycle time) Use user setting.
  • Page 760 Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Use high speed counter 2 Do not use. Do not use. When power is turned 12 to 0 hex Use. 1 hex Counting mode Linear mode...
  • Page 761: Pulse Output 0 Settings

    Quick 2 hex Normal Normal When power is turned 08 to 0 hex (CIO 0.02) Interrupt 1 hex (Y CPU Units: CIO 1.00) Quick 2 hex Normal Normal When power is turned 12 to 0 hex (CIO 0.03) Interrupt 1 hex (Y CPU Units: CIO 1.01)
  • Page 762 Appendix G PLC Setup Define Origin Operation Settings: Origin Search Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Use define origin opera- Do not use. Do not use. When power is turned 00 to...
  • Page 763 Appendix G PLC Setup Origin Return Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Speed 0 pps 1 pps At start of operation 271 and 00 to 15 0000 0001 (disabled) 100,000 pps (maxi-...
  • Page 764: Pulse Output 1 Settings

    CPU Unit address Undefined Origin (oper- Hold Hold At start of operation 12 to 0 hex ation for limit signal turn- Undefined 1 hex ing ON) Limited Input Signal Search Only Search Only When power is turned 04 to...
  • Page 765 Appendix G PLC Setup Define Origin Operation Settings: Origin Search Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Use define origin opera- Do not use. Do not use. When power is turned 00 to...
  • Page 766 Appendix G PLC Setup Origin Return Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Speed 0 pps 1 pps At start of operation 289 and 00 to 15 0000 0001 (disabled) 100,000 pps (maxi-...
  • Page 767 CPU Unit address Undefined Origin (oper- Hold Hold At start of operation 12 to 0 hex ation for limit signal turn- Undefined 1 hex ing ON) Limited Input Signal Search Only Search Only When power is turned 04 to...
  • Page 768 Appendix G PLC Setup Define Origin Operation Settings: Origin Search Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Use define origin opera- Do not use. Do not use. When power is turned 00 to...
  • Page 769 Appendix G PLC Setup Origin Return Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Speed 0 pps 1 pps At start of operation 395 and 00 to 15 0000 0001 (disabled) 30,000 pps...
  • Page 770 CPU Unit address Undefined Origin (oper- Hold Hold At start of operation 12 to 0 hex ation for limit signal turn- Undefined 1 hex ing ON) Limited Input Signal Search Only Search Only When power is turned 04 to...
  • Page 771 Appendix G PLC Setup Define Origin Operation Settings: Origin Search Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Use define origin opera- Do not use. Do not use. When power is turned 00 to...
  • Page 772 CPU Unit address Built-in analog resolution 6,000 6,000 (Resolution) When power is turned (for all analog I/O) (Resolution) 12,000 (Resolution) AD 0CH/AD 1CH/AD 2CH/AD 3CH: Analog Input Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit...
  • Page 773 3 hex 0 to 20 mA 4 hex 4 to 20 mA 5 hex SIOU Refresh: Special I/O Unit Refresh Settings Disable SIOU Cyclic Refresh: Special I/O Unit Refresh Disable Settings Name Default Settings When setting is read Internal Bits...
  • Page 774 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address SIOU 15 Disable. Disable. At start of operation Enable. SIOU 16 Disable. Disable. Enable. SIOU 31 Disable. Disable. At start of operation Enable.
  • Page 775 PLC Setup Appendix G FINS Protection Settings Settings for FINS Write Protection via Network Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Validate FINS write pro- Disable. Disable. Every cycle tection via network Enable.
  • Page 776 PLC Setup Appendix G...
  • Page 777: Specifications For External Power Supply Expansion

    The external power supply for AC-power-supply CP1H CPU Units manufactured since July 2008 (Model CP1H- DR-A) can be used beyond 300mA within the capacity range of the power supply built in the CPU Units. Please calculate the usable capacity of external power supply according to the following example.
  • Page 778 Specifications for External Power Supply Expansion Appendix H...
  • Page 779: Index

    Condition Flag saving and loading status absolute coordinates Condition Flags selecting connectors absolute pulse outputs recommended models Access Error Flag coordinate systems (absolute or relative) addresses Counter Area memory map countermeasures Always OFF Flag noise xxxi Always ON Flag CPU Bus Unit Area...
  • Page 780 Index DIP switch FAL errors pin 6 status flag direction FAL/FALS Number for System Error Simulation automatic direction selection FALS Error Flag DM Area FALS errors DR00 Output for Background Execution flag FALS instruction FINS commands list First Cycle Flag...
  • Page 781 Index IR00 Output for Background Execution I/O Hold Bit I/O interrupts response time Less Than Flag I/O memory Less Than or Equals Flag addresses Limit Input Signal Type areas linear mode counting effects of operating mode changes details I/O response time...
  • Page 782 PLC Setup error information operating modes description Polled Units effects of mode changes on counters settings operation Polling Unit debugging setting trial operation Polling Unit link method Origin Compensation positioning Origin Detection Method...
  • Page 783 Index details software reset restrictions Special I/O Unit Area Special I/O Units error information Initialization Flags Restart Bits quick-response inputs words allocated to Special I/O Units details specifications PWM(891) output startup hot starting and stopping radioactivity xxvii static electricity xxvi...
  • Page 784 Index variable duty ratio pulse outputs details vertical conveyor Work Area work bits work words write-protection...
  • Page 785: 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. W450-E1-06 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
  • Page 786 Revision History...
  • Page 787 Regional Headquarters OMRON EUROPE B.V. 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,...
  • Page 788 Authorized Distributor: Cat. No. W450-E1-06 Note: Specifications subject to change without notice Printed in Japan This manual is printed on 100% recycled paper.

Table of Contents