Omron CP1L-EL20DR-D Operation Manual

Omron CP1L-EL20DR-D Operation Manual

Sysmac cp series cp1l-el/em cpu unit
Table of Contents

Advertisement

Quick Links

Cat. No. W516-E1-04
SYSMAC CP Series
CP1L-EL20D@-@
CP1L-EM30D@-@
CP1L-EM40D@-@
CP1L-EL/EM CPU Unit
Operation MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP1L-EL20DR-D and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Omron CP1L-EL20DR-D

  • Page 1 Cat. No. W516-E1-04 SYSMAC CP Series CP1L-EL20D@-@ CP1L-EM30D@-@ CP1L-EM40D@-@ CP1L-EL/EM CPU Unit OPERATION MANUAL...
  • Page 2 No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. Every precaution has been taken in the preparation of this manual. Neverthe- less, OMRON assumes no responsibility for errors or omissions.
  • Page 3 CP1L-EL20D@-@ CP1L-EM30D@-@ CP1L-EM40D@-@ CP1L-EL/EM CPU Unit Operation Manual Produced July 2017...
  • Page 5 OMRON Product References All OMRON products are capitalized in this manual. The word “Unit” is also capitalized when it refers to an OMRON product, regardless of whether or not it appears in the proper name of the product.
  • Page 6 CP-series CPU Unit Product nameplate CP1L-EM40DR-D CPU UNIT Lot No. 01312M Ver.1.0 OMRON Corporation MADE IN CHINA Unit version (Example for Unit version 1.0) Lot No. Confirming Unit Versions CX-Programmer version 9.4 or higher can be used to confirm the unit version with Support Software of the CP1L-EL/EM CPU Unit.
  • Page 7 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 EL or EM. 3. Go online and select PLC - Edit - Information. (Refer to 5-1 Connecting the CX-Programmer) The PLC Information Dialog Box will be displayed.
  • Page 8 Use the above display to confirm the unit version of the CPU Unit. Procedure When the Device Type and CPU Type Are Not Known This procedure is possible only when connected directly to the CPU Unit with a serial connection. 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 9 Using the Unit Version The following unit version labels are provided with the CPU Unit. Labels Ver. Ver. Ver. Ver. T h e s e L a b e l s c a n b e u s e d t o ma n a g e d i f f e r e n c e s i n t h e a v a i l a b l e f u n c t i o n s a mo n g t h e U n i t s .
  • Page 11: Table Of Contents

    TABLE OF CONTENTS PRECAUTIONS ........xxiii Intended Audience .
  • Page 12: Table Of Contents

    TABLE OF CONTENTS Holding Area (H)............Auxiliary Area (A).
  • Page 13: Table Of Contents

    TABLE OF CONTENTS Program Protection ............Failure Diagnosis Functions .
  • Page 14: Table Of Contents

    TABLE OF CONTENTS SECTION 13 Inspection and Maintenance ......651 13-1 Inspections ............. . . 13-2 Replacing User-serviceable Parts .
  • Page 15: About This Manual

    This manual describes installation and operation of the CP-series Programmable Controllers (PLCs) and includes the sections described below. The CP Series provides advanced package-type PLCs based on 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.
  • Page 16 Precautions provides general precautions for using the Programmable Controller and related devices. Section 1 introduces the features of the CP1L-EL/EM and describes its configuration. It also describes the Units that are available and connection methods for Programming Devices and other peripheral devices.
  • Page 17: Related Manuals

    Related Manuals The following manuals are used for the CP1L-EL/EM CPU Units. Refer to these manuals as required. Cat. No. Model numbers Manual name Description W516 CP1L-EL20D@-@ SYSMAC CP Series Provides the following information on the CP Series: CP1L-EM30D@-@ CP1L-EL/EM CPU •...
  • Page 18 Cat. No. Model numbers Manual name Description W342 CS1G/H-CPU@@H SYSMAC CS/CJ/CP/ Describes commands addressed to CS-series, CJ- CS1G/H-CPU@@-V1 NSJ-series Communi- series, and CP-series CPU Units, including C-mode CS1D-CPU@@H cations Commands commands and FINS commands. CS1D-CPU@@S Reference Manual Note This manual describes on commands CS1W-SCU@@-V1 address to CPU Units regardless of the com- CS1W-SCB@@-V1...
  • Page 19 Omron’s exclusive warranty is that the Products will be free from defects in materials and workmanship for a period of twelve months from the date of sale by Omron (or such other period expressed in writing by Omron). Omron disclaims all other warranties, express or implied.
  • Page 20 ADDRESS THE RISKS, AND THAT THE OMRON PRODUCT(S) IS PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM. PROGRAMMABLE PRODUCTS Omron Companies shall not be responsible for the user’s programming of a programmable Product, or any consequence thereof.
  • Page 21 Data presented in Omron Company websites, catalogs and other materials 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 user must correlate it to actual application requirements. Actual performance is subject to the Omron’s Warranty and Limitations of Liability.
  • Page 22 xxii...
  • Page 23 PRECAUTIONS This section provides general precautions for using the CP-series Programmable Controllers (PLCs) and related devices. The information contained in this section is important for the safe and reliable application of Programmable Controllers. You must read this section and understand the information contained before attempting to set up or operate a PLC system. Intended Audience .
  • Page 24: Intended Audience

    It is extremely important that a PLC and all PLC Units be used for the speci- fied purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PLC System to the above-mentioned appli- cations.
  • Page 25 Safety Precautions • The PLC will turn OFF all outputs when its self-diagnosis function detects any error or when a severe failure alarm (FALS) instruction is executed. Unexpected operation, however, may still occur for errors in the I/O control section, errors in I/O memory, and errors that cannot be detected by the self-diagnosis function.
  • Page 26 Operating Environment Precautions !Caution After programming (or reprogramming) using the IOWR instruction, confirm that correct operation is possible with the new ladder program and data before starting actual operation. Any irregularities may cause the product to stop operating, resulting in unexpected operation in machinery or equipment. !Caution The CP1L-EL/EM CPU Units automatically back up the user program and parameter data to flash memory when these are written to the CPU Unit.
  • Page 27: Application Precautions

    Application Precautions Application Precautions Observe the following precautions when using the PLC System. !WARNING Always heed these precautions. Failure to abide by the following precautions could lead to serious or possibly fatal injury. • Always connect to 100 Ω or less when installing the Units. Not connecting to a ground of 100 Ω...
  • Page 28 Application Precautions • Do not apply voltages or connect loads to the output terminals in excess of the maximum switching capacity. Excess voltage or loads may result in burning. • Be sure that the terminal blocks, connectors, Option Boards, and other items with locking devices are properly locked into place.
  • Page 29 Application Precautions • Do not connect pin 6 (+5V) on the RS-232C Option Board (CP1W-CIF01) on the CPU Unit to any external device other than the NT-AL001 or CJ1W-CIF11 Conversion Adapter. The external device and the CPU Unit may be damaged. •...
  • Page 30 Concepts 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 31: Relay Output Noise Reduction Methods

    Conformance to EC Directives Relay Output Noise Reduction Methods The CP1L-EL/EM PLCs conforms to the Common Emission Standards (EN61131-2) of the EMC Directives. However, noise generated by relay out- put switching may not satisfy these Standards. In such a case, a noise filter must be connected to the load side or other appropriate countermeasures must be provided external to the PLC.
  • Page 32 Conformance to EC Directives Circuit Current Characteristic Required element The varistor method prevents the impo- Varistor method sition of high voltage between the con- tacts by using the constant voltage characteristic of the varistor. There is time lag between the moment the cir- cuit is opened and the moment the load Power is reset.
  • Page 33 Software Licenses and Copyrights 2. Connection Method As shown below, connect a ferrite core to each end of the CP1W-CN811 I/O Connecting Cable. SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A 40EDR Software Licenses and Copyrights This product incorporates certain third party software.
  • Page 34 Software Licenses and Copyrights xxxiv...
  • Page 35: Features And System Configuration

    SECTION 1 Features and System Configuration This section introduces the features of the CP1L-EL/EM and describes its configuration. It also describes the Units that are available and connection methods for the CX-Programmer and other peripheral devices. Features and Main Functions ........1-1-1 CP1L-EL/EM Overview .
  • Page 36: Features And Main Functions

    I/O capacity as the CP1L PLCs, but offer a built-in Ethernet port and indepen- dent FB capacity. Type EM CPU Units EL CPU Units Model CP1L-EM40DR-D CP1L-EM30DR-D CP1L-EL20DR-D CP1L-EM40DT-D CP1L-EM30DT-D CP1L-EL20DT-D CP1L-EM40DT1-D CP1L-EM30DT1-D CP1L-EL20DT1-D Power supply 24 V DC Program capacity(See note 3.)
  • Page 37 Section 1-1 Features and Main Functions 1-1-2 Features This section describes the main features of the CP1L-EL/EM. Basic CP1L-EL/EM Configuration CP1L-EL/EM CPU Unit (Example for model with 40 I/O points) CX-One Power supply/input terminal block Battery (CJ1W-BAT01) Ethernet port POWER Memory Cassette ERR/ALM LNK/ACT...
  • Page 38 With the built-in Ethernet port, it is possible to connect the CX-Programmer to for Various Ethernet PLCs and exchange data between OMRON PLCs using Ethernet. It can also create an original communications procedure using TCP/IP or UDP/IP for the Application host application or communicate with PLCs from another manufacturer.
  • Page 39 Section 1-1 Features and Main Functions Full Complement of High-speed counter inputs can be used by connecting rotary encoders to the High-speed Counter built-in inputs. The ample number of high-speed counter inputs makes it pos- sible to control a multi-axis device with a single PLC. Functions •...
  • Page 40 Section 1-1 Features and Main Functions Versatile Pulse Positioning and speed control by a pulse-input servo driver is enabled by out- Control (CPU Units putting fixed duty ratio pulse output signals from the CPU Unit's built-in out- puts. with Transistor Outputs Only) •...
  • Page 41 Features and Main Functions Section 1-1 Positioning Changes during Speed Control (Interrupt Feeding) While speed control in continuous mode is in effect, it is possible to change to positioning in independent mode by executing a PULSE OUTPUT (PLS2) instruction. By this means, interrupt feeding (moving a specified amount) can be executed under specified conditions.
  • Page 42 Section 1-1 Features and Main Functions Expansion Capability Up to two Serial Communications Boards each with one RS-232C port or one for 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 I/O points.
  • Page 43 Section 1-1 Features and Main Functions (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-EL/EM/CP1H/CJ1M) using RS-422A/485 Option Boards.
  • Page 44: System Configuration

    485 g max. CP1L-EM30DT-D 12 transistor (sinking) outputs 455 g max. CP1L-EM30DT1-D 12 transistor (sourcing) outputs 455 g max. 20 points 24 VDC CP1L-EL20DR-D 12 DC inputs 8 relay outputs 400 g max. CP1L-EL20DT-D 8 transistor (sinking) outputs 380 g max.
  • Page 45 System Configuration Section 1-2 NS-series PT, personal computer, bar code reader, etc. CP1W-CIF01 RS-232C Option Board RS-232C (Expansion) CP1W-CIF11/CIF12 RS-422A/485C Option Board SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A RS-422A (Expansion) Inverter, etc. Option Boards for Serial Communications Appearance Name...
  • Page 46: System Expansion

    System Configuration Section 1-2 1-2-2 System Expansion CP-series Expansion Units or Expansion I/O Units can be connected to a CP1L-EL/EM 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 I/O points.
  • Page 47 Max.: 150 points CP1L-EM30DT-D Inputs: 24 × 3 Inputs: 90 points CP1L-EM30DT1-D Outputs: 16 × 3 Outputs: 60 points 20 points CP1L-EL20DR-D 1 Unit max. Max.: 60 points CP1L-EL20DT-D Inputs: 24 Inputs: 36 points CP1L-EL20DT1-D Outputs: 16 Outputs: 24 points...
  • Page 48 System Configuration Section 1-2 CP-series Expansion Units Name and Model Specifications Weight appearance Analog I/O Units CP1W-MAD11 2 analog 0 to 5 V/1 to 5 V/0 to Resolu- 150 g max. inputs 10 V/−10 to +10 V/0 tion: 6,000 to 20 mA/4 to 20 mA 1 analog 1 to 5 V/0 to 10 V/ −10 to +10 V/0 to...
  • Page 49: Restrictions On System Configuration

    CPU Units with DC power. Use the CPU Unit within the following ranges of power supply voltage and output load current. CPU Units with Relay Outputs (CP1L-E@@@DR-D) Relay Output Load Current Derating Curves for CPU Units and Expansion I/O Units CP1L-EL20DR-D CP1L-EM30DR-D CP1L-EM40DR-D 100% 100% 100%...
  • Page 50: Function Charts

    Section 1-3 Function Charts Function Charts Built-in I/O functions Built-in input functions Normal inputs Selected in PLC Setup. Interrupt inputs Interrupt inputs (Direct mode) Interrupt inputs (Counter mode) High-speed counter inputs No interrupts High-speed counter interrupts • Target value comparison interrupts Quick-response inputs •...
  • Page 51: Function Blocks

    Function Blocks Section 1-4 Function Blocks Function blocks can be used in programming SYSMAC CP-series PLCs. 1-4-1 Overview of Function Blocks A function block is a basic program element containing a standard processing function that has been defined in advance. Once the function block has been defined, the user just has to insert the function block in the program and set the I/O in order to use the function.
  • Page 52 Section 1-4 Function Blocks 1-4-2 Advantages of 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 setting the parameters for the function block's I/O.
  • Page 53: Nomenclature And Specifications

    SECTION 2 Nomenclature and Specifications This section describes the names and functions of CP1L-EL/EM parts and provides CP1L-EL/EM specifications. Part Names and Functions........2-1-1 CP1L-EL/EM CPU Units .
  • Page 54: Part Names And Functions

    Section 2-1 Part Names and Functions Part Names and Functions 2-1-1 CP1L-EL/EM CPU Units Front Right Side (8) Power supply, ground, (9) Option Board slots (7) Input indicators and input terminal block 1 (left) and 2 (right) (1) Battery cover (2) Operation indicators (3) DIP switch POWER...
  • Page 55 Part Names and Functions Section 2-1 (3) DIP Switch CPU Units with 30 or 40 I/O Points Setting Description Application Default User memory write- Used to prevent pro- protected (See note.) grams from being inad- vertently overwritten. User memory not write-protected.
  • Page 56 Using the built-in Ethernet port, user can easily connect the CX-Pro- grammer to PLCs Online or exchange data between CP1L-EL/EM series PLCs and other Ethernet devices from either OMRON or another manu- facturer. Various protocols are supported, including FINS/TCP, FINS/ UDP, Socket, SNTP, DNS.
  • Page 57 Section 2-1 Part Names and Functions 2-1-2 CP1W-CIF01 RS-232C Option Boards A RS-232C 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.
  • Page 58 Section 2-1 Part Names and Functions Front Back (1) Communications Status Indicator (3) CPU Unit Connector COMM (4) DIP Switch for RDA− RDB+ SDA− SDB+ FG Operation Settings (2) RS-422A/485 Connector RS-422A/485 Terminal Block Tighten the terminal block screws to a torque of 0.28 N·m (2.5 Lb In.).
  • Page 59: Specifications

    Section 2-2 Specifications Specifications 2-2-1 CP1L-EL/EM CPU Units General Specifications Type EM CPU Units EL CPU Units Model CP1L-EM40DR-D CP1L-EM30DR-D CP1L-EL20DR-D CP1L-EM40DT-D CP1L-EM30DT-D CP1L-EL20DT-D CP1L-EM40DT1-D CP1L-EM30DT1-D CP1L-EL20DT1-D Power supply 24 VDC Operating voltage range 20.4 to 26.4 VDC Power consumption 20 W max.
  • Page 60: Current Consumption

    CP1L-EM30DR-D 0.30 A 0.07 A CP1L-EM30DT-D 0.39 A 0.01 A CP1L-EM30DT1-D 0.39 A 0.01 A 20 I/O points CP1L-EL20DR-D 0.31 A 0.06 A CP1L-EL20DT-D 0.37 A 0.01 A CP1L-EL20DT1-D 0.37 A 0.01 A Note (1) The current consumption of the CP1W-ME05M Memory Cassette and CP1W-CIF01/11 Option Boards are included in the current consumption of the CPU Unit.
  • Page 61 Specifications Section 2-2 (3) The current consumptions given in the following table must be added to the current consumption of the CPU Unit if an Expansion Unit or Expan- sion I/O Unit is connected. Expansion Units and Expansion I/O Units Unit name Model Current consumption...
  • Page 62 Section 2-2 Specifications Characteristics Type EM CPU Units EL CPU Units Model CP1L-EM40DR-D CP1L-EM30DR-D CP1L-EL20DR-D CP1L-EM40DT-D CP1L-EM30DT-D CP1L-EL20DT-D CP1L-EM40DT1-D CP1L-EM30DT1-D CP1L-EL20DT1-D Program capacity 10 K steps 5 K steps (See note 1.) FB capacity 10 K steps Control method Stored program method...
  • Page 63 Section 2-2 Specifications Type EM CPU Units EL CPU Units Model CP1L-EM40DR-D CP1L-EM30DR-D CP1L-EL20DR-D CP1L-EM40DT-D CP1L-EM30DT-D CP1L-EL20DT-D CP1L-EM40DT1-D CP1L-EM30DT1-D CP1L-EL20DT1-D Serial port (RS-232C , Ports not provided as standard equipment. (EM-type CPU Unit: 2 ports max., EL-type CPU Unit: 1...
  • Page 64 Section 2-2 Specifications 2-2-2 I/O Memory Details Type EM CPU Units EL CPU Units Model CP1L-EM40DR-D CP1L-EM30DR-D CP1L-EL20DR-D CP1L-EM40DT-D CP1L-EM30DT-D CP1L-EL20DT-D CP1L-EM40DT1-D CP1L-EM30DT1-D CP1L-EL20DT1-D Input bits 24 bits 18 bits 12 bits Areas CIO 0.00 to CIO 0.11 CIO 0.00 to CIO 0.11 CIO 0.00 to CIO 0.11...
  • Page 65 Section 2-2 Specifications 2-2-3 I/O Specifications I/O Terminal Blocks of CPU Units with 40 I/O Points Input Terminal Block (Top Block) − COM 01 Inputs (CIO 0) Inputs (CIO 1) Output Terminal Block Arrangement (Bottom Block) Relay Output Models (CP1L-EM40DR-D) COM COM CIO 100 CIO 101...
  • Page 66 I/O Terminal Blocks of CPU Units with 20 I/O Points Input Terminal Block (Top Block) − Inputs (CIO 0) Output Terminal Block (Bottom Block) Relay Output Models (CP1L-EL20DR-D) COM COM CIO 100 Sinking Transistor Output Models (CP1L-EL20DT-D) COM(V-) CIO 100...
  • Page 67 Section 2-2 Specifications Note (1) COM(V-) has been connected with V- in inner circuit. (2) V+/V- input terminals are used as the power supply terminals for CIO100.00 to CIO100.03. Supply the power of 24 VDC when using CIO100.00 to CIO100.03. Sourcing Transistor Output Models (CP1L-EL20DT1-D) COM(V+) CIO 100...
  • Page 68 Section 2-2 Specifications 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 Phase-Z reset Single-phase Two-phase (differential (increment phase x4, up/down, or pulse input)
  • Page 69: Input Specifications

    Section 2-2 Specifications 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, enabled in the PLC Setup, instruction is the right are not PLS2, or ORG) is executed and an origin search is executed...
  • Page 70 Section 2-2 Specifications Item Specification High-speed Counter Inputs Interrupt Inputs and Normal inputs Quick-response Inputs CIO 0.00 to CIO 0.03 CIO 0.04 to CIO 0.09 (See CIO 0.10 to CIO 0.11 and note 1.) CIO 1.00 to CIO 1.11 (See note 2.) 2.5 μs max.
  • Page 71 Section 2-2 Specifications Input Bits for High-speed Counters Counter Single phase Phase A Phase B Phase Z High-speed counter 0 CIO 0.00 CIO 0.00 CIO 0.01 CIO 0.04 High-speed counter 1 CIO 0.01 CIO 0.02 CIO 0.03 CIO 0.05 High-speed counter 2 CIO 0.02 High-speed counter 3 CIO 0.03 Pulse plus direction input mode, Increment mode...
  • Page 72 0.2 0.3 0.5 0.7 1 Contact current (A) (2) There are restrictions imposed by the ambient temperature. CPU Units with Relay Outputs (CP1L-E@@@DR-D) Relay Output Load Current Derating Curves for CPU Units and Expansion I/O Units CP1L-EL20DR-D CP1L-EM30DR-D CP1L-EM40DR-D 100% 100% 100%...
  • Page 73 Section 2-2 Specifications Item Specification CIO 100.00 to CIO 100.03 CIO 100.04 to CIO 101.07 (See note.) Fuse None Circuit configuration • Normal outputs CIO 100.00 to CIO 100.03 • Normal outputs CIO 100.04 to CIO 101.07 (Sinking Outputs) (Sinking Outputs) Internal 24 VDC/4.5 circuits...
  • Page 74 Section 2-2 Specifications PWM Outputs (CIO 100.01 and CIO 100.03) Item Specification Max. switching capacity 30 mA/4.75 to 26.4 VDC Max. output frequency 32.8 kHz For ON duty +1%, −0%:10 kHz output PWM output accuracy For ON duty +5%, −0%: 0 to 32.8 kHz output Output waveform ×...
  • Page 75 Specifications Section 2-2 Item Specification OFF delay 1 ms max. (See note 1.) Circuit configuration Input LED Internal 4.7 kΩ circuits CO M 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, a fixed value of 16 ms must be added.
  • Page 76 Ambient temperature(˚C) (4) There are restrictions imposed by the ambient temperature. Relay Output Load Current Derating Curves for Expansion I/O Units (CP1W- 8ER/16ER/20EDR1/32ER/40EDR) Added to CP1L-EL20DR-D Added to CP1L-EM30DR-D Added to CP1L-EM40DR-D 100% 100%...
  • Page 77 Section 2-2 Specifications Transistor Outputs (Sinking or Sourcing) Item Specification CP1W-40EDT CP1W-32ET CP1W-20EDT CP1W-16ET CP1W-8ET CP1W-40EDT1 CP1W-32ET1 CP1W-20EDT1 CP1W-16ET1 CP1W-8ET1 Max. switching 4.5 to 30 VDC 4.5 to 30 VDC 4.5 to 30 VDC • OUT00/01 4.5 to 24 VDC −5% capacity 0.3 A/output...
  • Page 78: Cp1L-El/Em Cpu Unit Operation

    CP1L-EL/EM CPU Unit Operation Section 2-3 CP1L-EL/EM CPU Unit Operation 2-3-1 Overview of CPU Unit Configuration The CP1L-EL/EM CPU Unit memory consists of the following blocks. Built-in inputs CPU Unit User program Flash memory Memory Cassette User program Comment Access memory I/O memory FB program...
  • Page 79 Section 2-3 CP1L-EL/EM CPU Unit Operation • When the power supply is turned ON, data is transferred from the Memory Cassette to the built-in flash memory and RAM. Data can also be transferred from the Memory Cassette to the built-in flash memory and RAM using the CX-Programmer.
  • Page 80 Section 2-3 CP1L-EL/EM CPU Unit Operation Relay Network Table for PLC 1 Node M Remote Relay Relay network network node Network 2 PLC 1 PLC 3 PLC 2 Relay Network Table for PLC 2 Remote Relay Relay network network node Unit number n Network 1 Network 3...
  • Page 81: Flash Memory Data Transfers

    CP1L-EL/EM CPU Unit Operation Section 2-3 2-3-2 Flash Memory Data Transfers Built-in Flash Memory Writing to Flash Memory Data Transfer method User program and 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 82 Section 2-3 CP1L-EL/EM CPU Unit Operation Reading from Flash Memory Data Read method User program and 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.
  • Page 83: Memory Cassette Data Transfers

    Section 2-3 CP1L-EL/EM CPU Unit Operation 2-3-3 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 84 Section 2-3 CP1L-EL/EM CPU Unit Operation Reading from a Memory Cassette Data Method Destination User program and This data is transferred by Data in the Memory Cassette parameter data turning SW2 on the DIP is transferred to RAM and switch to ON and turning ON then automatically transferred the power supply.
  • Page 85: Cpu Unit Operation

    Section 2-4 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. Power ON Startup Initialize hardware...
  • Page 86 Section 2-4 CPU Unit Operation 2-4-2 I/O Refreshing and Peripheral Servicing I/O Refreshing I/O refreshing involves cyclically transferring data with external devices using preset words in memory. I/O refreshing includes the following: • Refreshing between I/O words in the CIO Area and CPU Unit built-in I/O, CP-series Expansion Units, and CP-series Expansion I/O Units.
  • Page 87 Section 2-4 CPU Unit Operation 2-4-3 I/O Refresh Methods I/O for CPU Unit built-in I/O and I/O on CP-series Expansion Units and Expan- sion I/O Units is performed at the following times. 1,2,3... 1. Cyclic refresh period 2. When instructions with an immediate refresh variation are executed 3.
  • Page 88: Initialization At Startup

    Section 2-4 CPU Unit Operation (4) Using instructions with the immediate refresh option, instruction execu- tion time will be increased, increasing the overall cycle time. Be sure to confirm that this will not adversely affect system operation. IORF(097) Refreshing When IORF(097) (I/O REFRESH) is executed, the I/O bits in the specified range of words are refreshed.
  • Page 89: Cpu Unit Operating Modes

    Section 2-5 CPU Unit Operating Modes (2) The forced status held or cleared according to the status of the Force Sta- tus Hold Bit and the setting for Forced Status Hold Bit Status at Startup in the PLC Setup (read only when power is turned ON). Auxiliary bit Forced Status Hold Bit (A500.13) PLC Setup setting...
  • Page 90 Section 2-5 CPU Unit Operating Modes Operation PROGRAM mode RUN mode MONITOR mode CX-Programmer I/O memory monitoring operations Program monitoring Program From CPU Unit OK transfers To CPU Unit Checking program Setting PLC Setup Changing program Force-setting/resetting Changing timer/counter SV OK Changing timer/counter PV OK Change I/O memory PV Note The following table shows the relationship of operating modes to tasks.
  • Page 91: Startup Mode Setting

    Section 2-5 CPU Unit Operating Modes 2. The cycle time will increase by approximately 10 ms when the operating mode is changed from MONITOR to RUN mode. This will not, however, cause an error for exceeding the maximum cycle time limit. I/O Memory I/O Memory Output bits allocated to Output Units...
  • Page 92: Power Off Operation

    Section 2-6 Power OFF Operation Power OFF Operation 2-6-1 Overview The following processing is performed when CPU Unit power is turned OFF. Power OFF processing will be performed if the power supply voltage falls below the specified value while the CPU Unit is in RUN or MONITOR mode. 1,2,3...
  • Page 93: Description Of Operation

    Section 2-6 Power OFF Operation The following timing chart shows the CPU Unit power OFF operation in more detail. Power OFF Timing Chart Operation always stopped at this point regardless. DC: 85% of rated voltage Holding time for 5 V internal power supply after power OFF detection: 1 ms Power OFF detected...
  • Page 94: Computing The Cycle Time

    Section 2-7 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 95: Cycle Time Overview

    Section 2-7 Computing the Cycle Time 2-7-2 Cycle Time Overview The cycle time depends on the following conditions. • Type and number of instructions in the user program (in all cyclic tasks that are executed during a cycle, and within interrupt tasks for which the execution conditions have been satisfied) •...
  • Page 96: Minimum Cycle Time

    Section 2-7 Computing the Cycle Time 5: Peripheral Servicing Details Processing time and fluctuation cause Services Ethernet port. If a uniform peripheral servicing time hasn’t been set in the PLC Setup for this servicing, 8% of the previous cycle’s cycle time (calculated in step (3)) Services serial ports will be allowed for peripheral servicing.
  • Page 97 Section 2-7 Computing the Cycle Time Watch Cycle Time If the cycle time exceeds the watch (maximum) cycle time setting, the Cycle Time Too Long Flag (A401.08) will be turned ON and PLC operation will be stopped. PLC Setup Name Settings Default Enable Watch Cycle...
  • Page 98 Section 2-7 Computing the Cycle Time 2-7-4 I/O Refresh Times for PLC Units CP-series Expansion Unit and Expansion I/O Unit I/O Refresh Times Name Model I/O refresh time per Unit Expansion I/O Units CP1W-40EDR 0.39 ms CP1W-40EDT 0.39 ms CP1W-40EDT1 0.39 ms CP1W-32ER 0.33 ms...
  • Page 99: Cycle Time Calculation Example

    Section 2-7 Computing the Cycle Time 2-7-5 Cycle Time Calculation Example The following example shows the method used to calculate the cycle time when CP-series Expansion I/O Units only are connected to a CP1L-EL/EM CPU Unit. Conditions Item Details CP1L-EL/EM CP1W-40EDR 1 Unit 40-pt I/O Unit...
  • Page 100 Section 2-7 Computing the Cycle Time 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 101 Section 2-7 Computing the Cycle Time I/O refresh Input Input ON delay (Interrupt to CPU Unit) Cycle time Cycle time Instruction Instruction Instruction execution execution execution Output ON delay Output Maximum I/O response time Calculation Example Conditions: Input ON delay 1 ms (normal input with input constant set to 0 ms) Output ON delay...
  • Page 102: Interrupt Response Times

    Section 2-7 Computing the Cycle Time 2-7-8 Interrupt Response Times Input Interrupt Tasks The interrupt response time for I/O interrupt tasks is the time taken from when a built-in input has turned ON (or OFF) until the I/O interrupt task has actually been executed.
  • Page 103: Serial Plc Link Response Performance

    Section 2-7 Computing the Cycle Time Scheduled Interrupt Tasks The interrupt response time of scheduled interrupt tasks is the time taken from after the scheduled time specified by the MSKS(690) instruction has elapsed until the interrupt task has actually been executed. The length of the interrupt response time for scheduled interrupt tasks is 1 ms max.
  • Page 104: Pulse Output Start Time

    Section 2-7 Computing the Cycle Time 2-7-10 Pulse Output Start Time The pulse output start time is the time required from executing a pulse output instruction until pulses are output externally. This time depends on the pulse output instruction that is used and operation that is performed. Instruction execution Start time Pulse output...
  • Page 105: Installation And Wiring

    SECTION 3 Installation and Wiring This section describes how to install and wire the CP1L-EL/EM. Fail-safe Circuits ..........Installation Precautions .
  • Page 106: Fail-Safe Circuits

    Fail-safe Circuits Section 3-1 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-EL/EM CPU Unit or external power supply. In particular, be careful of the following points. Supply Power to the If the PLC's power supply is turned ON after the controlled system's power CP1L-EL/EM CPU Unit...
  • Page 107: Installation Precautions

    Section 3-2 Installation Precautions Installation Precautions 3-2-1 Installation and Wiring Precautions Always consider the following factors when installing and wiring the PLC to improve the reliability of the system and make the most of the CP1L-EL/EM functions. Ambient Conditions Do not install the PLC in any of the following locations. •...
  • Page 108 Installation Precautions Section 3-2 Accessibility for • To ensure safe access for operation and maintenance, separate the PLC Operation and as much as possible from high-voltage equipment and moving machinery. 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.
  • Page 109: Mounting

    Section 3-3 Mounting • Do not install the CP1L-EL/EM in any of the following orientations. Mounting 3-3-1 Mounting in a Panel When mounting the CP1L-EL/EM CPU Unit in a panel, use either surface installation or DIN Track installation. Surface Installation Even if a DIN Track is not used, a CP1L-EL/EM CPU Unit and CP-series Expansion Units or Expansion I/O Units can be mounted using M4 screws.
  • Page 110 Section 3-3 Mounting DIN Track Installation The CP1L-EL/EM CPU Unit, Expansion Units, and Expansion I/O Units can be mounted to DIN Track. Secure the DIN Track with screws in at least three places. DIN Track SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+)
  • Page 111 Mounting Section 3-3 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. Input duct Output duct Power duct...
  • Page 112 Section 3-3 Mounting Mounting Height The mounting height is approximately 90 mm. When a cable is connected to an Option Board, however, the additional height must be factored in. 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 Connecting Expansion Units and Expansion I/O Units Leave approximately 10 mm of space between the CPU Unit and the Expan-...
  • Page 113 Section 3-3 Mounting Space between Units When Expansion I/O Units Are Connected CP1L-EL/EM Expansion I/O Unit Expansion I/O Unit 100 mm Expansion Unit Expansion Unit CPU Unit 20 mm min. 10 mm min. 25 mm max. 15 mm max. 1,2,3... 1.
  • Page 114: Din Track Installation

    Section 3-3 Mounting 3-3-3 DIN Track Installation 1,2,3... 1. Use a screwdriver to pull down the DIN Track mounting pins from the back of the 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 115 Section 3-3 Mounting DIN Track Mount the DIN Track in the control panel with screws in at least three places. • DIN Track: PFP-50N (50 cm), PFP-100N (100 cm), or PFP-100N2 (100 cm) Secure the DIN Track to the control panel using M4 screws separated by 210 mm (6 holes).
  • Page 116: Wiring Cp1L-El/Em Cpu Units

    Section 3-4 Wiring CP1L-EL/EM CPU Units Wiring CP1L-EL/EM CPU Units 3-4-1 Wiring Power Supply and Ground Lines CPU Units with DC Power Supply DC Power Supply Wiring 24 VDC − Circuit protector Upper terminal block − GR: Protective ground terminal Ground (100 Ω...
  • Page 117 Section 3-4 Wiring CP1L-EL/EM CPU Units 3-4-2 Wiring Built-in I/O Wiring Precautions Double-checking I/O Double-check the specifications for the I/O Units. In particular, do not apply a Specifications voltage that exceeds the input voltage for Input Units or the maximum switch- ing capacity for Output Units.
  • Page 118 Section 3-4 Wiring CP1L-EL/EM CPU Units Note (1) Never apply a voltage that exceeds the input voltage for Input Units or the maximum switching capacity for Output Units. (2) When the power supply has positive and negative terminals, always wire them correctly.
  • Page 119 Section 3-4 Wiring CP1L-EL/EM CPU Units Precautions when When using a two-wire sensor with a 24 VDC input device, check that the fol- Connecting a Two-wire DC lowing conditions have been met. Failure to meet these conditions may result Sensor in operating errors.
  • Page 120 In this example, the sensor’s power supply voltage is provided to input bit CIO 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...
  • Page 121: Wiring Safety And Noise Controls

    Section 3-4 Wiring CP1L-EL/EM CPU Units 3-4-3 Wiring Safety and Noise Controls I/O Signal Wiring Whenever possible, place I/O signal lines and power lines in separate ducts or conduits both inside and outside of the control panel. (1) = I/O cables (2) = Power cables In-floor duct Conduits...
  • Page 122 Section 3-4 Wiring CP1L-EL/EM CPU Units Noise from External Take the following points into account when externally wiring I/O, power sup- Wiring ply, and power lines. • When multi-conductor signal cable is being used, avoid combining I/O wires and other control wires in the same cable. •...
  • Page 123: Wiring Cpu Unit I/O

    Section 3-5 Wiring CPU Unit I/O Wiring CPU Unit I/O 3-5-1 I/O Wiring for CPU Units with 40 I/O Points Input Wiring (Upper Terminal Block, Removable) The input circuits have 24 points/common. Use power lines with sufficient cur- rent capacity for the COM terminals. CIO 1 CIO 0 24 VDC...
  • Page 124 Section 3-5 Wiring CPU Unit I/O Sinking Transistor Outputs (CP1L-EM40DT-D) CIO 100 CIO 101 COM( V- ) 07 COM 02 COM 05 CIO 100 CIO 101 Note COM(V-) has been connected with V- in an inner circuit. Sourcing Transistor Outputs (CP1L-EM40DT1-D) CIO 100 CIO 101 COM(V+)
  • Page 125 Section 3-5 Wiring CPU Unit I/O Output Wiring (Lower Terminal Block, Removable) Relay Outputs (CP1L-EM30DR-D) CIO 100 CIO 101 CIO 100 CIO 101 Sinking Transistor Outputs (CP1L-EM30DT-D) CIO 100 CIO 101 COM( V- ) CIO 100 CIO 101 Note COM(V-) has been connected with V- in an inner circuit. Sourcing Transistor Outputs (CP1L-EM30DT1-D ) CIO 100...
  • Page 126 The input circuits have 12 points/common. Use power lines with sufficient cur- rent capacity for the COM terminals. CIO 0 24 VDC CIO 0 Output Wiring (Lower Terminal Block, not Removable) Relay Outputs (CP1L-EL20DR-D) CIO 100 CIO 100 Sinking Transistor Outputs (CP1L-EL20DT-D) CIO 100 COM(V-)
  • Page 127 Section 3-5 Wiring CPU Unit I/O Sourcing Transistor Outputs (CP1L-EL20DT1-D) CIO 100 COM(V+) CIO 100 Note COM(V+) has been connected with V+ in an inner circuit. 3-5-4 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.
  • Page 128: Pulse Output Connection Examples

    Section 3-5 Wiring CPU Unit I/O 3-5-5 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-EL/EM CPU Unit and the motor driver.
  • Page 129 Section 3-5 Wiring CPU Unit I/O Using a 5-VDC Connection Example 1 Photocoupler Input Motor Driver (CP1L-E@@@DT-D) 24-V DC power supply CP1L-EL/EM CPU Unit Motor driver (for 5-V input) − 24-VDC power supply (Example: R = 220 Ω) for outputs V −...
  • Page 130: Cp-Series Expansion I/O Unit Wiring

    Section 3-6 CP-series Expansion I/O Unit Wiring CP-series Expansion I/O Unit Wiring CP-series Expansion I/O Units Model Inputs Outputs 40-point I/O CP1W-40EDR 24-VDC 16 relay outputs Units 24 inputs CP1W-40EDT 16 transistor outputs (sinking) CP1W-40EDT1 16 transistor outputs (sourcing) 32-point CP1W-32ER None 32 relay outputs...
  • Page 131 Section 3-6 CP-series Expansion I/O Unit Wiring Output Wiring CP1W-40EDR-40EDR (Relay Outputs) COM COM COM CP1W-40EDT (Sinking Transistor Outputs) NC COM COM COM 4.5 to 30 VDC CP1W-40EDT1 (Sourcing Transistor Outputs) NC COM COM COM 4.5 to 30 VDC...
  • Page 132 Section 3-6 CP-series Expansion I/O Unit Wiring 32-point Output Units (CP1W-32E@@) (Terminal Block is not Removable) Output Wiring CP1W-32ER (Relay Outputs) Upper Terminal Block Lower Terminal Block CIO n+1 CIO n+2 CIO n+4 CIO n+3 02 03 01 03 06 NC 02 COM 05 07 COM COM COM COM...
  • Page 133 Section 3-6 CP-series Expansion I/O Unit Wiring 20-point I/O Units (CP1W-20ED@@) (Terminal Block is not Removable) Input Wiring CP1W-20ED@@ CIO m+1 24 VDC − − CIO m+1 Output Wiring CP1W-20EDR1 (Relay Outputs) COM COM COM CP1W-20EDT (Sinking Transistor Outputs) COM COM COM...
  • Page 134 Section 3-6 CP-series Expansion I/O Unit Wiring CP1W-20EDT1 (Sourcing Transistor Outputs) COM COM COM 16-point Output Units (CP1W-16E@@) (Terminal Block is not Removable) Output Wiring CP1W-16ER (Relay Outputs) Unit Lower Terminal Block Unit Upper Terminal Block NC COM NC COM COM COM Output Wiring CP1W-16ET (Sinking Transistor Outputs) Upper Terminal Block...
  • Page 135 Section 3-6 CP-series Expansion I/O Unit Wiring Output Wiring CP1W-16ET1 (Sourcing Transistor Outputs) Upper Terminal Block Lower Terminal Block CIO n+2 CIO n+1 NC COM COM COM CIO n+1 CIO n+2 8-point Input Units (CP1W-8ED) (Terminal Block is not Removable) Input Wiring Unit Upper Terminal Block Unit Lower Terminal Block...
  • Page 136 Section 3-6 CP-series Expansion I/O Unit Wiring 8-point Output Units (CP1W-8E@) (Terminal Block is not Removable) Output Wiring CP1W-8ER (Relay Outputs) Unit Upper Terminal Block Unit Lower Terminal Block Output Wiring CP1W-8ET (Sinking Transistor Outputs) Unit Upper Terminal Block Unit Lower Terminal Block 4.5 to 30 VDC −...
  • Page 137: I/O Memory Allocation

    SECTION 4 I/O Memory Allocation This section describes the structure and functions of the I/O Memory Areas and Parameter Areas. Overview of I/O Memory Area........4-1-1 I/O Memory Area .
  • Page 138: Overview Of I/O Memory Area

    Section 4-1 Overview of I/O Memory Area Overview of I/O Memory Area 4-1-1 I/O Memory Area This region of memory contains the data areas that can be accessed as instruction operands. I/O memory includes the CIO Area, Work Area, Holding Area, Auxiliary Area, DM Area, Timer Area, Counter Area, Task Flag Area, Data Registers, Index Registers, Condition Flag Area, and Clock Pulse Area.
  • Page 139: Overview Of The Data Areas

    Section 4-1 Overview of I/O Memory Area 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 140 Section 4-1 Overview of I/O Memory Area 1:1 Link Area These bits are used by the 1:1 Link Master and Slave. They are used for data links between CP1L-EL/EM 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-EL/EM CPU Units or CP1H CPU Units.
  • Page 141 Section 4-1 Overview of I/O Memory Area Auxiliary Area (A) These words are allocated to specific functions in the system. Refer to Appendix C Auxiliary Area Allocations by Function and Appendix D Auxiliary Area Allocations by Address for details on the Auxiliary Area. Word Read-only area A447...
  • Page 142 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 143 Section 4-1 Overview of I/O Memory Area 4-1-4 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.
  • Page 144: I/O Area And I/O Allocations

    Section 4-2 I/O Area and I/O Allocations Auxiliary Area Flags and Words Name Address Description IOM Hold Bit A500.12 Specifies whether the I/O memory will be retained or not when the CPU Unit operating mode is changed (between PROGRAM and RUN/MONITOR) or when the power is cycled.
  • Page 145 I/O Area and I/O Allocations Section 4-2 4-2-1 I/O Bits Allocated to CPU Units CPU Unit with 20 I/O Points 12 inputs CIO 0 Input bits (CIO 0.00 to CIO 0.11) CIO 100 Output bits (CIO 100.00 to CIO 100.07) 8 outputs CIO 0 Do not use.
  • Page 146 I/O Area and I/O Allocations Section 4-2 For a CPU Unit with 40 I/O points (shown above), a total of 24 input bits are allocated to the input terminal block. 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 147 Section 4-2 I/O Area and I/O Allocations ■ I/O Bit Addresses Units 8 Input Points (CP1W-8ED) Eight input bits are allocated in one word (bits 00 to 07 in CIO m). Inputs Do not use. Only one word (8 bits) is allocated to an 8-input Expansion Input Unit. No out- put words are allocated.
  • Page 148 I/O Area and I/O Allocations Section 4-2 Units with 40 I/O Points (CP1W-40ED@@) Twenty-four input bits in two words are allocated (bits 00 to 11 in CIO m and bits 00 to 11 CIO m+1). Sixteen output bits in two words are allocated (bits 00 to 07 in CIO n and bits 00 to 07 in CIO n+1).
  • Page 149 Section 4-2 I/O Area and I/O Allocations 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.
  • Page 150: Link Area

    Section 4-3 1:1 Link Area ■ I/O Word Allocations to Expansion Units CPU Unit with 40 I/O Points + TS002 + DA041 + 40ED Third Unit: CPU Unit First Unit: Second Unit: Expansion I/O Unit with 40 I/O points Analog Input Unit (40 I/O points) Temperature Sensor Unit CIO 0.00 to CIO 0.11...
  • Page 151: Serial Plc Link Area

    Serial PLC Link Area Section 4-4 Serial PLC Link Area The Serial PLC Link Area contains 1,440 bits (90 words) with addresses rang- ing from 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 152: Internal Work Area

    Section 4-5 Internal Work Area Internal Work Area The Internal Work Area contains 512 words with addresses ranging from W0 to W511. These words can be used in programming as work words. There are unused words in the CIO Area (CIO 3800 to CIO 6143) that can also be used in the program, but use any available words in the Work Area first because the unused words in the CIO Area may be allocated to other applications when functions are expanded.
  • Page 153: Auxiliary Area (A)

    Section 4-7 Auxiliary Area (A) Precautions When a Holding Area bit is used in a KEEP(011) instruction, never use a nor- mally closed condition for the reset input if the input device uses an AC power supply. When the power supply goes OFF or is temporarily interrupted, the input will go OFF before the PLC’s internal power supply and the Holding Area bit will be reset.
  • Page 154: Tr (Temporary Relay) Area

    Section 4-8 TR (Temporary Relay) Area TR (Temporary Relay) Area The TR Area contains 16 bits with addresses ranging from TR0 to TR15. These temporarily store the ON/OFF status of an instruction block for branch- ing and are used only with mnemonics. TR bits are useful when there are sev- eral output branches and interlocks cannot be used.
  • Page 155: Timers And Counters

    Timers and Counters Section 4-9 Timers and Counters 4-9-1 Timer Area (T) The 4,096 timer numbers (T0000 to T4095) are shared by the TIM, TIMX(550), TIMH(015), TIMHX(551), TMHH(540), TIMHHX(552), TTIM(087), TTIMX(555), TIMW(813), TIMWX(816), TMHW(815), and TIMHWX(817) instructions. Timer Completion Flags and present values (PVs) for these instructions are accessed with the timer numbers.
  • Page 156 Timers and Counters Section 4-9 4. The present value of TIM, TIMX(550), TIMH(015), TIMHX(551), TM- HH(540), TMHHX(552), TIMW(813), TIMWX(816), TMHW(815) and TMH- WX(817) timers programmed with timer numbers 0000 to 2047 will be updated even when jumped between JMP and JME instructions or when in a task that is on standby.
  • Page 157: Changing The Bcd Or Binary Mode For Counters And Timers

    Section 4-9 Timers and Counters 4-9-3 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 158: Data Memory Area (D)

    Data Memory Area (D) Section 4-10 4-10 Data Memory Area (D) CPU Units with 30 or 40 I/O points: D0 to D32767 CPU Units with 20 I/O points: D0 to D9999 and D32000 to D32767 CPU Unit with or 20 I/O Points CPU Unit with 30 or 40 I/O Points D9999 D10000...
  • Page 159: Index Registers

    Section 4-11 Index Registers (2) If two-word data is accessed from the last address in the DM Area (D9999 for the CP1L-EL20D@-@ and D32767 for other CPU Units), the Access Error Flag (P_AER) will turn ON and the data at D9999 or D32767 will not be read or written.
  • Page 160 Section 4-11 Index Registers (2) When an Instruction Execution Error or an Illegal Access Error is gener- ated during the execution of a certain instruction, the auto-increment/dec- rement for the rest Index Registers of the instruction will not execute. (3) An Illegal Access Error will be generated when indirectly addressing memory in D10000 to D31999 with Index Registers for CPU Units with 20 I/O Points.
  • Page 161 Index Registers Section 4-11 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 162 Section 4-11 Index Registers Setting Index Registers Always set the required value in an index register before using it. The con- tents of an index register will be unpredictable if it is not set in advance. The contents of an index register is also unpredictable after an interrupt task is started.
  • Page 163: Using Index Registers

    Section 4-11 Index Registers 4-11-1 Using Index Registers Processing of multiple (identical) instructions such as consecutive addresses for table data can be merged into one instruction by combining repetitive pro- cessing (e.g., FOR(513) and NEXT(514)instructions) with indirect addressing using Index Registers, thereby simplifying programming. Instruction execution Table data repeatedly incrementing...
  • Page 164 Section 4-11 Index Registers ■ Example Using Index Registers In the following example, TIM instructions for timer numbers 0 to 99 use set values in D100 to D199. This can be achieved by using one TIM instruction, using an index register for the timer number, using another index register for the Completion Flags, and repeatedly executing the TIM instruction to start the timers.
  • Page 165 Section 4-11 Index Registers W0.00 MOVRW The PLC memory address for the PV area for TO is set in IR0. 0000 D100 W0.00 MOVR The PLC memory address for the T0000 Completion Flag for TO is set in IR1. W0.01 MOVR The PLC memory address for W0.00 0001...
  • Page 166: Precautions For Using Index Registers

    Section 4-11 Index Registers 4-11-2 Precautions for Using Index Registers Precautions Do not use a Index Register until a PLC memory address has been set in the register. The pointer operation will be unreliable if the registers are used with- out setting their values.
  • Page 167 Section 4-11 Index Registers Note Be sure to use PLC memory addresses in Index Registers. IR storage words for task 1 Task 1 D1001 and D1000 stored in IR0 Actual memory address of CIO 0 (0000C000 hex) stored in IR0 Contents of IR0 stored in D01001 and D01000 IR storage words for task 2...
  • Page 168: Data Registers

    Section 4-12 Data Registers 4-12 Data Registers The sixteen Data Registers (DR0 to DR15) are used to offset the PLC mem- ory addresses in 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 169: Task Flags

    Section 4-13 Task Flags Precautions Data Registers are normally local to each task. For example, DR0 used in task 1 is different from DR0 used in task 2. (A PLC Setup setting can be made from the CX-Programmer to share Data Registers between tasks.) The content of Data Registers cannot be accessed (read or written) from the CX-Programmer.
  • Page 170: Condition Flags

    Section 4-14 Condition Flags Name Symbol Function Error Flag P_ER Turned ON when the operand data in an instruction is incorrect (an instruction processing error) to indicate that an instruction ended because of an error. When the PLC Setup is set to stop operation for an instruction error (Instruction Error Operation), program execution will be stopped and the Instruction Processing Error Flag (A29508) will be turned ON when the Error Flag is turned ON.
  • Page 171 Section 4-14 Condition Flags Using the Condition Flags The Condition Flags are shared by all of the instructions, so their status may change often in a single cycle. Be sure to read the Condition Flags immedi- ately after the execution of instruction, preferably in a branch from the same execution condition.
  • Page 172: Clock Pulses

    Section 4-15 Clock Pulses 4-15 Clock Pulses The Clock Pulses are flags that are turned ON and OFF at regular intervals by the system. Name Symbol Operation 0.02 s Clock Pulse P_0_02_s ON for 0.01 s 0.01 s OFF for 0.01 0.01 s 0.1 s Clock Pulse P_0_1s...
  • Page 173: And Debugging

    SECTION 5 CX-Programmer Connection, Program Transfer, Trial Operation, and Debugging This section describes the methods for CX-Programmer connection, the processes used to transfer the program to the CPU Unit and the functions that can be used to test and debug the program. Connecting the CX-Programmer .
  • Page 174: Connecting The Cx-Programmer

    Section 5-1 Connecting the CX-Programmer Connecting the CX-Programmer The CX-Programmer (version 9.4 or higher), which runs on Windows, can be used with CP-series CP1L-EL/EM PLCs. Computers running Support Soft- ware (e.g., the CX-Programmer) can be connected to the Ethernet port or to a serial port.
  • Page 175 Connecting the CX-Programmer Section 5-1 3. Select a target network card to connect with. 4. Open the CX-Programmer and click the PLC button as follow.
  • Page 176 Connecting the CX-Programmer Section 5-1 5. Select the CP1L-Ethernet Online item. The user can also click the button in the Toolbars. 6. Select a connection type a. Choose the Direct Connection item and click the Connect button. Then connection online is completed.
  • Page 177 Section 5-1 Connecting the CX-Programmer b. Choose the Hub Connection item and click Browse button to select the PLC which user wants to connect.
  • Page 178 Connecting the CX-Programmer Section 5-1 Click the Connect button to connect and then connection online is completed.
  • Page 179 Section 5-1 Connecting the CX-Programmer Normal Online To connect with a PLC via Ethernet, there are two types of hardware connec- tions that can be used (Refer to 6-3 Network Installation). These are described in the following table. Connection Type Ethernet - Direct connection Ethernet - HUB connection Connection diagram...
  • Page 180 Section 5-1 Connecting the CX-Programmer 1,2,3... 1. Select the PLC type as CP1L-E in Device Type in the CX-Programmer’s Change PLC Dialog Box. 2. Click the Settings button on the right side of Device Type. Choose the CPU Type.
  • Page 181 Connecting the CX-Programmer Section 5-1 3. Set Ethernet (FINS/TCP) in Network Type. 4. Click the Settings button on the right side of Network Type. The settings in the Network Tab and in the Driver are as follow dialogue boxes.
  • Page 182 Section 5-1 Connecting the CX-Programmer 5. Click [OK] and finish the settings of the direct connection. 6. Then connect to the CP1L-EL/EM by executing the CX-Programmer’s on- line connection command. Ethernet - HUB When the Ethernet port on the computer is connected to a hub and then the connection CX-Programmer is placed online with a PLC through the Ethernet network, this mode can be selected as the connection method.
  • Page 183: Connecting To A Serial Port

    Section 5-1 Connecting the CX-Programmer 4. Set the target PLC’s IP Address. If do not know the target PLC’s IP address, user can click the Browse but- ton on the right side of IP Address and it will show a dialogue box as follow. The CX-Programmer will automatically search all CP1L-EL/EM series PLCs under the same segment in the local area.
  • Page 184 Section 5-1 Connecting the CX-Programmer Connect the CX-Programmer to the RS-232C port of the CP1W-CIF01 Option Board by XW2Z-200S-CV/500S-CV RS-232C cable. Connection Method Connect the Programming Device using the Connecting Cable that is appro- priate for the serial communications mode of the computer and CPU Unit. Computer Connecting Cable CP1L-EL/EM CPU Unit...
  • Page 185: Program Transfer

    Section 5-2 Program Transfer Program Transfer The CX-Programmer is used to transfer the programs, PLC Setup, I/O mem- ory data, and I/O comments to the CPU Unit with the CPU Unit in PROGRAM mode. The following procedure is used. 1,2,3... 1.
  • Page 186: Differential Monitoring

    Section 5-3 Trial Operation and Debugging 5-3-2 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 187: Online Editing

    Section 5-3 Trial Operation and Debugging 5-3-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 188 Section 5-3 Trial Operation and Debugging 4. Edit the instructions. 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 189: Tracing Data

    Section 5-3 Trial Operation and Debugging Related Auxiliary Bits/Words Name Address Description Online Edit Disable Bit Validator A527.00 to Enables using the Online Edit Disable Bit (A527.09). A527.07 Not 5A: Online Edit Disable Bit disabled. Online Edit Disable Bit enabled. Online Edit Disable Bit A527.09 To disable online editing, set the Online Edit Disable Bit Validator...
  • Page 190 Section 5-3 Trial Operation and Debugging Note Use the CX-Programmer to turn ON the Sampling Start Bit (A508.15). Never turn ON this bit from the user program. Sampling Start Bit Trace Start Bit Trace Trigger Monitor Flag Trace Busy Flag Trace Completed Flag Sampling The following traces can be executed.
  • Page 191 Section 5-3 Trial Operation and Debugging Related Auxiliary Bits/Words Name Address 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.
  • Page 192 Section 5-3 Trial Operation and Debugging...
  • Page 193: Ethernet

    6-1-1 Connecting the CX-Programmer to PLCs Online via Ethernet ..6-1-2 Exchanging Data between OMRON PLCs using Ethernet ..6-1-3 Creating an Original Communications Procedure Using TCP/IP (UDP/IP) for the Host Application or Communicating with PLCs from Another Manufacturer .
  • Page 194: System Configuration And Features

    Ethernet network. The protocols can be selected include sending and receiving data by TCP/IP or UDP/IP (socket services), sending and receiving commands by OMRON's standard protocol FINS, and automatically adjusting the PLC's internal clock by SNTP.
  • Page 195 Use the UDP/IP version of the FINS communications service (i.e., FINS/ Same Segment UDP). FINS/UDP is supported by many OMRON products and is compatible with earlier Ethernet Units (CS1W-ETN21, CJ1W-ETN21 and CP1W-CIF41). The CX-Programmer can be connected and used with FINS/UDP.
  • Page 196 Section 6-1 System Configuration and Features 6-1-3 Creating an Original Communications Procedure Using TCP/IP (UDP/IP) for the Host Application or Communicating with PLCs from Another Manufacturer Communications by UDP/ The standard Ethernet protocols, UDP/IP and TCP/IP, are supported, making IP and TCP/IP (Socket it possible to communicate with a wide range of devices, workstations, com- Services Function) puters, and Ethernet Units from other manufacturers.
  • Page 197 Section 6-2 Specifications Specifications 6-2-1 General Specifications (Ethernet) Item Specifications Type 100/10Base-TX (Auto-MDIX) Transfer Media access method CSMA/CD Modulation method Baseband Transmission paths Star form Baud rate 100 Mbit/s (100Base-TX) 10 Mbit/s (10Base-T) • Half/full auto-negotiation for each port • Link speed auto-sensing for each port Transmission media •...
  • Page 198 Section 6-2 Specifications Model CP1L-EL/EM CP1W-CIF41 CS1W-ETN21 CJ1W-ETN21 A computer automatically A computer automatically FINS Automatic IP address A computer automatically acquiring IP addresses comm. acquisition acquiring IP addresses acquiring IP addresses can send commands to service can send commands to can send commands to the PLC and receive the PLC and receive...
  • Page 199: Network Installation

    Recommended products The following products are recommended for use with the CP1L-EL/EM series PLC. Model Part Maker Specifications Inquires number 100BASE-TX OMRON W4S1-03B 10/100 Mbit/s 3-port hub OMRON W4S1-05B 10/100 Mbit/s 5-port hub PHOE- SWITCH 10/100 Mbit/s 5-port hub CON-...
  • Page 200 Section 6-3 Network Installation Precautions on Laying Twisted-pair Cable Basic Precautions • Press the cable connector in firmly until it locks into place at both the hub and the PLC. • After laying the twisted-pair cable, check the connection with a 10Base-T cable tester.
  • Page 201: Basic Setting For Ethernet

    Section 6-4 Basic Setting for Ethernet 1,2,3... 1. Lay the twisted-pair cable. 2. Connect the cable to the hub. Be sure to press in the cable until it locks into place. Request cable installation from a qualified professional. 3. Connect the cable to the connector on the PLC. Be sure to press in the ca- ble until it locks into place.
  • Page 202 Section 6-4 Basic Setting for Ethernet 6-4-2 PLC Setup Procedure Use the CX-Programmer (Ver. 9.40 or higher) for the CP1L-EL/EM Setup, and follow the procedure described below. 1,2,3... 1. Connect the CX-Programmer online. The CX-Programmer can be connected to the PLC in either of the following ways: a.
  • Page 203 Section 6-4 Basic Setting for Ethernet 4. Transfer the settings to the PLC. Click on Yes in the following dialog box. 5. In order for the Ethernet Setup to go into effect, the Ethernet Port must be restarted. Please use the following way to reset CP1L built-in Ethernet Port. After the LNK/ACT indicator has turned OFF and then turned ON again (Ethernet cable should be connected), the Ethernet port will recognize the new settings.
  • Page 204 Section 6-4 Basic Setting for Ethernet 6-4-3 Basic Settings The following items comprise the basic settings in the PLC’s Ethernet port setup. Basic Setting CX-Programmer tab Settings Built-in Ethernet IP address Subnet mask Broadcast settings TCP/IP keep-alive IP router table CX-Programmer Setup Move the cursor to the Settings and double click.
  • Page 205 Basic Setting for Ethernet Section 6-4 Note (1) Make settings using the PLC settings function in the CX-Programmer (to be included in version 9.4 and higher). (2) For details, refer to 2-9 Basic Settings in the Ethernet Units Construction of Networks Operation Manual (Cat. No. W420-E1). 6-4-4 Communications Test If the basic settings (in particular the IP address and subnet mask) have been...
  • Page 206: Fins Communications

    FINS Communications Section 6-5 FINS Communications 6-5-1 FINS Communications Service Specifications Item Specification Number of nodes Message Length 1016 bytes max. Date Length (See note 1.) 1004 bytes max. Number of buffer Protocol name FINS/UDP method FINS/TCP method Protocol used UDP/IP TCP/IP The selection of UDP/IP or TCP/IP is made by means of the FINS/UDP or FINS/TCP but-...
  • Page 207 Section 6-5 FINS Communications 6-5-2 FINS Communications Service Basic Functions FINS commands can be sent to or received from other PLCs or computers on the same Ethernet network by executing SEND(090), RECV(098), or CMND(490) instructions in the ladder diagram program. This enables various control operations such as the reading and writing of I/O memory between PLCs, mode changes.
  • Page 208 FINS Communications Section 6-5 • When routing tables are used for one or more other nodes on the same network. It is not necessary to set routing tables if the nodes are connected as one network. Procedure for Using FINS/TCP 1.
  • Page 209 Section 6-5 FINS Communications CX-Programmer Setup FINS/UDP Move the cursor to the Settings and double click. Select the Built-in Ethernet Tab. Click the FINS/UDP Setting button to display the FINS/UDP setup dialog. Item Contents Default FINS/UDP Port Specify the local UDP port number to be used for the FINS communica- tions service.
  • Page 210 Section 6-5 FINS Communications FINS/TCP Move the cursor to the Settings and double click. Select the Built-in Ethernet Tab. Click the FINS/TCP Setting button to display the FINS/TCP setup dialog. Item Contents Default FINS/TCP Port Specify the local TCP port number to be used for the FINS communications service.
  • Page 211 FINS Communications Section 6-5 The following settings can be made for each connection number. Item Contents Default FINS/TCP For each connection number, this setting specifies Server Server/Client the PLC for use as either a server or a client. • When the PLC is used as a server: The PLC opens a connection with that connection number and waits for service requests (FINS com- mands) from clients.
  • Page 212 Section 6-5 FINS Communications 6-5-5 Memory Allocations Auxiliary Area Allocation The following table and descriptions cover the words and bits in the Auxiliary Area of PLC memory that are related to the FINS/UDP and FINS/TCP. Ethernet Status Address Bit(s) Name Status Manipulated Unit operation...
  • Page 213 Section 6-5 FINS Communications Address Bit(s) Name Status Manipulated Unit operation Access FINS/TCP Unit Turned ON by the Unit when a connection is Read only Connection established. Flag 1 Unit Turned OFF by the Unit when the connection is terminated. FINS/TCP Unit Turned ON by the Unit when a connection is...
  • Page 214 Section 6-5 FINS Communications 6-5-6 New FINS Commands New FINS Commands Code List The command codes listed in the following table are new added commands to CP1L-EL/EM series PLC. For the details of other FINS commands, refer to the SYSMAC CS/CJ/CP/NSJ- series Communications Commands Reference Manual (Cat.
  • Page 215 Section 6-5 FINS Communications The MRES codes are shown in the following table along with the results they indicate. MRES Execution results Normal completion Local node error Remote node error Unit error (controller error) Service not supported Routing error Command format error Parameter error Status error Operating environment error...
  • Page 216 Section 6-5 FINS Communications RESET: 0403 Reset the Ethernet Unit. Command Block 04 03 Command code Response Block 04 03 Command Response code code Precautions No response will be returned if the command ends normally. A response will be returned only if an error occurs. In some cases, send requests (SEND/RECV instructions) made from the PLC to the built-in Ethernet port just before execution of the RESET command may not be executed.
  • Page 217 Section 6-5 FINS Communications Mode Setting (Response) The mode setting in the system setup is returned. 0 Bit Broadcast address setting IP address conversion method FINS/UDP port No. setting FINS/TCP port No. setting FINS/UDP destination IP mode SNTP server specification method Broadcast Address Setting 0: Broadcast with host number set to all ones (4.3BSD specifications) 1: Broadcast with host number set to all zeroes (4.2BSD specifications)
  • Page 218 Section 6-5 FINS Communications The destination unit address (DA2) in FINS frame should be set as 0x00. Command code Name FINS/TCP CONNECTION REMOTE NODE CHANGE REQUEST FINS/TCP CONNECTION STATUS READ IP ADDRESS TABLE WRITE IP ROUTER TABLE WRITE IP ADDRESS TABLE READ IP ROUTER TABLE READ FINS/TCP CONNECTION REMOTE NODE CHANGE REQUEST: 2730 Requests a remote node change for the FINS/TCP connection.
  • Page 219 Section 6-5 FINS Communications FINS/TCP CONNECTION STATUS READ: 2731 Reads the FINS/TCP connection status. Command Block 27 31 Command FINS/TCP code connection No. Response Block 27 31 Command Response FINS/TCP Connection Local IP address Local TCP Remote IP Remote TCP TCP transition code code...
  • Page 220 Section 6-5 FINS Communications Number Status Meaning 00000009 FIN WAIT 2 Completed and ACK received. Awaiting FIN. 0000000A TIME WAIT After closing, pauses twice the maximum seg- ment life (2MSL). Response Codes Response code Description 0000 Normal 0105 Node address setting error Local IP address setting error 0302 CPU Unit error;...
  • Page 221 Section 6-5 FINS Communications Response Codes Response code Description 0000 Normal (echo reply received from the remote node) 1001 Command too large 1002 Command too small 1003 The number of records specified does not match the sent data length. 110C The number of records is not between 0 and 32.
  • Page 222 Section 6-5 FINS Communications Response Codes Response code Description 0000 Normal 1001 Command too large 1002 Command too small 1003 The number of records specified does not match the sent data length. 110C The number of records is not between 0 and 8. The router IP address is 0.
  • Page 223 Section 6-5 FINS Communications Precautions If the IP address table contains fewer records than the number specified in the number of records parameter, all the records contained in the IP address table when the command is executed will be returned and the command execution will end normally.
  • Page 224 Section 6-5 FINS Communications IP Network Address The network ID from the IP address in hexadecimal. The network ID part cor- responding to the address class (determined by the leftmost 3 bits) set here, is enabled. Router IP Address The IP address (in hexadecimal) of a router connected to a network specified with IP addresses.
  • Page 225: Socket Services

    Section 6-6 Socket Services 0.00 A202.07 CMND D00100 D00200 D00300 Command code: 0501 hex(Controller Inforamtion Read) S: D00100 0 Bytes of command data: 0002 hexadecimal (2 decimal) D: D00300 0 Bytes of response data: 003E hexadecimal (62 decimal) C+1: D00301 0 Transmit to the local network and the device itself C+2: D00302 0 Node number 3, unit address FA (Built-in Ethernet Port)
  • Page 226 Section 6-6 Socket Services 6-6-2 Procedure for Using Socket Service Functions Procedure for Using Socket Service Functions 1. Make the basic settings. Refer to 6-4-3 Basic Settings. 2. Use the CX-Programmer or Programming Console to make the socket service settings in the socket service parameter areas 1 to 3 (m+8 to m+37) allocated in the DM Area.
  • Page 227 Section 6-6 Socket Services 6-6-3 Socket Services and Socket Status When using socket services, it is important to consider the timing of the status changes in the Socket Status Area. The diagram below shows a flowchart for opening UDP. The flow is similar for other socket services. Replace the names of the appropriate flags in the flowchart to adapt it to other socket services.
  • Page 228 Section 6-6 Socket Services 6-6-4 PLC Setup for Socket Services Socket Services CX-Programmer tab Setting Built-in Ethernet Keep-alive Item Contents Default TCP/IP keep-alive Set the liveness-checking interval. When socket services using either FINS/TCP or TCP/IP are used, the connection will be terminated if there is (120 minutes) no response from the remote node (either a server or client) within the time set here.
  • Page 229 Section 6-6 Socket Services 6-6-5 Auxiliary Area Allocation The following table and descriptions cover the words and bits in the Auxiliary Area of PLC memory that are related to the socket services. Ethernet Status Address Bit(s) Name Status Manipulated Unit operation Access 0 to 13 Reserved Read only...
  • Page 230 Section 6-6 Socket Services Address Bit(s) Name Status Manipulated Unit operation Access FINS/TCP Unit Turned ON by the Unit when a connection is Read only Connection established. Flag 1 Unit Turned OFF by the Unit when the connection is terminated. FINS/TCP Unit Turned ON by the Unit when a connection is...
  • Page 231 Section 6-6 Socket Services Flag Status Manipulated Unit operation Access Opening Flag Unit ON during open processing. (Turns Read only ON when open request is received.) Unit OFF when open processing has been completed. Receiving Flag Unit ON during receive processing. (Turns ON when receive request is received.) Unit...
  • Page 232 Section 6-6 Socket Services Switch Status Manipulated Unit operation Access UDP Open Request User UDP socket opened when switch is turned Read/Write Switch Unit Unit turns OFF switch when open processing has been completed (i.e., when a connection has been made). TCP Passive Open User Passive TCP socket opened when switch is...
  • Page 233 Section 6-6 Socket Services 6-6-6 Data Memory Area Allocations The memory allocation about socket service is shown in the following dia- gram. These data will be allocated to the DM area of the PLC. Beginning word m = 32400 Offset Word 08 07 D32400...
  • Page 234: Parameter Settings

    Section 6-6 Socket Services Socket Services Parameter Area 1 to 3 Offset Socket Socket No. 1 No. 3 15 14 13 12 11 10 9 m+28 Socket option UDP/TCP socket number (1 to 3) m+29 Local UDP/TCP port number (0000 to FFFF Hex) m+10 m+30 Remote IP address...
  • Page 235 Section 6-6 Socket Services TCP Socket Services Parameter No. of Range Socket service words (decimal values in parentheses) passive active receive send close open open Socket option Specified bit UDP/TCP socket No. 0001 to 0003 hexadecimal (1 to 3) Local UDP/TCP port 0000 to FFFF hexadecimal (0 to 65,535) Remote IP address...
  • Page 236 Section 6-6 Socket Services Remote IP Address Specify the IP address of the remote device. • Offset +2 in the Socket Service Parameter Area contains the upper bytes of the Remote IP Address, and offset +3 contains the lower bytes. Example: The contents of offsets +2 and +3 would be as shown below when the Remote IP Address is 196.36.32.55 (C4.24.20.37 hexadeci- mal).
  • Page 237 Section 6-6 Socket Services Number of Bytes to Send/ Send the number of bytes to be sent or the number of bytes to receive. When Receive the transfer has been completed, the actual number of bytes that have been sent or received will be written here. Send/Receive Data Specify the address of the first word to send or the address of the first word Address...
  • Page 238 Section 6-6 Socket Services UDP Socket Receive Request Response Meaning code 0000 Normal end 0302 CPU Unit error; cannot execute. 1100 Number of bytes to receive is not in allowable range. 1101 The area designation of the Send/Receive Data Address is not inallowable range.
  • Page 239 Section 6-6 Socket Services TCP Socket Passive Open Request Response Meaning code 0000 Normal end 0105 Local IP address setting error. 1100 TCP socket number is not 1 to 8 or local TCP port number is 0. 110C Request Switch turned ON during other processing. 220F Specified socket is already open or already processing an openrequest.
  • Page 240 Section 6-6 Socket Services TCP Socket Receive Request Response Meaning code 0000 Normal end 0302 CPU Unit error; cannot execute. 1100 Number of receive bytes not in allowable range. 1101 The area designation of the Send/Receive Data Address is not inallowable range.
  • Page 241 Section 6-6 Socket Services TCP Socket Close Request Responsecode Meaning 0000 Normal end 0302 CPU Unit error; cannot execute. 2210 The specified socket is not been connected. 2607 Specified Socket Service Parameter Area is already being used foranother socket. Note These response codes will be returned only on large, multilevel networks.
  • Page 242 Section 6-6 Socket Services Program Memory Map The send and receive data and bits (flags) used by the program are shown in the following diagram. DM Area DM00000 Send data, 100 bytes (100 = 0064 Hex) DM00049 DM01000 Receive data, 100 bytes (100 = 0064 Hex) DM01049 WR Area Receive...
  • Page 243 Section 6-6 Socket Services Programming Example W0.00 TCP Passive Open When the TCP Open Bit (W0.00) turns ON, the TCP @RSET W1.00 Open Error Flag (W1.00) is turned OFF and the TCP Opening Flag (W2.00) is turned ON to initialize @SET processing.
  • Page 244 Section 6-6 Socket Services Continued from previous page. W0.02 TCP Send When the TCP Send Bit (W0.02) turns ON, the TCP Send Error @RSET W1.02 Flag (W1.02) is turned OFF and the TCP Sending Flag (W2.02) is turned ON to initialize processing. @SET W2.02 W0.02...
  • Page 245: Automatic Clock Adjustment And Specifying Servers By Host Name

    Automatic Clock Adjustment and Specifying Servers by Host Name Section 6-7 Automatic Clock Adjustment and Specifying Servers by Host Name 6-7-1 Automatic Clock Adjustment Function The built-in clock of the PLC connected to the Ethernet can be automatically adjusted, with the SNTP server clock taken as the standard. Automatic adjust- ments through the entire system enable the various records generated by pro- duction equipment to be managed according to clock information and analyzed.
  • Page 246 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6-7 6-7-3 Procedure for Using the Automatic Clock Adjustment Function 1. Make the basic settings. Refer to 6-4-3 Basic Settings. 2. With the CX-Programmer online, set the following items in the PLC Setup. •...
  • Page 247 Section 6-7 Automatic Clock Adjustment and Specifying Servers by Host Name CX-Programmer Setup DNS Setting Move the cursor to the Settings and double click. Select the Built-in Ethernet Tab. Click the DNS Setting button to display the DNS setup dialog. Item Contents Default...
  • Page 248 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6-7 Item Contents Default Obtain clock If this option is selected, the CPU Unit’s clock is set to data from SNTP the time at the SNTP server’s clock. checked server Auto Adjustment Set the time at which the SNTP server is to be 0:0:0 accessed to synchronize the clocks.
  • Page 249 Section 6-7 Automatic Clock Adjustment and Specifying Servers by Host Name 6-7-5 Memory Allocations Auxiliary Area Allocation The following table and descriptions cover the words and bits in the Auxiliary Area of PLC memory that are related to the Automatic Clock Adjustment and Specifying Servers by Host Name function.
  • Page 250 Section 6-7 Automatic Clock Adjustment and Specifying Servers by Host Name...
  • Page 251: Pulse And Counter Functions

    SECTION 7 Pulse and Counter Functions This section describes the CP1L-EL/EM’s interrupt and high-speed counter functions. High-speed Counters..........7-1-1 Overview.
  • Page 252: High-Speed Counters

    Section 7-1 High-speed Counters High-speed Counters 7-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 253 Section 7-1 High-speed Counters 7-1-2 High-speed Counter Specifications Specifications Item Specification Number of high-speed counters 2 (High-speed counters 0 and 1) 4 (High-speed counters 0 to 3) Pulse input modes (Selected in the PLC Differential phase Up/down inputs Pulse + direction Increment inputs Setup) inputs...
  • Page 254 Section 7-1 High-speed Counters Auxiliary Area Data Allocation Function High-speed counter number PV storage words Leftmost 4 digits A271 A273 A317 A319 Rightmost 4 digits A270 A272 A316 A318 Range Comparison Con- Range 1 Comparison Condition Met Flag A274.00 A275.00 A320.00 A321.00 dition Met Flags...
  • Page 255 High-speed Counters Section 7-1 Conditions for Incrementing/Decrementing the Count Direction Pulse Count value signal signal ↑ No change ↑ Increment ↓ No change ↓ No change ↑ Decrement ↑ No change ↓ No change ↓ No change • The count is incremented when the direction signal is ON and decre- mented when it is OFF.
  • Page 256 High-speed Counters Section 7-1 • Only up-differentiated pulses (rising edges) can be counted. Note The count of the high-speed counter can be monitored to see if it is currently being incremented or decremented. The count in the current cycle is com- pared with the count in the previous cycle to determine if it is being incre- mented or decremented.
  • Page 257 Section 7-1 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 Phase-Z Signal + Software The high-speed counter's PV is reset when the phase-Z signal (reset input)
  • Page 258 High-speed Counters Section 7-1 7-1-3 Procedure • High-speed counters 0 to 3: 24 VDC input, Response frequency: 100 kHz for single-phase, 50 kHz for Select high-speed counter 0 to 3. differential phase • Pulse input methods: Differential phase (4x), Pulse + direction, Up/Down, or Increment Select the pulse input method, reset •...
  • Page 259 Section 7-1 High-speed Counters 7-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 Counting mode Linear mode Circular mode (ring mode)
  • Page 260 Section 7-1 High-speed Counters 7-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 20 I/O Points Down, or Pulse + Direction High-speed counter 1 (Phase B, Decrement, or...
  • Page 261 High-speed Counters Section 7-1 Increment Pulse Inputs Input Terminal Arrangement for CPU Units with 20 I/O Points High-speed counter 1 High-speed counter 3 (Phase Z or Reset input) (Increment) High-speed counter 3 High-speed counter 1 (Phase Z or Reset input) (Increment) Upper Terminal Block CO M...
  • Page 262 Section 7-1 High-speed Counters CPU Units with 20, 30 or 40 I/O Points Address Default setting High-speed counter operation settings: Origin searches Word CPU Units CPU Units CPU Units Single-phase Two-phase (differential Origin searches with 40 I/O with 30 I/O with 20 I/O (increment pulse phases x4, up/down,...
  • Page 263: Ladder Program Example

    Section 7-1 High-speed Counters 7-1-6 Pulse Input Connection Examples Encoders with 24 VDC Open-collector Outputs This example shows how to connect an encoder that has phase-A, phase-B, and phase-Z outputs. CP1L-EL/EM CPU Unit (Differential Input Mode) Phase A Black (High-speed counter 0: Phase A, 0 V) 0.00 Encoder (Power: 24 VDC)
  • Page 264 Section 7-1 High-speed Counters ■ I/O Allocations Input Terminals Input terminal Usage Word CIO 0 High-speed counter 0 phase-A input (See note.) High-speed counter 0 phase-B input (See note.) Start measurement by pushbutton switch (normal input). Detect trailing edge of measured object (normal input). Detect leading edge of measured object for high-speed counter 0 phase-Z/reset input (see note).
  • Page 265 Section 7-1 High-speed Counters ■ I/O Wiring Input Wiring Upper Terminal Block Measurement start switch Output Wiring CIO 100 PL1: OK indicator PL2: NG indicator CIO 101 Bottom terminal block (Example: Relay Output Models) COM COM COM CIO 101 CIO 100 ■...
  • Page 266: Additional Capabilities And Restrictions

    Section 7-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 Range 8 settings D10038 (Not used and don’t need to be set.)
  • Page 267 Section 7-1 High-speed Counters Starting Interrupt Tasks based on Comparison Conditions Data registered in advance in a comparison table can be compared with the actual counter PVs during operation. The specified interrupt tasks (registered in the table) will be started when the corresponding comparison condition is met.
  • Page 268 Section 7-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. Range Comparison The specified interrupt task is executed when the high-speed counter PV is within the range defined by the upper and lower limit values.
  • Page 269 Section 7-1 High-speed Counters When the High-speed Counter Gate Bit is turned OFF again, the high-speed counter will resume counting and the counter 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.) High-speed Counter Frequency Measurement...
  • Page 270: Pulse Outputs

    Section 7-2 Pulse Outputs Pulse Frequency Conversion 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. This function is supported only for high-speed counter 0.
  • Page 271 Section 7-2 Pulse Outputs ■ Automatic Direction Selection for Easy Positioning with Absolute Coordinates When operating in absolute coordinates (origin defined or PV changed with the INI(880) instruction), the CW/CCW direction will be selected automatically when the pulse output instruction is executed. (The CW/CCW direction is selected by determining whether the number of pulses specified in the instruction is greater than or less than the pulse output PV.) ■...
  • Page 272 Section 7-2 Pulse Outputs Purpose Function Description Perform origin search Origin functions (Origin search and Origin search and origin return operations can be exe- and origin return opera- origin return) cuted through pulse outputs. tions. • 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)).
  • Page 273: Pulse Output Specifications

    Section 7-2 Pulse Outputs 7-2-2 Pulse Output Specifications Specifications Item Specifications Output mode Continuous mode (for speed control) or independent mode (for position control) Positioning (independent mode) PULS(886) and SPED(885), PULS(886) and ACC(888), or PLS2(887) instructions Speed control (continuous mode) SPED(885) or ACC(888) instructions Origin (origin search and origin...
  • Page 274 Section 7-2 Pulse Outputs 7-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 20 I/O Points Lower Terminal Block (Example: Sinking Transistor Outputs) Pulse output 1 (CW/pulse) Pulse output 0 (CCW/direction/PWM output 0) Origin search 0...
  • Page 275 Pulse Outputs Section 7-2 ■ Setting Functions Using Instructions and PLC Setup Output When the When a pulse output instruction When the origin search When the PWM terminal instructions to (SPED, ACC, PLS2, or ORG) is executed function is enabled in instruction is block the right are not...
  • Page 276 Pulse Outputs Section 7-2 ■ Setting Functions Using Instructions and PLC Setup CPU Units with 20, 30 or 40 I/O Points Address Default setting High-speed counter operation settings: Origin searches Word CPU Units CPU Units CPU Units Single-phase Two-phase Origin searches with 40 I/O with 30 I/O with 20 I/O...
  • Page 277 Section 7-2 Pulse Outputs Auxiliary Area Data Allocation Function Pulse output number Pulse output PV storage words Leftmost 4 digits A277 A279 PV range: 8000 0000 to 7FFF FFFF hex Rightmost 4 digits A276 A278 (−2,147,483,648 to 2,147,483,647) Reset Bits 0: Not cleared.
  • Page 278: Pulse Output Patterns

    Pulse Outputs Section 7-2 7-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 Description Procedure application...
  • Page 279 Section 7-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 Present frequency ous) ↓...
  • Page 280 Section 7-2 Pulse Outputs Independent Mode (Positioning) Starting a Pulse Output Operation Example Frequency changes Description Procedure application Instruction Settings Output with Positioning Starts outputting PULS(886) • Number of Specified number of specified without accel- Pulse frequency pulses at the speci- ↓...
  • Page 281 Pulse Outputs Section 7-2 Changing Settings Operation Example Frequency changes Description Procedure application Instruction Settings Change Changing SPED(885) can be PULS(886) • Number of Specified number Pulse speed in the speed in executed during pulses ↓ of pulses frequency Number of pulses one step one step dur- (Specified with...
  • Page 282 Section 7-2 Pulse Outputs Operation Example Frequency changes Description Procedure application Instruction Settings Change tar- Change the PLS2(887) can be PULS(886) • Number of Number of pulses get position target posi- executed during ↓ pulses Specified changed with Pulse tion during positioning to •...
  • Page 283 Section 7-2 Pulse Outputs Operation Example Frequency changes Description Procedure application Instruction Settings Change Change the PLS2(887) can be PULS(886) • Number of Specified direction direction dur- executed during ↓ pulses number of Pulse ing position- positioning with rel- • Absolute ACC(888) pulses frequency...
  • Page 284 Section 7-2 Pulse Outputs Switching from Continuous Mode (Speed Control) to Independent Mode (Positioning) Example applica- Frequency changes Description Procedure tion Instruction Settings Change from speed PLS2(887) can be ACC(888) • Port Outputs the number of control to fixed dis- executed during a (Continu- •...
  • Page 285 Section 7-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 286 Section 7-2 Pulse Outputs Pulse output Coordinate system specified in Relative coordinate system Absolute coordinate system PULS(886) or Origin not established: Origin established: PLS2(887) The No-origin Flag will be ON in this case. The No-origin Flag will be OFF in this case. Absolute pulse The absolute pulse specification cannot be Positions the system to an absolute position rel-...
  • Page 287 Section 7-2 Pulse Outputs Current status PROGRAM mode RUN mode or MONITOR mode Operation Origin Origin not Origin Origin not established established established established Instruc- Origin search Status Status tion exe- performed by changes to changes to cution ORG(889) “Origin “Origin established.”...
  • Page 288 Section 7-2 Pulse Outputs Output Pattern The output pattern for S-curve acceleration/deceleration is shown below. Example for PLS2(887) Pulse frequency Max. acceleration is 1.5 times set acceleration Deceleration Target specified Acceleration frequency for S-curve specified deceleration for S-curve acceleration deceleration acceleration Specified number of...
  • Page 289 Section 7-2 Pulse Outputs Procedure Make the following settings in the PLC Setup. Pulse Output 0 to 3 Speed Curve Trapezium When a pulse output is executed with accelera- tion/deceleration, this setting determines S-shaped whether the acceleration/deceleration rate is lin- ear (trapezium) or S-shaped.
  • Page 290: Origin Search And Origin Return Functions

    Section 7-2 Pulse Outputs Equations Source clock frequency Actual frequency (Hz) = Dividing ratio (Clock frequency x 2) + Set frequency Dividing ratio = INT Set frequency (Hz) x 2 The INT function extracts an integer from the fraction. The non-integer remainder is rounded.
  • Page 291 Section 7-2 Pulse Outputs 2. Changing the Pulse Output PV When you want to set the current position as the origin, execute INI(880) to reset the pulse output PV to 0. The origin location can be determined after using either method. The CP1L-EL/EM CPU Units are also equipped with the origin return function, which can be executed to return the system to the origin after the origin loca- tion has been determined by one of the methods above.
  • Page 292 Section 7-2 Pulse Outputs Procedure • Output: Connect the outputs using the CW/CCW method or pulse + direction method. The same method must be used for all of the pulse outputs. Power supply for outputs: 24 V DC • Inputs: Connect the Origin input Signal, Near Origin Input Signal, and Positioning Complete Signal to the built-in input terminals allocated to the pulse output Wire the pulse output...
  • Page 293 Section 7-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. (This setting is called the Limited Input Signal Operation setting.) ■...
  • Page 294 Section 7-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. Explanation of the Origin Search Parameters Operating Mode The operating mode parameter specifies the kind of I/O signals that are used...
  • Page 295 Section 7-2 Pulse Outputs Origin Input Signal goes from OFF to ON while motor is decelerating. Origin Proximity Input Signal Origin Input Signal Original pulse output pattern Pulse output Origin Input Signal Starts when Error (error code ORG(889) is 0202) executed.
  • Page 296 Section 7-2 Pulse Outputs Verify that the Origin Proximity Input Signal's dog setting is long enough Origin Proximity (longer than the deceleration time.) Input Signal Origin Input Signal (Phase-Z signal) Origin Input Signal is ignored during Motor stopped by an Origin deceleration.
  • Page 297 Section 7-2 Pulse Outputs If origin compensation is not being applied, the Positioning Completed Signal is checked after the Error Counter Reset Output. If origin compensation is being applied, the Positioning Completed Signal is checked after the compen- sation operation is completed. Pulse output Time Stop...
  • Page 298 Section 7-2 Pulse Outputs Origin Detection Method 1: Origin Proximity Input Signal Reversal Not Required Deceleration starts when Origin Proximity Input Signal goes OFF→ON. Origin Proximity Input Signal After the Origin Proximity Input Signal has gone from OFF→ON→OFF, the motor is stopped when the Origin Input Signal goes OFF→ON.
  • Page 299 Section 7-2 Pulse Outputs Using Reversal Mode 1 Origin search 0: Reversal mode 1 operation Origin detection method 0: Origin Prox- Origin Proximity imity Input Sig- Input Signal nal reversal Origin Input required. Signal High speed for origin search Pulse output Proximity speed for origin search Stop Start...
  • Page 300 Section 7-2 Pulse Outputs Using Reversal Mode 2 Origin search 1: Reversal mode 2 operation Origin detection method 0: Origin Proximity Input Origin Proximity Signal reversal required. Input Signal Origin Input Signal Pulse output Stop Start CW limit input signal Stop (See note.) Start...
  • Page 301 Section 7-2 Pulse Outputs Origin search 1: Reversal mode 2 operation Origin detection method 2: Origin Proximity Input Origin Input Signal not used. Signal Proximity speed for origin search Pulse output Stop Start CW limit input signal (See note.) Stop Start Start Limit stop (error code 0201)
  • Page 302 Section 7-2 Pulse Outputs Once the origin has been detected in an origin search, the number of pulses specified in the origin compensation is output, the current position is reset to 0, and the pulse output's No-origin Flag is turned OFF. Setting range: 8000 0000 to 7FFF FFFF hex (−2,147,483,648 to 2,147,483,647) pulses I/O Settings...
  • Page 303: Related Auxiliary Area Flags

    Section 7-2 Pulse Outputs Function Operation Positioning with absolute Cannot be used. pulse specification Positioning with relative Outputs the specified number of pulses after setting the pulse specification current position to 0. 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 304 Section 7-2 Pulse Outputs Error name Error code Likely cause 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 305 Pulse Outputs Section 7-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 306 Pulse Outputs Section 7-2 I/O Allocations (Example: CP1L-EM40/30 DT@-D, CP1L-EL20D@-D Units) ■ Inputs Input terminal Name 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...
  • Page 307: Origin Return

    Section 7-2 Pulse Outputs Function Setting (example) Pulse Output 0 Origin Search Proximity Speed 03E8 hex (1,000 pps) 0000 hex Pulse Output 0 Origin Compensation 0000 hex 0000 hex Pulse Output 0 Origin Search Acceleration Rate 0032 hex (50 Hz/4 ms) Pulse Output 0 Origin Search Deceleration Rate 0032 hex (50 Hz/4 ms) Pulse Output 0 Limit Input Signal Type...
  • Page 308 Pulse Outputs Section 7-2 Procedure 1. Starting Speed for Origin Search and Origin Return 2. Origin return target speed Determine the origin return parameters. 3. Origin return acceleration rate 4. Origin return deceleration rate • Outputs: Use either the CW/CCW method or Pulse + direction method.
  • Page 309: Pulse Output Procedures

    Section 7-2 Pulse Outputs 7-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 310 Section 7-2 Pulse Outputs Single-phase Pulse Output with Acceleration/Deceleration ■ 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.
  • Page 311: Instructions Used For Pulse Outputs

    Pulse Outputs Section 7-2 Pulse Output with Trapezoidal Acceleration/Deceleration (Using PLS2(887)) • 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.
  • Page 312 Section 7-2 Pulse Outputs 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 without with Trapezoi-...
  • Page 313 Section 7-2 Pulse Outputs SET PULSES: PULS(886) PULS(886) is used to set the pulse output amount (number of output pulses) for pulse outputs that are started later in the program using SPED(885) or ACC(888) in independent mode. PULS(886) P: Port specifier T: Pulse type N: Number of pulses Operand...
  • Page 314 Section 7-2 Pulse Outputs ACCELERATION Use ACC(888) to set the target frequency and acceleration and deceleration CONTROL: ACC(888) rate and output pulses with acceleration and deceleration. (Acceleration rate is the same as the deceleration rate.) Either independent mode positioning or constant mode speed control is possi- ble when used in combination with PULS(886).
  • Page 315 Section 7-2 Pulse Outputs Operand Contents Port specifier 0000 hex: Pulse output 0 0001 hex: Pulse output 1 Output Bits 0 to 3 Mode mode 0000 hex: Relative pulse output 0001 hex: Absolute pulse output Bits 4 to 7 Direction 0 hex: CW 1 hex: CCW Bits 8 to 11...
  • Page 316 Section 7-2 Pulse Outputs Operand Contents Port specifier 0000 hex: Pulse output 0 0001 hex: Pulse output 1 Con- Bits 0 to 3 Not used. (Always 0 hex.) trol Bits 4 to 7 Not used. (Always 0 hex.) data Bits 8 to 11 Pulse output method (See note.) 0 hex: CW/CCW 1 hex: Pulse + direction...
  • Page 317 Section 7-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 8-1 Interrupt Functions or 7-1 High-speed Counters. Operand Contents Port specifier 0000 hex: Pulse output 0 0001 hex: Pulse output 1 1000 hex: PWM output 0 1001 hex: PWM output 1...
  • Page 318 Section 7-2 Pulse Outputs Operand Contents Port specifier 0000 hex: Pulse output 0 (duty factor set in 1% units, fre- quency 0.1 Hz units) 0001 hex: Pulse output 1 (duty factor set in 1% units, fre- quency 0.1 Hz units) 1000 hex: Pulse output 0 (duty factor set in 0.1% units, frequency 0.1 Hz units) 1001 hex: Pulse output 1 (duty factor set in 0.1% units,...
  • Page 319 Section 7-2 Pulse Outputs • The number of pulses cannot be changed. • The frequency can be changed. • The output mode and direction cannot be switched. (2) SPED(885) (Continuous) to SPED(885) (Continuous) • The frequency can be changed. • The output mode and direction cannot be switched. (3) SPED(885) (Independent) to ACC(888) (Independent) •...
  • Page 320 Section 7-2 Pulse Outputs 7-2-9 Variable Duty Factor Pulse Outputs (PWM(891) Outputs) Overview 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.
  • Page 321: Example Pulse Output Applications

    Section 7-2 Pulse Outputs 7-2-10 Example Pulse Output Applications Outputting Pulses after a Preset Delay This example program waits for a preset time (0.5 ms) after the interrupt input (CIO 0.04) goes ON and then outputs 100,000 pulses at 100 kHz from pulse output 0.
  • Page 322 Section 7-2 Pulse Outputs Pulse Output 0 Settings PLC Setup setting details Do not use high-speed counter 0. Do not use the pulse output 0 origin search function. Scheduled Interrupt Time Unit Setting PLC Setup setting details Data Set the scheduled interrupt time units to 0.1 ms. 0002 hex...
  • Page 323 Section 7-2 Pulse Outputs Ladder Program Cyclic Task (Task 0) P_First_Cycle_Task MSKS(690) Task Start Flag Built-in interrupt input 0 0100 (IN0.04) Unmask (Enable #0000 interrupts.) Built-in Input 0 Interrupt Task (Interrupt Task 140) A280.04 MSKS(690) Pulse Output 0 Scheduled interrupt 2 0014 Output In-progress (Reset start)
  • Page 324 Section 7-2 Pulse Outputs Positioning (Trapezoidal Control) Specifications and When the start input (0.00) goes ON, this example program outputs 600,000 Operation pulses from pulse output 0 and turns the motor. 50,000 Hz Acceleration rate Target frequency 300 Hz/4 ms Deceleration rate 200 Hz/4 ms Number of...
  • Page 325 Section 7-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. Target frequency 1,000 Hz CW Low-speed...
  • Page 326 Section 7-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 Pulse output 1 #0001 CW Start...
  • Page 327 Section 7-2 Pulse Outputs 0.04 A281.04 ACC(888) High-speed Pulse Output Pulse output 1 #0001 CW Start in Progress Specifies CW/CCW output method, #0000 CW side, and continuous mode. Acceleration rate and target frequency SET W0.02 W0.02 0.04 ACC(888) High-speed High-speed CW output in CW Start #0001...
  • Page 328 Section 7-2 Pulse Outputs ■ System Configuration Jogging switch IN 0.00 Positioning switch IN 0.01 Cutter start Emergency stop switch OUT 100.02 IN 0.03 Cutter finished IN 0.02 SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A Cut operation finished...
  • Page 329 Section 7-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 C350 0000 Starting frequency: 0000 Hz...
  • Page 330 Section 7-2 Pulse Outputs Remarks 1,2,3... 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 331 Section 7-2 Pulse Outputs Wiring Example Using SmartStep A-series Servo Driver Origin Search Switch (CIO 0.00) Emergency Stop Switch (CIO 0.01) Stocker Moving (CIO 100.02) PCB Storage Completed (CIO 0.03) Stocker Movement Completed (CIO 0.04) PCB Storage Enable (CIO 100.03) SmartStep A-series SYSMAC Servo Driver...
  • Page 332 Section 7-2 Pulse Outputs 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 333 Section 7-2 Pulse Outputs Settings for PLS2(887) to Return to Start (D10 to D17) Setting details Address Data Acceleration rate: 300 Hz/4 ms 012C Deceleration rate: 200 Hz/4 ms 00C8 Target frequency: 50,000 Hz C350 0000 Number of output pulses: 10,000 × 15 pulses 49F0 0002 Starting frequency: 100 Hz...
  • Page 334 Section 7-2 Pulse Outputs Ladder Program Jog Operation W0.00 0.00 W0.01 Origin Search in progress Origin Origin Search Search Switch ORG(889) Completed W0.00 #0000 #0000 Origin Search in W0.01 A280.05 progress Origin Search Completed No Origin Flag 100.03 W0.01 W0.02 PCB Storage enabled Origin Search...
  • Page 335 Section 7-2 Pulse Outputs When the stocker is not full (C0=OFF), store PCB, and repeat lift positioning after PCB storage is completed. W0.05 W0.04 C0000 PCB Stored Lift Stocker positioning full completed When the stocker is full (C0=ON), move the stocker, and start lower positioning after stocker movement is completed.
  • Page 336 Section 7-2 Pulse Outputs Palletize: Two-axis Multipoint Positioning Specifications and Operation ■ Outline Y axis Cylinder X axis Workpieces grasped and moved. ■ Operation Pattern 1,2,3... 1. An origin search is performed. 2. A workpiece is grasped and moved to position A. 3.
  • Page 337 Section 7-2 Pulse Outputs Wiring Example Using SmartStep A-series Servo Driver Origin Search Switch (CIO 0.00) Emergency Stop Switch (CIO 0.01) SYSMAC CP1L SMARTSTEP A-series Servo Driver POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A X axis Y axis SMARTSTEP A-series Servo Driver...
  • Page 338 Section 7-2 Pulse Outputs X Axis CP1L-EM40/30DT-D, CP1L-EL20DT-D SMARTSTEP A-series Servo Driver R88A-CPU00S Power Supply Terminal 24-VDC Power Supply (+) 24-VDC Power Supply (-) Output Terminal Block 1.6 kΩ CW output (CIO 100.00) Pulse −CW 1.6 kΩ output CCW output (CIO 100.01) +CCW −CCW +ECRST...
  • Page 339 Section 7-2 Pulse Outputs Operation 1,2,3... 1. An origin search is performed using the Origin Search Switch (CIO 0.00). 2. When the origin search is finished, the following operations are performed continuously. Move to A. Move to B and return to A. Move to C and return to A.
  • Page 340 Section 7-2 Pulse Outputs ■ DM Area Settings Starting Frequency Setting details Address Data X-axis starting frequency 0000 Y-axis starting frequency 0000 PLS2(887) Settings to Move from Origin to Position A Setting details Address Data X axis Acceleration rate: 2,000 Hz/4 ms 07D0 Deceleration rate: 2,000 Hz/4 ms 07D0...
  • Page 341 Section 7-2 Pulse Outputs Setting details Address Data Y axis Acceleration rate: 2,000 Hz/4 ms 07D0 Deceleration rate: 2,000 Hz/4 ms 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...
  • Page 342 Section 7-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 RSET a02 a06 Origin...
  • Page 343 Section 7-2 Pulse Outputs <W000.04> W0.03 a26 a30 W0.04 Positioning to C W0.04 W1.02 000009 start (000026) <W001.02> <W000.04> W2.02 RSET a26 a30 Positioning W0.04 to C completed Operation 3: Positioning to A 000010 (000030) <W000.05> W0.04 a32 a36 W0.05 Positioning to A W0.05 W3.01...
  • Page 344 Section 7-2 Pulse Outputs A280.05 A281.05 W1.15 Origin Search 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 345 Section 7-2 Pulse Outputs <cD00000> c58 c64 c76 [OP1] @PLS2 (887) [OP2] [OP3] [OP4] <cD00002> c59 c65 c77 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]...
  • Page 346 Section 7-2 Pulse Outputs <0.08> <0.09> Limit Input Setting 000022 (000084) 0.04 A540.08 CW limit input signal X axis Built-in input 0.05 A540.09 CCW limit input 000023 signal X axis (000086) Built-in input 0.08 A541.08 CW limit input 000024 signal Y axis (000088) Built-in input...
  • Page 347 Section 7-2 Pulse Outputs Feeding Wrapping Material: Interrupt Feeding Specifications and Feeding Wrapping Material in a Vertical Pillow Wrapper Operation Emergency Stop Switch (CIO 0.01) Start Switch (CIO 0.00) Speed SYSMAC CP1L control POWER ERR/ALM Marker sensor LNK/ACT Position BKUP ANALOG INPUT COM(V+) (Built-in input 0.04)
  • Page 348 Section 7-2 Pulse Outputs Preparation ■ 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 Setting details Address Data...
  • Page 349 Section 7-2 Pulse Outputs Ladder Program Cyclic Task Program (Executed at Startup) [Program Name: New Program1] 000000 (000000) [Section Name: Section1] Enabling Input Interrupt 0 (IN0) P_First_Cycle [OP1] MSKS (690) [OP2] First Cycle Flag Feeding Material with Speed Control 000001 (000002) Material being 0.00...
  • Page 350: Inverter Positioning

    Section 7-3 Inverter Positioning Inverter Positioning 7-3-1 Features Positioning can be achieved using an inverter. This enables a far more eco- nomical positioning system than with a servomotor. Feedback Control A position error counter built into the CP1L-EL/EM CPU Unit enables high- with Error Counter precision positioning with an Inverter using feedback control.
  • Page 351 Section 7-3 Inverter Positioning Traditional Inverter Positioning 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 352 Section 7-3 Inverter Positioning Inverter Positioning with the CP1L-EL/EM With the CP1L-EL/EM’s inverter positioning function, feedback is constantly read for the positioning data while controlling the position. Power supply frequency Speed command Inverter Inductive motor CP1L-EL/EM Position feedback Encoder Feedback pulses There is no positioning error because the present position and position error are constantly monitored and corrected.
  • Page 353 Section 7-3 Inverter Positioning 7-3-2 System Configuration Speed Commands There are two ways to send speed commands to the inverter: serial communi- Using Serial cations and analog outputs. Communications or Analog Outputs Speed Commands Using Serial Communications SYSMAC CP1L RS-485 communications (Modbus-RTU) POWER COMM...
  • Page 354: Functional Overview

    Section 7-3 Inverter Positioning ■ Precaution for Inverter Settings • Set the stop time to 0 second. • Use Modus-RTU communication when the send delay setting is above 10ms. However, if the send delay time is too long, the inverter response to the command from the PLC will be slow.
  • Page 355 Section 7-3 Inverter Positioning 5. The number of pulses remaining in the error counter is converted to a pow- er supply frequency command for the inverter according to a value set in the PLC Setup and output to a word in the Auxiliary Area in increments of 0.01 Hz.
  • Page 356 Section 7-3 Inverter Positioning Pulse frequency Motor shaft Error counter turned manually. present value Error counter PLS2 Error counter instruction error occurs. error setting Time In-position width Pulse Output Flag In-position flag Error Counter Error Flag (Output value cleared.) Error Counter Reset Bit (Error counter cleared.) Low-speed Operation An inductive motor driven with an inverter is different from a servomotor in that...
  • Page 357 Section 7-3 Inverter Positioning Item Specification Specifications of Relative positions: 0000 0000 to 7FFF FFFF hex number of pulses (2,147,483,647 incrementing and decrementing) Absolute positions: 8000 0000 to 7FFF FFFF hex (−2,147,483,648 to 2,147,483,647) (Ranges of position command values and present values for pulse output instructions) Origin searches Motor driver and signal wire modes: 3 modes...
  • Page 358: Application Procedure For Inverter Positioning

    Section 7-3 Inverter Positioning 7-3-5 Application Procedure for Inverter Positioning Determine applicability. Determine instructions to use. Determine 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...
  • Page 359: Instruction Specifications

    Section 7-3 Inverter Positioning • MODE CONTROL (INI) Port: Inverter positioning, stopping inverter positioning • HIGH-SPEED COUNTER PV READ (PRV) Port: Inverter positioning, Operation: Reading error counter, inverter posi- tioning status, or error counter present value ■ Automatic Calculation of Inverter Frequency Commands •...
  • Page 360 Section 7-3 Inverter Positioning Set value Specified port Applicable instructions 0030 Error counter 0 (signed) 0031 Error counter 1 (signed) 0100 Interrupt input 0 (counter mode) 0107 Interrupt input 7 (counter mode) 1000 PWM output 0 1001 PWM output 1 Applicable The following seven instructions can be used to execute inverter positioning.
  • Page 361 Section 7-3 Inverter Positioning 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 T: Pulse type N: Number of pulses Operand...
  • Page 362 Section 7-3 Inverter Positioning Operand Description Output mode Bits 0 to 3 Mode 1 hex: Independent Bits 4 to 7 Direction 0 hex: CW 1 hex: CCW Bits 8 to 11 Not used: Always set to 0 hex. Bits 9 to 15 Not used: Always set to 0 hex.
  • Page 363 Section 7-3 Inverter Positioning Operand Description First word of F (lower 4 dig- Starting Frequency in Hz starting fre- its) Pulse output 0 or 1: 0000 0000 to 0001 86A0 quency hex (0 to 100 kHz) F+1 (upper 4 digits) ORIGIN SEARCH: ORG(889) performs an origin search or origin return operation.
  • Page 364 Section 7-3 Inverter Positioning 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 365: Determining The Internal Pulse Output Frequency

    Section 7-3 Inverter Positioning Operand Description First destina- Lower 4 When a present value is read, the following tion word for digits data is stored in D and D+1 as an 8-digit hexa- present value decimal value. D+1 Upper 4 digits P = #0020/#0021: The actual movement from the internal pulse origin.
  • Page 366 Section 7-3 Inverter Positioning (2) The encoder resolution times the counter multiplier times the gear ratio equals the number of pulses output by the encoder for one motor shaft revolution. CP1L-EL/EM Internal pulses Error Pulse output Inverter counter Motor instruction Power Target frequency supply...
  • Page 367 Section 7-3 Inverter Positioning 7-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 Default Application Refresh timing...
  • Page 368 Section 7-3 Inverter Positioning In-position Range Setting Description Set value Default Application Refresh timing In-position The In-position Flag (A26.03) will turn 1 to 65,535 0: 1 When using the When CPU Unit range ON when pulse output to the error inverter’s servo lock, the power is turned Setting 0 is...
  • Page 369 Section 7-3 Inverter Positioning Error Counter Overflow Detection Value Setting Description Set value Default Application Refresh timing Error counter If the absolute value of the 1 to 32,767 0: 10,000 Provides notification of When CPU Unit overflow detection error counter present value is excessive pulses in the power is turned Setting 0 is...
  • Page 370 Section 7-3 Inverter Positioning Number of Encoder Pulses for One Motor Revolution Setting Description Set value Default Application Refresh timing Number of Calculate the number of encoder pulses for 0 to 65,535 0 This setting is When CPU Unit Encoder Pulses one motor revolution from the encoder res- used when con- power is turned...
  • Page 371 Section 7-3 Inverter Positioning Output Coefficient during Acceleration and Constant Speed 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 372: Automatic Calculation Of Inverter Frequency Command Value

    Section 7-3 Inverter Positioning Output Coefficient after Pulse Output Setting Description Set value Default Application Refresh timing Output coefficient The output value can be 1 to 255 0: 50 This coefficient can be When CPU Unit after pulse output changed by multiplying the (0.01 incre- (0.01 used to reduce the output...
  • Page 373 Section 7-3 Inverter Positioning CP1L-EL/EM PLC Setup Auxiliary Area Auxiliary Area A20/A21 or A23 or A33 A30/A31 Automatic Inverter frequency Output value calculation command value Unit: Hz Unit: 0.01 Hz Example of Conditions Calculating • Power Supply Frequency for One Motor Revolution per Second: 2 Hz Conversion Factor (PLC Setup) •...
  • Page 374 Section 7-3 Inverter Positioning 6,000 Inverter frequency Stored analog command value (Hz) output value Inverter's max. output frequency (Hz) CP1L-EL/EM Auxiliary Area A23/A33 Converting values in A23/A33 to Hz. Inverter 6,000 Stored analog Automatic Analog output frequency output value calculations Inverter maximum command value output frequency (Hz)
  • Page 375 Section 7-3 Inverter Positioning 7-3-10 Memory Allocations Built-in Input Area Input terminal block Default Pulse output origin searches enabled Inverter positioning enabled Word Normal inputs Origin search CIO 0 Normal input 0 High-speed counter 0: (See note.) Phase A Normal input 1 High-speed counter 0: Phase B Normal input 2...
  • Page 376: Auxiliary Area

    Section 7-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 Cleared to zero at following times: This value can be present value of...
  • Page 377 Section 7-3 Inverter Positioning Word Bits Function Data range Refresh timing Application examples 0000 to FFFF hex Cleared to zero at following times: These words con- 00 to 15 Inverter frequency tain the automati- command value (0.00 to • When power to CPU Unit is turned ON cally calculated (0.01-Hz increments, 655.35 Hz)
  • Page 378 Section 7-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 379 Section 7-3 Inverter Positioning Word Bits Function Data range Refresh timing Application examples In-position Flag ON: In position Turned ON at following times: This flag is used as an NO condition OFF: Not in posi- • When pulse output to error counter is when clearing the tion stopped and absolute value of error...
  • Page 380 Section 7-3 Inverter Positioning Word Bits Function Data range Refresh timing Application examples Error Counter Alarm ON: Error counter Turned ON at following times: This flag can be Flag alarm used to provide • When pulse output to error counter is notification of OFF: No error stopped and absolute value of error...
  • Page 381 Section 7-3 Inverter Positioning Word Bits Function Data range Refresh timing Application examples A276 00 to 15 Lower 4 digits of the 8000 0000 to 7FFF Contains absolute movement value This value can be present value of the FFFF hex from the internal pulse origin when used to monitor the internal pulse output...
  • Page 382 Section 7-3 Inverter Positioning Word Bits Function Data range Refresh timing Application examples 0000 to FFFF hex Cleared to zero at following times: These words con- 00 to 15 Inverter frequency tain the automati- command value (0.00 to • When power to CPU Unit is turned ON cally calculated (0.01-Hz increments, 655.35 Hz)
  • Page 383 Section 7-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 384 Section 7-3 Inverter Positioning Word Bits Function Data range Refresh timing Application examples In-position Flag ON: In position Turned ON at following times: This flag is used as an NO condition OFF: Not in posi- • When pulse output to error counter is when clearing the tion stopped and absolute value of error...
  • Page 385 Section 7-3 Inverter Positioning Word Bits Function Data range Refresh timing Application examples Error Counter Alarm ON: Error counter Turned ON at following times: This flag can be Flag alarm used to provide • When pulse output to error counter is notification of OFF: No error stopped and absolute value of error...
  • Page 386 Section 7-3 Inverter Positioning Word Bits Function Data range Refresh timing Application examples A278 00 to 15 Lower 4 digits of the 8000 0000 to 7FFF Contains absolute movement value This value can be present value of the FFFF hex from the internal pulse origin when used to monitor the internal pulse output...
  • Page 387: Application Example With Serial Communications

    Section 7-3 Inverter Positioning Present value of pulse output CP1L-EL/EM CP1L Internal pulses Pulse output Inverter instruction Motor Error Target frequency Power counter supply frequency Encoder Present value of high-speed counter 7-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...
  • Page 388 Section 7-3 Inverter Positioning System Configuration Inverter Speed Command via Serial Communications RS-485 communications SYSMAC CP1L (Modbus-RTU) POWER COMM ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+) V1+ V2+ COM CP1W-CIF11/ MAC Address: 01234567890A CIF12 CP1L-EL/EM 3G3MV 3G3RV Standard motor Feedback pulses Encoder Instructions Used PLS2(887)
  • Page 389 Section 7-3 Inverter Positioning ■ Inverter (3G3MV) ■ Encoder Phase A Black Encoder (Power supply: 24 VDC) Phase B 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-EDT-D Differential-phase Input...
  • Page 390 Section 7-3 Inverter Positioning ■ RS-422A/485 (CP1W-CIF11/CIF12/CIF12-V1) Connections to Inverter RS-422A/485 RDA- RDB+ SDA- SDB+ CP1W-CIF11/CIF12 CP1W-CIF12-V1 Inverter Either setting Either setting ■ Inverter Connections to Motor U/T1 V/T2 W/T3 Motor Inverter Parameter Settings When connecting the Inverter to the PLC, communications parameters must for 3G3MV Inverter be set in the Inverter.
  • Page 391 Section 7-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 392 Section 7-3 Inverter Positioning Parameter Name Description Default Setting n153 RS-422A/485 communications Setting range: 0 to 32 Slave address 00: Communications disabled 01 to 32: Slave address n154 RS-422A/485 baud rate selec- 0: 2,400 bps tion 1: 4,800 bps 2: 9,600 bps 3: 19,200 bps n155 RS-422A/485 parity selection...
  • Page 393 Section 7-3 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 394 Section 7-3 Inverter Positioning Serial port 1 is used for communications with the Inverter. Starting Inverter Positioning 0.05 @PLS2(887) Start input Inverter positioning 1 #0020 CW, relative pulses #0000 D200 Target frequency, No. of output pulses D300 Starting frequency ■ PLS2(887) Settings Setting details Address...
  • Page 395 Section 7-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 Automatically Calculated command value will be calculated automatically and set in A23 in the Auxiliary Inverter Frequency...
  • Page 396 Section 7-3 Inverter Positioning Setting Modbus Communications Registers A641.00 Slave address: 01 hex #0001 Modbus D32200 simple master function not active Function code: 10 hex (write data) #0010 D32201 Number of communications data #0009 bytes: 09 hex (9 bytes) D32202 Register number of write start data: 0001 #0001...
  • Page 397: Application Example With An Analog Output

    Section 7-3 Inverter Positioning ■ Internal Work Addresses Address Usage Bits 00 to 03: Run/Stop Command Bits 00 to 15: Frequency Command Value Bits 00 to 03: Forward/Reverse Command Bit 09: Forward/Reverse Command ■ Settings Addresses Address Usage Data D32200 Bits 00 to 07: Slave address D32201 Bits 00 to 07: Function code...
  • Page 398 Section 7-3 Inverter Positioning Target 20,000 Hz frequency Acceleration: 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 SYSMAC ·...
  • Page 399 Section 7-3 Inverter Positioning ■ Built-in Outputs (Example: Sinking Transistor Outputs) COM(V-) Output word CIO 100 Output word CIO 101 ■ CP1W-DA041 I OUT1 VOUT2 COM2 I OUT3 VOUT4 COM4 VOUT1 COM1 I OUT2 VOUT3 COM3 I OUT4 I OUT1 VOUT2 COM2 I OUT3...
  • Page 400 Section 7-3 Inverter Positioning Connection Example ■ Encoder (24 VDC) Connections to High-speed Counter 0 CP1L-EDT-D Differential-phase Input Phase A Black Encoder 0.00 Error counter 0: Phase A, 0 V (Power supply: 24 VDC) Phase B White Error counter 0: Phase B, 0 V 0.01 Orange Phase Z Error counter 0: Phase Z, 0 V...
  • Page 401 Section 7-3 Inverter Positioning ■ Inverter Connections to Motor U/T1 V/T2 W/T3 Motor Inverter Parameter Settings 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.
  • Page 402 Section 7-3 Inverter Positioning 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 403 Section 7-3 Inverter Positioning Ladder Program Starting Inverter Positioning 0.05 PLS2(887) Start input Inverter positioning 1 #0020 CW, relative pulses #0000 D200 Target frequency, No. of output pulses D300 Starting frequency Note The pulse output method (CCW/CW or pulse + direction) setting and direction setting are not used.
  • Page 404 Section 7-3 Inverter Positioning 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 Automatically Calculated command value will be calculated automatically and set in A23 in the Auxiliary Inverter Frequency Area.
  • Page 405 Section 7-3 Inverter Positioning ■ Internal Work Addresses Address Usage D1010 Holds the frequency command value converted for the analog output resolution. D1011 D1020 Holds the frequency command value converted from 0.01-Hz increments to hertz. Analog conversion trigger ■ Settings Addresses Address Usage D102...
  • Page 406: Supplemental Information

    Section 7-3 Inverter Positioning 7-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 407: Advanced Functions

    SECTION 8 Advanced Functions This section describes all of the advanced functions of the CP1L-EL/EM that can be used to achieve specific application needs. Interrupt Functions ..........8-1-1 Overview of CP1L-EL/EM Interrupt Functions.
  • Page 408: Interrupt Functions

    Section 8-1 Interrupt Functions Interrupt Functions 8-1-1 Overview of CP1L-EL/EM Interrupt Functions The CP1L-EL/EM CPU Unit’s processing is normally cyclical (overseeing pro- → → → cessing program execution I/O refreshing peripheral servicing), with cyclic tasks executed in the program execution stage of the cycle. The inter- rupt functions can be used to temporarily interrupt this cyclic processing and execute a particular program when a predefined condition occurs.
  • Page 409 Section 8-1 Interrupt Functions Creating an Interrupt Task Program 1,2,3... 1. Right-click NewPLC1 [CP1L-E] Offline in the project workspace and select Insert Program from the pop-up menu. A new program called NewProgram2 (unassigned) will be inserted in the project workspace. 2.
  • Page 410 Section 8-1 Interrupt Functions Interrupt Task Priority The input interrupts (direct mode and counter mode), high-speed counter interrupts, scheduled interrupts, and external interrupts all have the same pri- ority. If interrupt task A (an input interrupt, for example) is being executed when interrupt task B (a scheduled interrupt, for example) is called, task A processing will not be interrupted.
  • Page 411 Section 8-1 Interrupt Functions a. The following example shows duplicate processing by an interrupt task, which interrupts processing of a +B instruction between the first and third operands and overwrites the same memory address. Cyclic task Interrupt task #0010 #0001 Flow of Processing Read D0 value (1234).
  • Page 412 Section 8-1 Interrupt Functions b. The following example shows duplicate processing by an interrupt task, which interrupts processing while BSET is writing to a block of words and yields an incorrect comparison result. Interrupt task Cyclic task BSET #1234 Equals Flag Flow of Processing #1234 set in D0.
  • Page 413 Section 8-1 Interrupt Functions 8-1-2 Input Interrupts (Direct Mode) This function executes an interrupt task when the corresponding input signal (up or down differentiated) is received. Input Interrupt Bit and The following diagrams show the input bits and terminals that are used for the Terminal Allocations input interrupt function in each CPU Unit.
  • Page 414 Section 8-1 Interrupt Functions Setting the Input Functions in the PLC Setup Normally, bits CIO 0.04 to CIO 0.09 are used as normal inputs. When using these inputs for input interrupts, use the CX-Programmer to change the input’s setting in the PLC Setup. Input terminal CPU Unit Input interrupt...
  • Page 415 Section 8-1 Interrupt Functions PLC Setup Click the Built-in Input Tab to display the Interrupt Input settings (at the bottom of the tab). Set the input function to Interrupt for each input that will be used as an input interrupt. Note (1) Interrupt Input settings IN0 to IN7 correspond to input interrupt numbers 0 to 7.
  • Page 416 Section 8-1 Interrupt Functions MSKS(690) Operands Input interrupt Interrupt 1. Up-differentiation or 2. Enabling/Disabling number task Down-differentiation the input interrupt number Input Execution Input Enable/ interrupt condition interrupt Disable number number Input interrupt 0 110 (or 10) #0: Up-dif- 100 (or 6) #0: Enable ferentiated interrupt...
  • Page 417 Section 8-1 Interrupt Functions Operation When execution condition W0.00 goes ON, MSKS(690) is executed to enable CIO 0.04 as an up-differentiated input interrupt. If CIO 0.04 goes from OFF to ON (up-differentiation), processing of the cyclic task that is currently being executed will be interrupted and processing of interrupt task 140 will start.
  • Page 418 Section 8-1 Interrupt Functions Procedure Select the input interrupts (counter • Determine the inputs to be used for input mode). interrupts and corresponding task numbers. ↓ Wire the inputs. • Wire the inputs. ↓ • Use the CX-Programmer to select the inter- Set the PLC Setup.
  • Page 419 Section 8-1 Interrupt Functions MSKS(690) Operands Input interrupt Interrupt 1. Up-differentiation or 2. Enabling/Disabling the number task Down-differentiation input interrupt muber Count Input Count Input Enable/ interrupt trigger interrupt Disable number number 110 (or 10) #0: Up-dif- #2: Start count- Input interrupt 0 100 (or 6) ferentiated...
  • Page 420: Scheduled Interrupts

    Section 8-1 Interrupt Functions When CIO 0.05 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 421 Section 8-1 Interrupt Functions 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 422 Section 8-1 Interrupt Functions MSKS(690) Operands Operand Interrupt time interval (period) Time units set in Scheduled time PLC Setup interval Scheduled interrupt Interrupt time number Scheduled interrupt 0 #0000 to #270F 10 ms 10 to 99,990 ms (interrupt task 2) (0 to 9999) 1 ms 1 to 9,999 ms...
  • Page 423 Section 8-1 Interrupt Functions Scheduled interrupt 2 is executed every 30.5 ms. W 0.00 30.5 ms 30.5 ms 30.5 ms Internal clock Cyclic task Cyclic task Cyclic task Cyclic task Interrupt Interrupt Interrupt processing processing processing processing Interrupt Interrupt Interrupt task 2 task 2 task 2...
  • Page 424 Section 8-1 Interrupt Functions PLC Setup Click the Built-in Input Tab to and set the high-speed counters that will be used for interrupts. Settings Item Setting Use high speed counter 0 to 3 Use counter Counting mode Linear mode Circular mode (ring mode) Circular Max.
  • Page 425 Section 8-1 Interrupt Functions ■ CPU Units with 20, 30 or 40 I/O Points Address Default setting High-speed counter operation settings: Word CPU Units CPU Units CPU Units Single-phase Two-phase Origin searches with 40 I/O with 30 I/O with 20 I/O (increment pulse (differential phases Points...
  • Page 426 Section 8-1 Interrupt Functions High-speed Counter Memory Areas Content High-speed counter Leftmost 4 digits A271 A273 Rightmost 4 digits A270 A272 Range Comparison Condi- ON for match in range 1 A274.00 A275.00 tion Met Flags ON for match in range 2 A274.01 A275.01 ON for match in range 3...
  • Page 427 Section 8-1 Interrupt Functions Number of target values 0001 to 0030 hex (1 to 48 target values) Target value 1 (rightmost digits) 0000 0000 to FFFF FFFF hex Target value 1 (leftmost digits) Task number for target value 1 Target value 48 (rightmost digits) 0000 0000 to FFFF FFFF hex Target value 48 (leftmost digits) Task number for target value 48...
  • Page 428 Section 8-1 Interrupt Functions Operand Settings Port specifier #0000, #0001 Pulse outputs 0 or 1 #0010 High-speed counter 0 #0011 High-speed counter 1 #0100 to #0105 Input interrupts 0 to 5 (in counter mode) #1000 or #1001 PWM(891) output 0 or 1 Control data #0000 Start comparison.
  • Page 429 Section 8-1 Interrupt Functions 4. Use CTBL(882) to start the comparison operation with high-speed counter 0 and interrupt task 10. W0.00 @CTBL(882) Use high-speed counter 0. # 0000 # 0000 Register a target-value comparison table and start comparison operation. D100 00 First comparison table word 5.
  • Page 430 Section 8-1 Interrupt Functions Word Setting Function D20004 #000C Range 1 interrupt task number = 12 (C hex) D20005 to Range 2 lower and upper limit values Range 2 settings D20008 #0000 (Not used and don’t need to be set.) D20009 #FFFF Disables range 2.
  • Page 431: Quick-Response Inputs

    Section 8-2 Quick-response Inputs Quick-response Inputs Overview The quick-response inputs can read pulses with an ON time shorter than the cycle time (as short as 50 μs). Use the quick-response inputs to read signals shorter than the cycle time, such as inputs from photomicrosensors. PLC Setup Use the CX-Programmer to set a built-in input as a quick-response input in the PLC Setup.
  • Page 432 Section 8-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 DC Power Supply) CIO 0 inputs CIO 1 inputs...
  • Page 433 Section 8-2 Quick-response Inputs Interrupt Input and Quick-response Input Item Specification Specifications 30 μs max. ON delay 150 μs max. OFF delay Response pulse 30 μs min. 150 μs min. Procedure Select quick-response inputs. Wire inputs. • When IN0 to IN5 are used as quick response inputs, PLC Setup settings set the corresponding built-in input's Interrupt Input setting to Quick in the PLC Setup's Built-in Input Tab.
  • Page 434: Serial Communications

    The frame headers and end codes can be specified. Standard device with serial communications Serial gate- OMRON components supporting CompoWay/F or Mod- Converts received FINS com- way (to bus-RTU slave devices mands into CompoWay/F or Compo- Modbus-RTU commands and...
  • Page 435 ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A 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 436 BKUP ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A 1:1 NT Links OMRON PTs (Programmable Terminals) Enables data exchange with a PT without communications programming in the CPU Unit. NS-series PT (The 1:N NT Link protocol is used for communications even for 1:1 connections.)
  • Page 437 Section 8-3 Serial Communications CP1L-EL/EM CPU Unit SYSMAC CP1L POWER ERR/ALM TXD(236) or RXD(235) LNK/ACT BKUP ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A Sending/receiving data RS-232C or RS422A/485 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.
  • Page 438 Section 8-3 Serial Communications Procedure Set the PLC Setup from the CX- Programmer. (Set the communications mode to RS-232C and set the parameters.) Power OFF Connect the CPU Unit and external device through RS-232C or RS-485. (Mounting the RS-232C or RS-422A/485 Option Board in option slot 1 or 2.
  • Page 439 This enables easily controlling Modbus- compliant slaves, such as Inverters, through serial communications. The following OMRON Inverters support Modbus-RTU slave operation: 3G3JV, 3G3MV, and 3G3RV. The communications mode in the PLC Setup must be set to the Gateway...
  • Page 440 Modbus-RTU SYSMAC CP1L Execution Bit for Port 1 POWER A641.00 ERR/ALM LNK/ACT BKUP OMRON Inverters ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A 3G3JV, 3G3MV, or 3G3RV DM Fixed Allocation The Modbus-RTU command is stored in the following words in the DM Area.
  • Page 441 Section 8-3 Serial Communications Words Bits Contents Serial port 1 Serial port 2 on EM-type on EM-type CPU Unit CPU Unit Serial port 1 on EL-type CPU Unit D32250 D32350 00 to 07 Response Slave address (00 to F7 hex) 08 to 15 Reserved (Always 00.) D32251...
  • Page 442 Section 8-3 Serial Communications Auxiliary Area Flags 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.
  • Page 443 OMRON components that support CompoWay/F or Modbus-RTU slave functionality Note Refer to OMRON’s Smart Library website for the most recent information on using SAPs and function blocks. Serial Gateway Function When a FINS command is received, it is automatically converted to the proto- col corresponding to the message and sent on the serial communications path.
  • Page 444 Section 8-3 Serial Communications Contents of FINS Header • Destination network address (DNA) a. When the routing table for network control of serial communication channel is developed: It is the network address that corresponds to serial communication port according to the routing table. b.
  • Page 445: Serial Plc Links

    Serial Communications Section 8-3 CPU Unit Serial Gateway Function Specifications Item Specification Pre-conversion data FINS (via FINS network, Host Link FINS, toolbus, NT Link, or CPU bus) Conversion functions FINS commands addressed to serial port 1 or 2 on the CPU Unit are converted to CompoWay/F commands (after removing the header) if the FINS command code is 2803 hex and to Modbus-RTU commands (after removing the...
  • Page 446 Serial Communications Section 8-3 Configuration 1:N Connections between CP1L-EL/EM/CJ1M CPU Units (8 Nodes Maximum) CP1L-EL/EM CPU Unit (Polling Unit) SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP RS-422A/485 Option Board ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A RS-422A/485 Shared data CJ1M CPU Unit (Polled Unit) CP1L-EL/EM CPU...
  • Page 447 Section 8-3 Serial Communications 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 to the connected PT’s unit number and the addresses of Polled Units that are not present in the network.
  • Page 448 Serial Communications Section 8-3 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. Polling Unit Polled Unit No.0 Polled Unit No.1...
  • Page 449 Section 8-3 Serial Communications Allocated Words Complete Link Method Address Link words 1 word 2 words 3 words 10 words CIO 3100 Polling Unit CIO 3100 CIO 3100 to CIO 3100 to CIO 3100 to CIO 3101 CIO 3102 CIO 3109 Polled Unit No.
  • Page 450 Section 8-3 Serial Communications Procedure The Serial PLC Links operate according to the following settings in the PLC Setup in the Polling Unit and Polled Units. Settings at the Polling Unit 1,2,3... 1. Set the serial communications mode of serial port 1 or 2 to Serial PLC Links (Polling Unit).
  • Page 451 Serial Communications Section 8-3 Related Auxiliary Area Flags for Serial Port 1 of an EM-type CPU Unit Name Address Details Read/write Refresh timing Serial Port 1 A394.00 to When serial port 1 is Read • Cleared when power is turned ON. Communicating A394.07 being used in NT link...
  • Page 452 Section 8-3 Serial Communications Related Auxiliary Area Flags for Serial Port 2 of an EM-type CPU Unit Name Address Details Read/write Refresh timing Serial Port 2 A393.00 to When Serial Port 2 is Read • Cleared when power is turned ON. Communicating A393.07 being used in NT link...
  • Page 453 Section 8-3 Serial Communications Related Auxiliary Area Flags for Serial Port 1 of an EL-type CPU Unit Name Address Details Read/write Refresh timing Serial Port 1 A392.04 Turns ON when a com- Read • Cleared when power is turned ON. Communica- munications error occurs •...
  • Page 454 Section 8-3 Serial Communications 8-3-6 1:1 Links Two PLCs can be connected through their RS-232C ports to create Link Areas. Applicable PLCs A 1:1 Link can be create between any of the following SYSMAC PLCs: CP1L-EL/EM, CQM1H, C200HX/HG/HE(-Z), CPM1A-V1, CPM2A, CPM2B, CPM2C, and SRM1(-V2) Connections To create a 1:1 Link, connect the RS-232C ports on the two PLCs.
  • Page 455 Serial Communications Section 8-3 Link Master: CP1L-EL/EM CPU Unit Link Slave: CPM2A CPU Unit SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+) V1+ V2+ COM MAC Address: 01234567890A RS-232C 1:1 Link 1:1 Link Area Link Master: Link Slave: CP1L-EL/EM CPU Unit CPM2A CPU Unit CIO 3000 LR 00...
  • Page 456 Serial Communications Section 8-3 PLC Setup Port Name Settings contents Default values Other conditions Serial port Mode: Communications mode NT Link (1:N): 1:N NT Links Host Link Turn OFF pin 4 on the CPU 1 or 2 Unit DIP switch hen using Baud: Baud rate 38,400 (standard) 9,600...
  • Page 457 PLC is connected to one PT, and 1:N NT Links, in which one PLC is connected to more than one PT. Connections With the NT Link protocol, the PLC auto- OMRON PT matically responds to commands sent from the PT, so no communications pro- gramming is required in the CP1L-EL/EM.
  • Page 458: Host Link Communications

    Serial Communications Section 8-3 8-3-9 Host Link Communications The following table shows the host link communication functions available in CP1L-EL/EM PLCs. Select the method that best suits your application. Command Command type Communications method Configuration flow Create frame in the host com- Host computer Directly connect the host computer in a 1:1 Host link command...
  • Page 459 Section 8-3 Serial Communications Procedure Set the PLC Setup from the CX- Programmer. (Set the communications mode to Host Link and set the parameters.) Power OFF Connect the CPU Unit and external device via RS-232C. (Mount the RS-232C Option Board in option slot 1 or 2.) Turn pin 4 OFF when suing serial port 1.
  • Page 460 Section 8-3 Serial Communications Type Header Name Function code I/O mem- CIO AREA WRITE Writes the specified data (word units only) to the CIO Area, starting from the ory write specified word. commands LINK AREA WRITE Writes the specified data (word units only) to the Link Area, starting from the specified word.
  • Page 461 Serial Communications Section 8-3 Type Header Name Function code Host Link ABORT (command Aborts the host link command that is currently being processed. communi- only) cations INITIALIZE (com- Initializes the transmission control procedure of all PLCs connected to the processing mand only) host computer.
  • Page 462: Built-In Analog Input

    Section 8-4 Built-in Analog Input Built-in Analog Input The CP1L-EL/EM CPU Units are equipped with 2 built-in analog inputs. When a voltage of 0 to 10 V is applied to the built-in analog input terminal, the voltage is converted from analog to digital and the PV in A642 and A643 can be changed to any value within a range of 0 to 1000 (0000 to 03E8 hex).
  • Page 463 Section 8-4 Built-in Analog Input Analog Input Terminal Arrangement Voltage Input 1 Voltage Input 2 Input Common A643 A642 Note The PV in the Auxiliary Area (A642) is for analog input 1. The PV in the Auxiliary Area (A643) is for analog input 2. Applicable Cables and Terminal Wiring ■...
  • Page 464 Section 8-4 Built-in Analog Input Side Front 0.4mm 2.5mm Wiring for Analog Inputs To prevent noise, 2-core shielded twisted-pair cable should be used. And the shield can be connected to the FG terminal if necessary. 2-core shielded twisted-pair cable V IN Analog Analog device with...
  • Page 465: Battery-Free Operation

    Section 8-5 Battery-free Operation Battery-free Operation 8-5-1 Overview With the CP1L-EL/EM CPU Unit, saving backup data in the built-in flash mem- ory (non-volatile memory) enables operation with no battery mounted (i.e., battery-free operation). I/O memory (such as CIO), however, is constantly refreshed during operation, so backup data is not saved in the built-in flash memory.
  • Page 466 Section 8-5 Battery-free Operation b. 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).
  • Page 467: Memory Cassette Functions

    Section 8-6 Memory Cassette Functions Memory Cassette Functions 8-6-1 Overview CP1L-EL/EM CPU Units have Memory Cassette functions that enable data in the CPU Unit to be stored on and read from a special CP1W-ME05M Memory Cassette. These functions can be used for the following applications. •...
  • Page 468: Mounting And Removing A Memory Cassette

    Section 8-6 Memory Cassette Functions Note The CX-Programmer's function for saving DM initial values is used for saving the values in the DM Area (D0 to D32767) to the built-in flash memory as ini- tial values. By means of a setting in the PLC Setup, these initial values can then be automatically written to the DM Area (D0 to D32767) when the power is turned ON.
  • Page 469 Section 8-6 Memory Cassette Functions (2) Absolutely do not remove the Memory Cassette while the BKUP indicator is flashing (i.e., during a data transfer or verification). 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 470: Memory Cassette Data Transfer Function

    Section 8-6 Memory Cassette Functions 8-6-4 Memory Cassette Data Transfer Function Writing from the CPU The CX-Programmer’s Memory Cassette function can be used to write data Unit to the Memory from the CPU Unit to the Memory Cassette. The data to be written can be individually specified.
  • Page 471 Section 8-6 Memory Cassette Functions Automatic Transfer With just a simple DIP switch setting, data stored in advance in the Memory from the Memory 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 472 Section 8-6 Memory Cassette Functions Reading Data from The CX-Programmer’s Memory Cassette function can be used to read data the Memory Cassette stored on the Memory Cassette, and transfer it to the corresponding areas in the CPU Unit. The data to be read can be individually specified. to the CPU Unit CX-Programmer CP1L-EL/EM CPU Unit...
  • Page 473 Section 8-6 Memory Cassette Functions Type of protection Transfer from CPU Unit Transfer from Memory to Memory Cassette Cassette to CPU Unit Protected by password. Over- writing permitted and duplica- tion prohibited. Protected by password. Over- Transfer enabled only at writing and duplication both pro- startup.
  • Page 474 Section 8-6 Memory Cassette Functions 3. Open the cover for the CPU Unit's battery and set DIP switch pin SW2 to DIP switch pin SW2 set to ON. POWER 4. Turn ON the power supply to the CPU Unit. 5. The automatic transfer from the Memory Cassette will begin. The rest of the procedure assumes that the operating mode after automatic transfer at startup to PROGRAM mode (default).
  • Page 475: Program Protection

    Program Protection Section 8-7 Program Protection The following protection functions are supported by the CP1L-EL/EM CPU Units. • Read protection from the CX-Programmer • Write protection using a DIP switch setting • Write protection setting from the CX-Programmer • Write protection against FINS commands sent to the CPU Unit via net- works •...
  • Page 476 Program Protection Section 8-7 With unit version 1.1 or later and CX-Programmer version 9.6 or higher, you can use longer passwords for UM read protection and task read protection. Click the Protection Tab in the PLC Properties Dialog Box and enter the pass- words.
  • Page 477 Section 8-7 Program Protection 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 478 Program Protection Section 8-7 Operating Procedure 1,2,3... 1. Right-click the tasks that will be password-protected, select Properties from the pop-up menu, and select the Task read protect Option on the Pro- tection Tab Page. 2. Display the Protection Tab of the PLC Properties Dialog Box and register a password in the Task read protection Box.
  • Page 479 Section 8-7 Program Protection Note 1. If the CX-Programmer is used to read a task with task read protection ap- plied, an error will occur and the task will not be read. Likewise, if the PT Ladder Monitor function is used to read a password protected task, an er- ror will occur and the task will not be read.
  • Page 480 Section 8-7 Program Protection Note (1) Copying the program is possible if read protection is not set. (2) The setting to prohibit backing up the program is not effective until the program is transferred to the PLC. Always transfer the program after changing the setting.
  • Page 481: Write Protection

    Program Protection Section 8-7 Auxiliary Area Flags and Bits Related to Password Protection Name Description address UM Read Protection A99.00 Indicates whether or not the PLC (the entire user Flag program) is read-protected. OFF: UM read protection is not set. ON: UM read protection is set.
  • Page 482 Section 8-7 Program Protection Auxiliary Area Words Name Address Description User Program A90 to A93 The time and date the user program was last over- Date written in memory is given in BCD. A90.00 to A90.07 Seconds (00 to 59 BCD) A90.08 to A90.15 Minutes (00 to 59 BCD) A91.00 to A91.07...
  • Page 483: Protecting Program Execution Using The Lot Number

    Section 8-7 Program Protection Operating Procedure 1,2,3... Table 1 When registering a password in the UM read protection password Box or 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 484 Section 8-7 Program Protection The upper digits of the lot number are stored in A311 and the lower digits are stored in 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.
  • Page 485: Failure Diagnosis Functions

    Section 8-8 Failure Diagnosis Functions • The following instructions will create a fatal error to prevent the program from being executed when the lot number does not begin with 23Y. First Cycle Flag ANDL(610) A310 #0000FFFF <>L(306) FALS(007) #1123 D100 Failure Diagnosis Functions This section introduces the following functions.
  • Page 486 Section 8-8 Failure Diagnosis Functions When execution condition A goes ON, an error with FAL number 002 is gener- ated, A402.15 (FAL Error Flag) is turned ON, and A360.02 (FAL Number 002 Flag) is turned ON. Program execution continues. Errors generated by FAL(006) can be cleared by executing FAL(006) with FAL number 00 or performing the error read/clear operation from the CX-Programmer.
  • Page 487 Section 8-8 Failure Diagnosis Functions If the message output is selected, an error message can be displayed on the CX- Programmer at the same time as a FAL error is generated for time monitoring. FPD(269) execution condition A Control data #0004 (FAL 004, bit address output for failure) &100...
  • Page 488: Simulating System Errors

    Section 8-8 Failure Diagnosis Functions 8-8-3 Simulating System Errors FAL(006) and FALS(007) can be used to intentionally create fatal and non- fatal system errors. This can be used in system debugging to test display messages on Programmable Terminals (PTs) or other operator interfaces. Use the following procedure.
  • Page 489: Clock

    Section 8-9 Clock Clock A clock is built into the CP1L-EL/EM CPU Unit and is backed up by a battery. The current data is stored in the following words and refreshed each cycle. Name Addresses Function Clock data: A351.00 to A351.07 Second: 00 to 59 (BCD) A351 to A354 A351.08 to A351.15...
  • Page 490 Section 8-9 Clock Time-related Instructions Name Mnemonic Function HOURS TO SECONDS SEC(065) Converts time data in hours/minutes/sec- onds format to an equivalent time in seconds only. SECONDS TO HOURS HMS(066) Converts seconds data to an equivalent time in hours/minutes/seconds format. CALENDAR ADD CADD(730) Adds time to the calendar data in the speci- fied words.
  • Page 491: Using Expansion Units And Expansion I/O Units

    SECTION 9 Using Expansion Units and Expansion I/O Units This section describes how to use CP-series Expansion Units and Expansion I/O Units. Connecting Expansion Units and Expansion I/O Units ....Analog Input Units .
  • Page 492: Connecting Expansion Units And Expansion I/O Units

    Section 9-1 Connecting Expansion Units and Expansion I/O Units Connecting Expansion Units and Expansion I/O Units CP-series Expansion Units and Expansion I/O Units can be connected to the CP1L-EL/EM. 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 I/O points.
  • Page 493: Analog Input Units

    Section 9-2 Analog Input Units Allocation of I/O Words Expansion Units and Expansion I/O Units are allocated I/O bits in the order the Units are connected starting from the CPU Unit. When the power to the CPU Unit is turned ON, the CPU Unit checks for any Expansion Units and Expansion I/O Units connected to it and automatically allocates I/O bits.
  • Page 494 Section 9-2 Analog Input Units ■ Input Terminal Arrangement V IN1 Voltage input 1 I IN1 Current input 1 I IN1 VIN2 I IN3 VIN4 COM2 COM4 COM3 VIN1 COM1 I IN2 VIN3 I IN4 COM1 Input common 1 V IN2 Voltage input 2 I IN2 Current input 2...
  • Page 495 Section 9-2 Analog Input Units Item CP1W-AD041 CP1W-AD042 Voltage Input Current Input Voltage Input Current Input Number of inputs 4 inputs (4 words allocated) Input signal range 0 to 5 VDC, 0 to 20 mA 0 to 5 VDC, 0 to 20 mA 1 to 5 VDC, or 4 to 20 mA 1 to 5 VDC,...
  • Page 496 Section 9-2 Analog Input Units Converted Data Hexadecimal (Decimal) 19C8 (6600) 1770 (6000) −11V −10V 0000 (0) 10V 11V E890 (−6000) E638 (−6600) ■ 0 to 10 V Inputs When the resolution is 1/6,000, the 0 to 10 V range corresponds to hexadeci- mal values 0000 to 1770 (0 to 6,000).
  • Page 497 Section 9-2 Analog Input Units Converted data Hexadecimal (Decimal) 189C (6300) 1770 (6000) −0.25V 0000 (0) 5.25 V FED4 (−300) When the resolution is 1/12,000, the 0 to 5 V range corresponds to hexadeci- mal values 0000 to 2EE0 (0 to 12,000). The entire data range is FDA8 to 3138 hex (–600 to 12,600).
  • Page 498 Section 9-2 Analog Input Units ■ 0 to 20 mA Inputs When the resolution is 1/6,000, the 0 to 20 mA range corresponds to hexa- decimal values 0000 to 1770 (0 to 6,000). The range of data that can be con- verted is FED4 to 189C hex (–300 to 6,300).
  • Page 499 Section 9-2 Analog Input Units Converted Data Hexadecimal (Decimal) 3138 (12600) 2EE0 (12000) 0000 (0) 3.2 mA 0 mA 20.8 mA 4 mA 20 mA FDA8 (−600) Averaging Function For analog inputs, the averaging function operates when the averaging bit is set to 1.
  • Page 500 Section 9-2 Analog Input Units 1. Connecting the Analog Input Unit Connect the Analog Input Unit to the CPU Unit. Analog Input Unit CPU Unit CP1W-AD041/AD042 SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP I IN1 VIN2 COM2 I IN3 VIN4 COM4 ANALOG INPUT COM(V+) VIN1...
  • Page 501 Section 9-2 Analog Input Units Analog output device Analog output device 24 VDC For example, if analog input device 2 is outputting 5 V and the same power supply is being used as shown above, about 1/3, or 1.6 V, will be applied at the input for input device 1.
  • Page 502 Section 9-2 Analog Input Units Wd (n+1) Even if analog inputs are not Analog input 1 Analog input 2 used, bits 15 in words n+1 and n+2 must be set to 1. Wd (n+2) Even if analog inputs are not Analog input 3 Analog input 4 used, bits 15 in words n+1...
  • Page 503 Section 9-2 Analog Input Units Handling Unit Errors • When an error occurs in an Analog Input Unit, the analog input conver- sion data becomes 0000. • CP-series Expansion Unit errors are output to bits 0 to 5 of word A436. The bits are allocated from A436.00 in order starting with the Unit nearest the CPU Unit.
  • Page 504 Section 9-2 Analog Input Units ■ Example: Scaling analog input values When a 0 to 10V voltage is input to the analog input word (CIO 3) of CP1W- AD042 as 0 to 12,000, convert the value into a value between 0 and 24,000 and output the result to D200.
  • Page 505 Analog Input Units Section 9-2 C: Control word Set for “Signed Integer Data (Binary)”. Control word setting #0800: Binary numeral (0000 1000 0000 0000) The number of coordinates is 1 (m=1), so 14 13 12 11 10 9 set bit 0 to 7 to “0” (=m-1). Number of coordinates minus one (m+1), 00 to FF hex (1 m 256) Floating-point specification for S and D...
  • Page 506: Analog Output Units

    Analog Output Units Section 9-3 Analog Output Units Each CP1W-DA021 Analog Output Unit provides two analog outputs. Each CP1W-DA041/CP1W-DA042 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.
  • Page 507 Section 9-3 Analog Output Units 2. Expansion I/O Connecting Cable Connected to the CPU Unit or previous Expansion Unit. The cable is pro- vided with the Unit and cannot be removed. Note Do not touch the cables during operation. Static electricity may cause operat- ing errors.
  • Page 508: Analog Output Signal Ranges

    Analog Output Units Section 9-3 Item CP1W-DA021/CP1W-DA041 CP1W-DA042 Voltage Output Current Output Voltage Output Current Output Number of outputs CP1W-DA021: 2 outputs (2 words allocated) 4 outputs (4 words allocated) CP1W-DA041: 4 outputs (4 words allocated) Output signal range 1 to 5 VDC, 0 to 20 mA 1 to 5 VDC, 0 to 20 mA...
  • Page 509 Section 9-3 Analog Output Units When the resolution is 1/12,000, the hexadecimal values E890 to 1770 (–6000 to 6000) correspond to an analog voltage range of –10 to 10 V. The entire output range is –11 to 11 V. Specify a negative voltage as a two’s complement. 11 V 10 V E638...
  • Page 510 Section 9-3 Analog Output Units ■ 1 to 5 V When the resolution is 1/6,000, the hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog voltage range of 1 to 5 V. The entire output range is 0.8 to 5.2 V. 5.2 V 0.8 V Conversion...
  • Page 511 Analog Output Units Section 9-3 ■ 4 to 20 mA When the resolution is 1/6,000, the hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog current range of 4 to 20 mA. The entire output range is 3.2 to 20.8 mA. 20.8 mA 20 mA 4 mA...
  • Page 512 Section 9-3 Analog Output Units ■ CP1W-DA021 Analog Output Unit CPU Unit Word (n+1) Set data (outputs 1, 2) Ladder program MOV(021) Word (n+1) Analog output 1 conversion value Analog devices Word (n+2) Analog output 2 conversion value Adjustment equipment Servo Controller Writes the set data.
  • Page 513 Section 9-3 Analog Output Units ■ Wiring for Analog Outputs 2-core shielded 2-core shielded twisted-pair cable twisted-pair cable V OUT V OUT Analog Analog Analog Analog device device I OUT I OUT with output output with − voltage − current unit unit input...
  • Page 514 Section 9-3 Analog Output Units ■ Set Data Range code Analog output range −10 to 10 V 0 to 10 V 1 to 5 V 0 to 20 mA 4 to 20 mA Output use • The Analog Output Unit will not start converting analog output values until the set data has been written.
  • Page 515 Section 9-3 Analog Output Units Handling Unit Errors • When an error occurs at the Analog Output Unit, the analog output will be 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 4 mA will be output for all other errors.
  • Page 516 Section 9-3 Analog Output Units ■ Example: Scaling analog output values Convert a value between 200 and 500 in D300 into 2 to 5 V to output the volt- age from the analog output word (CIO 102) of CP1W-DA042. Unscaled data (200 to 500)
  • Page 517: Analog I/O Units

    Section 9-4 Analog I/O Units Analog I/O Units 9-4-1 CP1W-MAD11 Analog I/O Units Each CP1W-MAD11 Analog I/O Unit provides 2 analog inputs and 1 analog output. • The analog input range can be set to 0 to 5 VDC, 1 to 5 VDC, 0 to 10 VDC, −10 to 10 VDC, 0 to 20 mA, or 4 to 20 mA.
  • Page 518 Section 9-4 Analog I/O Units (2) Expansion I/O Connecting Cable Connected to the expansion connector of a CP1L-EL/EM CPU Unit or a CP-series Expansion Unit or Expansion I/O Unit. The cable is provided with the Analog I/O Unit and cannot be removed. !Caution Do not touch the cables during operation.
  • Page 519 Section 9-4 Analog I/O Units Item Voltage I/O Current I/O Analog Number of inputs 2 inputs (2 words allocated) Input Input signal range 0 to 5 VDC, 1 to 5 VDC, 0 to 20 mA or 4 to 20 mA Section 0 to 10 VDC, or −10 to 10 VDC ±15 V...
  • Page 520 Section 9-4 Analog I/O Units −10 to 10 V Analog Input Signal Ranges 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 521 Section 9-4 Analog I/O Units 1 to 5 V The 1 to 5 V range corresponds to the hexadecimal values 0000 to 1770 (0 to 6000). The entire data range is FED4 to 189C (−300 to 6300). Inputs between 0.8 and 1 V are expressed as two’s complements. If the input falls below 0.8 V, open-circuit detection will activate and converted data will be 8000.
  • Page 522 Section 9-4 Analog I/O Units −10 to 10 V Analog Output Signal Ranges The hexadecimal values F448 to 0BB8 (−3000 to 3000) correspond to an analog voltage range of −10 to 10 V. The entire output range is −11 to 11 V. Specify a negative voltage as a two’s complement.
  • Page 523 Section 9-4 Analog I/O Units 0 to 20 mA The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog current range of 0 to 20 mA. The entire output range is 0 to 21 mA. 21 mA 20 mA 8000 0000 (0)
  • Page 524 Section 9-4 Analog I/O Units Using Analog I/O • Connect the Analog I/O Unit. Connect and wire the Unit. • Wire to analog I/O devices. • Analog inputs: 0 to 5 VDC, 1 to 5 VDC, 0 to 10 VDC, –10 to Create a ladder program.
  • Page 525 Section 9-4 Analog I/O Units Connecting the Analog I/O This section describes how to connect an Analog I/O Unit to the CPU Unit. Unit and Setting the DIP CP1W-MAD11 Switch CPU Unit Analog I/O Unit SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+)
  • Page 526 Section 9-4 Analog I/O Units Terminal Arrangements I OUT V IN0 COM0 I IN1 V OUT COM I IN0 V IN1 COM1 Note For current inputs, short V IN0 to I IN0 and V IN1 to I IN1. V OUT Voltage output I OUT Current output...
  • Page 527 Section 9-4 Analog I/O Units (5) Refer to the following diagram regarding wiring disconnections when volt- age input is being used. Analog input device 1 Analog input device 2 24 VDC Example: If analog input device 2 is outputting 5 V and the same power supply is being used for both devices as shown above, approximately 1/ 3, or 1.6 V, will be applied to the input for input device 1.
  • Page 528 Section 9-4 Analog I/O Units Creating a Ladder I/O Allocation Program Two input words and one output word are allocated to the Analog I/O Unit starting from the next word following the last word allocated to the CPU Unit or previous Expansion Unit or Expansion I/O Unit. Analog I/O Unit Word m+1 Word m+2...
  • Page 529 Section 9-4 Analog I/O Units Reading Analog Input Converted Values The ladder program can be used to read the memory area words where the converted values are stored. Values are output to the next two words (m + 1, m + 2) following the last input word (m) allocated to the CPU Unit or previous Expansion Unit or Expansion I/O Unit.
  • Page 530 Section 9-4 Analog I/O Units First Cycle ON Flag A200.11 MOV(021) #8051 ← Writes the range code (8051) to the Unit. Always ON Flag P_On 0005 #0002 Execution T0005 condition MOV(021) ← Reads analog input 0's converted value. Execution T0005 condition MOV(021) ←...
  • Page 531: Part Names

    Section 9-4 Analog I/O Units Part Names CP1W-MAD42/CP1W-MAD44 (1) Analog Input terminals (Terminal block is not removable) (4) Expansion connector (3) Expansion I/O connecting cable (2) Analog Output terminals (Terminal block is not removable) (1) Analog Input Terminals Connected to analog output devices. Input Terminal Arrangement for CP1W-MAD42/MAD44 V IN1 Voltage input 1...
  • Page 532 Section 9-4 Analog I/O Units Output Terminal Arrangement for CP1W-MAD44 V OUT1 Voltage output 1 I OUT1 Current output 1 COM1 Output common 1 V OUT2 Voltage output 2 I OUT2 Current output 2 COM2 Output common 2 V OUT3 Voltage output 3 I OUT3 Current output 3...
  • Page 533 Section 9-4 Analog I/O Units Item Voltage I/O Current I/O Analog Number of inputs 4 inputs (4 words allocated) Input Input signal range 0 to 5 VDC, 1 to 5 VDC, 0 to 20 mA or 4 to 20 mA Section 0 to 10 VDC, or −10 to 10 VDC ±15 V...
  • Page 534 Section 9-4 Analog I/O Units −10 to 10 V Analog Input Signal Ranges The −10 to 10 V range corresponds to the hexadecimal values E890 to 1770 (−6000 to 6000). The entire data range is E638 to 19C8 (−6600 to 6600). A negative voltage is expressed as a two’s complement.
  • Page 535 Section 9-4 Analog I/O Units 1 to 5 V The 1 to 5 V range corresponds to the hexadecimal values 0000 to 2EE0 (0 to 12000). The entire data range is FDA8 to 3138 (−600 to 12600). Inputs between 0.8 and 1 V are expressed as two’s complements. If the input falls below 0.8 V, open-circuit detection will activate and converted data will be 8000.
  • Page 536 Section 9-4 Analog I/O Units −10 to 10 V Analog Output Signal Ranges The hexadecimal values E890 to 1770 (−6000 to 6000) 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 537 Section 9-4 Analog I/O Units 0 to 20 mA The hexadecimal values 0000 to 2EE0 (0 to 12000) correspond to an analog current range of 0 to 20 mA. The entire output range is 0 to 21 mA. 21 mA 20 mA 8000 0000 (0)
  • Page 538 Section 9-4 Analog I/O Units Using Analog I/O • Connect the Analog I/O Unit. Connect and wire the Unit. • Wire to analog I/O devices. • Analog inputs: 0 to 5 VDC, 1 to 5 VDC, 0 to 10 VDC, –10 to Create a ladder program.
  • Page 539 Section 9-4 Analog I/O Units Writing D/A Conversion Data CPU Unit CP1W-MAD42 Ladder program (See note.) Analog output 1 Word (n+1) conversion value Analog output 2 Word (n+2) conversion value MOV(021) Writes the conversion values. Analog devices • Adjustment equipment “n”...
  • Page 540 Section 9-4 Analog I/O Units Wiring Analog I/O Devices Internal Circuits Analog Inputs V IN1 250 Ω 510 kΩ I IN1 Analog input 1 COM1 (−) 510 kΩ V IN4 250 Ω 510 kΩ I IN4 Analog input 4 COM4 (−) 510 kΩ...
  • Page 541 Section 9-4 Analog I/O Units Note (1) Connect the shield to the FG terminal to prevent noise. (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 542 Section 9-4 Analog I/O Units Creating a Ladder I/O Allocation Program Four input words and two output words are allocated to the CP1W-MAD42, starting from the next word following the last word allocated to the CPU Unit or previous Expansion Unit or Expansion I/O Unit. Four input words and four output words are allocated to the CP1W-MAD44, starting from the next word following the last word allocated to the CPU Unit or previous Expansion Unit or Expansion I/O Unit.
  • Page 543 Section 9-4 Analog I/O Units Range Code Analog input range −10 to 10 V 0 to 10 V 1 to 5 V (4 to 20 mA) 0 to 5 V (0 to 20 mA) Set Data of Analog Outputs Value Enable DA Range Code Enable...
  • Page 544 Section 9-4 Analog I/O Units The following table shows the output status after the initial processing is com- pleted. Output type Voltage output Current output Output range 0 to 10 V, 1 to 5 V 0 to 20 mA 4 to 20 mA −10 to +10 V Before range 0 mA...
  • Page 545 Section 9-4 Analog I/O Units CP1W-MAD44 Analog Input Range Averaging Set data Destination input range code word Input 1 4 to 20 mA 1110 (E hex) Input 2 0 to 10 V 1001 (9 hex) Input 3 0 to 5 V 1111 (F hex) −10 to 10 V Input 4...
  • Page 546 Section 9-4 Analog I/O Units Always ON Flag P_On 0005 #0002 Execution T0005 condition MOV(021) ← Reads analog input 1's of CP1W-MAD42 converted value. Execution T0005 condition MOV(021) ← Reads analog input 2's of CP1W-MAD42 converted value. Execution T0005 condition MOV(021) ←...
  • Page 547: Temperature Sensor Units

    Section 9-5 Temperature Sensor Units Temperature Sensor Units 9-5-1 CP1W-TS01/TS02 Temperature Sensor Units CP1W-TS002/TS102 Temperature Sensor Units each provide up to four input points, and CP1W-TS001/TS101 Temperature Sensor Units each provide up to two input points. The inputs can be from thermocouples or platinum resis- tance thermometers.
  • Page 548 Section 9-5 Temperature Sensor Units Main Specifications For CP1L EM-type CPU Units, a maximum of 3 Expansion Units or Expansion I/O Units can be connected CP1W-20EDR1 CP1W-8ED CP1W-TS01/TS02 Expansion I/O Unit Expansion I/O Unit Temperature Sensor Unit CP1L EM-type CPU Unit SYSMAC CP1L C OM...
  • Page 549 Section 9-5 Temperature Sensor Units Connecting Temperature For CP1L EM-type CPU Units, a maximum of three CP1W-TS002 and CP1W- Sensor Units TS102 Temperature Sensor Units can be connected, because each unit is allocated four words. For CP1L EL-type CPU Units, one Unit can be con- nected.
  • Page 550 Section 9-5 Temperature Sensor Units Rotary Switch Setting !Caution Set the temperature range according to the type of temperature sensor con- nected to the Unit. Temperature data will not be converted correctly if the tem- perature range does not match the sensor. !Caution Do not set the temperature range to any values other than those for which temperature ranges are given in the following table.
  • Page 551 Section 9-5 Temperature Sensor Units Input 0 Input 1 Input 2 Input 3 Input 0 Input 1 Input 2 Input 3 − − − − Temperature input 0 Cold junction Temperature input 2 compensator Temperature input 1 Temperature input 3 Note When connecting a thermocouple input, observe the following precautions: •...
  • Page 552 Section 9-5 Temperature Sensor Units Input 0 Input 1 Input 1 Input 2 Input 3 Input 3 Input 0 Input 0 Input 1 Input 2 Input 2 Input 3 Temperature Temperature Temperature Temperature input 0 input 1 input 2 input 3 Note Do not connect anything to terminals not used for inputs.
  • Page 553 Section 9-5 Temperature Sensor Units “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. • Data for range codes that include one digit after the decimal point are stored without the decimal point, i.e., 10 times the actual value is stored.
  • Page 554 Section 9-5 Temperature Sensor Units Programming Example 1,2,3... 1. The following programming example shows how to convert the input data from 2 temperature sensor inputs to BCD and store the result in D0 and CP1L-EM CPU Unit CP1W-TS001/101 with 40 I/O points Temperature Sensor Unit CIO 0 CIO 2...
  • Page 555 Section 9-5 Temperature Sensor Units 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 556 Section 9-5 Temperature Sensor Units Programming with SCL2(−) Instruction Always ON P_On Detects completion of input 0 CMP(020) initialization. #7FFE 1000.00 ON when initialization complete. Execution condition 1000.00 CMP(020) Detects an open-circuit alarm or Unit error by checking whether the error code 7FFF has been output.
  • Page 557 Section 9-5 Temperature Sensor Units Temperature Data Partitioning and Structure Temperature Data (Actual Temperature x 100 Binary) @ @ @ @ @ @ Leftmost 3 Digits and Flags Temperature Open-circuit Leftmost/ Not used. Temperature data Unit Flag Flag Rightmost Flag 0: °C 0: Leftmost 0: Normal...
  • Page 558 Section 9-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 Data Normal Temperature Flags °C data Leftmost...
  • Page 559 Section 9-5 Temperature Sensor Units Example 4 Temperature: Open circuit (°F) Temperature Data: 7FFFFFFF Leftmost 3 Digits and Flags ×16 ×16 ×16 Flags Bits 11 to 08 07 to 04 03 to 00 Data Error Temperature Flags °F data Leftmost Rightmost 3 Digits and Flags ×16 ×16...
  • Page 560 Section 9-5 Temperature Sensor Units A200.11 (First Scan Flag) MOV(021) Sets D103 and D102 to #0100 and #0000 #0000, respectively. D102 MOV(021) #0100 D103 P_On (Always ON Flag) CMP(020) Detects completion of input 0 initialization. #7FFE P_EQ 1000.00 ON when input 0 has been initialized. 1000.00 2.13 (open-circuit detected) 100.00...
  • Page 561 Section 9-5 Temperature Sensor Units Description of Operation CIO 2: Leftmost 3 digits of temperature data CIO 2: Rightmost 3 digits of temperature data CIO 2000 CIO 2002 0 16 CIO 2001 16 If the temperature data is non-negative, binary data is converted to BCD data.
  • Page 562 Section 9-5 Temperature Sensor Units 9-5-2 CP1W-TS003 Temperature Sensor Units CP1W-TS003 Temperature Sensor Unit provides up to four input points. The inputs can be from thermocouples or analog inputs. CP1W-TS003 Temperature Sensor Unit is allocated four input words, so no more than three Units can be connected.
  • Page 563 Section 9-5 Temperature Sensor Units Main Specifications Item CP1W-TS003 Temperature sensors Thermocouples or Analog input (See note1.) Switchable between K and J, but same type must be used for all inputs. Number of inputs Allocated input words Max. number of Units Accuracy at 25°C Thermocouple inputs (The larger of ±0.5% of converted value or ±2°C) ±1 digit max.
  • Page 564 Section 9-5 Temperature Sensor Units Using Temperature Sensor Units • Connect the Temperature Sensor Units to the Connect the Temperature CPU Unit. Sensor Units. • Set the input type (temperature or analog input), Set the temperature or the input thermocouple type (K or J) and the analog ranges.
  • Page 565 Section 9-5 Temperature Sensor Units Setting Thermocouple type of temperature sensor Temperature unit °F °C Input type selection for Analog input the third input (Input 2) Thermocouple Input type selection for Analog input the fourth input (Input 3) Thermocouple Analog input signal 1 to 5V/4 to 20mA range 0 to 10V...
  • Page 566 Section 9-5 Temperature Sensor Units Analog Inputs Last two channels can be used as analog inputs, but two of the analog inputs must be the same range. LOOP2+ LOOP3+ I IN3 LOOP0+ LOOP1+ V IN2 V IN3 LOOP2− LOOP3− I IN2 LOOP0−...
  • Page 567 Section 9-5 Temperature Sensor Units 1 to 5 V The 1 to 5 V range corresponds to the hexadecimal values 0000 to 2EE0 (0 to 12000). The entire data range is FDA8 to 3138 (−600 to 12600). Inputs between 0.8 and 1 V are expressed as two’s complements. If the input falls below 0.8 V, open-circuit detection will activate and converted data will be 8000.
  • Page 568 Section 9-5 Temperature Sensor Units Example CP1L-EM CPU Unit CP1W-TS003 with 40 I/O points Temperature Sensor Unit CIO 2 CIO 0 Input word CIO 3 CIO 1 addresses CIO 4 CIO 5 Output word CIO 100 None addresses CIO 101 Converted Temperature Data The converted temperature value will be stored in the input words allocated to the Temperature Sensor Unit in 4-digit hexadecimal.
  • Page 569 Section 9-5 Temperature Sensor Units Startup Operation 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 the ladder can start to operate with valid conversion data in input words.
  • Page 570 Section 9-5 Temperature Sensor Units Detects initialization complete <>(305) MOV(021) Stores input 0’s data in D0. #7FFE ON when an open-circuit alarm has been =(300) W10.00 detected for thermocouples input 2. #7FFF <>(305) MOV(021) Stores input 1’s data in D1. #7FFE ON when an open-circuit alarm has been =(300)
  • Page 571 Section 9-5 Temperature Sensor Units 9-5-3 CP1W-TS004 Temperature Sensor Units CP1W-TS004 Temperature Sensor Unit provide up to twelve input points. The inputs can be from thermocouples. CP1W-TS004 Temperature Sensor Unit is allocated two input words and one output word, so no more than seven Units can be connected. Part Names Temperature Sensor Units: CP1W-TS004...
  • Page 572 Section 9-5 Temperature Sensor Units Main Specifications Item CP1W-TS004 Temperature sensors Thermocouples Switchable between K and J, but same type must be used for all inputs. Number of inputs Allocated input words Allocated output words Accuracy 25°C (The larger of ±0.5% of converted value or ±2°C) ±1 digit max. (See note1.) 0 to 55°C (The larger of ±1% of converted value or ±4°C) ±1 digit max.
  • Page 573 Section 9-5 Temperature Sensor Units Setting Temperature Ranges Note (1) Always turn OFF the power supply before setting the temperature range. (2) Never touch the DIP switch during Temperature Sensor Unit operation. Static electricity may cause operating errors. DIP Switch Settings !Caution Set the temperature range according to the type of temperature sensor con- nected to the Unit.
  • Page 574 Section 9-5 Temperature Sensor Units Connecting Temperature Thermocouples Sensors Either K or J thermocouples can be connected, but all twelve of the thermo- couples must be of the same type and the same input range must be used for each. Temperature input 1 Cold junction Temperature input 11...
  • Page 575 Section 9-5 Temperature Sensor Units Input Word Response. Input words stored in CIO m+2 Temperature data of the specified input word Output Word Read command data (input word specified) Read/Response Command and Temperature Data Output Input Word Word Command Read Response Temperature data command...
  • Page 576 Section 9-5 Temperature Sensor Units Creating Ladder Program (1) Write temperature data command Write temperature data command which read temperature data from input word to CIO n+1. (2) Response confirmation After CP1W-TS004 receives CIO n+1 read command and CP1W-TS004’s internally specified input temperature data is ready, the value which is the same as the read command will be stored in CIO m+1.
  • Page 577 Section 9-5 Temperature Sensor Units Programming Example The temperature data of CP1W-TS004 (12 inputs, input type is J type and temperature unit is °C) is stored in D0 to D11. When it occurs open-circuit alarm, W10.00 to W10.11 is ON. CP1H CP1W-TS004 Temperature Sensor Unit...
  • Page 578 Section 9-5 Temperature Sensor Units First Cycle ON Flag Start to read temperature data. W0.00 W0.00 MOV(021) Write input 0’s read command (#9901) to CIO 102 (CIO n+1). #9901 If CIO 2 (CIO m+1) and read MOV(021) =(300) command are matched, store #9901 Read Input 0’s the temperature data (CIO...
  • Page 579 Section 9-5 Temperature Sensor Units W0.03 MOV(021) #9904 MOV(021) =(300) #9904 Read Input 3’s temperature data W10.03 =(300) #7FFF W0.04 RSET W0.03 W0.04 MOV(021) #9905 MOV(021) =(300) #9905 Read Input 4’s temperature data W10.04 =(300) #7FFF W0.05 RSET W0.04 W0.05 MOV(021) #9906 MOV(021)
  • Page 580 Section 9-5 Temperature Sensor Units W0.06 MOV(021) #9907 MOV(021) =(300) #9907 Read Input 6’s temperature data W10.06 =(300) #7FFF W0.07 RSET W0.06 W0.07 MOV(021) #9908 MOV(021) =(300) #9908 Read Input 7’s temperature data W10.07 =(300) #7FFF W0.08 RSET W0.07 W0.08 MOV(021) #9909 MOV(021)
  • Page 581 Section 9-5 Temperature Sensor Units W0.09 MOV(021) #990A MOV(021) =(300) #990A Read Input 9’s temperature data W10.09 =(300) #7FFF W0.10 RSET W0.09 W0.10 MOV(021) #990B MOV(021) =(300) #990B Read Input 10’s temperature data W10.10 =(300) #7FFF W0.11 RSET W0.10 W0.11 MOV(021) #990C MOV(021)
  • Page 582: Compobus/S I/O Link Units

    Section 9-6 CompoBus/S I/O Link Units CompoBus/S I/O Link Units The CP1L-EL/EM can function as a slave to a CompoBus/S Master Unit (or SRM1 CompoBus/S Master Control Unit) when a CP1W-SRT21 CompoBus/ S I/O Link Unit is connected. The CompoBus/S I/O Link Unit establishes an I/ O link of 8 inputs and 8 outputs between the Master Unit and the PLC.
  • Page 583 Section 9-6 CompoBus/S I/O Link Units LED Indicators Indicator Name Color Meaning COMM Communications Yellow ON: Communications in progress. Indicator OFF: Communications stopped or error has occurred. Error indicator ON: A communications error has occurred. OFF: Indicates normal communications or stand-by. CP1W-SRT21 CompoBus/S I/O Link Unit (2) DIP Switch 4 5 6...
  • Page 584: Operating Procedure

    Section 9-6 CompoBus/S I/O Link Units (3) LED Indicators Used to show the CompoBus/S communications status. Indicator Name Color Meaning COMM Communications Yellow ON: Communications in progress. indicator OFF: Communications stopped or error has occurred. Error indicator ON: A communications error has occurred.
  • Page 585 Section 9-6 CompoBus/S I/O Link Units I/O Allocation I/O words are allocated to the CompoBus/S I/O Link Unit in the same way as to other Expansion Units and Expansion I/O Units, i.e., the next available input and output words are allocated. As shown below, when “m” is the last allocated input word and “n”...
  • Page 586 Section 9-6 CompoBus/S I/O Link Units (2) Unused bits in the CompoBus/S I/O Link Unit’s output word can be used as work bits, but unused bits in the output slaves cannot be used as work bits. (3) Unused bits in input word cannot be used as work bits. Determining the Node Node Number Number and Making DIP...
  • Page 587: Analog Input/Output Option Board

    SECTION 10 Analog Input/Output Option Board This section describes how to use Analog Input/Output Option Board. 10-1 General Specifications ......... . 10-2 Part Names .
  • Page 588: General Specifications

    Section 10-1 General Specifications 10-1 General Specifications CP1 series analog option board units are non-isolated analog units which allow you to easily realize analog input/output function for CP1L-EL/EM series PLC. Analog Option Board Voltage Input Current Input Voltage Output 0V~10V 0mA~20mA 0V~10V (Resolution:1/4000)
  • Page 589: Installation And Setting

    Section 10-3 Installation and Setting 10-3 Installation and Setting 10-3-1 Installation The following processing explains how to install and remove an Analog Option Board. !Caution Always turn OFF the power supply to the CPU unit and wait until all the oper- ation indicators go out before installing or removing the analog option board.
  • Page 590: Memory Allocation

    Section 10-4 Memory Allocation 10-4 Memory Allocation 10-4-1 CIO Area Allocation The memory allocation about analog conversion in the CIO area of PLC is shown as the following diagram. The beginning CIO channel is shown in the following table. CP1L-EL/EM series PLC I/O Capacity Option Port Beginning...
  • Page 591: Analog Input Option Board

    Section 10-5 Analog Input Option Board 10-5 Analog Input Option Board Each CP1W-ADB21 Analog Input Option Board provides two analog inputs. • The analog input signal ranges are 0 to 10 V (with a resolution 1/4,000) and 0 to 20 mA (with a resolution 1/2,000). Main Analog Input Option Board Specifications Item Specifications...
  • Page 592 Section 10-5 Analog Input Option Board ■ 0 to 20 mA The 0 to 20 mA range corresponds to the hexadecimal values 0000 to 07D0 (0 to 2000). The possible data range is 0000 to 0FFF (0 to 4095). But it is strongly suggested that the input current must not exceed 30 mA.
  • Page 593 Section 10-5 Analog Input Option Board Applicable Cables and Terminal Wiring ■ Applicable Cables Solid wire or ferrules can be used. • Recommended solid wire Wire type Wire size Solid Wire 0.2mm to 0.5mm (AWG24 to AWG20) • Recommended ferrules Manufacturer Model Applicable wire...
  • Page 594: Analog Output Option Board

    Section 10-6 Analog Output Option Board Wiring for Analog Inputs To prevent noise, 2-core shielded twisted-pair cable should be used. And the shield can be connected to the FG terminal if necessary. 2-core shielded 2-core shielded twisted-pair cable twisted-pair cable V IN V IN Analog...
  • Page 595 Section 10-6 Analog Output Option Board Analog Output Signal The analog values depend on the output signal range, as shown in the follow- Ranges ing diagram. Note When the output exceeds the specified range, the output signal will be fixed at either the lower limit or upper limit.
  • Page 596 Section 10-6 Analog Output Option Board Applicable Cables and Terminal Wiring ■ Applicable Cables Solid wire or ferrules can be used. • Recommended solid wire Wire type Wire size Solid Wire 0.2mm to 0.5mm (AWG24 to AWG20) • Recommended ferrules Manufacturer Model Applicable wire...
  • Page 597 Section 10-6 Analog Output Option Board Wiring for Analog Outputs To prevent noise, 2-core shielded twisted-pair cable should be used. And the shield can be connected to the FG terminal if necessary. 2-core shielded twisted-pair cable V OUT Analog Analog output device with option...
  • Page 598: Analog I/O Option Board

    Section 10-7 Analog I/O Option Board 10-7 Analog I/O Option Board Each CP1W-MAB221 Analog I/O Option Board provides two analog inputs and two analog outputs. • The analog input signal ranges are 0 to 10 V (with a resolution 1/4,000) and 0 to 20 mA (with a resolution 1/2,000).
  • Page 599 Section 10-7 Analog I/O Option Board Converted Data Hexadecimal (Decimal) 0FFF(4095) 0FA0(4000) 0000(0) 10V 10.24V ■ 0 to 20 mA The 0 to 20 mA range corresponds to the hexadecimal values 0000 to 07D0 (0 to 2000). The possible data range is 0000 to 0FFF (0 to 4095). But it is strongly suggested that the input current mustn’t exceed 30 mA.
  • Page 600 Section 10-7 Analog I/O Option Board Analog I/O Terminal Arrangement Voltage Input 1 Current Input 1 Voltage Input 2 Current Input 2 Analog I/O Common Voltage Output 1 Voltage Output 2 Analog I/O Common Note When using current inputs, voltage input terminals must be short-circuited with current input terminals.
  • Page 601 Section 10-7 Analog I/O Option Board 2-conductor shielded twisted-pair cable Release button • To make the connection, press the release button in with a small flat blade screwdriver and push the line in while the lock is released. Remove the screwdriver and lock it inside. •...
  • Page 602: Startup Operation

    Section 10-8 Startup Operation Wiring for Analog Outputs 2-core shielded twisted-pair cable V OUT Analog Analog device with Option voltage − Board input Note (1) If necessary, connect the shield to the FG terminal to prevent noise. (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...
  • Page 603: Trouble Shooting

    Section 10-9 Trouble Shooting 10-9 Trouble Shooting Trouble-shooting with Indicators Error Probably Cause Correction Auxiliary AD/DA function Indicator Area Allocations CPU Unit service Service from the Check and cor- A435.14 or AD/DA conversion will stop. monitoring error CPU Unit was rect the CPU A435.15 The analog input conversion...
  • Page 604: Program Example

    Section 10-10 The Use of Analog Option Board 10-10-2 Program Example Use the analog option board to carry out 2CH AD inputs and 1CH DA output at the same time. The ranges of AD/DA are as follows: Analog input1: 0~10V Analog input2: 0~20mA Analog output1: 0~10V System composing: CP1L-EM (option port 1) + CP1W-MAB221...
  • Page 605: Lcd Option Board

    SECTION 11 LCD Option Board This section gives an outline of the LCD Option Board, explains how to install and remove the LCD Option Board, and describes the functions including how to monitor and make settings for the PLC. It also lists the errors during operation and provides probable causes and countermeasures for troubleshooting.
  • Page 606: Features

    Section 11-1 Features 11-1 Features LCD Option Board is small but has a wide range of functions and is easy to use. Powerful Display and Setting Functions Equipped for easy display and set up of user-specified messages, time or other data of the PLC. User Monitor Screen Preset the screen, including I/O memory and text string, which user will moni- tor frequently.
  • Page 607 Section 11-2 Specifications 11-2 Specifications Item Specification Model CP1W-DAM01 Type Built-in Serial port Only port 1 Communication protocol Toolbus 5V : 40mA DC consumption 24V : 0mA Dimensions 43×36×23 mm (W×H×D) Weight 20g max. Screen size 2.6cm×1.45cm Total characters on screen 4 lines×12 characters Font size 5×7 dot...
  • Page 608: Part Names

    Section 11-3 Part Names 11-3 Part Names Front Back Corner Cut Connector Operation Button Button Function Cancel the setting and return to the up-level menu. Move the column cursor. Forward Press and hold the button, the column cursor will move for- ward continuously.
  • Page 609: Installation And Removing

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

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

    Section 11-5 Basic Operation 11-5-2 Screen Transitions The screen transition of the LCD Option Board as shown in the following diagram. Setup Mode Monitor Mode Power to the CPU Unit turns ON Display main menu Select the menu Display User Monitor Screen (See note1) Enter Data Change Screen Enter the submenu...
  • Page 612 Section 11-5 Basic Operation Screen Transition Example in the Monitor Mode In this example, User Monitor Screen 1 and Message Screen 2, Message Screen 6 have been set. Control bit is OFF Clock Screen User Monitor Screen 1 Clock Screen Control bit 1 is ON Message Screen 2 Clock Screen...
  • Page 613: Operation Examples

    Section 11-5 Basic Operation 4. If another control bit is bigger, the display will swtich to another Message Screen after one of the control bit is OFF. If another control bit is smaller, the display will swtich to the Clock Screen after one of the control bit is OFF. 5.
  • Page 614 Section 11-5 Basic Operation Displaying I/O Memory Display any data of I/O memory. In this example, two word data on D10001 to D10002, D10003 to D10004 with unsigned decimal number will be displayed. 1,2,3... 1. Line 1 will display the default address D00000 in I/O memory, Line 2 to 4 will display one word data on D00000, D00001, D00002 with hex number when entering the Monitor Screen of I/O memory.
  • Page 615: Lcd Option Board Function

    Section 11-6 LCD Option Board Function 3. Use the Forward button to move the column cursor to the data of I/O memory. Use the Down or Up button to change the value of each digit. 4. Press the OK button to save the setting. Press the ESC button to return to the previous screen.
  • Page 616 Section 11-6 LCD Option Board Function Analog Monitor the value from the built-in analog input of the PLC. Note Analog input will be displayed as “AnalogVol”. Refer to Page 592 for details. Error History Display the list of error history and the details of each error. It is possible to display up to 20 screens.
  • Page 617 Section 11-6 LCD Option Board Function Timer Switch Set day, weekly and calendar timers. It is possible to register up to 16 timers for each kind. Each timer can execute a trans-day, trans-week or trans-year operation. Refer to Page 614 for details. Data Backup The LCD Option Board can execute any of the following operations.
  • Page 618: Plc Mode

    Section 11-6 LCD Option Board Function 11-6-2 PLC Mode This function can display the present PLC mode and change the PLC mode. Example Change the PLC Mode from RUN to PRG. 1,2,3... 1. Switch to the Setup Mode. 2. Press the OK button to enter the Mode Screen. There is a choice of 3 PLC modes-RUN/MON/PRG.
  • Page 619 Section 11-6 LCD Option Board Function 11-6-3 I/O Memory Setting Displaying I/O Memory Example Monitor two word data on D10001 to D10002, D10003 to D10004 with unsigned decimal number. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select IO Memory. 3.
  • Page 620 Section 11-6 LCD Option Board Function The following table shows the default address and the setting range for each I/O memory type. I/O memory type Default address Range 0000 0000 to 4095 0000 0000 to 4095 00000 00000 to 32767 000 to 959 0000 0000 to 6143...
  • Page 621 Section 11-6 LCD Option Board Function Changing I/O Memory Example First change two word data on W000 to 12345678, then change one word data on W509 to 98F5 and set the control bit 509.05 to OFF. 1,2,3... 1. Switch to the Setup Mode. 2.
  • Page 622 Section 11-6 LCD Option Board Function 8. Press the Forward button to move the column cursor to the digit to be set. Use the Down or Up button to change the data to 12345678. 9. Press the OK button to save the setting. Press the ESC button to return to the previous screen.
  • Page 623 Section 11-6 LCD Option Board Function 14. Use the Up button to change the bit address to 05. 15. Use the Forward button to move the column cursor to the bit flag position. The present setting is the default setting. Select the bit flag in the following table.
  • Page 624 Section 11-6 LCD Option Board Function 11-6-4 PLC Setup This function can display and change the settings in the PLC Setup. Example 1 Change the CPU Unit Operating Mode from PRG to RUN. 1,2,3... 1. Switch to the Setup Mode. 2.
  • Page 625 Section 11-6 LCD Option Board Function Example 2 Display the value of PLC Setup on 080. Then change the value to 0195. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select PLC Setup. 3. Press the OK button to enter the PLC Setup menu. 4.
  • Page 626 Section 11-6 LCD Option Board Function 8. Press the OK button to save the setting. 9. Press the ESC or OK button to return to the PLC Setup Screen. 11-6-5 Analog Displaying Analog Inputs Example Monitor the built-in analog input with unsigned decimal number. 1,2,3...
  • Page 627 Section 11-6 LCD Option Board Function 7. Press the ESC button to return to the previous screen. 11-6-6 Error This function can display the list of error history and the details of each error. It is possible to display up to 20 screens. User can also monitor the occurring errors in the Error Monitor Screen.
  • Page 628 Section 11-6 LCD Option Board Function 6. If there is more than one error, press the Down button to scroll the screen and display the details of the next error. 7. Press the ESC button to return to the Error History Screen. Press the Down button to select CLR ErrLog which is always below the last error.
  • Page 629 Section 11-6 LCD Option Board Function 3. Press the OK button to enter the Error menu. 4. Press the Down button to select ErrorMon. 5. Press the OK button to enter the Error Monitor Screen. Max. 2 errors that occur the earliest will be displayed. 6.
  • Page 630: Memory Cassette

    Section 11-6 LCD Option Board Function 11-6-7 Memory Cassette Before Operation • Memory Cassette should be equipped into the PLC. Otherwise LCD can- not operate Memory Cassette. • Make sure that the PLC mode is PRG. If the PLC is in RUN or MON mode, the operation of Memory Cassette cannot be executed.
  • Page 631 Section 11-6 LCD Option Board Function 6. Press the OK button to start loading. A rate of loading will be displayed in the screen. 7. When the rate comes up to 0%, the loading is finished. Then it will display a complete screen.
  • Page 632 Section 11-6 LCD Option Board Function 6. Press the OK button to enter the "PLC->MC" Operation Screen. 7. Press the Down button to select OK. Note Selecting Cancel will result in a return to the previous menu. 8. Press the OK button to start saving. A rate of saving will be displayed in the screen.
  • Page 633 Section 11-6 LCD Option Board Function 5. Press the OK button to enter the Compare Operation Screen. 6. Press the Down button to select OK. Note Selecting Cancel will result in a return to the previous menu. 7. Press the OK button to start comparing. A rate of comparison will be displayed in the screen.
  • Page 634 Section 11-6 LCD Option Board Function 5. Press the OK button to enter the Clear Operation Screen. 6. Press the Down button to select OK. Note Selecting Cancel will result in a return to the previous menu. 7. Press the OK button to start clearing. A rate of clearance will be displayed in the screen.
  • Page 635 Section 11-6 LCD Option Board Function 4. Press the OK button to enter the User Monitor Setup Screen. The final digit of the Screen No. will be flashing. The following table shows the setting items for each display type. Display type Description Text Word...
  • Page 636 Section 11-6 LCD Option Board Function Display type Default address Range Word 0000 0000 to 6143 000 to 511 000 to 511 000 to 959 0000 0000 to 4095 0000 0000 to 4095 00000 00000 to 32767 00 to 15 00 to 15 00 to 31 TMF(Timer flag)
  • Page 637 Section 11-6 LCD Option Board Function 14. Press the Down or Up button to select the display format &. 15. Use the Forward button to move the column cursor to the data length position. The present setting is W. Select the data length in the following table. Data length Meaning One word data...
  • Page 638 Section 11-6 LCD Option Board Function Example 2 Display a text string "elevator" on the User Monitor Screen 2, Line 4, after the setting in example 1. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select UserMonitor. 3.
  • Page 639 Section 11-6 LCD Option Board Function 9. Use the Down or Up button to select the character of each digit. Name the text string to elevator. 10. Press the OK button to save the setting. 11. Press the ESC or OK button to return to the User Monitor Setup Screen. 12.
  • Page 640 Section 11-6 LCD Option Board Function 4. Use the Up button to change the value to 0100. 5. Press the OK button to save the setting. The column cursor will return to the digit before the value. 6. Use the Down button to move the cursor to line 2. Note Only when the cursor is on the digit before the value, press the Down or Up button to b move the cursor to other lines.
  • Page 641 Section 11-6 LCD Option Board Function Example 2 Change bit0 from OFF to ON. 1,2,3... 1. Press the Forward + OK button simultaneously to enter the Data Change Screen. 2. Use the Down button to move the cursor to line 2. 3.
  • Page 642 Section 11-6 LCD Option Board Function 4. Press the Down button to select Delete. 5. Press the OK button to enter the User Monitor Delete Screen. The final digit of the Screen No. will be flashing. 6. Use the Up button to change the Screen No. to 2. Note Press and hold the UP button until the Screen No.
  • Page 643: Message Screen

    Section 11-6 LCD Option Board Function 11-6-9 Message Screen This function can set or delete Message Screen. It is possible to register up to 16 screens. User can monitor the text message in the Message Screen when control bit is ON. Creating New Message Screen Example When control bit W100.01 is ON, the Message Screen 2 will display the data...
  • Page 644 Section 11-6 LCD Option Board Function 6. Use the Forward button to move the column cursor to the position of lead- ing word address. The present setting is the default address. The following table shows the default address and the setting range for each screen when the leading word address is D09000.
  • Page 645 Section 11-6 LCD Option Board Function DM Area Settings The text message is stored in the DM area. One character is 1 byte and one DM word is 2 bytes, so 24 DM words need to be used to store one screen message.
  • Page 646 Section 11-6 LCD Option Board Function Select the character codes in the following table. Upper bits Lower bits...
  • Page 647 Section 11-6 LCD Option Board Function Deleting Message Screen Example Delete the Message Screen 1. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select Message. 3. Press the OK button to enter the Message menu. 4.
  • Page 648 Section 11-6 LCD Option Board Function 11-6-10 Timer Switch There are 3 kinds of timer, including Day, Weekly and Calendar Timer. It is possible to register up to 16 timers for each kind. Type Description Day timer Sometime in a day, set the related control bit to ON. Weekly timer Sometime in a week, set the related control bit to ON.
  • Page 649 Section 11-6 LCD Option Board Function 6. Use the Forward button to move the column cursor to the timer flag position. Press the Up button to select the timer flag Y. Select the timer flag in the following table. Timer flag Meaning Timer in use Timer not in use...
  • Page 650 Section 11-6 LCD Option Board Function 13. Use the Forward button to move the column cursor to the position of word address. The present setting is the default address. 14. Move the column cursor to the digit to be set. Use the Up button to change the word address to 509.
  • Page 651 Section 11-6 LCD Option Board Function 5. Press the OK button to enter the Calendar Timer Screen. The final digit of the Timer No. will be flashing. The following table shows the setting items. Description Timer flag Timer No. (01 to 16) ON date of PLC OFF date of PLC Word type...
  • Page 652 Section 11-6 LCD Option Board Function 13. Press the OK button to save the setting. 14. Press the ESC or OK button to return to the Calander Timer Screen. Note 1. If a timer is in use, when the timer switch turns ON, the LCD Option Board will send command to PLC one time every 1 second to make control bit ON, when the timer switch turns OFF, the LCD Option Board will send com- mand to PLC one time every 1 second to make control bit OFF.
  • Page 653 Section 11-6 LCD Option Board Function Weekly Timer Calendar Timer Note Set the OFF date to 1 October, the Calendar Timer will turn OFF at 24:00 September.
  • Page 654: Data Backup

    Section 11-6 LCD Option Board Function 11-6-11 Data Backup User can save the user settings to DM memory area from one LCD Option Board and load to other LCD Option Boards from the DM memory area. Note Please do not take the DM area (D8000 to D8999) for other use. User settings which can be backed up as shown below.
  • Page 655 Section 11-6 LCD Option Board Function 6. Press the OK button to display a load confirming screen. 7. Press the OK button to start loading. A rate of loading will be displayed in the screen. 8. When the rate comes up to 100%, the loading is finished. Then it will dis- play a complete screen.
  • Page 656 Section 11-6 LCD Option Board Function 5. Press the OK button to enter the Save Operation Screen. 6. Press the Down button to select OK. Note Selecting Cancel will result in a return to the previous menu. 7. Press the OK button to display a save confirming screen. 8.
  • Page 657: Language Selection

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

    Section 11-6 LCD Option Board Function 11-6-13 PLC Cycle Time This function can display the cycle time of the CPU Unit. The operation method will be shown in the following example. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select Other. 3.
  • Page 659: Plc Clock Setting

    Section 11-6 LCD Option Board Function 11-6-14 PLC Clock Setting This function can change the setting of the built-in clock in the CPU Unit. Example Change PLC time to 12:00:00, PLC week to Saturday. 1,2,3... 1. Switch to the Setup Mode. 2.
  • Page 660: Plc System Information

    Section 11-6 LCD Option Board Function 10. Press the ESC button to return to the Monitor Mode. 11-6-15 PLC System Information This function can display the system information of the CPU Unit. The opera- tion method will be shown in the following example. 1,2,3...
  • Page 661: Lcd Backlight Setting

    Section 11-6 LCD Option Board Function 11-6-16 LCD Backlight Setting This function can make a setting for the LCD backlight. Example The backlight turns off after LCD has not been used for 5 minutes. 1,2,3... 1. Switch to the Setup Mode. 2.
  • Page 662: Lcd Contrast Setting

    Section 11-6 LCD Option Board Function 11-6-17 LCD Contrast Setting This function can make a setting for the LCD contrast. Example Change the contrast of LCD display to 8. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select Other. 3.
  • Page 663: Lcd Factory Setting

    Section 11-6 LCD Option Board Function 11-6-18 LCD Factory Setting This function can initialize the factory setting of the LCD Option Board. The operation method will be shown in the following example. 1,2,3... 1. Switch to the Setup Mode. 2. Press the Down button to select Other. 3.
  • Page 664 Section 11-7 Trouble Shooting 11-7 Trouble Shooting 11-7-1 Symptom at Power ON or during Operation Symptom Probable cause Possible solution No LCD display LCD connection error or no power supply Check if LCD is connected correctly and the from PLC. PLC power supply is normal.
  • Page 665: Deleting Eeprom Error

    Section 11-7 Trouble Shooting 11-7-3 Deleting EEPROM Error 1,2,3... 1. A flashing error screen will be displayed when an error occurs. The following table shows the display items. Description Error type User Monitor setting error Message setting error Timer Switch setting error Language setting error Backlight setting error Contrast setting error...
  • Page 666 Section 11-7 Trouble Shooting...
  • Page 667: Troubleshooting

    SECTION 12 Troubleshooting This section provides information on hardware and software errors that occur during CP1L-EL/EM operation. 12-1 Error Classification and Confirmation ......12-2 Troubleshooting .
  • Page 668: Error Classification And Confirmation

    Section 12-1 Error Classification and Confirmation 12-1 Error Classification and Confirmation Error Categories Errors in CP1L-EL/EM CPU Units can be broadly divided into the following four categories. Category Comments CPU Error A WDT (watchdog timer) error is generated in the CPU Unit, the CPU Unit will malfunction, and operation will stop.
  • Page 669 Section 12-1 Error Classification and Confirmation CPU Unit Indicators and Error Meanings in RUN or MONITOR Mode Indicator CPU error Fatal error Non-fatal Output OFF standby error Bit turned POWER Not lit Not lit Not lit ERR/ALM Not lit Flashing Not lit LNK/ACT BKUP...
  • Page 670 Section 12-1 Error Classification and Confirmation ■ Non-fatal Errors Error Error code Error flag Error information (A400) Meaning Address FAL instruction 4101 to 42FF A402.15 Executed FAL A360 to A391 executed number Flash memory 00F1 A315.15 error Interrupt task 008B A402.13 Interrupt task A426...
  • Page 671 Section 12-2 Troubleshooting 12-2 Troubleshooting Use the following procedure to check error details and remove the cause of the error if the CPU Unit does not operate when the power supply is ON, oper- ation suddenly stops and the error indicator (ERR/ALM indicator) lights, or if the error indicator (ERR/ALM indicator) flashes during operating.
  • Page 672: Fatal Errors

    Section 12-2 Troubleshooting ■ CPU Standby Detection of Special I/O Units and CPU Bus Units has not been completed. • If a CPU Bus Unit has not started normally, check the Unit Setup. • If a Special I/O Unit is not detected, replace the Special I/O Unit. 12-2-3 Fatal Errors ■...
  • Page 673 Section 12-2 Troubleshooting Memory Errors Probable cause Possible remedy Automatic transfer from the Memory Cassette Store the required data on the Memory Cas- at startup failed because the required data is sette. not on the Memory Cassette. An error has occurred in memory. One or See below.
  • Page 674 Section 12-2 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 675 Section 12-2 Troubleshooting Probable cause Possible remedy Illegal Area Access Error 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.
  • Page 676 Probable cause Possible remedy A WDT (watchdog) error occurred in the Cycle the power supply. The Unit may be CPU Unit. (This does not occur in normal faulty. Consult your OMRON representa- use.) tive. ■ Reference Information Error flag None...
  • Page 677 Section 12-2 Troubleshooting 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 678 Section 12-2 Troubleshooting ■ Reference Information Error flag Flash Memory Error Flag, A315.15 Other non-fatal flags, A402.00 Error code (A400) None Error information None Interrupt Task Errors Probable cause Possible remedy An interrupt task error occurs when the Review the program to see whether detect- Detect Interrupt task errors setting in the ing interrupt task errors can be disabled or PLC Setup is set to Detect and an attempt...
  • Page 679 Section 12-2 Troubleshooting ■ Reference Information Error flag Battery Error Flag, A402.04 Error code (A400) 00F7 Error information Logic Errors in Setting Table Probable cause Possible remedy An error occurs in routing table, Transfer the relative setup again. IP address table, or IP router table ■...
  • Page 680: Other Errors

    Section 12-2 Troubleshooting 12-2-6 Other Errors Communications Errors ■ CPU Unit Indicators POWER ERR/ALM POWER LNK/ACT ERR/ALM BKUP Not lit LNK/ACT BKUP Probable cause Possible remedy An error has occurred in the communica- Confirm that the Ethernet port settings in the tions between the Ethernet port and con- PLC Setup are correct.
  • Page 681 Section 12-2 Troubleshooting Ethernet Communication Error When Ethernet Communication Error occurs during FINS communication ser- vice by built-in Ethernet port, the error code, error contents and error's time will be stored in A40 to A44. The detail information of error code and error contents show as the following table.
  • Page 682: Error Log

    Section 12-3 Error Log 12-3 Error Log Each time an error occurs, the CPU Unit stores error information in the Error Log Area of the Auxiliary Area (A100 to A199). The error information includes the error code (stored in A400), error contents, and time that the error occurred.
  • Page 683: Troubleshooting Unit Errors

    Section 12-4 Troubleshooting Unit Errors 12-4 Troubleshooting Unit Errors CPU Unit Symptom Cause Remedy POWER indicator is not lit. PCB short-circuited or damaged. Replace Unit. RUN indicator is not lit. (1) Error in program (fatal error) Correct program. (2) Power line is faulty. Replace Unit.
  • Page 684 Section 12-4 Troubleshooting Unit Errors Outputs Symptom Cause Remedy Not all outputs turn ON (1) Load is not supplied with power. Supply power (2) Load voltage is low. Adjust voltage to within rated range. (3) Terminal block screws are loose. Tighten screws (4) Faulty terminal block connector contact.
  • Page 685: Inspection And Maintenance

    SECTION 13 Inspection and Maintenance This section provides inspection and maintenance information. 13-1 Inspections ........... 13-1-1 Inspection Points.
  • Page 686: Inspections

    Section 13-1 Inspections 13-1 Inspections Daily or periodic inspections are required in order to maintain the PLC’s func- tions in peak operating condition. 13-1-1 Inspection Points Although the major components in CP-series PLCs have an extremely long life time, they can deteriorate under improper environmental conditions. Peri- odic inspections are thus required to ensure that the required conditions are being kept.
  • Page 687: Unit Replacement Precautions

    • If a faulty Unit is being returned for repair, describe the problem in as much detail as possible, enclose this description with the Unit, and return the Unit to your OMRON representative. • For poor contact, take a clean cotton cloth, soak the cloth in industrial alcohol, and carefully wipe the contacts clean.
  • Page 688: Replacing User-Serviceable Parts

    Section 13-2 Replacing User-serviceable Parts 13-2 Replacing User-serviceable Parts The following parts should be replaced periodically as preventative mainte- nance. The procedures for replacing these parts are described later in this section. • Battery (backup for the CPU Unit’s internal clock and RAM) Battery Functions The battery maintains the internal clock and the following data of the CPU Unit’s RAM while the main power supply is OFF.
  • Page 689 Section 13-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. SYSMAC CP1L ERR/ALM indicator POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT COM(V+) V1 + V2 + COM MAC Address: 01234567890A When the ERR/ALM indicator flashes, connect the CX-Programmer to the...
  • Page 690 Section 13-2 Replacing User-serviceable Parts Procedure 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 battery, the capacitor that backs up memory when the battery is re- moved will not be fully charged and memory may be lost before the new battery is inserted.
  • Page 691: A Standard Models

    CPU Units Name and Model Specifications Remarks appearance Power Outputs Inputs supply CPU Units with 20 CP1L-EL20DR-D 24 VDC 8 relay outputs 24 VDC Memory capacity: 5 Ksteps I/O Points 12 inputs High-speed counters: CP1L-EL20DT-D 8 transistor 100 kHz, 4 counters...
  • Page 692 Appendix A Standard Models Optional Products 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 CIF12 Unit to function as an RS-422A/485 port.
  • Page 693 Appendix A Standard Models Expansion I/O Units Name and Model Specifications Remarks appearance Inputs Outputs 40-point I/O Units CP1W-40EDR 24 VDC 16 relay outputs 24 inputs CP1W-40EDT 16 transistor outputs, sinking CP1W-40EDT1 16 transistor outputs, sourcing 32-point Output Units CP1W-32ER None 32 relay outputs CP1W-32ET...
  • Page 694: Standard Models

    Appendix A Standard Models Expansion Units Name and appearance Model Specifications Remarks 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 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 20 mA...
  • Page 695 Appendix A Standard Models Name and appearance Model Specifications Remarks Temperature Sensor CP1W-TS004 Thermocouple inputs K or J, 12 inputs Units CompoBus/S I/O Link CP1W-SRT21 As a CompoBus/S slave, 8 inputs and 8 outputs are allocated. Unit Maintenance Products Name and appearance Model Specifications Remarks...
  • Page 696 Appendix A Standard Models...
  • Page 697: B Dimensions Diagrams

    Appendix B Dimensions Diagrams CP1L-EL/EM CPU Units CPU Units with 20 I/O Points SYSMAC CP1L POWER ERR/ALM LNK/ACT BKUP ANALOG INPUT (V-) COM(V+) V1 + V2 + COM MAC Address: 01234567890A Four, 4.5 dia. CPU Units with 30 I/O Points SYSMAC CP1L POWER...
  • Page 698 Appendix B Dimensions Diagrams Optional Products CP1W-CIF01 Option Board 0.15 16.5 35.9 13.5 16.5 19.7 CP1W-CIF11/CP1W-CIF12-V1 Option Board 0.15 16.5 35.9 13.5 15.7 16.5 CP1W-CIF12 Option Board (Not include CP1W-CIF12-V1) 0.15 36.4...
  • Page 699 Appendix B Dimensions Diagrams CP1W-DAM01 LCD Option Board 0.45 20.9 20.6 13.3 CP1W-MAB221 Analog Input/Output Option Board 0.15 36.4 CP1W-ADB21 Analog Input Option Board 0.15 36.4...
  • Page 700 Appendix B Dimensions Diagrams CP1W-DAB21V Analog Output Option Board 0.15 36.4 CP1W-ME05M Memory Cassette 18.6 14.7...
  • Page 701 Appendix B Dimensions Diagrams Expansion I/O Units 40-point I/O Units (CP1W-40EDR/40EDT/40EDT1) 110 100 90 40EDR Four, 4.5 dia. holes 32-point Output Units (CP1W-32ER/32ET/32ET1) Four Ø4.5 holes...
  • Page 702 Appendix B Dimensions Diagrams 20-point I/O Units (CP1W-20EDR1/20EDT/20EDT1) 00 01 02 03 04 05 06 07 08 09 10 11 100±0.2 20EDR1 00 01 02 03 04 05 06 07 76±0.2 Two, 4.5 dia. holes 16-point Output Unit (CP1W-16ER/16ET/16ET1) 90 100±0.2 76±0.2 Two, 4.5 dia.
  • Page 703: Expansion Units

    Appendix B Dimensions Diagrams Expansion Units CP1W-AD041/CP1W-AD042 Analog Input Units CP1W-DA041/CP1W-DA042 Analog Output Units CP1W-MAD11/CP1W-MAD42/CP1W-MAD44 Analog I/O Units 100±0.2 76±0.2 Two, 4.5 dia. holes CP1W-TS001/101/002/102/003 Temperature Sensor Units 100±0.2 76±0.2 Two, 4.5 dia. holes...
  • Page 704 Appendix B Dimensions Diagrams CP1W-TS004 Temperature Sensor Units 90 100±0.2 Two,4.5 dia. 140 ± 0.2 140 ± 0.2 holes CP1W-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 705: Initial Settings

    Appendix C Auxiliary Area Allocations by Function Initial Settings Name Address Description Access Updated IOM Hold Bit A500.12 Turn this bit ON to retain the status of the I/O Memory when shift- Read/write ing from PROGRAM to RUN or MONITOR mode or vice versa or when turning ON the power supply.
  • Page 706 Appendix C Auxiliary Area Allocations by Function Built-in Inputs Built-in Analog Input Name Address Description Access Updated Analog Input 1 PV A642 Stores the value set from the analog input 1 as a hexadecimal Read-only value (resolution: 1/1000). 0000 to 03E8 hex Analog Input 2 PV A643 Stores the value set from the analog input 2 as a hexadecimal...
  • Page 707 Appendix C Auxiliary Area Allocations by Function Name Description Read/Write Updated High-speed Counter PV Contains the PV of the high-speed counter. Read-only • Cleared when power is turned ON. • Cleared when operation starts. • Updated each cycle during oversee- ing process.
  • Page 708 Appendix C Auxiliary Area Allocations by Function Item Pulse output Pulse output Pulse Output Stop Error Code A444 A445 Pulse Output Reset Bit A540.00 A541.00 Pulse Output CW Limit Input Signal Flag A540.08 A541.08 Pulse Output CCW Limit Input Signal Flag A540.09 A541.09 Pulse Output Positioning Completed Signal A540.10...
  • Page 709 Appendix C Auxiliary Area Allocations by Function Name Description Read/Write Updated Pulse Output, Output ON when an error occurred while outputting pulses in the Read-only • Cleared when power is turned Stopped Error Flag pulse output 0 origin search function. •...
  • Page 710 Appendix C Auxiliary Area Allocations by Function Name Description Read/Write Updated Inverter Fre- This word contains the automatically calculated fre- Read • Cleared when power is turned ON. quency 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- •...
  • Page 711 Appendix C Auxiliary Area Allocations by Function Name Description Read/Write Updated Error Counter This flag turns ON when an error occurs in the error Read • Turned OFF when power is turned Error Flag counter for inverter positioning. • Turned OFF when CPU Unit oper- ON: Error counter error ation starts.
  • Page 712 Appendix C Auxiliary Area Allocations by Function Name Description Read/Write Updated Error Counter Turn ON this bit to reset the Error Counter Present Value Read/write Reset Bit and turn OFF the Error Counter Error Flag. Error Counter Dis- Turn ON this bit to hold the error counter value. Read/write able Bit ON: Error counter value held.
  • Page 713: Data Tracing

    Appendix C Auxiliary Area Allocations by Function Task Information Name Address Description Access Updated Task Number when Pro- A294 This word contains the task number of the task that was Read-only gram Stopped being executed when program execution was stopped because of a program error.
  • Page 714: Comment Memory

    Appendix C Auxiliary Area Allocations by Function Comment Memory Name Address Description Access Updated Program Index File Flag A345.01 Turns ON when the comment memory contains a pro- Read-only gram index file. OFF: No file ON: File present Comment File Flag A345.02 Turns ON when the comment memory contains a com- Read-only...
  • Page 715 Appendix C Auxiliary Area Allocations by Function Program Error Information Name Address 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.
  • Page 716 Appendix C Auxiliary Area Allocations by Function PLC Setup Error Information Name Address Description Access Updated PLC Setup Error Flag A402.10 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.
  • Page 717 Appendix C Auxiliary Area Allocations by Function Other PLC Operating Information Name Address Description Access Updated Battery Error Flag A402.04 ON if the CPU Unit’s battery is disconnected or its volt- Read-only (non-fatal error) age is low and the Detect Battery Error setting has been set in the PLC Setup.
  • Page 718 Appendix C Auxiliary Area Allocations by Function Power Supply Information Name Address Description Access Updated Startup Time A510 and These words contain the time at which the power was Read/write A511 turned ON. The contents are updated every time that the power is turned ON.
  • Page 719 Appendix C Auxiliary Area Allocations by Function Memory Cassette Information Name Address Description Access Updated Memory Cassette Access A342 A342.03: ON when data is being written to the Memory Read-only Status Cassette or the Memory Cassette is being ini- tialized. OFF when processing has been com- pleted.
  • Page 720 Appendix C Auxiliary Area Allocations by Function Information on Read Protection Using a Password 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.
  • Page 721 Appendix C Auxiliary Area Allocations by Function Ethernet Communication Error Name Address Description Access Updated Ethernet Communication A40 to A44 When an error has occurred, the error code, error con- Read-only Error Information tents, and error's time and date are stored in these AR channels.
  • Page 722 Appendix C Auxiliary Area Allocations by Function Socket Service Request Switches Item Socket Service Request Socket Service Request Socket Service Request Switch 1 Switch 2 Switch 3 UDP Open Request Switch A571.00 A571.08 A572.00 TCP Passive Open Request A571.01 A571.09 A572.01 Switch TCP Active Open Request...
  • Page 723 Appendix C Auxiliary Area Allocations by Function Information When Automatically Allocating Communications Ports Name Address Description Access Updated Network Communications A202.15 ON when there is a communications port available for Read-only Port Allocation Enabled Flag automatic allocation. Note Use this flag to confirm whether a communica- tions port is available for automatic allocation before executing communications instructions when using 9 or more communications instruc-...
  • Page 724 Appendix C Auxiliary Area Allocations by Function Serial Port 1 Information (CP1L CPU Units with EL CPU Type) Name Address Description Access Updated Serial Port 1 Communica- A392.04 ON when a communications error has occurred at the Read-only tions Error Flag serial port 1.
  • Page 725 Appendix C Auxiliary Area Allocations by Function Modbus-RTU Easy Master Information (CP1L CPU Units with EM CPU Type) Name Address Description Access Updated Serial Port 1 Modbus-RTU A641.00 Turn ON this bit to send a command and receive a Read-only Master Execution Bit response for serial port 1 using the Modbus-RTU easy master function.
  • Page 726 OMRON FB Library to execute FINS messages or DeviceNet explicit messages communications. The values set in the Settings for OMRON FB Library in the PLC Setup will be automatically stored in the related Auxiliary Area words A580 to A582 and used by the function blocks from the OMRON FB Library.
  • Page 727 Appendix D Auxiliary Area Allocations by Address Read-only Area (Set by System) Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change 10-ms Incre- This word contains the system timer Retained Cleared Every menting Free used after the power is turned ON.
  • Page 728 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change 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.
  • Page 729 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change Error Counter This flag turns ON when an error ON: Error Cleared When Error Flag 0 occurs in the error counter for counter error pulse out-...
  • Page 730 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change Present Value These words contain the present Cleared Every error of Unsigned value of the unsigned output value counter 1 Output Value (output value = present value of error...
  • Page 731 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change In-position This flag turns ON when inverter ON: In posi- Cleared When Flag 1 positioning 1 is in position.
  • Page 732 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change Present Value These words contain the relative Cleared Every error of Pulse Out- value of the internal pulse output counter 1 put to Inverter when pulses are being output to the...
  • Page 733 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change FINS/TCP Turned ON by the Unit when a con- ON: Estab- Cleared Refreshed Connection nection is established.
  • Page 734 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change IR/DR Opera- ON when index and data registers OFF: Inde- Retained Retained tion between are shared between all tasks.
  • Page 735 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A201 Online Editing ON when an online editing process is ON: Waiting Cleared Cleared A527 Wait Flag waiting.
  • Page 736 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A215 00 to 07 First Cycle Each flag will turn ON for just one ON: First Flags after cycle after a communications error...
  • Page 737 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A274 High-speed These flags indicate whether the PV Cleared Refreshed Counter 0 is within the specified ranges when each cycle high-speed counter 0 is being oper- during...
  • Page 738 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A275 High-speed These flags indicate whether the PV Cleared Refreshed Counter 1 is within the specified ranges when each cycle high-speed counter 1 is being oper- during...
  • Page 739 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A276 Pulse Output Contain the number of pulses output Cleared Refreshed 0 PV from the corresponding pulse output each cycle A277 port.
  • Page 740 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A280 Pulse Output ON when the number of output Cleared Refreshed 0 Output pulses for pulse output 0 has been when the Amount Set set with the PULS(886) instruction.
  • Page 741 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A281 Pulse Output This flag indicates when an overflow Cleared Refreshed or underflow has occurred in the when the pulse output 1 PV.
  • Page 742 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A283 PWM Output ON when pulses are being output Cleared Refreshed 0 Output In- from PWM output 0.
  • Page 743 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A295 No END Error ON when there is not an END(001) ON: No END Cleared Cleared A294,...
  • Page 744 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A310 Manufactur- The manufacturing lot number is Retained Retained When the ing Lot Num- stored in 6 digits hexadecimal.
  • Page 745 Auxiliary Area Allocations by Address Appendix D Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A320 High-speed These flags indicate whether the PV Cleared Refreshed Counter 2 is within the specified ranges when each cycle high-speed counter 2 is being oper- during...
  • Page 746 Auxiliary Area Allocations by Address Appendix D Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A321 High-speed These flags indicate whether the PV Cleared Refreshed Counter 3 is within the specified ranges when each cycle high-speed counter 3 is being oper- during...
  • Page 747 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A342 Memory Cas- ON when data is being written to the OFF: Not writ- Retained Cleared sette Write Memory Cassette.
  • Page 748 Auxiliary Area Allocations by Address Appendix D Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A351 Calendar/ These words contain the CPU Unit’s Retained Retained Written Clock Area internal clock data in BCD. The clock every cycle A354 can be set from the CX-Programmer...
  • Page 749 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A392 Serial Port 2 ON when a data overflow occurred ON: Overflow Retained Cleared Reception during reception through the serial OFF: No...
  • Page 750 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A393 00 to 07 Serial Port 2 The corresponding bit will be ON ON: Commu- Retained Cleared Refreshed PT Communi-...
  • Page 751 Auxiliary Area Allocations by Address Appendix D Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A400 Error code When a non-fatal error (user-defined Cleared Cleared Refreshed FAL(006) or system error) or a fatal when error error (user-defined FALS(007) or occurs.
  • Page 752 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A401 Too Many I/O ON when the number of Expansion ON: Error Cleared Cleared Refreshed A407 Points Flag...
  • Page 753 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A402 FAL Error ON when a non-fatal error is gener- ON: FAL(006) Cleared Cleared Refreshed A360 to Flag...
  • Page 754 Appendix D Auxiliary Area Allocations by Address Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A406 PLC Setup When there is a setting error in the 0000 to 01FF Cleared Cleared Refreshed...
  • Page 755 Auxiliary Area Allocations by Address Appendix D Address Name Function Settings Status Status Write Related after at star- timing flags, set- Words Bits mode tings change A438 Pulse Output If a Pulse Output Stop Error occurs Retained Cleared Refreshed 2 Stop Error for pulse output 2, the error code is when ori- Code...
  • Page 756 Auxiliary Area Allocations by Address Appendix D Read/Write Area (Set by User) Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A500 Ethernet Turn this bit ON to clear Ethernet OFF to ON: Retained Cleared A40 to Communi-...
  • Page 757 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A508 Differentiate ON when the differentiate monitor ON: Monitor Retained Cleared Monitor condition has been established dur- condition Completed ing execution of differentiation moni-...
  • Page 758 Auxiliary Area Allocations by Address Appendix D Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A514 Number of Contains the number of times that 0000 to FFFF Retained Retained Refresh- A395.11 Power Inter- power has been interrupted since the...
  • Page 759 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A526 Serial Port 2 Turn this bit ON to restart the serial OFF to ON: Retained Cleared Restart Bit port 2 of a CP1L EM-type CPU Unit.
  • Page 760 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A528 08 to 15 Serial Port 1 These flags indicate what kind of Bits 08 and 09: Retained Cleared Error Code error has occurred at the serial port 1...
  • Page 761 Auxiliary Area Allocations by Address Appendix D Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A535 Interrupt Used for interrupt input 3 in counter Retained Retained --- Counter 3 mode. Counter SV Sets the count value at which the interrupt task will start.
  • Page 762 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A562 Error Turn ON this bit to reset the Error Cleared Counter 0 Counter 0 Present Value and turn Reset Bit OFF the Error Counter 0 Error Flag.
  • Page 763 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A567 Closing The status of TCP/UDP Socket 1 is ON: Start close Cleared When Flag ON during close processing.
  • Page 764 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A568 Closing The status of TCP/UDP Socket 2 is ON: Start close Cleared When Flag ON during close processing.
  • Page 765 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A569 Closing The status of TCP/UDP Socket 3 is ON: Start close Cleared When Flag ON during close processing.
  • Page 766 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A571 Receive Receive processing executed when ON: Request Cleared When the Request socket service request switch 1 is receive data is Switch...
  • Page 767 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A572 Send Send processing executed when ON: Request Cleared When the Request socket service request switch 3 is send data is Switch...
  • Page 768 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A619 Serial Port 1 ON while the serial port 1’s commu- ON: Changing Retained Cleared Settings nications settings are being changed OFF: Not...
  • Page 769 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A641 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...
  • Page 770 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A729 to Power ON These words contain the time at See at left. Retained Retained Written A731 Clock Data which the power was turned ON four...
  • Page 771 Appendix D Auxiliary Area Allocations by Address Addresses Name Function Settings Status Status at Write Related after startup timing Flags, Word Bits mode Settings change A744 to Power ON These words contain the time at See at left. Retained Retained Written A746 Clock Data which the power was turned ON nine...
  • Page 772 Appendix D 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 773 Appendix D Auxiliary Area Allocations by Address Details on Auxiliary Area Operation A100 to A199: Error Log Area Error code Error flag contents Error record Error code Error flag contents 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).
  • Page 774 Appendix D Auxiliary Area Allocations by Address Error Codes and Error Flags Classification Error code Meaning Error flags System-defined 80F1 Memory error A403 fatal errors 80CA I/O bus error A404 80E1 Too many I/O error A407 80E0 I/O setting error 80F0 Program error A295 to A299 (See note 3.)
  • Page 775 Auxiliary Area Allocations by Address Appendix D Ethernet Communication Error The details of Ethernet communication errors are shown as the following table. Error code Error content Detailed information (Hex) PROM 1st byte 2nd byte 0103 Resend count exceeded (send failed) Commands Bit 15: 0105...
  • Page 776 Auxiliary Area Allocations by Address Appendix D Error code Error content Detailed information (Hex) PROM 1st byte 2nd byte 03C2 FINS/TCP packet discarded 01 to 03: Reopened because Connection number remote node closed Reopened because of reception error Reopened because of transmission error Reopened because RST received from...
  • Page 777 Appendix D Auxiliary Area Allocations by Address A200.11: First Cycle Flag Execution started. Time 1 cycle 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 778 Auxiliary Area Allocations by Address Appendix D A202.00 to A202.07: Communications Port Enabled Flags Port 0 SEND Port 1 PMCR Port 7 Instruction Network communications in- execution struction executed for port 0. A202.00 A202.00 The program is designed so that CMND(490) will be executed only when A202.00 is ON.
  • Page 779: E Memory Map

    Appendix E Memory Map PLC Memory Addresses PLC memory addresses are set in Index Registers (IR00 to IR15) to indirectly address I/O memory. Normally, use the MOVE TO REGISTER (MOVR(560)) and MOVE TIMER/COUNTER PV TO REGISTER (MOVRW(561)) instructions to set PLC memory addresses into the Index Registers. Some instructions, such as DATA SEARCH (SRCH(181)), FIND MAXIMUM (MAX(182)), and FIND MINIMUM (MIN(183)), output the results of processing to an Index Register to indicate an PLC memory address.
  • Page 780: Memory Map

    Appendix E Memory Map Memory Map Note Do not access the areas indicated Reserved for system. Classification PLC memory User addresses Area addresses (hex) I/O memory 0B100 to 0B7FF Reserved for system. areas 0B800 to 0B801 TK00 to TK31 Task Flag Area 0B802 to 0B83F Reserved for system.
  • Page 781: Connection Methods

    Appendix F Connections to Serial Communications Option Boards Connection Methods Communications Modes and Ports The following table shows the relationship between the communications ports and the communications modes for the Serial Communications Option Boards. Communications mode RS-232C RS-422A/485 CP1W-CIF01 CP1W-CIF11/CIF12 1:1 4-wire 1:N 4-wire 1:1 2-wire...
  • Page 782 Appendix F Connections to Serial Communications Option Boards Reducing Electrical Noise for External Wiring Observe the following precautions when wiring communications cables, PLC power lines, and high-power lines. When multi-conductor signal cable is being used, avoid using I/O wires and other control wires in the same cable.
  • Page 783 Appendix F Connections to Serial Communications Option Boards NT-AL001 Link Adapter Settings The NT-AL001 Link Adapter has a DIP switch for setting RS-422A/485 communications conditions. When con- necting the Serial Communications Option Board, refer to the DIP switch settings shown in the following table. Function Factory setting Not used.
  • Page 784 Appendix F Connections to Serial Communications Option Boards Connection Examples The connection examples in the remainder of this section show only the basic connection diagrams. We rec- ommend that appropriate noise countermeasures be taken in actual applications, including the use of shielded twisted-pair cables.
  • Page 785 Appendix F Connections to Serial Communications Option Boards 1:N Connections Using RS-232C Ports Computer NT-AL001 Link Adapter CPU Unit NT-AL001 Link Adapter Shield RS-232C Signal Signal Signal Signal Signal Signal RS-422A (See note) RS-232C RS-232C RS-232C Option Interface Board D-sub, 9-pin connector (male) D-sub, 9-pin Terminal block...
  • Page 786 Appendix F Connections to Serial Communications Option Boards 1:1 Connections Using RS-422A/485 Port CPU Unit Computer NT-AL001 Link Adapter Signal RS-422A Signal Signal Signal /485 Shield Option Board RS-232C Interface 4-wire Terminating resistance ON D-sub, 9-pin Terminal block connector (male) 5 V (+) power (-) DIP Switch Settings...
  • Page 787 (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 788 Appendix F Connections to Serial Communications Option Boards Note (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 CPU Unit Signal...
  • Page 789 Appendix F Connections to Serial Communications Option Boards (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. Connections for Serial Gateway and No-protocol Communications This section describes the connections for Serial Gateway, and no-protocol communications.
  • Page 790 Appendix F Connections to Serial Communications Option Boards Port Configu- Schematic diagram ration RS-422A/ RS-422A/485 interface RS-422A/485 RS-232C interface NT-AL001 RS-232C RS-422A/485 Resistance ON 5 V power RS-422A/ RS-422A/485 interface RS-422A/485 Resistance Resistance ON RS-422A/485 interface B500-AL001-E RS-422A/485 Resistance Resistance ON RS-232C interface NT-AL001...
  • Page 791 Appendix F Connections to Serial Communications Option Boards Connecting RS-232C Ports 1:1 Connections to E5CK Controller CPU Unit OMRON E5CK Controller RS-232C Option Board RS-232C Signal RS-232C: Terminal Block Shield Signal Terminal D-sub, 9-pin connector (male) Connections to a Host Computer...
  • Page 792 Appendix F Connections to Serial Communications Option Boards Connecting a Host Computer with NT-AL001 Converting Link Adapters CPU Unit NT-AL001 Link Adapter Computer NT-AL001 Link Adapter RS-232C Signal Signal Signal Signal Pin Signal Signal RS-422A RS-232C Shield RS-232C RS-232C Option Interface Board (See note)
  • Page 793 Appendix F Connections to Serial Communications Option Boards 1:N Connections Using RS-232C Ports Device supporting RS-422A/485 communications (4-wire) CPU Unit NT-AL001 Shield Signal RS-422A Signal Signal Signal RS-422A Shield RS-232C /485 interface RS-232C Option Board Device supporting RS-422A/485 communications (4-wire) (See note) Signal D-sub, 9-pin...
  • Page 794 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 RS-422A terface RS-422A...
  • Page 795 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- face Device supporting RS-422A/485...
  • Page 796 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 797 Appendix F Connections to Serial Communications Option Boards 1:N, 4-wire Connections from RS-422A/485 to RS-422A/485 Ports CPU Unit Signal Signal RS-422A RS-422A /485 /485 Option Board Interface Terminal block Terminal block or D-sub connector (See note 2.) Short bar Signal RS-422A /485 interface...
  • Page 798 Appendix F Connections to Serial Communications Option Boards Serial PLC Link Connection Examples This section provides connection examples for using Serial PLC Link. The communications mode used here is Serial PLC Link. Connecting an RS-422A Converter CP1L-EL/EM CPU Unit CP1L-EL/EM CPU Unit CP1M CPU Unit (Polled Unit #0) (Polling Unit)
  • Page 799: Connection Examples

    Appendix F Connections to Serial Communications Option Boards Connection Examples CP1L-EL/EM CPU Unit (Master) CP1L-EL/EM CPU Unit (Slave No. 0) CJ1M CPU Unit (Slave No. 1) CP1W-CIF11/CIF12 CP1W-CIF01 CJ1W-CIF11 RS-422A/485 Option Board RS-232C Option Board DIP switch DIP switch DIP switch Pin No.
  • Page 800 Appendix F Connections to Serial Communications Option Boards RS-232C and RS-422A/485 Wiring Recommended RS-232C Wiring Examples It is recommended that RS-232C cables be connected as described below especially when the Option Board is used in an environment where it is likely to be subject to electrical noise. 1.
  • Page 801 Appendix F Connections to Serial Communications Option Boards Recommended RS-422A/485 Wiring Examples Use the following wiring methods for RS-422A/485 to maintain transmission quality. 1. Always use shielded twisted-pair cables as communications cables. Model Manufacturer 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 Ω...
  • Page 802 Appendix F Connections to Serial Communications Option Boards • With NT-AL001 RS-232C/RS-422 Link Adapter CP1L-EL/EM CPU Unit Option Board Remote device NT-AL001 RS-422 RS-232C Signal Signal Pin Signal Signal Remote device Hood Hood Shield (See note.) Signal Note (1) The following cables are available for this connection. Length Model 70 cm...
  • Page 803 Appendix F Connections to Serial Communications Option Boards Wiring Connectors Use the following steps to wire connectors. 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.
  • Page 804 Appendix F Connections to Serial Communications Option Boards 5. Wrap adhesive tape around the conductor from which the braided shield was removed. Adhesive tape Soldering 1. Thread a heat-shrinking tube through each conductor. 2. Temporarily solder each conductor to the corresponding connector terminals. 3.
  • Page 805 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
  • Page 806 Connections to Serial Communications Option Boards Appendix F...
  • Page 807 Appendix G PLC Setup Startup Settings Startup Hold Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Force Status Hold Bit Not held. Not held. When power is turned Held. IOM Hold Bit Not held. Not held.
  • Page 808 PLC Setup Appendix G Settings: CPU Unit Settings Execute Process Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Do not detect Low Bat- Detect. Detect Every cycle tery (run without battery) Do not detect. Detect Interrupt Task Detect.
  • Page 809 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 810: 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 11 hex 1 ms...
  • Page 811 PLC Setup Appendix G Built-in Ethernet Settings Ethernet Port Settings Name Default Settings When setting is read by Internal Bits Settings CPU Unit address Broadcast Address 4.3BSD When power is turned 4.3BSD ON or when Ethernet is 4.2BSD reset IP Address IP1/highest When power is turned 08 to 15...
  • Page 812 Appendix G PLC Setup FINS/TCP and FINS/UDP Name Default Settings When setting is read by Internal Bits Settings CPU Unit address IP Address Conversion Auto Method Auto Method When power is turned ON 02 to 03 00 hex Method or when Ethernet is reset Auto Method (Static) 01 hex IP Address Table Ref-...
  • Page 813 Appendix G PLC Setup FINS/TCP Connection Name Default Settings When setting is Internal Bits Settings read by CPU Unit address FINS/TCP Connection 1 FINS/TCP Connection 1 Server Server When power is Mode turned ON or when Client Ethernet is reset FINS/TCP Connection 1 Disable Disable...
  • Page 814 Appendix G PLC Setup Name Default Settings When setting is Internal Bits Settings read by CPU Unit address FINS/TCP Connection 3 FINS/TCP Connection 3 Server Server When power is Mode turned ON or when Client Ethernet is reset FINS/TCP Connection 3 Disable Disable When power is...
  • Page 815 Appendix G PLC Setup SNTP Server Name Default Settings When setting is read by Internal Bits Settings CPU Unit address SNTP Server Specify IP Address IP Address When power is turned ON Method or when Ethernet is reset Host Name Auto Adjust Time Mode Disable Disable...
  • Page 816 Appendix G PLC Setup Serial Port 1 Settings Serial Communications Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Communications Settings Standard Standard (9600; 1,7,2,E) Every cycle (9600; 1,7,2,E) (The standard settings (CP1L are as follows: 9,600 EM-type baud, 1 start bit, 7-bit CPU Unit)
  • Page 817 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address 2-1-3 Unit Num- Every cycle 00 to 00 hex (CP1L EM-type CPU Unit) 1F hex (CP1L EL- type CPU Unit) NT Link (1:N): 1:N NT Links 2-2-1 Baud 9,600...
  • Page 818 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address 2-3-3 Start Code Disable. Disable. Every cycle (CP1L EM-type CPU Unit) Set. (CP1L EL- type CPU Unit) 2-3-4 Start Code 00 hex0x0000 0x0000 Every cycle 08 to...
  • Page 819 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Serial Gateway 2-5-1 Baud 9,600 bps 300 bps Every cycle 00 to 01 hex (CP1L 600 bps 02 hex EM-type CPU Unit) 1,200 bps 03 hex 2,400 bps...
  • Page 820 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 EM-type CPU Unit) 115,200 (high speed) 0A hex (CP1L EL- type CPU...
  • Page 821 Appendix G PLC Setup Serial Port 2 Settings Serial Communications Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Communications Settings Standard Standard (9600; 1,7,2,E) Every cycle (9600 ; 1,7,2,E) (The standard settings (CP1L are as follows: 9,600 EM-type baud, 1 start bit, 7-bit...
  • Page 822 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address NT Link (1:N) 2-2-1 Baud 9,600 38,400 (standard) Every cycle 00 to 00 hex (disabled) (CP1L 115,200 (high speed) 0A hex EM-type CPU Unit) 2-2-2 NT/PC...
  • Page 823 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address 2-3-6 Received 256 bytes 256 bytes Every cycle 00 to 00 hex Bytes (CP1L 1 byte 01 hex EM-type CPU Unit) 255 bytes FF hex 2-3-7 Set End...
  • Page 824 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 115,200 (high speed) 0A hex EM-type CPU Unit) 2-6-2...
  • Page 825 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 826 Appendix G PLC Setup 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 Linear mode...
  • Page 827: Pulse Output 0 Settings

    Appendix G PLC Setup Interrupt Input Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Normal Normal When power is turned 00 to 0 hex (CIO 0.04) Interrupt 1 hex Quick 2 hex Normal Normal When power is turned 04 to...
  • Page 828 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 0 hex tion Use.
  • Page 829 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 0001 86A0 000F 4240 Acceleration Ratio...
  • Page 830: Pulse Output 1 Settings

    Appendix G PLC Setup Pulse Output 1 Settings Base Settings Name Default Settings When setting is read Internal Bits Settings by 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)
  • Page 831 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 0 hex tion Use.
  • Page 832 Appendix G PLC Setup Origin Return Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Speed 0 pps 1 pps At start of operation 289 and 00 to 15 0000 0001 (disabled) 100,000 pps 0001 86A0 000F 4240 Acceleration Ratio...
  • Page 833 Appendix G PLC Setup Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Error counter cycle 0: 3 (4-ms incre- 0: 3 (4-ms incre- When power is turned 00 to 07 00 hex ments) ments) 1 (4-ms incre- 01 hex ments)
  • Page 834 Appendix G PLC Setup Inverter Positioning 1 Basic Settings Name 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-...
  • Page 835 Appendix G PLC Setup Operation Adjustment Settings Name Default Settings When setting is read Internal Bits Settings by CPU Unit address Limit output during Do not use When power is turned 08 to 11 0 hex acceleration and con- Do not use 1 hex stant speed Limit output during...
  • Page 836 Appendix G PLC Setup...
  • Page 837: H Tcp Status Transitions

    Appendix H TCP Status Transitions CLOSED ACTIVE OPEN snd SYN CLOSE Passive OPEN LISTEN CLOSE rcv SYN SEND snd SYN, ACK snd SYN rcv SYN RECEIVED SENT snd ACK rcv ACK of SYN rcv SYN, ACK snd ACK CLOSE ESTABLISHED snd FIN rcv FIN CLOSE...
  • Page 838 Appendix H TCP Status Transitions...
  • Page 839: I Ethernet Network Parameters

    Appendix I Ethernet Network Parameters Parameter Value Description Hold timer 18 s The hold timer is used for active open processing of TCP sockets. An ETIMEDOUT error will occur if connection is not completed within 18 s. Resend timer The resend timer is used to monitor completion of reception of arrival confirmations when transferring data via socket services.
  • Page 840 Appendix I Ethernet Network Parameters...
  • Page 841 Appendix J Buffer Configuration (CP1L-EL/EM) Socket recepiton buffer (3×4096 bytes) IP packet input FINS packet input FINS event buffer buffer buffer (In: 8×1024 bytes) (55×592 bytes)) (30,720 bytes) FINS/TCP Communications recepiton buffer controller (4×4096 bytes) FINS event buffer IP packet output (Out: 8×1024 bytes) buffer (55×592 bytes)
  • Page 842: J Buffer Configuration (Cp1L-El/Em)

    Appendix J Buffer Configuration (CP1L-EL/EM)
  • Page 843: K Ethernet Specifications

    Appendix K Ethernet Specifications Item Specification Description Data length of FINS 1004 bytes (max) The max data length of FINS message can be dealt with by PLC’s message FINS service. This data length does not include FINS header whose length is 12 bytes, so the max length of FINS message is 1016 bytes.
  • Page 844 Appendix K Ethernet Specifications...
  • Page 845: Index

    Index flags Close Request Switch absolute coordinates Closing Flag selecting CMND(490) instruction absolute pulse outputs commands Access Error Flag FINS commands addresses communications memory map Communications Port Enabled Flags Always OFF Flag flags Always ON Flag no-protocol applications Communications Port Enabled Flags precautions xxvii complete link method...
  • Page 846 Index sharing Ethernet communications addresses data tracing reading from Unit related flags/bits exchanging data between PLCs dates Ethernet Unit Setup program and parameters Ethernet Units debugging resetting flags dedicated control bits differential phase mode details failure point detection DIP switch pin 6 status FAL Error Flag direction...
  • Page 847 Index Forced Status Hold Bit index register sharing force-resetting bits debugging index registers sharing force-setting bits debugging indirect addressing DM Area frequency index registers frequency measurement Initial Task Execution Flag Initial Task Flag Initial Task Startup Flag initialization Gate Bit CPU Unit high-speed counters Input Units...
  • Page 848 Index Less Than or Equals Flag operating environment xxvi precautions xxvi Limit Input Signal Type operating modes linear mode counting description details effects of mode changes on counters Low Voltage Directive operation debugging trial operation Origin Compensation main response code Origin Detection Method maintenance Origin Input Signal Type...
  • Page 849 Index echo test pulse outputs PLC Setup PWM(891) outputs error information bit allocations details Polled Units settings Polling Unit setting Polling Unit link method quick-response inputs details Port No. field port numbers UDP port reading from Unit positioning radioactivity xxvi vertically conveying PCBs read/write-protection Positioning Monitor Time...
  • Page 850 Index Send Request Switch Task Started Flag SEND(090) instruction tasks related flags/bits Sending Flag See also interrupt tasks serial communications Task Flags functions TCP Active Open Request Switch Serial PLC Links TCP communications allocated words sockets PLC Setup status related flags TCP Passive Open Request Switch Server specification type field TCP/IP...
  • Page 851 Index work words write-protection...
  • Page 852 Index...
  • Page 853: 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. W516-E1-04 Revision code The following table outlines the changes made to the manual during each revision. Revision code Date Revised content March 2012...
  • Page 854 Revision History...
  • Page 856 The Netherlands Hoffman Estates, IL 60169 U.S.A. Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 © OMRON Corporation 2012 All Rights Reserved. OMRON (CHINA) CO., LTD. OMRON ASIA PACIFIC PTE. LTD. In the interest of product improvement, Room 2211, Bank of China Tower, No.

Table of Contents

Save PDF