Omron CP1L CPU UNIT - 06-2007 Operation Manual
Omron CP1L CPU UNIT - 06-2007 Operation Manual

Omron CP1L CPU UNIT - 06-2007 Operation Manual

Cp1l cpu unit
Table of Contents

Advertisement

Quick Links

Cat. No. W462-E1-02
SYSMAC CP Series
CP1L-L14D#-#
CP1L-L20D#-#
CP1L-M30D#-#
CP1L-M40D#-#
CP1L CPU Unit
OPERATION MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP1L CPU UNIT - 06-2007 and is the answer not in the manual?

Questions and answers

Summary of Contents for Omron CP1L CPU UNIT - 06-2007

  • Page 1 Cat. No. W462-E1-02 SYSMAC CP Series CP1L-L14D#-# CP1L-L20D#-# CP1L-M30D#-# CP1L-M40D#-# CP1L CPU Unit OPERATION MANUAL...
  • Page 2 CP1L-L14D@-@ CP1L-L20D@-@ CP1L-M30D@-@ CP1L-M40D@-@ CP1L CPU Unit Operation Manual Revised June 2007...
  • Page 4  OMRON, 2007 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 5 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 6 2. Click the Settings Button by the Device Type Field and, when the Device Type Settings Dialog Box is displayed, set the CPU Type Field to M or L. 3. Go online and select PLC - Edit - Information The PLC Information Dialog Box will be displayed.
  • Page 7 If you don't know the device type and CPU type that are connected directly to the CPU Unit on a serial line, select PLC - Auto Online to go online, and then select PLC - Edit - Information from the menus.
  • 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 10 CP/CPM1A-series Expansion I/O Unit Wiring ........
  • Page 11: Table Of Contents

    Serial Communications ........... . . Analog Adjuster and External Analog Setting Input.......
  • Page 12 Index..........631 Revision History ........637...
  • Page 13 TABLE OF CONTENTS...
  • Page 14: About This Manual

    OMRON’s advanced control technologies and vast experience in automated control. Please read this manual carefully and be sure you understand the information provided before attempting to install or operate a CP-series PLC. Be sure to read the precautions provided in the fol- lowing section.
  • Page 15 Section 4 describes the structure and functions of the I/O Memory Areas and Parameter Areas. Section 5 describes the CP1L’s interrupt and high-speed counter functions. Section 6 describes all of the advanced functions of the CP1L that can be used to achieve specific application needs.
  • Page 16: Related Manuals

    Related Manuals The following manuals are used for the CP1L CPU Units. Refer to these manuals as required. Cat. No. Model numbers Manual name Description W462 CP1L-L14D@-@ SYSMAC CP Series Provides the following information on the CP Series: CP1L-L20D@-@ CP1L CPU Unit Oper- •...
  • Page 17 Provides operating procedures for creating protocol tion Manual macros (i.e., communications sequences) with the CX-Protocol and other information on protocol mac- ros. The CX-Protocol is required to create protocol mac- ros for user-specific serial communications or to customize the standard system protocols. W342 CS1G/H-CPU@@H...
  • Page 18 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 19 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 20 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 21 xxii...
  • Page 22 Conformance to EC Directives ........
  • Page 23: 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 24 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 25: Operating Environment 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 26: Application Precautions

    • Connecting or disconnecting the connectors !Caution Failure to abide by the following precautions could lead to faulty operation of the PLC or the system, or could damage the PLC or PLC Units. Always heed these precautions. • Install external breakers and take other safety measures against short-cir- cuiting in external wiring.
  • Page 27 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 28 • 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 29: Conformance To Ec Directives

    EMC Directives OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine. The actual products have been checked for conformity to EMC standards (see the following note).
  • Page 30 Countermeasures Countermeasures are not required if the frequency of load switching for the whole system with the PLC included is less than 5 times per minute. Countermeasures are required if the frequency of load switching for the whole system with the PLC included is more than 5 times per minute.
  • Page 31: Conditions For Meeting Emc Directives When Using Cpm1A Relay Expansion I/O Units

    Conformance to EC Directives 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 Providing a dark current of Providing a limiting resistor approx. one-third of the rated...
  • Page 32 Conformance to EC Directives 2. Connection Method As shown below, connect a ferrite core to each end of the CP1W-CN811 I/O Connecting Cable. SYSMAC CP1L L2/N 40EDR xxxiii...
  • Page 33 Conformance to EC Directives xxxiv...
  • Page 34: Features And System Configuration

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

    1-1-1 CP1L Overview The SYSMAC CP1L PLCs are the low end PLCs in the SYSMAC CP Series of package-type Programmable Controllers. They have the smallest program and I/O capacity. The CP1L PLCs are the same size as the CPM1A and CPM2A PLCs, but offer many more features and high performance.
  • Page 36 Features and Main Functions 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. The instruction used to control each output point determines whether it is used as a normal output, pulse output, or PWM output.
  • Page 37 Transistor outputs, sourcing:Model numbers with “T1” before the final suffix High-speed counter inputs 4 counters/2 axes, 100 kHz (single-phase), 100 kHz for up/down pulses or pulse plus direction, 50 kHz for differential phases Pulse outputs 2 axes, 100 kHz (transistor outputs)
  • Page 38: Features

    OUTPUT instruction. The position offset is calculated using an error counter for the feedback pulse input from a rotary encoder connected to an inductive motor and the internal pulse output. The error counter is then used to output a speed command to the inverter to control positioning. This enables positioning with high-capacity motors, as well as low-cost positioning with small-capacity motors (in comparison to using a servo).
  • Page 39 Section 1-1 Features and Main Functions A virtual pulse output is created using a pulse output instruction, the position offset is calculated using an error counter, and a frequency (i.e., speed) command is output according to the position offset to control positioning.
  • Page 40 High-speed Processing for High-speed Counter Present Value (PV) speed Counter Functions Target Values or Range Comparison Interrupts An interrupt task can be started when the count reaches a specified value or falls within a specified range. High-speed Counter Input Frequency (Speed) Monitoring...
  • Page 41 Quick-response By using quick-response inputs, built-in inputs up to a minimum input signal width of 50 µ s can be read regardless of the cycle time. The maximum num- Inputs ber of quick-response input points is 6 for CPU Units with 20, 30, or 40 I/O points and 4 for CPU Units with 14 I/O points.
  • Page 42 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 43 Up to two Serial Communications Boards each with one RS-232C port or one Serial Ports RS-422A/485 port can be added to a CPU Unit with 30 or 40 I/O points. One Serial Communications Boards can be added to a CPU Unit with 20 or 14 I/O points.
  • Page 44 ON a software switch. Modbus-RTU Inverter (2) By using the serial PLC Links, a maximum of 10 words of data per CPU Unit can be shared independently of the program among a maximum of nine CPU Units (CP1L-CP1L-CP1H/CJ1M) using RS-422A/485 Option Boards.
  • Page 45: System Configuration

    A password registration function is provided for the CPU Unit to prevent unau- thorized copy of ladder programs. If an attempt is made to read a ladder pro- gram from a CX-Programmer, access to the program is denied if the password that is entered does not match the registered password.
  • Page 46: Optional Products

    RS-422A/485 Option Board can be added. Expansion Two Option Boards can be mounted with a CPU Units with 30 or 40 I/O points and one Option Board can be mounted with a CPU Units with 20 or 14 I/O points.
  • Page 47: System Expansion

    CP1L CPU Unit. Up to three Expansion Units or Expansion I/O Units can be connected to a CPU Unit with 30 or 40 I/O points and one Expansion Unit or Expansion I/O Unit can be connected to a CPU Unit with 20 or 14 I/O points.
  • Page 48 CPU Unit with 30 or 40 I/O points and one Expansion Unit or Expansion I/O Unit can be connected to a CPU Unit with 20 or 14 I/O points. The maximum I/O capacity is thus achieved by connecting either one or three Expansion Units or Expansion I/O Units.
  • Page 49 8 transistor outputs (sinking) CPM1A-20EDT 00 01 02 03 04 05 06 07 08 09 10 11 CP1W-20EDT1 8 transistor outputs (sourc- 00 01 02 03 04 05 06 07 CPM1A-20EDT1 ing) CP1W-16ER None 16 relay outputs 280 g max.
  • Page 50: Restrictions On System Configuration

    Number of Expansion Units and Expansion I/O Units Connected A maximum of three Units can be connected to a CPU Unit with 30 or 40 I/O points and one Unit can be connected to a CPU Unit with 20 or 14 I/O points.
  • Page 51 5.352 W/24V = 0.223 A supply capacity Note If the results exceeds 0.3 A, reduce the current consumption to 0.3 A or less. CPU Units with 14 or 20 I/O Points and AC Power (CP1L-L@@DR-A) When CP1W or CPM1A Expansion Units or Expansion I/O Units are con- nected to a CPU Unit with 14 or 20 I/O Points and AC Power (CP1L-L@@DR- A), the external power supply cannot be used.
  • Page 52 Ambient temperature Ambient temperature Ambient temperature Note There are no restrictions on the transistor output load current from the CPU Unit. CPU Units with AC Power There are no restrictions on the output load current from CPU Units with AC power.
  • Page 53: Connecting The Cx-Programmer

    • 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. The peripheral USB port (conforming to USB 1.1, B connector) is a dedicated port for connecting Support Software, such as the CX-Programmer.
  • Page 54 1. If the following window appears, select the No, not this time Option and then click the Next Button. This window is not always displayed. 2. The following window will be displayed. Select the Install from a list of spe- cific location Option and then click the Next Button.
  • Page 55 Connecting the CX-Programmer Section 1-3 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. The driver will be installed. (“C:\” indicates the installation drive and may be different on your computer.)
  • Page 56 Click the Finish Button. Windows 2000 Turn ON the power supply to the CP1L, and connect USB cable between the USB port of the computer and the peripheral USB port of the CP1L. After the cable has been connected, the computer will automatically recognize the device and the following message will be displayed.
  • Page 57 Section 1-3 2. The following window will be displayed. 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 58 Section 1-3 Connecting the CX-Programmer 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 be displayed.
  • Page 59 Section 1-3 Connecting the CX-Programmer 2. Click the OK Button to finish setting the PLC model. Then connect to the CP1L by executing the CX-Programmer's online connection command. Checking after Installation 1,2,3... 1. Display the Device Manager at the computer.
  • Page 60: Connecting To A Serial Port

    Connecting the CX-Programmer Section 1-3 Reinstalling the USB Driver 1,2,3... 1. Right-click USB Device and select Delete from the pop-up menu to delete the driver. 2. Reconnect the USB cable. The USB Driver Installation Window will be dis- played. 3. Reinstall the USB driver.
  • Page 61 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 62: Function Charts

    CPU No-battery operation Unit's built-in flash memory. Data saved in the CPU Unit's built-in flash memory can be saved to a Memory Cassette Memory Cassette (purchased separately) and transferred automatically from the Memory Cassette when the power supply is turned ON.
  • Page 63: 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 64 Improved Reusability The function block's I/O is entered as local variables, so the data addresses in through Programming the function block do not have to be changed as they do when copying and with Variables reusing a program section. Creating Libraries...
  • Page 65 Section 1-5 Function Blocks...
  • Page 66: Nomenclature And Specifications

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

    Show CP1L operation status. POWER Power is ON. (Green) Not lit Power is OFF. POWER The CP1L 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 68 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- 4 Analog Adjuster and External Analog Setting Input.)
  • Page 69 • The entire user program (all tasks) • All data in parameter areas (such as the PLC Setup) When SW1 is turned ON, the user program and the data in the pa- rameter areas will not be cleared even if the All Clear operation is performed from a Peripheral Device (i.e., the CX-Programmer).
  • Page 70: Cp1W-Cif01 Rs-232C Option Boards

    Link Units) can be connected. Up to three Expansion Units or Expansion I/O Units can be connected to a CPU Unit with 30 or 40 I/O points and one Expansion Unit or Expansion I/O Unit can be connected to a CPU Unit with 20 or 14 I/O points.
  • Page 71: Cp1W-Cif11 Rs-422A/485 Option Boards

    CP1W-CIF11 RS-422A/485 Option Boards An RS-422A/485 Option Board can be mounted to an Option Board slot on the CPU Unit. With a CPU Unit with 30 or 40 I/O points, either Option Board slot may be used. 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 72: 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 73 CP1L-L14D@-@: 380 g max. Note (1) The above values are for a cold start at room temperature for an AC pow- er supply, and for a cold start for a DC power supply. • A thermistor (with low-temperature current suppression characteris- tics) is used in the inrush current control circuitry for the AC power sup- ply.
  • Page 74: Current Consumption

    CPU Unit if an Expansion Unit or Expan- sion I/O Unit is connected. (4) The external power supply cannot be used if an Expansion Unit or Expan- sion I/O Unit is connected to a CPU Unit with 14 or 20 I/O points.
  • Page 75 Program language Ladder diagram Function blocks Maximum number of function block definitions: 128 Maximum number of instances: 256 Languages usable in function block definitions: Ladder diagrams, structured text (ST) Instruction length 1 to 7 steps per instruction Instructions Approx. 500 (function codes: 3 digits) Basic instructions: 0.55 µs min.
  • Page 76 • CP1W-CIF11: One RS-422A/485 port Applicable communications modes (same for all of the above ports): Host Link, NT Link (1: N mode), No-protocol, Serial PLC Link Slave, Serial PLC Link Master, Serial Gateway (conversion to CompoWay/F, conversion to Modbus-RTU), peripheral bus (See note.)
  • Page 77: I/O Memory Details

    Memory Cassette function A CP1W-ME05M Memory Cassette (512K words, optional) can be mounted. It can be used to back up the following data on the CPU Unit's RAM and to transfer the data at startup. • Data saved on Memory Cassette: User programs, parameters (such as the PLC Setup), DM Area, data memory initial data, comment memory (CX-Programmer conversion tables, comments, program indices), and FB program memory.
  • Page 78: I/O Specifications

    Task Flag Area 32 flags (32 bits): TK0 to TK31 Trace Memory 4,000 words (500 samples for the trace data maximum of 31 bits and 6 words.) 2-2-3 I/O Specifications I/O Terminal Blocks of CPU Units with 40 I/O Points...
  • Page 79 Section 2-2 Specifications Setting Input Functions Using PLC Setup Address Input operation settings High-speed counters Origin searches Word Normal Interrupt Quick- Operation settings: Origin searches inputs inputs response enabled for pulse High-speed counters enabled (See note.) inputs outputs 0 and 1...
  • Page 80 19 Normal input 20 Normal input 21 Normal input 22 Normal input 23 Output Terminal Block Arrangement (Bottom Block) AC Power Supply Models − COM COM CIO 100 CIO 101 DC Power Supply Models COM COM CIO 100 CIO 101...
  • Page 81 Normal output 12 --- Normal output 13 --- Normal output 14 --- Normal output 15 --- I/O Terminal Blocks of CPU Units with 30 I/O Points Input Terminal Block (Top Block) AC Power Supply Models L2/N COM Inputs (CIO 0)
  • Page 82 Section 2-2 Specifications Setting Input Functions Using PLC Setup Address Input operation settings High-speed counters Origin searches Word Normal Interrupt Quick- Operation settings: Origin searches inputs inputs response enabled for pulse High-speed counters enabled (See note.) inputs outputs 0 and 1...
  • Page 83 − COM COM CIO 100 CIO 101 DC Power Supply Models CIO 101 CIO 100 Setting Output Functions Using Instructions and PLC Setup Address When the When a pulse output When origin searches are When the PWM instructions to instruction (SPED, ACC, PLS2,...
  • Page 84 Section 2-2 Specifications I/O Terminal Blocks of CPU Units with 20 I/O Points Input Terminal Block (Top Block) AC Power Supply Models L2/N COM Inputs (CIO 0) DC Power Supply Models − Inputs (CIO 0) Setting Input Functions Using PLC Setup...
  • Page 85 Output Terminal Block (Bottom Block) AC Power Supply Models DC Power Supply Models − COM COM CIO 100 CIO 100 Setting Output Functions Using Instructions and PLC Setup Address When the When a pulse output When origin searches are When the PWM instructions to...
  • Page 86 Section 2-2 Specifications I/O Terminal Blocks of CPU Units with 14 I/O Points Input Terminal Block (Top Block) AC Power Supply Models DC Power Supply Models − COM 01 L2/N COM Inputs (CIO 0) Inputs (CIO 0) Setting Input Functions Using PLC Setup...
  • Page 87: Input Specifications

    Output Terminal Block (Bottom Block) AC Power Supply Models DC Power Supply Models − COM COM CIO 100 CIO 100 Setting Functions Using Instructions and PLC Setup Address When the When a pulse output When origin searches are When the PWM instructions to...
  • Page 88 (2) The bits that can be used depend on the model of CPU Unit. (3) The response time is the hardware delay value. The delay set in the PLC Setup (0 to 32 ms, default: 8 ms) must be added to this value.
  • Page 89: Output Specifications

    Interrupt Inputs and With CPU Units with 20, 30, or 40 I/O points, the six input bits from CIO 0.04 Quick-response Inputs to CIO 0.09 can be used as either normal inputs or as interrupt or quick- response inputs depending on the settings in the PLC Setup. With CPU Units with 14 I/O points, the four input bits from CIO 0.04 to CIO 0.07 can be used...
  • Page 90 250 VAC: 2 A 24 VDC: 2 A 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. 125 VAC resistive load 30 VDC/250 VAC resistive load 30 VDC τ...
  • Page 91 (2) Also do not exceed 0.9 A for the total for CIO 100.00 to CIO 100.03. (3) The bits that can be used depend on the model of the CPU Unit. !Caution Do not connect a load to an output terminal or apply a voltage in excess of the maximum switching capacity.
  • Page 92: Cp/Cpm1A-Series Expansion I/O Unit I/O Specifications

    Note (1) The response time is the hardware delay value. The delay set in the PLC Setup (0 to 32 ms, default: 8 ms) must be added to this value. For the CP1W-40EDR/EDT/EDT1 and CPM1A-40EDR/EDT/EDT1, a fixed value of 16 ms must be added.
  • Page 93 250 VAC: 2 A 24 VDC: 2 A 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 τ...
  • Page 94 30 VDC to 30 VDC COM (−) Note (1) The fuse cannot be replaced by the user. (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...
  • Page 95 Section 2-2 Specifications !Caution Do not connect a load to an output terminal or apply a voltage in excess of the maximum switching capacity.
  • Page 96: Cp1L 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 is turned ON.
  • Page 97 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 98 CX-Programmer or PT is used to transfer or edit data, edit the program online, or transfer data from a Memory Cassette.
  • Page 99 Section 2-3 CP1L CPU Unit Operation Never turn OFF the power supply to the CPU Unit when the BKUP indicator is lit. Memory Cassette Memory Cassettes can be used as required in system operation and mainte- nance. For example, they can be used to save programs, data memory con- tents, PLC Setup data, or I/O comments from the CX-Programmer.
  • Page 100: 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 101 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 102: 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 103 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 104: 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 105: I/O Refreshing And Peripheral Servicing

    • Refreshing between I/O words in the CIO Area and CPU Unit built-in I/O, CP/CPM1A-series Expansion Units, and CP/CPM1A-series Expansion I/O Units All I/O refreshing is performed in the same cycle (i.e., time slicing is not used). I/O refreshing is always performed after program execution. Units Max.
  • Page 106 Immediate Refreshing When the immediate refreshing variation of an instruction is specified and the instruction’s operand is an input bit or word in the Built-in I/O Area, the word containing the bit or the word itself will be refreshed. I/O terminal status (built-in I/O) Immediate refresh 0.00...
  • Page 107: Initialization At Startup

    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 Programmable Controllers Program- ming Manual for instruction execution times.
  • Page 108: Cpu Unit Operating Modes

    Forced Status Hold Bit at that time. (3) User program recovery is performed if online editing is performed but the power supply to the PLC is turned OFF before the CPU Unit can complete backup processing. The BKUP indicator will light during backup process- ing.
  • Page 109: Operating Mode Changes And I/O Memory

    • 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 110: 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 111: 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 112: 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 113: 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 114: 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 115 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 116: I/O Refresh Times For Plc Units

    CompoBus/S I/O Link Unit CP1W-SRT21 0.21 ms CPM1A-SRT21 Note The I/O refresh time for CPU Unit built-in I/O is included in overhead process- ing. 2-7-5 Cycle Time Calculation Example The following example shows the method used to calculate the cycle time...
  • Page 117: Online Editing Cycle Time Extension

    Be sure that the additional time will not adversely affect system operation. Note When there is one task, online editing is processed all in the cycle time follow- ing the cycle in which online editing is executed (written). When there are mul- tiple tasks (cyclic tasks and interrupt tasks), online editing is separated, so that for n tasks, processing is executed over n to n ×...
  • Page 118: 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 119: 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 120: Serial Plc Link Response Performance

    1 ms max. There is also an error of 80 µ s in the time to the first scheduled interrupt (0.5 ms min.). Note Scheduled interrupt tasks can be executed during execution of the user pro- gram (even while an instruction is being executed by stopping the execution of an instruction), I/O refresh, peripheral servicing, or overseeing.
  • Page 121: 2-7-10 Pulse Output Start Time

    (ms) Slave communica- • Communications time set to Standard 0.4 + 0.286 × ((No. of slaves + 1) × No. of link words × 2 + 12) tions time (ms) • Communications time set to Fast 0.4 + 0.0955 × ((No. of slaves + 1) × No. of link words × 2 +...
  • Page 122 Mounting in a Panel ........
  • Page 123: Fail-Safe Circuits

    Fail-safe Circuits Always set up safety circuits outside of the PLC to prevent dangerous condi- tions in the event of errors in the CP1L CPU Unit or external power supply. In particular, be careful of the following points. Supply Power to the...
  • Page 124: Installation Precautions

    Temperature Control The ambient temperature within the enclosure must be within the operating range of 0 ° C to 55 ° C. When necessary, take the following steps to maintain the proper temperature. • Provide enough space for good air flow.
  • Page 125 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 126: Mounting

    DIN Track installation. Surface Installation Even if a DIN Track is not used, a CP1L CPU Unit and CP/CPM1A-series Expansion Units or Expansion I/O Units can be mounted using M4 screws. For restrictions on the number of Expansion Units and Expansion I/O Units that can be connected, refer to 1-2 System Configuration.
  • Page 127 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 PLC.
  • Page 128 Mounting Routing Wiring Ducts Install the wiring ducts at least 20 mm between the tops of the PLC 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 129: Connecting Expansion Units And Expansion I/O Units

    When a cable is connected to an Option Board, however, the additional height must be factored in. Always allow for the additional height when considering the depth of the control panel in which the PLC is to be mounted. 3-3-2...
  • Page 130 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 131: Din Track Installation

    Units, and mount the Units to the DIN Track. 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.
  • Page 132: Wiring Cp1L Cpu Units

    Wiring CP1L 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 133: 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 134 • 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 135: 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 136 Output CP1L CP1L 5 mA/ 7 mA Sensor power supply • The circuit below should not be used for I/O devices with a voltage output. Sensor power supply Output CP1L − 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 137 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 138: 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 139 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 140: Wiring Cpu Unit I/O

    CIO 100 CP1L-M40DR-D) − CO M COM COM COM CIO 101 CIO 100 AC-power-supply models have a 24-VDC output terminals (+/ − ) on the lower terminal block. They can be used as a DC power supply for the input circuit.
  • Page 141: I/O Wiring For Cpu Units With 30 I/O Points

    CIO 100 3-5-2 I/O Wiring for CPU Units with 30 I/O Points Input Wiring (Upper Terminal Block) The input circuits have 18 points/common. Use power lines with sufficient cur- rent capacity for the COM terminals. CIO 0 CIO 1 24 VDC...
  • Page 142 − CIO 100 CIO 101 AC-power-supply models have a 24-VDC output terminals (+/ − ) on the lower terminal block. They can be used as a DC power supply for the input circuit. Sinking Transistor Outputs (CP1L-M30DT-D) CIO 100 CIO 101...
  • Page 143: I/O Wiring For Cpu Units With 20 I/O Points

    NC COM COM COM CIO 100 AC-power-supply models have a 24-VDC output terminals (+/ − ) on the lower terminal block. They can be used as a DC power supply for the input circuit. Sinking Transistor Outputs (CP1L-L20DT-D) CIO 100...
  • Page 144: I/O Wiring For Cpu Units With 14 I/O Points

    (CP1L-L14DR-A and CIO 100 CP1L-L14DR-D) NC COM COM COM COM NC CIO 100 AC-power-supply models have a 24-VDC output terminals (+/ − ) on the lower terminal block. They can be used as a DC power supply for the input circuit.
  • Page 145: Pulse Input Connection Examples

    NC COM COM COM COM NC CIO 100 3-5-5 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. CP1L CPU Unit (Differential phase input mode) Phase A...
  • Page 146: 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 CP1L CPU Unit and the motor driver.
  • Page 147 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 148: Cp/Cpm1A-Series Expansion I/O Unit Wiring

    CP1W-8ET 8 transistor outputs (sinking) CPM1A-8ET CP1W-8ET1 8 transistor outputs (sourcing) CPM1A-8ET1 For details on wiring Expansion Units, refer to SECTION 7 Using Expansion Units and Expansion I/O Units. 40-point I/O Units (CP1W-40ED@@/CPM1A-40ED@@) Input Wiring CIO m+1 CIO m+2 −...
  • Page 149 Section 3-6 CP/CPM1A-series Expansion I/O Unit Wiring Output Wiring CP1W-40EDR/CPM1A-40EDR (Relay Outputs) COM COM COM CP1W-40EDT/CPM1A-40EDT (Sinking Transistor Outputs) NC COM COM COM 4.5 to 30 VDC CP1W-40EDT1/CP1A-40EDT1 (Sourcing Transistor Outputs) NC COM COM COM 4.5 to 30 VDC...
  • Page 150 CP/CPM1A-series Expansion I/O Unit Wiring Section 3-6 20-point I/O Units (CP1W-20ED@@/CPM1A-20ED@@) Input Wiring CP1W-20ED@@/CPM1A-20ED@@ CIO m+1 24 VDC − − CIO m+1 Output Wiring CP1W-20EDR1/CPM1A-20EDR1 (Relay Outputs) COM COM COM 250 VAC 24 VDC CP1W-20EDT/CPM1A-20EDT (Sinking Transistor Outputs) COM COM COM...
  • Page 151 8-point Input Units (CP1W-8ED/CPM1A-8E) Input Wiring Unit Upper Terminal Block Unit Lower Terminal Block 24 VDC − − − The Unit's upper terminal block COM and lower terminal block COM are − connected internally, but connect them externally as well. 24 VDC...
  • Page 152 Section 3-6 CP/CPM1A-series Expansion I/O Unit Wiring 8-point Output Units (CP1W-8E@/CPM1A-8E@) Output Wiring CP1W-8ER/CPM1A-8ER (Relay Outputs) Unit Upper Terminal Block Unit Lower Terminal Block Output Wiring CP1W-8ET/CPM1A-8ET (Sinking Transistor Outputs) Unit Upper Terminal Block Unit Lower Terminal Block 4.5 to 30 VDC −...
  • Page 153 Section 3-6 CP/CPM1A-series Expansion I/O Unit Wiring...
  • Page 154: I/O Memory Allocation

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

    (Note 3) Data Registers 16 regis- DR0 to ters DR15 Note 1. A0 to A447 are read only and cannot be written. A448 to A959 are read/write. 2. Bits can be manipulated using TST(350), TSTN(351), SET, SETB(532), RSTB(533), and OUTB(534).
  • Page 156: Overview Of The Data Areas

    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 157 Overview of I/O Memory Area Section 4-1 1:1 Link Area These bits are used by the 1:1 Link Master and Slave. They are used for data links between CP1L CPU Units and CPM2@ CPU Units. Serial PLC Link Area These words are allocated for use for data links (Serial PLC Links) with other CP1L CPU Units or CP1H CPU Units.
  • Page 158 (i.e., when the set time elapses). 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 159 Section 4-1 Overview of I/O Memory Area Counter PVs The PVs are read and written as words (16 bits). The PVs count up or down as the counter operates. Condition Flags These flags include the Arithmetic Flags, such as the Error Flag and Equals Flag, which indicate the results of instruction execution as well as the Always ON and Always OFF Flags.
  • Page 160: 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 161 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 162: I/O Area And I/O Allocations

    The starting words for inputs and outputs are predetermined for CP1L 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 163 The bits that are allocated are input bits CIO 0.00 to CIO 0.11 (i.e., bits 00 to 11 in CIO 0) and input bits CIO 1.00 to CIO 1.11 (i.e., bits 00 to 11 in CIO 1).
  • Page 164: I/O Bits Allocated To Expansion I/O Units

    Section 4-2 I/O Area and I/O Allocations The upper bits (bits 12 to 15) not used in the input words cannot be used as work bits. Only the bits not used in the output words can be used as work bits.
  • Page 165: I/O Allocation Examples With Expansion I/O Units

    Units with 8 Output Points (CP1W-16ER/CPM1A-16ER) Sixteen output bits in two words are allocated in one word (bits 00 to 07 in CIO n and bits 00 to 07 in CIO n+1). Eight output bits are allocated in one word (bits 00 to 07 in CIO n+1).
  • Page 166 Example 2: Connecting Expansion I/O Units with Only Inputs or Only Outputs If Expansion I/O Units with only inputs or only outputs are connected, the input or output word not used by an Expansion I/O Unit is allocated to the next Unit that requires it. CPU Unit...
  • Page 167: I/O Word Allocations To Expansion Units

    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 168: 1:1 Link Area

    The 1:1 Link Area contains 1,024 bits (64 words) with addresses ranging from CIO 3000.00 to CIO 3063.15 (CIO 3000 to CIO 3063). These bits are used to create 1:1 links (i.e., shared data link areas) by con- necting the RS-232C ports of two PLCs, including the CP1L, CPM1A, CPM2A, CPM2B, CPM2C, SRM1(-V2), CQM1H, and C200HX/HG/HE(-Z).
  • Page 169: Serial Plc Link Area

    CIO 3100.00 to CIO 3189.15 (CIO 3100 to CIO 3189). Words in the Serial PLC Link Area can be used for data links with other PLCs. Serial PLC Links exchange data among CPU Units via the built-in RS-232C ports, with no need for special programming.
  • Page 170: Holding Area (H)

    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 171: 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. Auxiliary Area (A) The Auxiliary Area contains 960 words with addresses ranging from A0 to A959).
  • Page 172: Timers And Counters

    Section 4-9 Timers and Counters 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 0.03 0.02 TR 0 0.03...
  • Page 173: Counter Area (C)

    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 174 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 175: Changing The Bcd Or Binary Mode For Counters And Timers

    Changing the BCD or Binary Mode for Counters and Timers The refresh method for set values and present values for timers and counters can be changed from BCD mode (0000 to 9999) to binary method (0000 to FFFF) using the CX-Programmer This setting is made in common for all tasks for all timers and counters.
  • Page 176: Data Memory Area (D)

    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 177: 4-11 Index Registers

    Index Registers Section 4-11 (2) If two-word data is accessed from the last address in the DM Area (D9999 for the CP1L-L@D@-@ and D32767 for other CPU Units), the Access Er- ror Flag (P_AER) will turn ON and the data at D9999 or D32767 will not be read or written.
  • Page 178 ,– –IR@ Example This example shows how to store the PLC memory address of a word (CIO 2) in an Index Register (IR0), use the Index Register in an instruction, and use the auto-increment variation. MOVR(560) Stores the PLC memory address of CIO 2 in IR0.
  • Page 179 ,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 (0C00D hex) in IR2.
  • Page 180: 4-11-1 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 181 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 182: 4-11-2 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 183 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 184: 4-12 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 185 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 186: 4-13 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 187 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 188: 4-15 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 189 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 190: Pulse And Counter Functions

    5-3-10 Memory Allocations ........
  • Page 191: High-Speed Counters

    High-speed Counters High-speed Counters 5-1-1 Overview • A rotary encoder can be connected to a built-in input to produce a high- speed pulse input. • The PRV(881) instruction can be used to measure the input pulse fre- quency (one input only).
  • Page 192: High-Speed Counter Specifications

    Linear mode: 8000 0000 to 7FFF FFFF hex Ring mode: 0000 0000 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 193 A275.10 A320.10 A321.10 1: Incrementing 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. Phase-A Phase-B Count...
  • Page 194 ↓ No change ↓ No change • The count is incremented when the direction signal is ON and decre- mented when it is OFF. • Only up-differentiated pulses (rising edges) can be counted. Up/Down Mode The up/down mode uses two signals, an increment pulse input and a decre- ment pulse input.
  • Page 195 • If the count is incremented from the max. ring count, the count will be reset to 0 automatically and incrementing will continue. • If the count is decremented from 0, the count will be set to the max. ring count automatically and decrementing will continue.
  • Page 196 High-speed Counters 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 197: Procedure

    • Start comparison with the registered target value comparison Ladder program table or range comparison table. • Read the high-speed counter PVs, read the status of the high- speed counter comparison operation, or read the range- comparison results. • Turn ON the High-speed Counter Gate Bit to stop counting input...
  • Page 198: Plc Setup

    Section 5-1 High-speed Counters 5-1-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 199: High-Speed Counter Terminal Allocation

    Section 5-1 High-speed Counters 5-1-5 High-speed Counter Terminal Allocation The following diagrams show the input terminals that can be used for high- speed counters in each CPU Unit. Differential Phases, Up/ Input Terminal Arrangement for CPU Units with 14 I/O Points...
  • Page 200 Section 5-1 High-speed Counters Input Terminal Arrangement for CPU Units with 40 I/O Points High-speed counter 0 (Phase B, Decrement, or Direction input) High-speed counter 1 High-speed counter 1 (Phase B, Decrement, or (Phase Z or Reset input) Direction input)
  • Page 201 (Increment) Input Function Settings in the PLC Setup The CPU Unit’s built-in inputs can be set for use as high-speed counter inputs in the PLC Setup’s Built-in Input Tab using the CX-Programmer. (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 202 Section 5-1 High-speed Counters CPU Units with 20, 30, 04 40 I/O Points Input terminal Default setting High-speed counter operation setting Origin search block setting Word CPU Units CPU Units CPU Units Single-phase Two-phase with 40 I/O with 30 I/O...
  • Page 203: Pulse Input Connection Examples

    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 204 Range Comparison Table The range comparison table is stored in D10000 to D10039. ■ PLC Setup Select the Use high speed counter 0 Option in the PLC Setup’s Built-in Input Tab. Item Setting High-speed counter 0...
  • Page 205 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 206: Additional Capabilities And Restrictions

    Section 5-1 High-speed Counters Word Setting Function D10014 FFFF Set the fifth word for ranges 3 to 7 (listed at left) to FFFF to dis- D10019 able those ranges. D10024 D10029 D10034 D10035 to All 0000 Range 8 lower and upper limit values...
  • Page 207 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 208 Section 5-1 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 209 PV will be refreshed. Restrictions • The Gate Bit will be disabled if the high-speed counter's reset method is set to Phase-Z signal + Software reset and the Reset Bit is ON (waiting for the phase-Z input to reset the counter PV.)
  • Page 210: Pulse Outputs

    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 211 ■ 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 212 • Origin search: To start the origin search, set the PLC Setup to enable the origin search operation, set the various origin search parameters, and execute the ORIGIN SEARCH instruction (ORG(889)). The Unit will deter- mine the location of the origin based on the Origin Proximity Input Signal and Origin Input Signal.
  • Page 213: Pulse Output Specifications

    Pulse outputs 0, 1: 1 Hz to 100 kHz (1 Hz units) 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).
  • Page 214: Pulse Output Terminal Allocations

    Section 5-2 Pulse Outputs 5-2-3 Pulse Output Terminal Allocations The following diagrams show the terminals that can be used for pulse outputs in each CPU Unit. ■ CPU Unit with 14 I/O Points Lower Terminal Block (Example: Transistor Outputs) Pulse output 1 (CW/pulse)
  • Page 215 Origin search 1 (Error counter reset output) COM COM CIO 101 CIO 100 Pulse output 1 (CCW/direction/PWM output 1) ■ Setting Functions Using Instructions and PLC Setup Input When the When a pulse output instruction When the origin search When the PWM...
  • Page 216 Section 5-2 Pulse Outputs CPU Unit with 20 I/O Points Pulse output 1: Origin input signal Pulse 1: Origin proximity input signal − Upper Terminal Block (Example: DC Power Supply Models) Pulse 0: Origin proximity input signal Pulse output 0: Origin input signal...
  • Page 217 Section 5-2 Pulse Outputs ■ Setting Functions Using Instructions and PLC Setup CPU Units with 14 I/O Points Input terminal Default setting High-speed counter operation setting Origin search block setting Word Single-phase Two-phase (differential (increment pulse input) phases x4, up/down, or...
  • Page 218 Section 5-2 Pulse Outputs CPU Units with 20, 30, or 40 I/O Points Input terminal Default setting High-speed counter operation settings Origin search block setting Word CPU Units CPU Units CPU Units Single-phase Two-phase with 40 I/O with 30 I/O...
  • Page 219 CW Limit Input Signal Flags ON when turned ON from an external A540.08 A541.08 input. This is the CW limit input signal, which is used in the origin search. CCW Limit Input Signal Flags ON when turned ON from an external A540.09 A541.09...
  • Page 220: Pulse Output Patterns

    Section 5-2 Pulse Outputs 5-2-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 Operation Example Frequency changes...
  • Page 221 Section 5-2 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 pulse (Continu- output...
  • Page 222 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 223 • Target fre- eration rates. target posi- quency (The target position is not tion must be • Starting changed. The original tar- specified in frequency get position is specified absolute again.)
  • Page 224 Execution of settings can- PLS2(887) tion rate ACC(888) executed to change the not be • Decelera- target frequency. (The target position is changed tion rate not changed, but the acceleration/ without main- deceleration rates are changed.) • Target fre- taining the...
  • Page 225 Pulse ing position- positioning with rel- • Absolute ACC(888) pulses frequency ative pulse specifi- pulse spec- Change of direction at the (Indepen- cation to change to ification dent) specified deceleration rate Target absolute pulses and • Port ↓...
  • Page 226 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 227 Section 5-2 Pulse Outputs 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 228 8000 0000 to 7FFF FFFF 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 229 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 230 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 231 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 232: Origin Search And Origin Return Functions

    2.998 to 2.999 2.999 5-2-5 Origin Search and Origin Return Functions The CP1L 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 233 The origin location can be determined after using either method. The CP1L 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 234 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 235 Section 5-2 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 236 Section 5-2 Pulse Outputs 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 237 Connect the phase-Z signal from the Servo Driver to the Origin Input Signal. 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.
  • Page 238 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 239 Error Counter Reset Output Positioning Completed Signal Origin Search Operation Select either of the following two reverse modes for the origin search opera- Setting tion pattern. Setting Description 0: Reversal mode 1 When the limit input signal is received in the origin search direction, reverse and continue operation.
  • Page 240 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 241 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- imity Input Sig- Origin Proximity Input Signal nal reversal not required.
  • Page 242 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 243 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 244 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 245: Related Auxiliary Area Flags

    1: Stop error occurred. gin search function. Stop Error Codes A444 A445 When a Pulse Output Stop Error occurs, the error code is stored in that pulse outputs corre- sponding Stop Error Code word. Pulse Output Stop Error Codes Error name Error code...
  • Page 246 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 247 Pulse Outputs Section 5-2 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 248 Word CIO 0 CW limit detection sensor CCW limit detection sensor Pulse Output 0 Origin Input Signal Pulse Output 0 Origin Proximity Input Signal Word Name A540 Pulse Output 0 CW Limit Input Signal Pulse Output 0 CCW Limit Input Signal ■...
  • Page 249: 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 250 (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 251: Pulse Output Procedures

    Section 5-2 Pulse Outputs 5-2-7 Pulse Output Procedures Single-phase Pulse Output without Acceleration/Deceleration The number of output pulses setting cannot be changed during positioning. ■ PULS(886) and SPED(885) • Pulse output method • CW/CCW inputs: Pulse outputs 0 to 1 •...
  • Page 252 PULS(886) and ACC(888) • Pulse output method • CW/CCW inputs • Pulse + direction inputs • Output frequency: 1 Hz to 100 kHz (1 Hz units) Determine the pulse output method, output frequency, and port. Wire the outputs. • Enable/disable the origin search function. Set the...
  • Page 253: 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 254 Pulse Outputs Section 5-2 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 accel- Pulse Pulse output eration/deceleration output output without...
  • Page 255 Pulse Outputs Section 5-2 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 256 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 257 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 258 MODE CONTROL: INI(880) In addition to the various interrupt and high-speed counter functions, INI(880) can be used to change the pulse output PV or stop the pulse output. Note This section explains the functions related to pulse outputs only. For details on the INI(880) instruction’s high-speed counter or interrupt functions, refer to 6-1...
  • Page 259 Section 5-2 Pulse Outputs 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 6-1 Interrupt Functions or 5-1 High-speed Counters. Operand Contents Port specifier 0000 hex: Pulse output 0...
  • Page 260 It is possible to start another operation during acceleration/deceleration and start another positioning instruction during positioning. Instruction being executed Starting instruction (❍: Can be executed., ×: Instruction Error occurs and Error Flag goes ON) INI(880) SPED(885) SPED(885) ACC(888) ACC(888)
  • Page 261 • The output mode and direction cannot be switched. (6) ACC(888) (Independent) to PLS2(887) • The number of pulses can be changed. (The setting can even be changed during acceleration or deceleration.) • The frequency can be changed. (The target frequency can even be changed during acceleration or deceleration.)
  • Page 262: 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 263 Section 5-2 Pulse Outputs Input interrupt task 0 (interrupt task number 140) starts a scheduled interrupt with a scheduled time of 0.5 ms. The scheduled interrupt task executes the pulse output instructions and stops the scheduled interrupt. Pulse output 0 (CIO 100.00)
  • Page 264 Section 5-2 Pulse Outputs Scheduled Interrupt Time Unit Setting PLC Setup setting details Data Set the scheduled interrupt time units to 0.1 ms. 0002 hex...
  • Page 265 (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. Scheduled Interrupt Task 0 (Interrupt Task 2) P_On PULS(886) Always ON Pulse output 0...
  • Page 266 • 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 267 Section 5-2 Pulse Outputs Jog Operation Specifications and • Low-speed jog operation (CW) will be executed from pulse output 1 while Operation input 0.00 is ON. • Low-speed jog operation (CCW) will be executed from pulse output 1 while input 0.01 is ON.
  • Page 268 Section 5-2 Pulse Outputs Setting details Address Data Target frequency (high speed): 100,000 Hz D011 86A0 0001 Deceleration rate: 100 Hz/4 ms (Not used.) 0064 Target frequency (stop): 0 Hz 0000 0000 Ladder Program 0.00 A281.04 SPED(885) Low-speed Pulse Output...
  • Page 269: 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 270 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 0.00). 2. The workpiece is feed the specified distance (relative) using the Position- ing Switch Input (IN 0.01).
  • Page 271 Section 5-2 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 272 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 273 Section 5-2 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 274 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 275 Pulse Outputs Section 5-2 6. When the stocker is full, it is moved (CIO 100.02) and only the conveyor is lowered (absolute positioning) when stoker movement is completed (CIO 0.04). The operation can be canceled and pulse output stopped at any point using the Emergency Switch Input (CIO 0.01).
  • Page 276 Section 5-2 Pulse Outputs Setting details Address Data Number of output pulses: 10,000 × 15 pulses 49F0 0002 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...
  • Page 277 Lift 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 Lower positioning completed...
  • Page 278 Emergency Stop (Pulse Output Stopped) 0.01 @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.05 CW limit input signal Built-in input A540.09 0.07 CCW limit input...
  • Page 279 ■ 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 280 Pulse Outputs Section 5-2 Wiring Example Using SmartStep A-series Servo Driver Origin Search Switch (CIO 0.00) Emergency Stop Switch (CIO 0.01) SMARTSTEP A-series Servo Driver X axis R88A-CPU00@S and resistor Y axis SMARTSTEP A-series Servo Driver R88A-CPU00@S and resistor...
  • Page 281 ZCOM Pulse 0 origin input signal (CIO 0.06) 24VIN 24 VDC Servo Driver RUN input Pulse 0 origin proximity input signal (CIO 0.10) RESET Servo Driver alarm reset input Origin search switch (CIO 0.00) OGND Emergency stop switch (CIO 0.01)
  • Page 282 3. An emergency stop can be performed using the Emergency Stop Input (CIO 0.01) Preparation ■ PLC Setup Setting details Enable origin search function for pulse output 0 and 1. Note The origin search enable setting is read when the power supply is turned ON.
  • Page 283 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 284 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 285 Section 5-2 Pulse Outputs Ladder Program [Program Name: New Program1] 000000 (000000) [Section Name: Section1] Origin Search for X and Y Axis <W000.00> 0.00 a02 a06 Origin W0.00 Search Switch W0.00 W1.14 Origin Search 000001 start (000002) <W001.14> <W000.00> W1.15...
  • Page 286 Positioning to A W0.07 W3.02 000015 start (000044) <W003.02> <W000.07> W2.00 RSET Positioning W0.07 to A completed Origin Search Start and Completion for X and Y Axis 000016 (000048) [OP1] W1.14 @ORG (889) [OP2] Origin Search start [OP1] @ORG (889)
  • Page 287 Section 5-2 Pulse Outputs Origin Search A280.05 A281.05 W1.15 completed No Origin No Origin <W001.15> Flag Flag Positioning to A Start and Completion for X and Y axis 000017 (000054) [OP1] W1.00 @PLS2 (887) [OP2] Positioning [OP3] to A [OP4] start <cD00000>...
  • Page 288 Positioning to C A280.03 A281.03 W2.02 completed Pulse pulse <W002.02> output output completed completed Positioning to D Start and Completion for X and Y axis 000020 (000075) [OP1] W1.03 @PLS2 (887) [OP2] Positioning [OP3] to D [OP4] start <cD00000>...
  • Page 289 Section 5-2 Pulse Outputs <0.08> <0.09> Limit Input Setting 000022 (000084) CW limit input 0.04 A540.08 signal X axis Built-in input CCW limit input 0.05 A540.09 000023 signal X axis (000086) Built-in input CW limit input 0.08 A541.08 000024 signal Y axis...
  • Page 290 (0.04) ■ Operation 1,2,3... 1. Speed control is used to feed wrapping material to the initial position when the Start Switch (CIO 0.00) is activated. 2. When the Marker Sensor Input (0.04) is received, PLS2(887) is executed in interrupt task 140.
  • Page 291 ■ 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 292 (880) [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] P_On PLS2 (887) [OP2] Always ON Flag [OP3] [OP4]...
  • Page 293: Inverter Positioning

    Error Counter positioning with an Inverter using feedback control. The PULSE OUTPUT instruction is used in the ladder program in the CP1L CPU Unit to output inter- nal pulses to a built-in error counter. The error counter calculates the position error from the number of input inter- nal pulses and the number of feedback pulses from the rotary encoder, and sends speed commands to the inverter so that the position error goes to zero.
  • Page 294 The PLC counts the feedback pulses from the encoder using a high-speed counter. When a deceleration point is reached, the speed is changed to con- trol the stop position. If the precision of the stop position must be increased, the stop position must also be detected to control positioning.
  • Page 295 (1) The CP1L’s inverter positioning function is designed to increase position- ing speed and stopping precision by reading position information and us- ing a feedback loop with an error counter to switch speeds. It does not increase the response, stopping precision, or speed change rate of the inverter and motor.
  • Page 296: System Configuration

    Note (1) The inverter positioning function uses either serial communications or an analog output, and is thus possible with a CP1L CPU Unit with either tran- sistor or relay outputs. (2) The inverter positioning function does not use external pulse outputs.
  • Page 297: Functional Overview

    Although normally the pulse output instructions are used to output pulses from CP1L output contacts, when inverter position- ing 0 or inverter positioning 1 is enabled in the PLC Setup, the internal po- sition error counter (called simply the “error counter”) is enabled and the pulse output instruction will output internal pulses to the error counter.
  • Page 298 Section 5-3 Inverter Positioning 7. When a speed command is sent to the inverter, the motor will turn at the command speed and feedback pulses (i.e., the amount of movement) from the encoder will be returned to a high-speed counter of the CP1L. The CP1L will continue to send a speed command to the inverter until the error counter (i.e., the position error) goes to zero, i.e., until positioning has been...
  • Page 299: Specifications

    An inductive motor driven with an inverter is different from a servomotor in that Using Minimum Output the torque at low speeds is so low that it may not be possible to turn the motor Setting shaft at the minimum frequency. The CP1L provide a minimum output setting the ensure a minimum output to enable positioning at low speeds even when there are extremely few pulses in the error counter.
  • Page 300 If inverter positioning 1 is used, pulse output 1 and PWM1 cannot be used. (2) If inverter positioning 1 is used with a CPU Unit with 14 I/O Points, origin searches cannot be used. (3) If the continuous output mode is specified (i.e., if the number of pulses is not specified), be sure to use the high-speed counter (linear mode) so that it does not overflow.
  • Page 301: Application Procedure For Inverter Positioning

    · PLS2 patterns. · PULS + SPED · PULS + ACC · Etc. Decided to use error counter 0 or 1. For example, the control method (V/f control Determine inverter specifications or vector control) Determine inverter command · RS-485 communications (Modbus-RTU) method.
  • Page 302: Instruction Specifications

    The normal pulse output instructions are used (PLS2, PULS + SPED, or PULS + ACC). One of the inverter positioning ports is specified as the port for the instruction. Just like pulses are output externally for the normal pulse out- put instructions, error counter pulses are accumulated in the internal error counter when executing inverter positioning.
  • Page 303 PWM output 0 1001 PWM output 1 Applicable The following seven instructions can be used to execute inverter positioning. Instructions The relationship between the instructions and internal pulse outputs is as fol- lows: Instruction Overview Positioning (Independent Mode) Origin searches...
  • Page 304 Inverter Positioning Section 5-3 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 305 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.
  • Page 306 • Origin Return: The positioning system is returned to the origin. The parameters for pulse output 0 or pulse output 1 must be set in advance in the PLC Setup to perform either an origin search or origin return operation.
  • Page 307 Inverter Positioning Section 5-3 HIGH-SPEED COUNTER PRV(881) is used to read the present value and status of inverter positioning. PV READ: PRV(881) The following status can be read. • Operation Command Flag • Internal Pulse Acceleration/ Deceleration Flag • Forward Command Flag •...
  • Page 308: Determining The Internal Pulse Output Frequency

    5-3-7 Determining the Internal Pulse Output Frequency Use the following formula to calculate the internal pulse frequency (Hz) to out- put from the pulse output instruction (e.g., PLS2) based on the power supply frequency (Hz) to be output from the inverter to the motor.
  • Page 309 For example, to output a power supply frequency of 10 Hz to the motor: Frequency of internal pulse output = 500 × 10 Hz = 5,000 Hz = 5 kHz Therefore, set a pulse output frequency of 5 kHz in the pulse output instruc-...
  • Page 310: Plc Setup

    Inverter Positioning Section 5-3 5-3-8 PLC Setup The following settings must be made in advance when using inverter position- ing 0 or 1. Basic Settings The following settings are required to use inverter positioning. Inverter Positioning Function Setting Description Set value...
  • Page 311 Set the minimum output value so that it is equal as setting when the error to or smaller than the maximum output value.
  • Page 312 1 to 255 (in 4- 0: 3 (4-ms Set when using When CPU Unit cycle counter can be set. If the cycle is ms increments) incre- a motor with a power is turned too short when using a motor with a ments) slow response.
  • Page 313 1/4, the number of encoder pulses for one motor revolution is 1,000 × 4 × (1/4) = 1,000. Operation Adjustment Use the following settings if the gain adjustment in the basic settings does not Settings produce stable operation. Limit Output during...
  • Page 314 Setting Description Set value Default Application Refresh timing Output coeffi- Upper and lower limits are placed on 1 to 255 0: 6 (0.01 This coefficient can When CPU Unit cient during the output value by multiplying the pulse (0.01 incre-...
  • Page 315: Automatic Calculation Of Inverter Frequency Command Value

    Encoder Pulses for One Motor Revolution, and Error Counter Cycle in the PLC Setup to automatically calculate the inverter frequency command value and store it in A23 for inverter positioning 0 and A33 for inverter posi- tioning 1.
  • Page 316 Refer to 6-3-3 Modbus-RTU Easy Master Function and to the inverter manual for details on Modbus-RTU communications. Note If the frequency command unit set in the inverter is 0.1 Hz, divide the com- mand frequency in A23 or A33 by 10. Analog Output The following example is for the CP1W-DA041.
  • Page 317 Inverter maximum command value output frequency (Hz) Unit: 0.01 Hz Converted in ladder program Refer to 7-3 Analog Output Units for operating procedures for the Analog Out- put Unit. ■ Calculation Example Conditions Inverter’s maximum output frequency: 60 Hz...
  • Page 318: 5-3-10 Memory Allocations

    (2) Bits 08 to 11 are not supported by CPU Units with 14 I/O Points. (3) If inverter positioning 1 is used with a CPU Unit with 14 I/O Points, origin searches (i.e., the origin proximity input signal) cannot be used.
  • Page 319: Auxiliary Area

    Section 5-3 Inverter Positioning Auxiliary Area Read Area ■ Inverter Positioning 0 Use one of the following for the inverter frequency command. Word Bits Function Data range Refresh timing Application examples 00 to 15 Lower 4 digits of 0000 0000 to 8000...
  • Page 320 0000 to FFFF hex Cleared to zero at following times: These words con- command value (0.00 to tain the automati- • When power to CPU Unit is turned ON (0.01-Hz increments, 655.35 Hz) cally calculated • At start of operation unsigned) frequency com- •...
  • Page 321 Section 5-3 Inverter Positioning Use the following for inverter positioning status and the workpiece position. Word Bits Function Data range Refresh timing Application examples Operation Command ON: Operation Turned ON at following times: This flag is used as Flag command exe- a NO input condi- •...
  • Page 322 • When absolute value of error counter present value is greater than in-posi- tion range. • When power to CPU Unit is turned ON • When CPU Unit operation starts • When CPU Unit operation stops Error Counter Error...
  • Page 323 A271 00 to 15 Upper 4 digits of positioning. high-speed counter present value Use the following for the present values of the internal pulse and error counter of inverter positioning. Word Bits Function Data range...
  • Page 324 • Cyclically on error counter cycle (absolute value for absolute coordi- nates) ■ Inverter Positioning 1 Use one of the following for the inverter frequency command. Word Bits Function Data range Refresh timing Application examples...
  • Page 325 0000 to FFFF hex Cleared to zero at following times: These words con- command value (0.00 to tain the automati- • When power to CPU Unit is turned ON (0.01-Hz increments, 655.35 Hz) cally calculated • At start of operation unsigned) frequency com- •...
  • Page 326 Section 5-3 Inverter Positioning Use the following for inverter positioning status and the workpiece position. Word Bits Function Data range Refresh timing Application examples Operation Command ON: Operation Turned ON at following times: This flag is used as Flag command exe- a NO input condi- •...
  • Page 327 • When absolute value of error counter present value is greater than in-posi- tion range. • When power to CPU Unit is turned ON • When CPU Unit operation starts • When CPU Unit operation stops Error Counter Error...
  • Page 328 • Cyclically on error counter cycle (absolute value for absolute coordi- nates) Use the following for the present values of the internal pulse and error counter of inverter positioning. Word Bits Function Data range...
  • Page 329 The present value of the high-speed counter when inverter positioning is used is stored in the same memory location as for normal high-speed counter appli- cation. This value can be used as the present value of feedback pulses from the encoder, i.e., as the absolute position of inverter positioning. Target value and range comparisons for high-speed counters are also valid.
  • Page 330: 5-3-11 Application Example With Serial Communications

    5-3-11 Application Example with Serial Communications Positioning with Trapezoidal Control Specifications and When start input CIO 1.04 turns ON, 600,000 pulses are output internally for Operation inverter positioning 0 to turn the motor shaft. Note Refer to 5-3-7 Determining the Internal Pulse Output Frequency for the for- mula to convert the frequency and use the converted internal pulse frequency.
  • Page 331 Section 5-3 Inverter Positioning System Configuration Inverter Speed Command via Serial Communications RS-485 communications SYSMAC CP1L (Modbus-RTU) L2/N COMM CP1W-CIF11 CP1L 3G3MV 3G3RV Standard motor Feedback pulses Encoder Instructions Used PLS2(887) Terminal Allocations ■ Error Counter Error counter 1 Error counter 0...
  • Page 332: Connection Example

    White Orange Phase Z +Vcc Brown Blue 24-VDC power supply +24 V Connection Example ■ Encoder (24 VDC) Connections to High-speed Counter 0 CP1L-@@DT-D Differential-phase Input Phase A Black Encoder Error counter 0: Phase A, 0 V 0.00 (Power supply: 24 VDC)
  • Page 333 When connecting the Inverter to the PLC, communications parameters must for 3G3MV Inverter be set in the Inverter. The settings of parameters n152 to n157 cannot be changed while communications are in progress. Always set them before start- ing communications.
  • Page 334 Section 5-3 Inverter Positioning Example settings of 3G3MV parameters are listed below. Refer to the User’s Manual of the Inverter for details on the parameters. Parameter Name Description Default Setting n003 RUN command selection 0: The RUN Key and STOP/RESET Key on the Digital Operator are enabled.
  • Page 335 1: RTS control disabled PLC Setup ■ Serial Port Communications Settings Note (1) Set the baud rate and parity check settings to the same value as for the Inverter communications parameters. (2) Set the serial port to the serial gateway communications mode.
  • Page 336 Inverter Positioning ■ High-speed Counter Settings (on Built-in Input Tab Page) Note (1) Set high-speed counter 0 when using inverter positioning 0. Set high- speed counter 1 when using inverter positioning 1. (2) Use linear mode for inverter positioning. ■...
  • Page 337 27C0 D205 0009 Starting frequency: 100 Hz D300 0064 D301 0000 • High-speed counter 0 (i.e., error counter 0) is used for the feedback pulse input port. Stopping Internal Pulse Output to the Error 0.06 Counter @INI Port specifier #0020...
  • Page 338 Section 5-3 Inverter Positioning • Pulse outputs will not be accepted until the error counter is reset. (Execut- ing a pulse output instruction will cause an error.) Operation Outputs not accepted Error counter Inverter Inductive motor Encoder Referencing the If the following settings are made in the PLC Setup, the inverter frequency...
  • Page 339 (register 0001) and stores the result in D32206. (Reflect bit 09 D32206 of D15 in D32206 D32206 (register 0001). Move bits 08 to 15 of D2 XFRB (frequency command #0808 value) to bits 00 to 07 of D32206 (register 0001). D32206...
  • Page 340: 5-3-12 Application Example With An Analog Output

    Operation Command Flag Add the above instructions to the end of the program as a starting condition for the ladder programming example. For error processing, refer to the ladder program in 6-3-3 Modbus-RTU Easy Master Function and to the inverter’s manual.
  • Page 341 Deceleration: 100 Hz/4 ms 80 Hz/4 ms No. of output pulses: 600,000 Starting 100 Hz frequency Start input CIO 0.05 System Configuration Speed Command via Analog Output Inverter Current/Voltage Output · Frequency SYSMAC CP1L L2/N command I OUT1 VOUT2 COM2...
  • Page 342 Section 5-3 Inverter Positioning ■ Built-in Outputs − COM COM COM COM Output word CIO 100 Output word CIO 101 ■ CP1W/CPM1A-DA041 I OUT1 VOUT2 COM2 I OUT3 VOUT4 COM4 VOUT1 COM1 I OUT2 VOUT3 COM3 I OUT4 I OUT1...
  • Page 343 Section 5-3 Inverter Positioning Connection Example ■ Encoder (24 VDC) Connections to High-speed Counter 0 CP1L-@@DT-D Differential-phase Input Phase A Black Encoder Error counter 0: Phase A, 0 V 0.00 (Power supply: 24 VDC) Phase B White Error counter 0: Phase B, 0 V 0.01...
  • Page 344 When connecting the Inverter to the PLC, communications parameters must for 3G3MV Inverter be set in the Inverter. Example settings of 3G3MV parameters are listed below. Refer to the User’s Manual of the Inverter for details on the parameters. Parameter...
  • Page 345 PLC Setup ■ High-speed Counter Settings (on Built-in Input Tab Page) Note (1) Set high-speed counter 0 when using inverter positioning 0. Set high- speed counter 1 when using inverter positioning 1. (2) Use linear mode for inverter positioning. ■...
  • Page 346 D205 0009 Starting frequency: 100 Hz D300 0064 D301 0000 • High-speed counter 0 (i.e., error counter 0) is used for the feedback pulse input port. Stopping Internal Pulse Output to the Error 0.06 Counter @INI Port specifier (Error counter 0: 0020 hex)
  • Page 347 Forward/Reverse Command Analog Bit turned ON. A26.01 A26.02 conversion trigger 100.03 Forward Reverse Command Bit Command Bit In this example, the results of *U and /UL are 1, so the value in A23 is moved directly to D102 with MOV.
  • Page 348 Reverse (external output) CP1W/CPM1A-DA041 Analog output 1 is used in this example. It is set to a range of 4 to 20 mA. The Analog Output Settings scaled value is set in the analog conversion area of the Analog Output Unit.
  • Page 349: 5-3-13 Supplemental Information

    Restrictions • Inverter positioning 0 and inverter positioning 1 each use one high-speed counter and one serial port (except that a serial port is not used when an Analog Output Unit is used). (High-speed counter 0 is allocated to inverter positioning 0 and high-speed counter 1 is allocated to inverter positioning •...
  • Page 350: Advanced Functions

    6-1-4 Scheduled Interrupts ........
  • Page 351: 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 352 3. Set the Task type in the Program Properties Window. In this example, interrupt task 140 was allocated to NewProgram2. 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.
  • Page 353 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...
  • Page 354 1234* Since the interrupt occurs during BSET(071) processing and before #1234 is set in D10, the content of D0 and D10 do not match when the comparison is made in the interrupt task (*1) and output A remains OFF. In the end (*2), the D0 and D10 both contain #1234 and match, but the correct...
  • Page 355: 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. Input Terminal Block of The 4 input bits CIO 0.04 to CIO 0.07 can be used for input interrupts. CPU Units with 14 I/O Points Input interrupt 1...
  • Page 356 Section 6-1 Interrupt Functions Input Terminal Block of The 6 input bits CIO 0.04 to CIO 0.09 can be used for input interrupts. CPU Units with 30 I/O Points Input interrupt 3 Upper Terminal Block Input interrupt 5 (Example: CPU Unit...
  • Page 357 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 358 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 359: Input Interrupts (Counter Mode)

    Refer to 6-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 145) as the direct-mode input interrupts.
  • Page 360 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 361 (incrementing) and enable interrupts Note *Input interrupts 4 and 5 are not supported by CPU Units with 14 I/O Points. Writing the Interrupt Create programs for interrupt tasks 140 to 145, which are executed by the cor- Task’s Program responding input interrupt. Always put an END(001) instruction at the last address of the program.
  • Page 362: Scheduled Interrupts

    Section 6-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 363 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 364 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 365: High-Speed Counter Interrupts

    2 6-1-5 High-speed Counter Interrupts This function executes the specified interrupt task (0 to 255) when the CP1L 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 366 If a high- Setting speed counter is set to be used, the bits in CIO 0 and CIO 1 can no longer be used for normal inputs, input interrupts, or quick-response inputs.
  • Page 367 Section 6-1 Interrupt Functions ■ CPU Units with 20, 30, or 40 I/O Points Input terminal Default settings High-speed counter settings block Word CPU Units with CPU Units with CPU Units with Single-phase Two-phase Origin searches 40 I/O Points 30 I/O Points...
  • Page 368 Count Direction Flags 0: Decrementing A274.10 A275.10 1: Incrementing Note The comparison table and comparison conditions 1 to 8 are different for tar- get-value comparison and range comparison operations. For details, refer to next page.
  • Page 369 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 370 AAAA hex: Do not start interrupt task FFFF hex: Disables that range’s settings. Note Always set the upper limit greater than or equal to the lower limit in each range. MODE CONTROL INI(880) can be used to start/stop comparison with the high-speed counter’s Instruction: INI(880) comparison table, change the high-speed counter’s PV, change the PV of...
  • Page 371 Bit 15: 0 (incrementing) Bits 0 to 7: A hex (interrupt task number 10) 3. Create the program for interrupt task 10. Always put an END(001) instruc- tion at the program’s last address. 4. Use CTBL(882) to start the comparison operation with high-speed counter 0 and interrupt task 10.
  • Page 372 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 373: Quick-Response Inputs

    Use the CX-Programmer to set a built-in input as a quick-response input in the PLC Setup. Click the Built-in Input Tab to display the Interrupt Input settings (at the bottom of the tab). Set the input function from Normal to Quick for each input that will be used as a quick-response input.
  • Page 374 The following diagrams show the input bits and terminals that can be used for Quick-Response quick-response inputs in each CPU Unit. Inputs CPU Units with 14 I/O The 4 input bits CIO 0.04 to CIO 0.07 can be used as quick-response inputs. Points Quick-response input 1 Upper Terminal Block ((CPU Unit with...
  • Page 375 Section 6-2 Quick-response Inputs CPU Units with 30 I/O The 6 input bits CIO 0.04 to CIO 0.09 can be used as quick-response inputs. Points Quick-response input 3 Quick-response input 5 Upper Terminal Block Quick-response input 1 (CPU Unit with...
  • Page 376 Quick in the PLC Setup's Built-in Input Tab. • Use the quick-response inputs in Ladder program instructions such as LD. Restrictions Inputs cannot be used as quick-response inputs when they are being used as general-purpose (normal) inputs, input interrupts, or high-speed counter inputs.
  • Page 377: Serial Communications

    Section 6-3 Serial Communications Serial Communications 6-3-1 Overview The CP1L 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 378 1:1 connec- tions.) RS-232C NT Link CP1L 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 379: 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 380 Standard device with serial communications (e.g., barcode reader) For example, simple (non-protocol) communications can be used to input data from a barcode reader or output data to a printer. The following table lists the no-protocol communication functions supported by CP1L PLCs.
  • Page 381 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 382: Modbus-Rtu Easy Master Function

    Section 6-3 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 CP1L CPU Unit Programming Manual (W451) for more details on TXD(236) and RXD(235).
  • Page 383 Serial Communications Modbus-RTU commands can be set simply by turning ON a software switch after setting the Modbus slave address, function, and data in the DM fixed allocation words for the Modbus-RTU Easy Master. The response when received is also store in the DM fixed allocation words for the Modbus-RTU Easy Master.
  • Page 384 00 to 15 Response data D32299 D32399 (92 bytes maximum) Error Codes The following error codes are stored in an allocated DM Area word when an error occurs in Modbus-RTU Easy Master function execution. Code Name Description 0x00 Normal end Not an error.
  • Page 385: Communications: Smart Active Parts And Function Blocks

    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 386 Responses are also converted in the same way. Note Serial ports 1 and 2 on the CP1L CPU Unit can be used to convert to the fol- lowing protocols. • CompoWay/F •...
  • Page 387: 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 388 • 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 389 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 390 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 391 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 392 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 (A402.10) will turn ON.
  • Page 393 • Turns OFF when the changes to settings are completed. Note In the same way as for the existing 1:N NT Link, the status (communicat- ing/not communicating) of PTs in Serial PLC Links can be checked from the Polling Unit (CPU Unit) by reading the Serial Port 1 Communicating with PT...
  • Page 394 • Turns OFF when the changes to settings are completed. Note In the same way as for the existing 1:N NT Link, the status (communicat- ing/not communicating) of PTs in Serial PLC Links can be checked from the Polling Unit (CPU Unit) by reading the Serial Port 2 Communicating with PT...
  • Page 395 • Turns OFF when the changes to settings are completed. In the same way as for the existing 1:N NT Link, the status (communicat- ing/not communicating) of PTs in Serial PLC Links can be checked from the Polling Unit (CPU Unit) by reading the Serial Port 1 Communicating with PT...
  • Page 396 RS-232C 1:1 Link PLC Setup Set the PLC to a 1:1 Link Master or a 1:1 Link Slave in the PLC Setup. Set the other PLC to the opposite setting. Link Area Size The 1:1 Link Area in the CP1L is from CIO 3000 to CIO 3015 (16 words).
  • Page 397: N Nt Links

    Not used. CIO 3063 CP1L is set as the link master, so CIO 3000 to CIO 3007 are its write area. Any data written to these words with the OUT or MOV instructions will be automatically transferred to LR 00 to LR 07 in the CPM2A. The CPM2A will use these words as its read area.
  • Page 398 PLC and Programmable Terminals (PTs). There are two communications modes supported by the NT Link protocol: 1:1 NT Links, in which one PLC is connected to one PT, and 1:N NT Links, in which one PLC is connected to more than one PT.
  • Page 399: Host Link Communications

    PLC Setup Select “NT Link (1:1) as the serial communications mode. 6-3-9 Host Link Communications The following table shows the host link communication functions available in CP1L PLCs. Select the method that best suits your application. Command Command type Communications method...
  • Page 400 Command type Communications method Configuration flow Create frame in the host com- Directly connect the host computer in a 1:1 FINS command (with puter and send the command to Host Link header and or 1:N system. the PLC. Receive the response terminator) sent.
  • Page 401 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 tim- ers/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 402 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 403 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 404: 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 405: Battery-Free Operation

    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 406: Using Battery-Free Operation

    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 407: Memory Cassette Functions

    Select the Data Memory Option in the Backup to Flash Memory Area and click the Backup Button. The DM data will be written to the built-in flash memory. Note The DM data that is saved and written at startup is the entire DM Area (D0 to D32767). PLC Setup 1,2,3...
  • Page 408: 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 409 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 410: Operation Using The Cx-Programmer

    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. Click the Valid Area Check Button to check the valid areas in the Memory Cassette mounted in the CPU Unit and the operating mode after automatic transfer at startup.
  • Page 411: Memory Cassette Data Transfer Function

    Cassette can be automatically read when the power is turned ON, and written to the corresponding areas in the 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.
  • Page 412 User programs can be overwritten to upgrade equipment versions without using the CX-Programmer. If writing data from the CPU Unit to the Memory Cassette and the CPU Unit is set to use the operating mode specified in the PLC Setup as the operating mode after automatic transfer at startup, operation can be started without cycling the power, enabling operation from the Memory Cassette.
  • Page 413 CPU Unit. Cassette Data • The BKUP indicator will light while data is being transferred to or verified Transfer Function in a Memory Cassette. Never turn OFF the power to the PLC or remove the Memory Cassette while the BKUP indicator is lit.
  • Page 414 • CP1L CPU Units with 14 or 20 I/O points. do not have D10000 to D31999. These words will be treated as follows when data from a CPU Unit with 14 or 20 I/O points is transferred to a CPU Unit with 30 or 40 I/O points or visa versa.
  • Page 415: Program Protection

    OFF, return the set- ting of DIP switch SW2 to OFF, and then turn the power supply back ON. If the the operating mode specified in the PLC Setup is set as the operating mode after automatic transfer at startup, operation will start without changing the DIP switch SW2 or Memory Cassette.
  • Page 416 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 417 2. Display the Protection Tab of the PLC Properties Dialog Box and register a password in the Task read protection Box. 3. Connect online and select PLC - Transfer - To PLC to transfer the pro- gram. The tasks registered in step 2 will be password-protected.
  • Page 418 Prohibiting Backing Up Overview the Programs to a Memory When a password is set for the entire user program or for a task from the CX- Cassette Programmer, prohibiting backing up the user program can be set as an option.
  • Page 419 PLC. Always transfer the program after changing the setting. Prohibiting Creating When a password is set for the entire user program or for a task from the CX- Program Files in File Programmer, prohibiting creating a program file (.OBJ) as a backup can be Memory set as an option.
  • Page 420 Section 6-7 Program Protection Properties 2. Go online and then either select PLC - Transfer - To PLC to transfer the program or select PLC - Protection - Set Password and click the OK but- ton. Application The above procedure enables using a password to protect against disclosure of the program to unauthorized persons.
  • Page 421: 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 422 Task read protection Box, select the Prohibit from overwriting to a protected program Option. 3. Either select PLC - Transfer - To PLC to transfer the program or select PLC - Protection - Set Password and click the OK button.
  • Page 423: Protecting Program Execution Using The Lot Number

    A310, as shown below. Manufacturing lot number (5 digits) A311 A310 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...
  • Page 424: 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 425 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 426: 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...
  • Page 427: Output Off Bit

    Section 6-8 Failure Diagnosis Functions 3. Set the error code and error to be simulated as the second operand (two words) of FAL(006) or FALS(007). Indicate a nonfatal error for FAL(006) and a fatal error for FALS(007). To simulate more than one system error, use more than one FAL(006) or FALS(007) instruction with the same value in A529 and different values for the second operand.
  • Page 428: Clock

    Section 6-9 Clock Clock A clock is built into the CP1L CPU Unit and is backed up by a battery. The cur- rent data is stored in the following words and refreshed each cycle. Name Addresses Function Clock data: A351.00 to A351.07...
  • Page 429 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 430: Using Expansion Units And Expansion I/O Units

    CompoBus/S I/O Link Units........
  • Page 431: Connecting Expansion Units And Expansion I/O Units

    CP1L. Up to three Expansion Units or Expansion I/O Units can be connected to a CPU Unit with 30 or 40 I/O points and one Expansion Unit or Expansion I/O Unit can be connected to a CPU Unit with 20 or 14 I/O points.
  • Page 432: 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 433 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 CP1L CPU Unit. A maximum of seven Unit Specifications Units can be connected, including other Expansion Units and Expansion I/O Units.
  • Page 434: 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 435 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 436 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 437 • 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 438 (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 439 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 440 • 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 441: 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 442 Connected to the next Expansion Unit or Expansion I/O Unit. Main Analog Output Analog Output Units are connected to a CP1L CPU Unit. A maximum of seven Unit Specifications Units can be connected, including other Expansion Units and Expansion I/O...
  • Page 443: 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 444 ■ − 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 445 Section 7-3 ■ 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 446 (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 447 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 448 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 449: 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 450 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 451 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 452 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 453 • 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 454 (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 455 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 456 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 457 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 458 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. • Expansion Unit/Expansion I/O Unit errors are output to bits 0 to 6 of word A436.
  • Page 459: Part Names

    • 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 460 (OFF: Average processing not performed; ON: Average processing performed) Main Analog I/O Unit Analog I/O Units are connected to the CP1L 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 461 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 462 The − 10- to 10-V range corresponds to the hexadecimal values F448 to 0BB8 ( − 3000 to 3000). The entire data range is F31C to 0CE4 ( − 3300 to 3300). A negative voltage is expressed as a two’s complement.
  • Page 463 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 464 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 465 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 466 • 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 467 Section 7-4 Analog I/O Units 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 468 (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 469 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 470 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 471 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 472: Temperature Sensor Units

    Temperature Sensor Units CP1W-TS002/TS102 and CPM1A-TS002/TS102 Temperature Sensor Units each provide up to four input points, and CP1W-TS001/TS001 and CPM1A- TS001/TS101 Temperature Sensor Units each provide up to two input points. The inputs can be from thermocouples or platinum resistance thermometers.
  • Page 473: 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 474 5 VDC: 40 mA max., 24 VDC: 59 mA max. 5 VDC: 54 mA max., 24 VDC: 73 mA max. Accuracy for a K-type sensor at − 100 ° C or less is ± 4 ° C ± 1 digit max. Note Using Temperature Sensor Units •...
  • Page 475 Temperature input terminals 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...
  • Page 476 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 477 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 478 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 479 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 480 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 481 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 482 6-digit binary data, but the actual resolution is not 0.01 ° C ( ° F). For this reason, there may be skipping and inaccuracies in the first digit after the decimal point (0.1). Treat any reso-...
  • Page 483 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 484 Section 7-5 Temperature Sensor Units 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...
  • Page 485 (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 486 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 487: Compobus/S I/O Link Units

    BD L N C ( BS-) N C Special flat cable or VCTF cable From the standpoint of the CP1L 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 488 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 489 (4) Expansion I/O Connecting Cable Connected to the expansion connector of a CP1L CPU Unit or a Expan- sion Unit or Expansion I/O Unit. The cable is provided with the Compo- Bus/S I/O Link Unit and cannot be removed.
  • Page 490: 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 491 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 492 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 493: 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 CP1L to be used as a DeviceNet slave. A maximum of three DeviceNet I/O Link Units can be con- nected to the CP1L to create I/O Links for up to 192 points (96 inputs and 96 outputs) between the CP1L and the DeviceNet master.
  • Page 494 Used to set DeviceNet node numbers. Setting range: 0 to 63 (Do not set 64 to 99.) (3) DIP Switch (SW1) Used to set the DeviceNet baud rate and the output hold function. Baud rate setting (See note.) Pin 1...
  • Page 495 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 496 L2/N 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 497 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 498 When using Expansion Unit/Expansion I/O Unit Error Flags (A436) in the pro- gram, turn ON pin 4 on the DIP switch. If communications are set to be cleared, the timing for clearing outputs and setting the Error Flags may not agree.
  • Page 499 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 500: Program Transfer, Trial Operation, And Debugging

    Program Transfer..........Trial Operation and Debugging........
  • Page 501: 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 502: Differential Monitoring

    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 503 8-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 504 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 505: 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 506 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 507 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 508: Troubleshooting

    Troubleshooting Unit Errors ........
  • Page 509: Error Classification And Confirmation

    • The BKUP indicator also lights while the user program is being restored when the power supply is turned ON. Not lit Other than the above. Note Do not turn OFF the CPU Unit power supply when this indicator is lit.
  • Page 510 BKUP 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 511: Troubleshooting

    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 512: Fatal Errors

    PRPHL BKUP 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. Data on fatal errors is displayed on the Error Tab Page of the CX-Program- mer’s PLC Error Window.
  • Page 513 Memory Cassette. An error has occurred in memory. One or See below. more bits in A403 will turn ON to indicate where the error has occurred. See below for details. • Memory Error Location A403.00 is ON A checksum error Transfer the user program again.
  • Page 514 Troubleshooting I/O Bus Errors An I/O bus error occurs in data transfer between the CPU Units and Units connected to the I/O bus. Cycle the power supply. If operation is not restored when the power supply has been cycled, turn OFF the power supply and check that connections are proper and that there is no damage.
  • Page 515: Reference Information

    Refer to A298 and A299 (instruction program address when the program fails) and take corrective actions so that illegal If the PLC Setup has been set to stop operation for an ille- area access errors will not occur. Alternatively, set the PLC...
  • Page 516: 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 517: Non-Fatal Errors

    • Errors are listed in the following table in order, with the most serious ones first. • If two or more errors occur at the same time, the most serious error code will be stored in A400. Errors Created with for FAL Instructions A FAL instruction was executed in the program to create a non-fatal error.
  • Page 518 When using battery-free operation, dis- an error in the battery in the CPU Unit able connecting battery errors in the PLC (i.e., the voltage is low or a battery is not Setup. mounted). ■ Reference Information Error flag Battery Error Flag, A402.04...
  • Page 519: Other Errors

    Confirm that the peripheral port settings in tions between the peripheral port and con- the PLC Setup are correct. nected device. Check the USB cable and replace it if neces- sary. An error has occurred in the communica- Confirm that the serial port 1/2 settings in tions between the serial port and connected the PLC Setup are correct.
  • Page 520: 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 521: Troubleshooting Unit Errors

    (2) Input bit number is used for output Correct program. instruction. 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 522 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 523 Section 9-4 Troubleshooting Unit Errors...
  • Page 524: Inspection And Maintenance

    10-1-1 Inspection Points........
  • Page 525: 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 526: Unit Replacement Precautions

    Be sure to remove any lint prior to remounting the Unit. Note When replacing a CPU Unit, be sure that not only the user program but also all other data required for operation is transferred to or set in the new CPU...
  • Page 527: Replacing User-Serviceable Parts

    • Retained regions of I/O memory (such as the Holding Area and DM Area) 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 528 Section 10-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 529 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 530 Section 10-2 Replacing User-serviceable Parts !Caution Turn ON the power after replacing the battery for a CPU Unit that has been unused for a long time. Leaving the CPU Unit unused again without turning ON the power even once after the battery is replaced may result in a shorter battery life.
  • Page 531 Section 10-2 Replacing User-serviceable Parts...
  • Page 532: A Standard Models

    • The CP1L is supported by CX-Program- Ver. 7.1 from a Windows environment mer version 7.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 CP1L CPU Unit.
  • Page 533 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 Board Unit to function as an RS-422A/485 port.
  • Page 534: Expansion Units

    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 535 Model Specifications Remarks DIN Track PFP-50N PFP-100N PFP-100N2 End Plate PFP-M I/O Connecting Cable CP1W-CN811 Used to install CP-series/CPM1A-series Expansion Units and Expansion I/O Units in a second row. Only one I/O Connecting Cable can be used in each PLC.
  • Page 536: B Dimensions Diagrams

    Appendix B Dimensions Diagrams CP1L CPU Units CPU Units with 14 or 20 I/O Points Four, 4.5 dia. CPU Units with 30 I/O Points Four, 4.5 dia. CPU Units with 40 I/O Points Four, 4.5 dia.
  • Page 537 Appendix B Dimensions Diagrams Optional Products CP1W-CIF01/CIF11 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 CP1W-ME05M Memory Cassette 18.6 14.7...
  • Page 538 40-point I/O Units (CP1W/CPM1A-40EDR/40EDT/40EDT1) 110 100 90 40EDR Four, 4.5 dia. holes 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.
  • Page 539 Appendix B Dimensions Diagrams 16-point Output Unit (CP1W/CPM1A-16ER) 90 100±0.2 76±0.2 Two, 4.5 dia. 8-point I/O Units (CP1W/CPM1A-8ER/8ET/8ET1) CH 00 01 02 03 08 09 10 11 100±0.2 56±0.2 Two, 4.5 dia. holes...
  • Page 540 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 541 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 542: Initial Settings

    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 543 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 544 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 545 Contain the number of pulses output from the correspond- Read-only • Cleared when power is turned ing pulse output port. PV range: 8000 0000 to 7FFF FFFF 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 •...
  • Page 546 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 547 Com- quency command value for the inverter. • Cleared when operation starts. mand Value Data range: 0000 to FFFF hex (0.00 to 655.35 Hz) (0.01- • Cleared when an error occurs in Hz increments, unsigned) the error counter. • Updated each error counter cycle.
  • Page 548 Error Counter This flag is ON while pulses are being output to the out- Read • Turned OFF when power is turned Pulse Output Flag put counter for inverter positioning.
  • Page 549 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 550: 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, CPM1A Units, and Special I/O Units. Differentiate Monitor Name Address Description Access Updated Differentiate Monitor Com- A508.09...
  • Page 551: 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 552 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 553 ON when there is a setting error in the PLC Setup. Read-only (non-fatal error) PLC Setup Error Location A406 When there is a setting error in the PLC Setup, the loca- Read-only tion of that error is written to A406 in 4-digit hexadecimal. I/O Information Name...
  • Page 554 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 555 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 556 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 557 Name Address Description Access Updated UM Read Protection Flag A99.00 Indicates whether the entire user program in the PLC is Read-only read-protected. OFF: UM not read-protected. ON: UM read-protected. Task Read Protection Flag A99.01 Indicates whether read protection is set for individual Read-only tasks.
  • Page 558 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)
  • Page 559 These flags indicate what kind of error has occurred at Read/write A528.07 the serial port 1. Serial Port 1 Send Ready A392.05 ON when the serial port 1 is able to send data in no-pro- Read-only Flag (No-protocol mode) tocol mode. Serial Port 1 Reception A392.06...
  • Page 560 ON: Execution error. 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...
  • Page 561 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...
  • Page 562: C Auxiliary Area Allocations By Function

    Appendix C Auxiliary Area Allocations by Function OMRON FB Library in the PLC Setup will be automatically stored in the related Auxiliary Area words A580 to A582 and used by the function blocks from the OMRON FB Library.
  • Page 563 Appendix C Auxiliary Area Allocations by Function...
  • Page 564 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 565 Error Counter This word contains the present value Cleared Every error 0 Present of the error counter for inverter posi- counter 0 Value, Signed tioning 0. cycle Data range: 8000 to 7FFF hex ( − 32,768 to 32,767) (signed)
  • Page 566 0. put to error OFF: Pulse counter 0 output is started stopped Error Counter This flag is ON while pulse output to ON: Pulse Cleared When Pulse Output the output counter for inverter posi- output to the pulse out-...
  • Page 567 Every error of Unsigned value of the unsigned output value counter 1 Output Value (output value = present value of error cycle counter × error counter cycle (s) × gain) for inverter positioning 1. Data range: 0000 0000 to 8000 0000 hex (0 to 2,147,483,648)
  • Page 568 1. put to error OFF: Pulse counter 1 output is started stopped Error Counter This flag is ON while pulse output to ON: Pulse Cleared When Pulse Output the output counter for inverter posi- output to the pulse out-...
  • Page 569 Words Bits mode tings change Error Counter This flag turns ON when an alarm ON: Error Cleared When Alarm Flag 1 occurs in the error counter for counter alarm pulse out- inverter positioning 1. put to error...
  • Page 570 Is Set A99.03 Enable/Dis- Indicates whether creating a backup OFF: Retained Retained When pro- able Status for program file (.OBJ) is enabled or dis- Enabled. tection is Backing Up abled. set or ON: Disabled. the Program cleared...
  • Page 571 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 572 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 573 FFFFFFFF: A263 operation. The cycle time is recorded 0 to in 8-digit hexadecimal with the left- 429,496,729. most 4 digits in A263 and the right- 5 ms most 4 digits in A262. (0.1-ms units) A264 Present Cycle These words contain the present...
  • Page 574 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 575 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 576 (SPED(885), ACC(888), or PLS2(887)) is executed. A280 A280.00 Pulse Output This flag will be ON when pulses are Cleared Refreshed 0 Accel/Decel being output from pulse output 0 each cycle Flag according to an ACC(888) or...
  • Page 577 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 578 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) Flag instruction Cleared when operation starts or is exe- stops.
  • Page 579 (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 580 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 581 Manufactur- The manufacturing lot number is Retained Retained --- ing Lot Num- stored in 6 digits hexadecimal. X, Y, ber, Lower and Z in the lot number are con- Digits verted to 10, 11, and 12, respec- tively. A311 Manufactur-...
  • Page 582 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 583 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 A339...
  • Page 584 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 585 A351.07 A351.08 Minutes (00 to 59) (BCD) A351.15 A352.00 Hours (00 to 23) (BCD) A352.07 A352.08 Day of the month (01 to 31) (BCD) A352.15 A353.00 Month (01 to 12) (BCD) A353.07 A353.08 Year (00 to 99) (BCD) A353.15 A354.00...
  • Page 586 (CP1L L-type Unit. (Not valid in Peripheral Bus CPU Units) Mode or NT Link mode.) A392.05 Serial Port 2 ON when the serial port 2 of a CP1L ON: Able-to- Retained Cleared Written Send Ready M-type CPU Unit is able to send data...
  • Page 587 • ON when a timeout error, overrun error, framing error, parity error, or BCC error occurs in Serial Gate- way mode. A392.13 Serial Port 1 ON when the serial port 1 of a CP1L ON: Able-to- Retained Cleared Written Send Ready...
  • Page 588 PT in NT Link or Serial PLC Link communicat- CPU Units) mode. response to the Bits 0 to 7 correspond to units 0 to 7. token. Serial Port 1 The corresponding bit will be ON PT Communi- when the serial port 1 of a CP1L L-...
  • Page 589 When two or more errors occur simultaneously, the highest error code will be recorded. A401 A401.00 Other Fatal ON when a fatal error that is not OFF: No Cleared Cleared Refreshed A314 Error Flag defined for A401.01 to A401.15...
  • Page 590 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 Expansion Unit or Expan- sion I/O Unit. If this happens, 0A0A hex will be output to A404.
  • Page 591 ERR/ALM indicator on the front OFF: of the CPU Unit will flash. FALS(006) The bit in A360 to A391 that corre- not executed sponds to the FAL number specified in FALS(006) will be turned ON and the corresponding error code will be written to A400.
  • Page 592 Words Bits mode tings change A406 PLC Setup When there is a setting error in the 0000 to 01FF Cleared Cleared Refreshed A402.10 Error Location PLC Setup, the location of that error when error hexadecimal is written to A406 in 4-digit hexadeci- occurs.
  • Page 593 Hexadecimal values umn. Time 8000 to 80FF correspond to task numbers 00 to FF. Bit 15 is turned ON when an interrupt has occurred. (This value is written after the inter- rupt task with the max. processing time is executed and cleared when PLC operation begins.)
  • Page 594 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 595 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 596 Retained Retained --- ON Time has been ON in 10-hour units. The hexadecimal data is stored in binary and it is updated every 10 hours. To reset this value, overwrite the current value with 0000. (This word is not cleared at startup,...
  • Page 597 Retained Cleared Restart Bit port 2 of a CP1L M-type CPU Unit. Restart (CP1L M- (Do not use this bit when the port is type CPU operating in Peripheral Bus Mode.) Units) Note This bit is turned OFF auto- matically when the restart processing is completed.
  • Page 598 2 is restarted. Bit 03: ON for (These flags are not valid in periph- framing error. eral bus mode and only bit 5 is valid Bit 04: ON for in NT Link mode.) overrun error. PLC Link Polling Unit: Bit 05: ON for Bit 05: ON for timeout error.
  • Page 599 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 600 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 601 Flags, Word Bits mode Settings change A598 A598.00 FPD Teach- Turn this bit ON to set the monitoring ON: Teach Cleared Cleared ing Bit time automatically with the teaching monitoring time function. OFF: Teaching While A598.00 is ON, FPD(269)
  • Page 602 Flags, Word Bits mode Settings change 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 Execution allocation RTU Easy 2 of a CP1L M-type CPU Unit using...
  • Page 603 Flags, Word Bits mode Settings change A641 A641.00 Serial Port 1 Turn ON this bit to send a command Turned ON: Retained Cleared DM fixed Modbus- and receive a response for serial port Execution allocation RTU Master 1 of a CP1L M-type CPU Unit using...
  • Page 604 Power ON These words contain the time at See at left. Retained Retained Written A731 Clock Data 4 which the power was turned ON four when times before the startup time stored power is in words A510 to A511. turned A729.00 to A729.07: Seconds (00 to...
  • Page 605 (failed to save) Error Flag area was not specified when starting to transfer DM initial values from the DM Area to the DM initial value area in flash memory. A751.13 DM Initial ON when an error occurred in trans- OFF: Normal...
  • Page 606 Auxiliary Area Allocations by Address 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-14 Condition Flags and 4-15 Clock Pulses for details.
  • Page 607 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 608 A200.15: Initial Task Flag A200.15 will turn ON during the first time a task is executed after it has reached executable status. It will be ON only while the task is being executed and will not turn ON if following cycles.
  • Page 609 0. A202.00 A202.00 The program is designed so that CMND(490) will be executed only when A202.00 is ON. A300: Error Record Pointer 00 to 14 hex Points to the next record to be used. Error record 1...
  • Page 610 Appendix D Auxiliary Area Allocations by Address A401.09: Program Error Flag Error Address Program Error Flag UM Overflow Error Flag A295.15 (A401.09): ON Illegal Instruction Flag A295.14 Distribution Overflow Error Flag A295.13 Task Error Flag A259.12 No END(001) Error Flag A295.11...
  • Page 611 Appendix D Auxiliary Area Allocations by Address...
  • Page 612: E 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 613: Memory Map

    DM Area (See note 2.) 18000 to FFFFF Reserved for system. Note (1) Do not access areas reserved for the system. (2) D10000 to D31999 (PLC memory addresses 12710 to 17CFF hex) cannot be used with CPU Units with 14 or 20 I/O Points.
  • Page 614: Connection Methods

    50 m (See note.) Terminal block (using ferrules) Note The CP1W-CIF11 is a non-isolated board, so the maximum transmission distance is 50 m. For distances over 50 m, use the RS-232C port on the CP1W-CIF01 and then connect through the NT-AL001-E Link...
  • Page 615 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...
  • Page 616 Note When connecting to a CP-series CPU Unit, turn OFF pin 5 and turn ON pin 6. 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.
  • Page 617 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-E Link Adapter. Using this power supply for any other external device may damage the...
  • Page 618 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-E Link Adapter Connecting Cables to connect to NT- AL001-E Link Adapters. XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m...
  • Page 619 Appendix F Connections to Serial Communications Option Boards 1:1 Connections Using RS-422A/485 Port CPU Unit Computer NT-AL001-E 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 620 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 621 (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 622 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 623 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. For dis- tances over 50 m, use the RS-232C port on the CP1W-CIF01 and then connect through the NT- AL001-E Link Adapter, which is isolated.
  • Page 624 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 625 Pin 5: OFF Pin 5: OFF Pin 6: ON Pin 6: OFF Note We recommend using the following NT-AL001-E Link Adapter Connecting Cables to connect to NT- AL001-E Link Adapters. XW2Z-200T-1: 2 m XW2Z-500T-1: 5 m Connections to a Modem...
  • Page 626 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-E Link Adapter Connecting Cables to connect to NT- AL001-E Link Adapters. XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m...
  • Page 627 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 628 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 629 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 630 (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 631 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 insulated NT-AL001-E, and do not use the CP1W-CIF11. If the NT-AL001-E is used, the total transmission distance for the whole trans- mission path is 500 m max.
  • Page 632: 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 633 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 634 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 635 70 cm 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-E 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 636 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 637 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 638: F Connections To Serial Communications Option Boards

    Appendix F Connections to Serial Communications Option Boards Connecting to Unit...
  • Page 639 Appendix F Connections to Serial Communications Option Boards...
  • Page 640 (See note.) mode Monitor: MONITOR 8001 hex mode Run: RUN mode 8002 hex Note A Programming Console cannot be connected to the CP1L. If the default setting, “Use programming console,” is set, the CPU Unit will start in RUN mode.
  • Page 641 Error Stop Don't resister FAL to Register. Register. Every cycle error log Do not register. Comms Instructions Settings in FB: Settings for Communications Instructions in Function Blocks Name Default Settings When setting is read Internal Bits Settings by CPU Unit...
  • Page 642 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 643: Input Constant Settings

    Appendix G PLC Setup Input Constant Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address 0CH: CIO 0 8 ms No filter (0 ms) When power is turned 00 to 07 10 hex Default (8ms) 0.5 ms...
  • Page 644 Communications Settings Standard Standard (9600; 1,7,2,E) Every cycle (9600; 1,7,2,E) (The standard settings (CP1L M- are as follows: 9,600 type CPU baud, 1 start bit, 7-bit Unit) data, even parity, and 2 stop bits.) (CP1L L- Custom type CPU Unit) Mode...
  • Page 645 Every cycle 00 to 00 hex (CP1L M- type CPU Unit) 1F hex (CP1L L- type CPU Unit) NT Link (1:N): 1:N NT Links 2-2-1 Baud 9,600 38,400 (standard) Every cycle 00 to 00 hex (disabled) (CP1L M- 115,200 (high speed)
  • Page 646 00 hex Code (CP1L M- type CPU Unit) 255 bytes FF hex (CP1L L- type CPU Unit) 0: 0 × 10 ms 2-3-8 Delay 0 ms Every cycle 00 to 0000 hex (CP1L M- type CPU Unit) 9999: 9999 × 10 ms...
  • Page 647 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 =...
  • Page 648 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address PC Link (Master) 2-7-1 Baud 9,600 bps 38,400 (standard) Every cycle 00 to 00 hex (disabled) (CP1L M- type CPU Unit) 115,200 (high speed)
  • Page 649 Standard Standard (9600; 1,7,2,E) Every cycle (9600 ; 1,7,2,E) (The standard settings (CP1L M- are as follows: 9,600 type CPU baud, 1 start bit, 7-bit Unit) data, even parity, and 2 stop bits.) Custom Mode Host Link Host Link Every cycle...
  • Page 650 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 (CP1L M- length, bits, even parity...
  • Page 651 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 =...
  • Page 652 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) (CP1L M- 115,200 (high speed) 0A hex...
  • Page 653 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 654 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 655: Pulse Output 0 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 656 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 657 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...
  • Page 658: 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 659 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 660 Default Settings When setting is read Internal Bits Settings by CPU Unit address Use inverter positioning Do not use When power is turned 00 to 03 0 hex Do not use 1 hex Gain 0: 10 (0.1 incre- 0: 10 (0.1 incre-...
  • Page 661 Default Settings When setting is read Internal Bits Settings by CPU Unit address Use inverter positioning Do not use When power is turned 08 to 11 0 hex Do not use 1 hex Gain 0: 10 (0.1 incre- 0: 10 (0.1 incre-...
  • Page 662 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address In-position range 0: 1 0: 1 When power is turned 00 to 15 0000 hex 0001 hex 65,535 FFFF hex Min. output value...
  • Page 663 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Output coefficient dur- 0: 96 (0.01 0: 96 (0.01 incre- When power is turned 08 to 15 0 hex ing deceleration increments) ments) 1 (0.01 increments)
  • Page 664: Index

    Index saving and loading status Condition Flags absolute coordinates coordinate systems (absolute or relative) selecting Counter Area absolute pulse outputs countermeasures Access Error Flag noise xxxi addresses CPU Unit memory map initialization Always OFF Flag cycle time Always ON Flag...
  • Page 665 Host Link communications hot starting hot stopping failure point detection FAL Error Flag FAL errors flag I/O Hold Bit xxix FAL/FALS Number for System Error Simulation I/O interrupts FALS Error Flag response time FALS errors I/O memory flag addresses areas...
  • Page 666 IR/DR Operation between Tasks operating modes description effects of mode changes on counters operation Less Than Flag debugging Less Than or Equals Flag trial operation Limit Input Signal Type Origin Compensation...
  • Page 667 Overflow Flag Pulse Output 0 settings speed curve pulse output modes pulse output stop error codes pulse outputs Parameter Date PWM(891) outputs parts bit allocations replacing parts details peripheral port related flags/bits...
  • Page 668 Index self-maintaining bits serial communications variable duty ratio pulse outputs functions details Serial PLC Links vertical conveyor allocated words PLC Setup related flags simulating system errors software reset Work Area Special I/O Units work bits error information work words specifications...
  • Page 669 Index...
  • Page 670: 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. W462-E1-02 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
  • Page 671 Revision History...

Table of Contents