Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas

plc automaçao industria, Resumos de Física

para automacao de sistemas industriai

Tipologia: Resumos

2024

Compartilhado em 02/12/2024

sergio-pacheco-25
sergio-pacheco-25 🇧🇷

2 documentos


Pré-visualização parcial do texto

Baixe plc automaçao industria e outras Resumos em PDF para Física, somente na Docsity! OMRON DE na Lago am? x “a Ii ogrammable Controlle axa SEE ER ars B ER “E FSYS Ubae 8 a = 88 henfacitco it) tica mo CPAL poster Symiote o: PIE Es | PAL/CP1E tt 3 TABLE OF CONTENTS PRECAUTIONS................................................................ 9 1 Intended Audience..................................................................................................... 10 2 General Precautions.................................................................................................. 10 3 Safety Precautions .................................................................................................... 10 4 Application Precautions ..............................................................................................11 SECTION 1 CP1L/CP1E Overview .................................................... 13 1-1 CP1L/CP1E Models................................................................................................... 14 1-2 Part Names and Functions ........................................................................................ 18 SECTION 2 Designing Systems......................................................... 23 2-1 Organization of this Manual ....................................................................................... 24 2-2 About the Shutter Control System ............................................................................. 26 2-3 I/O Allocation for the Shutter Control System............................................................ 28 2-4 Example Ladder Program.......................................................................................... 30 SECTION 3 Mounting and Wiring....................................................... 31 3-1 Installation Notes ....................................................................................................... 32 3-2 Mounting onto DIN Tracks ......................................................................................... 35 3-3 Wiring Devices........................................................................................................... 36 3-4 Power Testing CP1L .................................................................................................. 39 SECTION 4 Creating Programs.......................................................... 41 4-1 Preparing for Programming ....................................................................................... 42 4-2 Creating Ladder Programs ........................................................................................ 47 4-3 Using CX-Programmer .............................................................................................. 50 4-4 Using the Help ........................................................................................................... 53 4-5 Inputting Programs .................................................................................................... 55 4-6 Saving/Loading Programs ......................................................................................... 76 4-7 Editing Programs ....................................................................................................... 79 SECTION 5 Transferring and Debugging Programs .......................... 85 5-1 Going Online.............................................................................................................. 86 5-2 Adjusting/Debugging Online ...................................................................................... 93 Appendix....................................................................... 103 A-1 Channel/Relay Numbers ......................................................................................... 104 A-2 Instructions .............................................................................................................. 109 A-3 Inner Workings of CP1L/CP1E .................................................................................113 A-4 CP1L Programming Examples ................................................................................ 123 A-5 Comparison between CP1L and CP1E ................................................................... 174 A-6 Difference between CP1E E/N/NA -type and E/N S(1)-type......................... 181 4 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. Be sure to read the precautions provided in the fol- lowing section. This manual is intended for first-time users of the SYSMAC CP series. The basic use of the series is explained based on SYSMAC CP1L. For CP1E uses, please transpose "CP1L" to "CP1E". The differ- ences between CP1L and CP1E are explained by notes or headings. Circuit configurations, wiring methods, and programs provided in this manual are given strictly as examples. When constructing an actual system, check the specifications, performance, and safety of each component by referring to the respective manuals. Ladder programs in this manual are provided strictly as examples. When designing the actual circuits, take adequate safety measures. Precautions provide general precautions for using the Programmable Controller and related devices. Section 1 introduces the types of CP1L and CP1E, as well the part names. Section 2 explains how to construct a CP1L system based on the shutter control system as an exam- ple. Section 3 explains the how to install CP1L onto a DIN track, how to wire power supply and I/O lines, and how to test operation as an example. Section 4 explains the basic functions of CX-Programmer creating the ladder program for the shutter control system. Section 5 describes how to transfer and debug programs. The Appendices provide channel/relay numbers, instructions, inner workings and programming examples of CP1L and CP1E. Related Manuals The following manuals are used for the CP-series CPU Units. Refer to these manuals as required. Cat. No. Manual name Description W462 SYSMAC CP Series CP1L CPU Unit User’s Manual Explains the system configuration, installation, wir- ing, I/O allocation, pulse/counter functions, and expansion unit connections in details. Also provides information on errors, troubleshooting, mainte- nance, and inspection. W451 SYSMAC CP Series CP1H/CP1L CPU Unit Pro- gramming Manual Provides the following information on the CP Series: • Programming instructions • Programming methods • Tasks • File memory • Functions Use this manual together with the CP1H Program- mable Controllers Operation Manual (W450). W479 SYSMAC CP Series CP1E CPU Unit Hardware User's Manual Describes the following information for CP1E PLCs. • Overview and features • Basic system configuration • Part names and functions • Installation and settings • Troubleshooting Use this manual together with the CP1E CPU Unit Software User's Manual (W480) and Instructions Reference Manual (W483). W480 SYSMAC CP Series CP1E CPU Unit Software User's Manual Describes the following information for CP1E PLCs. • CPU Unit operation • Internal memory • Programming • Settings • CPU Unit built-in functions •Interrupts •High-speed counter inputs •Pulse outputs •Serial communications •Analog I/O function •Other functions Use this manual together with the CP1E CPU Unit Hardware User's Manual (W479) and Instructions Reference Manual (W483). W483 SYSMAC CP Series CP1E CPU Unit Instructions Refer- ence Manual Describes each programming instruction in detail. When programming, use this manual together with the CP1E CPU Unit Software User's Manual (W480). W446 SYSMAC CX-Programmer Operation Manual Provides information on installing and operating the CX-Programmer for all functions except for function blocks. 5 8 Disclaimers ■CHANGE IN SPECIFICATIONS Product specifications and accessories may be changed at any time based on improvements and other reasons. It is our practice to change model numbers when published ratings or features are changed, or when significant construction changes are made. However, some specifications of the products may be changed without any notice. When in doubt, special model numbers may be assigned to fix or establish key specifications for your application on your request. Please consult with your OMRON representative at any time to confirm actual specifications of purchased products. ■DIMENSIONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when tolerances are shown. ■PERFORMANCE DATA Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability. ■ERRORS AND OMISSIONS The information in this manual has been carefully checked and is believed to be accurate; however, no responsibility is assumed for clerical, typographical, or proofreading errors, or omissions. 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. 1 Intended Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 10 Intended Audience1 Intended Audience This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent). • Personnel with little experience installing FA systems. • Personnel with little experience designing FA systems. • Personnel with little experience managing FA systems and facilities. 2 General Precautions The user must operate the product according to the performance specifications described in the operation manuals. Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems, railroad systems, aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used improperly, consult your OMRON representative. Make sure that the ratings and performance characteristics of the product are sufficient for the systems, machines, and equipment, and be sure to provide the systems, machines, and equipment with double safety mechanisms. This manual provides information for programming and operating the Unit. Be sure to read this manual before attempting to use the Unit and keep this manual close at hand for reference during operation. WARNING It is extremely important that a PLC and all PLC Units be used for the specified purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PLC System to the above-mentioned applications. 3 Safety Precautions Caution When power is ON or has just been turned OFF, do not touch the power supply, I/O terminals, or the surrounding areas. Doing so may result in burns. After turning the power OFF, wait for the unit to cool down sufficiently before touching it. Caution Secure the AC power supply line to the terminal block with a 0.5N·m of torque. Loosening the screw may result in a fire or malfunction. Caution Before starting online editing, confirm that the extension of cycle time will have no adverse effects. Otherwise, input signals may not be read. SECTION 1CP1L/CP1E Overview This section introduces the types of CP1L and CP1E, as well the part names used during operation. 1-1 CP1L/CP1E Models .............................................................. 14 1-1-1 CP1L Models .................................................................. 14 1-1-2 CP1E Models.................................................................. 15 1-2 Part Names and Functions ................................................... 18 CP1L/CP1E Overview1 1 C P 1L/C P 1E O verview 141-1 CP1L/CP1E Models CP1L programmable controller is a PLC package type, available with 10, 14, 20, 30, 40 or 60 I/O points. The CP1E includes E (S)-type CPU Units (basic models) for standard control operations using basic, movement, arithmetic, and comparison instructions, and N (S )-type CPU Units (application models) that supports connections to Programmable Terminals, Inverters, and Servo Drives. E (S)-type CPU Unit is available with 10, 14, 20, 30 or 40 I/O points, N (S )-type CPU Unit is available with 14, 20, 30, 40 or 60 I/O points, NA -type CPU Unit is only available with 20 I/O points, two analog inputs and one analog output. The CP1E includes the standard E -type, N -type CPU Units and the renewal E S-type, N S(1)-type CPU Units. For application examples that use CP1L or CP1E, refer to appendix A-4 CP1L/CP1E Programming Examples. 1-1-1 CP1L Models ■10-point I/O Units (CP1L-L10D - ) • CPU unit has 6 input points and 4 output points. • CP-series expansion I/O units cannot be used to add I/O points. ■20-point I/O Units (CP1L-L20D - ) • CPU unit has 12 input points and 8 output points. • CP-series expansion I/O units can be used to add I/O points, up to a total of 60 I/O points. SYSMAC CP1L/CP1E Introduction Manual 1-1 CP1L/CP1E Models 1 1 C P 1 L /C P 1 E O v e rv ie w ■40-point I/O Units (CP1L-M40D-) • CPU unit has 24 input points and 16 output points. • CP-series expansion I/O units can be used to add I/O points, up to a total of 160 I/O points. 1-1-2 CP1E Models ■10-points I/O Units (CP1E-E10D-) • CPU unit has 6 input points and 4 output points. • CP-series expansion I/O units cannot be used to add I/O points. E-type CPU Unit CP1E-E10D- SYSMAC CP1E PERIPHERAL POWER RUN INH PRPHL BKUP COM 00 01 02 03 04 05 NC L1 L2/ N 01 02 03 NC COM NC 00 COM COMSYSMAC CP1L/CP1E Introduction Manual 15 1-2 Part Names and Functions 1 1 18 C P 1L/C P 1E O verview1-2 Part Names and Functions This section describes the part names and functions, using the CP1L 14-point I/O unit and CP1E 40- point I/O unit as examples. ■CP1L14-point I/O Unit ■CP1E 40-point I/O Unit MEMORY COMM COMM 2 3 4 5 6 IN 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 E -type CPU Unit CP1E-E40DR-A N -type CPU Unit CP1E-N40D - E S-type CPU Unit CP1E-E40SDR-A N S(1)-type CPU Unit CP1E-N40S(1)D - 8 9 2 3 7 SYSMAC CP1E EXP 11 12 14 13 EXP 21 20 10 6 9 2 7 11 12 1413 8 20 21 22 6 SYSMAC CP1L/CP1E Introduction Manual 1-2 Part Names and Functions 1 1 C P 1L/C P 1E O verview(1) Memory cassette slot (only CP1L) Used to attach a memory cassette (15). Memory cassettes can be used to store backups for CP1L programs, parameters, and data memory. They also allow you to copy data to other CP1L units without using a programming tool (software). (2) Peripheral USB port Used for connection to a computer. Computers can be used for programming and monitoring. (3) Analog adjuster (except CP1E E S/N S(1)-type) Rotate to adjust the value for auxiliary area A642CH (CP1E: A642CH/ A643CH) to within the 0 to 255 range. Use to change timer and counter settings without using a programming tool (software). (4) External analog settings input connector (only CP1L) Takes an external input between 0 and 10V, and changes the value for auxiliary area A643CH to a value between 0 and 256. This input is not isolated. (5) DIP switches (only CP1L) Used for settings such as write-permission on user memory, automatic transfers from memory cassettes, and tool bus use. For details, refer to 2-1 Part Names and Functions of CP Series CP1L CPU Unit User's Manual (W462). (6) Battery (only CP1L and CP1E N/NA (S )-type) Maintains the internal clock and RAM contents while the power supply is OFF. A battery serves as an option for CP1E N/NA (S )-type CPU units. (7) Operation indicators Indicates the operating status of CP1L. Indicated statuses include power status, operating mode, errors, and peripheral USB communication status. (8) Power supply, ground, and input terminal block Used to connect the power supply line, ground line, and input lines. (9) Input indicators Lit when the corresponding input terminal contact is ON except for analog input terminal. (10) Option board slot Used to install an RS-232C option board (16) or an RS-422A/485 option board (17). • CP1L CPU units 14/20-point I/O units may have 1 serial communication option board installed. 30/40/60-point I/O units may have up to 2 serial communication option boards installed. • CP1E CPU units N30/40/60 or NA20 CPU units may have 1 serial communication option board installed. E10/14/20/30/40/60(S), N14/20 or N30/40/60S(1) CPU units have no slot. (11) Expansion I/O unit connector Used to connect CP-series expansion I/O units and expansion units. SYSMAC CP1L/CP1E Introduction Manual 19 1-2 Part Names and Functions 1 1 20 C P 1L/C P 1E O verview• CP1L CPU units 14/20-point I/O units may have 1 expansion unit connected. 30/40/60-point I/O units may have up to 3 expansion units connected. 10-point I/O units have no expansion unit connected. • CP1E CPU units E30/40/60(S), N30/40/60(S ) or NA20 CPU units may have up to 3 expansion units connected. E10/14/20(S) or N14/20 CPU units have no expansion unit connected. (12) Output indicators Lit when the corresponding output terminal contact is ON except for analog output terminal. (13) External power supply and output terminal block • External power supply terminal: Units that use AC power supply have a 24VDC external power supply terminal with a maximum capacity of 300mA.This can be used as a service power supply for input devices. CP1E E10/14/20(S) or N14/20 CPU units have no external power supply terminal. • Output terminals: Used to connect output lines. (14) DIN track mounting pin Used for mounting unit to a DIN track. (15) Memory cassette (optional only for CP1L) Used to store data from the built-in flash memory. Insert into memory cassette slot (1). (16) RS-232C option board Insert into option board slot (10). CP1L 10-point I/O units, CP1E E (S)-type units, CP1E N14/20 or N30/40/ 60S(1) CPU units have no slot. (17) RS-422A/485 option board Insert into option board slot (10). (18) LCD option board (only CP1L) Used to monitor various kinds of data and change the present values or settings without connecting the CX-Programmer. The specific timer switch can also be used which is not provided by the PLC. Insert into option board slot (10). 10-point I/O units have no slot. (19) Ethernet option board Used to add an Ethernet port. Insert into option board slot (10). (20) Built-in RS-232C port (only CP1E N/NA (S )-type) By connecting a PT, the controlled system can be monitored and data can be collected. (21) Built-in RS-232C or RS-485 communications status indicator (only CP1E N/ NA (S )-type) Flashing when the built-in RS-232C or RS-485 port is in communication mode. (22) Built-in RS-485 port (only CP1E N S1-type) Connect a device such as inverter, temperature controller, etc.SYSMAC CP1L/CP1E Introduction Manual SECTION 2Designing Systems This section explains how to construct a CP1L (14-point I/O unit with AC power supply) system based on the shutter control system as an example. All subsequent sections are written based on the sample program used in this section. 2-1 Organization of this Manual .................................................. 24 2-2 About the Shutter Control System ........................................ 26 2-2-1 Operation........................................................................ 26 2-2-2 System Components ...................................................... 27 2-3 I/O Allocation for the Shutter Control System ....................... 28 2-4 Example Ladder Program..................................................... 30 2 2 Designing Systems D e s ig n in g S y s te m s 242-1 Organization of this Manual Sections 2 through 5 of this manual explain the construction process of a CP1L system, from design to operation, using a shutter control system as an example. Section contents are as follows: Section 2: Workflow from design to operation, shutter control system specifications, components, and I/O allocation. Section 3: CP1L installation, component wiring, and power testing. Section 4: Connecting CP1L to a computer, and creating ladder programs. Section 5: Setting PLC clock and PLC operation mode, transferring data from computer to CP1L, operation, adjustment, and debugging. Note Circuit configurations, wiring methods, and programs provided in this manual are given strictly as examples. When constructing an actual system, check the specifications, performance, and safety of each component by referring to the respective manuals. SYSMAC CP1L/CP1E Introduction Manual 2-1 Organization of this Manual 2 2 D e s ig n in g S y s te m s ●Workflow from Design to Operation The workflow for constructing a CP1L shutter control system is shown below. For details, refer to the respective sections of the manual. Refer to 2-3 I/O Allocation for the Shutter Control System. Refer to 3-2 Mounting onto DIN Tracks and 3-3 Wiring Devices. Refer to 3-4 Power Testing CP1L. Refer to 4-1 Preparing for Programming. Refer to 4-2 Creating a Ladder Program, 4-3 Using CX- Programmer, 4-5 Inputting Programs, 4-6 Saving/ Loading Programs, and 4-7 Editing Programs. Refer to 5-1 Going Online. Refer to 5-2 Adjusting/Debugging Online. Refer to 5-1 Going Online. Preparing the equipment · Equipment preparation · Wire power supply and ground · Wire I/O devices Supplying power to CP1L · Test PLC operation Preparing to write program · Install USB driver onto computer · Connecting CP1L to a computer Writing programs · Enter ladder programs in CX-Programmer · Compile · Save · Edit Going online with CP1L and the computer · Set the CP1L clock · Switch to PROGRAM mode. · Transfer the program Online debugging · Monitor power · Force-set/force-reset commands · Online Editing Production run I/O allocation · Allocate relay numbers to sensors and switchesSYSMAC CP1L/CP1E Introduction Manual 25 2-3 I/O Allocation for the Shutter Control System 2 2 28 D e s ig n in g S y s te m s 2-3 I/O Allocation for the Shutter Control System I/O relays on CP1L are allocated to contacts as defined by following. ●Inputs ●Outputs Device Contact Address OPEN button PB1 0.00 STOP button PB2 0.01 CLOSE button PB3 0.02 Car detection sensor SEN1 0.03 Light detection sensor SEN2 0.04 Upper limit LS LS1 0.05 Lower limit LS LS2 0.06 Device Contact Address Escalation motor MO1 100.00 De-escalation motor MO2 100.01 LS1(0.05) MO1(100.00) SEN2(0.04) PB1(0.00) PB2(0.01) PB3(0.02) SEN1(0.03) LS2(0.06) MO2(100.01)SYSMAC CP1L/CP1E Introduction Manual 2-3 I/O Allocation for the Shutter Control System 2 2 D e s ig n in g S y s te m s ●I/O Allocation on CP1L with 14-point I/O On 14-point I/O units, 8 input relays, from 0.00 to 0.07 (bits 00 to 07 on 0CH), are allocated to the input terminal block. Also, 6 output relays, from 100.00 to 100.05 (bits 00 to 05 on 100CH), are allocated to the output terminal block. Unused upper bits on the input channel (bits 08 to 15) cannot be used as a work area. Unused upper bits on the output channel (bits 06 to 15) , however, can be used. Output Area Input Area 8 inputs 6 outputs 0 CH (0.00~0.07) 100 CH (100.00~100.05) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 CH 100 CH Input area : 8 inputs Output area : 6 outputsUsed as work area Allocate Allocate Not availableSYSMAC CP1L/CP1E Introduction Manual 29 2-4 Example Ladder Program 2 2 30 D e s ig n in g S y s te m s 2-4 Example Ladder Program An example ladder program for the shutter control system is shown below. Program creation is explained in SECTION 4. W0.00 TIM 0000 #50 Work area T0000 Timer 0.04 Light detection sensor W0.00 Work area W0.00 Work area 0.04 Light detection sensor T0000 Timer C0000 Counter A200.11 P_First_Cycle First cycle flag C0000 Counter 0.01 STOP button 0.05 Upper limit LS 100.01 De-escalation motor 100.00 Escalation motor 0.00 OPEN button 100.00 Escalation motor 0.01 STOP button 0.06 Lower limit LS 100.00 Escalation motor 100.01 De-escalation motor 0.03 Car detection sensor 0.02 CLOSE button 100.01 De-escalation motor Timer Counte #3 CNT 0000SYSMAC CP1L/CP1E Introduction Manual 3 3-1 Installation Notes 3 M o u n tin g a n d W irin g (1) Control panel (2) Fan (3) Louver ●Accessibility for Operation and Maintenance • For safety during operation and maintenance, separate the unit as far as possible from high-voltage equipment and power machinery. • For ease of operation, mount the unit onto the control panel at a height of 1,000 to 1,600mm. Caution When power is ON or has just been turned OFF, do not touch the power supply, I/O terminals, or the surrounding areas. Doing so may result in burns. After turning the power OFF, wait for the unit to cool down sufficiently before touching it. ●Improving Noise Resistance • Avoid installing into a cabinet, which also has high-voltage equipment installed. • Secure at a distance of 200mm or more from power lines. • Properly ground the mounting plate between the unit and the mounting surface. 1 2 3 CP1L Power Line 200mm min. 200mm min. CP1LSYSMAC CP1L/CP1E Introduction Manual 33 3 34 3-1 Installation Notes3 M ounting and W iring●Mounting For heat dissipation, mount CP1L/CP1E in the orientation shown below. ■External Dimensions ■DIN Track Secure the DIN track onto the control panel, using at least 3 screws. • Use M4 screws at intervals of 210mm (6 holes) or less. Screw torque is 1.2N·m. For details on installing CP1L/CP1E, refer to SECTION 3 Installation and Wiring of CP Series CP1L CPU Unit User’s Manual (W462) or SECTION 5 Installation and Wiring of CP Series CP1E CPU Unit Hardware User's Manual (W479). W1 W2 110 100 90 4-φ4.5 85 8 79 8 CP1L/CP1E common CP1L CP1E-E/N/NA CP1L CP1E-ES/NS Model W1 W2 CP1L-L10D - 66 56 CP1E-E10D - 66 56 CP1L-L14D - 86 76 CP1E- 14 D - 86 76 CP1L-L20D - 86 76 CP1E- 20 D - 86 76 CP1E-NA20D - 130 120 CP1L-M30D - 130 120 CP1E- 30 D - 130 120 CP1L-M40D - 150 140 CP1E- 40 D - 150 140 CP1L-M60D - 195 185 CP1E- 60 D - 195 185SYSMAC CP1L/CP1E Introduction Manual 3 3-2 Mounting onto DIN Tracks 3 M o u n tin g a n d W irin g 3-2 Mounting onto DIN Tracks This section explains how to mount CP1L onto a DIN track. 1. Pull out the DIN track mounting pin (1). 2. Hook the rear panel of CP1L onto the DIN track (1), as shown. 3. Push in the DIN track mounting pin (1) to secure CP1L. 1 1CP1L 1 SYSMAC CP1L/CP1E Introduction Manual 35 3 38 3-3 Wiring Devices3 M o u n tin g a n d W irin g ●Wiring Inputs 1. Wire the inputs as shown, while referring to 2-3 I/O Allocation for the Shutter Control System. ●Wiring Outputs 1. Wire the outputs as shown, while referring to 2-3 I/O Allocation for the Shutter Control System. For details on wiring, refer to 3-5-4 I/O Wiring for CPU Units with 14 I/O Points of CP Series CP1L CPU Unit User’s Manual (W462) or 5-3-3 I/O Wiring of CP Series CP1E CPU Unit Hardware User's Manual (W479). L1 L2/N COM 01 03 05 07 NC 00 02 04 06 PB1 (0.00) PB2 (0.01) PB3 (0.02) SEN1 (0.03) SEN2 (0.04) LS1 (0.05) LS2 (0.06) NC NC NC + 00 01 02 03 04 - 05 MO2 (100.01) MO1 (100.00) NC NC COMCOM COMCOMSYSMAC CP1L/CP1E Introduction Manual 3 3-4 Power Testing CP1L 3 M o u n tin g a n d W irin g 3-4 Power Testing CP1L After wiring CP1L, perform a power test. ■Turning Power ON Supply power to CP1L, and then check the status with the indicators. 1. Turn the power OFF for all components (escalation motor, de-escalation motor, etc.). 2. Turn the power ON for CP1L. 3. Wait 2 seconds for the CP1L to initialize. 4. Check the indicators on CP1L. If [POWER] and [RUN] are lit, CP1L is operating normally. Note When CP1L is turned ON, it will go into RUN mode automatically. 5. Turn the power OFF for CP1L. POWER RUN INH PRPHL BKUP ERR/ALMSYSMAC CP1L/CP1E Introduction Manual 39 3 40 3-4 Power Testing CP1L3 M ounting and W iringNote Battery • Using a battery The battery maintains the internal clock and retained regions of I/O memory while the power supply is OFF. If no battery is installed, or if the installed battery is running low, the internal clock will stop, and data in the retained regions of I/O memory will be lost. Data such as user programs and PLC system settings are not lost even when the power is OFF and no battery is installed. For details on replacing the battery, refer to 10-2 Replacing User-servicable Parts of CP Series CP1L CPU Unit User’s Manual (W462) or 7-2 Replacing the Battery in N/NA-type CPU Units of CP Series CP1E CPU Unit Hardware User's Manual (W479). • Battery-free operation If there is no need to reference the PLC clock and RAM data, CP1L can be used without a battery (battery-free operation). For details, refer to 6-5 Battery-free Operation of CP Series CP1L CPU Unit User’s Manual (W462). Caution With an CP1E E (S)-type CPU unit or with an N/NA (S )-type CPU unit without a Battery, the contents of the DM Area (D) *, Holding Area (H), the Counter Present Values (C), the status of Counter Completion Flags (C), and the status of bits in the Auxiliary Area (A) related to clock functions may be unstable when the power supply is turned ON. *This does not apply to areas backed up to EEPROM using the DM backup function. If the DM backup function is being used, be sure to use one of the following methods for initialization. 1. Clearing All Areas to All Zeros Select [Clear Held Memory (HR/DM/CNT) to Zero] in the [Startup Data Read] area in the PLC Setup. 2. Clearing Specific Areas to All Zeros or Initializing to Specific Values Make the settings from a ladder program. If the data is not initialized, the unit or device may operate unexpectedly because of unstable data.SYSMAC CP1L/CP1E Introduction Manual 4-1 Preparing for Programming 4 4 C re a tin g P ro g ra m s 4-1-2 Connecting to a Computer and Installing the USB Driver To use CX-Programmer, you must connect CP1L to a computer, which has CX- Programmer installed. This section explains how to connect CP1L to a computer. The computer to be connected to must have CX-Programmer Ver.8.2 or later installed. You will also need a USB cable to connect CP1L to the computer. Furthermore, a USB driver must be installed for CP1L to be recognized by the computer. ●Items Required for Connection ●Restrictions on USB Connections Due to limitations of the USB specifications, the following restrictions apply when connecting CP1L to a computer. • Only 1 CP1L can be connected to a computer at any given time. You cannot connect multiple CP1Ls simultaneously. • Do not disconnect the USB cable while the system is online. Before disconnecting the USB cable, switch the application to offline status. If the USB cable is disconnected while online, the following will occur: Simply reconnecting the USB cable will not restore CX-Programmer to online status. First switch CX-Programmer to offline status, reconnect the USB cable, and then switch CX-Programmer back to online status. Operating system Windows 2000, XP or Vista (only CP1E) Software CX-One (i.e. CX-Programmer) USB driver Included with software USB cable USB 1.1 (or 2.0) cable (A-B), 5m or shorterSYSMAC CP1L/CP1E Introduction Manual 43 4-1 Preparing for Programming 4 4 44 C re a tin g P ro g ra m s ■Connecting to a Computer and Installing the USB Driver This section explains how to connect CP1L to a computer running Windows XP. For details on connecting CP1L to a computer running Windows 2000 or Vista, refer to 1-3-1 Connecting with a Commercially Available USB Cable of CP Series CP1L CPU Unit User’s Manual (W462) or 4-2-2 Installing the USB Driver of CP Series CP1E CPU Unit Hardware User's Manual (W479). 1. Turn the power ON for CP1L and the computer. 2. Using a USB cable (2), connect the peripheral USB port (3) on CP1L to a USB port on the computer (1). When the computer detects CP1L, the following message will be displayed. The Found New Hardware Wizard dialog box will be displayed. This screen will be used to install the USB driver. Note The programming console is not available. 3. The following dialog box will be displayed. Select one of the options and click [Next]. BATTERY L1 L2/N COM 01 03 05 07 NC NC 00 02 04 06 NC NC NC 00 01 02 03 04 NC NC COM COM COM COM 05 NC IN OUT 2 3 4 5 6 1 2 3 SYSMAC CP1L/CP1E Introduction Manual 4-1 Preparing for Programming 4 4 C re a tin g P ro g ra m s 4. The following dialog box will be displayed. Select [Install the software automatically (Recommended)] and click [Next]. 5. Ignore the following dialog box if it is displayed and click [Continue Anyway]. 6. Click [Finish]. USB driver installation is now complete. p SYSMAC CP1L/CP1E Introduction Manual 45 4-2 Creating Ladder Programs 4 4 48 C re a tin g P ro g ra m s ●After Entering the Garage / Exiting the Garage (1) Car detection sensor (E3G-series, etc): • A car detection sensor will detect full car entrance into the garage, and activate the shutter de-escalation motor. (2) Push-buttons (A16-series, etc): • When pulling the car out of the garage, use the buttons to operate the shutter. • When pulling the car out of the garage, a differentiated up contact should be used as the car detection sensor, so that the shutter does not close immediately upon fully opening. A ladder program will be set forth hereafter based on the description above. SYSMAC CP1L/CP1E Introduction Manual 4-2 Creating Ladder Programs 4 4 C re a tin g P ro g ra m s 4-2-2 Ladder Program The ladder program for the example application is shown below. Creating the program in CX-Programmer will be explained in the next section. W0.00 TIM 0000 #50 Work area * 4 T0000 Timer * 3 0.04 Light detection sensor * 1 W0.00 Work area * 2 W0.00 Work area 0.04 Light detection sensor T0000 Timer C0000 Counter A200.11 P_First_Cycle First cycle flag * 7 C0000 Counter 0.01 STOP button 0.05 Upper limit LS 100.01 De-escalation motor 100.00 Escalation motor 0.00 OPEN button 100.00 Escalation motor 0.01 CLOSE button 0.06 Lower limit LS 100.00 Escalation motor 100.01 De-escalation motor 0.03 Car detection sensor * 8 0.02 CLOSE button 100.01 De-escalation motor Timer * 5 Counter * 6 #3 CNT 0000 * 1 Refer to Inputting Contacts of 4-5-2 Inputting Contacts. * 2 Refer to Inputting OR Circuits of 4-5-2 Inputting Contacts. * 3 Refer to Inputting Closed Contacts of 4-5-2 Inputting Contacts. * 4 Refer to 4-5-3 Inputting Output Coils. * 5 Refer to 4-5-4 Inputting Timers. * 6 Refer to 4-5-5 Inputting Counters. * 7 Refer to 4-5-6 Inputting Auxiliary Areas. * 8 Refer to 4-5-7 Inputting Differentiated Up Contacts. SYSMAC CP1L/CP1E Introduction Manual 49 4-3 Using CX-Programmer 4 4 50 C re a tin g P ro g ra m s 4-3 Using CX-Programmer This section explains CX-Programmer start-up and operation screens. 4-3-1 Starting CX-Programmer 1. On the desktop, select [Start] - [All Programs] - [OMRON] - [CX-One] - [CX- Programmer] - [CX-Programmer]. CX-Programmer will start. The title screen will be displayed, followed by the main window. Note For details on installing CX-Programmer, refer to Chapter 1 Overview and Installation of CX-One of CX-One Introduction Guide (R145). SYSMAC CP1L/CP1E Introduction Manual 4-4 Using the Help 4 4 C re a tin g P ro g ra m s 4-4 Using the Help CX-Programmer Help provides information on the CX-Programmer screens, and explains all operations including basic functions, program creation, and monitoring. Instructions, as well as formats and operand functions, are also explained. ■Referencing CX-Programmer Help 1. While using CX-Programmer, press the [F1] key. The help window will be displayed. CX-Programmer Help can also be displayed in several other ways. ●From the Desktop Menu 1. On the desktop, select [Start] - [All Programs] - [OMRON] - [CX-One] - [CX- Programmer] - [CX-Programmer Help]. CX-Programmer Help will be displayed. SYSMAC CP1L/CP1E Introduction Manual 53 4-4 Using the Help 4 4 54 C re a tin g P ro g ra m s ●From CX-Programmer 1. Select [Help] - [Help Contents] from the main menu. CX-Programmer Help will be displayed. ■Referencing PLC Instruction Sets For details on instructions used in ladder programs, refer to PLC Instruction Sets. ●From CX-Programmer 1. Select [Help] - [Instruction Reference] - [CS/CJ-Series] from the main menu. CP-Series PLC Instruction Sets will be displayed. ●While Creating Ladder Programs While creating an instruction in a ladder program in Smart Input Mode, press the [F1] Key to display the Instruction Reference page for the instruction being edited.SYSMAC CP1L/CP1E Introduction Manual 4-5 Inputting Programs 4 4 C re a tin g P ro g ra m s 4-5 Inputting Programs Using the commands available in CX-Programmer, create a program for the example application. 4-5-1 Creating New Projects When using CX-Programmer for the first time, you will need to create a new project. When creating a new project, you must set the target device type and CPU type for the program and data being created. This section explains how to make settings for the CP1L L-type CPU unit as an example. 1. Select [File] - [New] from the main menu. The Change PLC dialog box will be displayed. 2. Select [CP1L] from the Device Type drop-down list. SYSMAC CP1L/CP1E Introduction Manual 55 4-5 Inputting Programs 4 4 58 C re a tin g P ro g ra m s 4-5-2 Inputting Contacts Input a contact. For details on ladder programs, refer to 4-2-2 Ladder Program. ■Inputting Contacts 1. Press either the [L] or [C] key. “LD 0.00” will be displayed. 2. Press the [Enter] key. “Bit (1/1)” will be displayed and “0.00” will be displayed in reverse video. 3. Input address "4". Press the [Enter] key. "4" is entered. The Comment dialog box will be displayed. 4. Input "Light detection sensor" as the I/O comment. Press the [Enter] key. A contact representing input from the light detection sensor will be displayed on the ladder program. Next, input an OR circuit. SYSMAC CP1L/CP1E Introduction Manual 4-5 Inputting Programs 4 4 C re a tin g P ro g ra m s ■Inputting OR Circuits 1. Place the cursor on the program. Press the [Enter] key. A space for inserting an OR circuit will be created. 2. Press the [W] key. "OR 0.05" will be displayed. 3. Press the [Enter] key. "Bit (1/1)" will be displayed and "0.05" will be displayed in reverse video. 4. Input address "W0". Press the [Enter] key. "W0" is entered. The Comment dialog box will be displayed. SYSMAC CP1L/CP1E Introduction Manual 59 4-5 Inputting Programs 4 4 60 C re a tin g P ro g ra m s 5. Input "Work Area" as the I/O comment. Press the [Enter] key. An OR circuit representing the work area contact will be displayed. Next, input a closed contact. ■Inputting Closed Contacts 1. Press the up arrow key. The cursor is moved upward. 2. With the cursor in the up position, press the [/] key. "LDNOT W0.01" will be displayed. 3. Press the [Enter] key. "Bit (1/1)" will be displayed and "W0.01" will be displayed in reverse video. 4. Input address "T0". Press the [Enter] key. SYSMAC CP1L/CP1E Introduction Manual 4-5 Inputting Programs 4 4 C re a tin g P ro g ra m s Next, input a timer instruction. Note Duplicated Coils Do not duplicate coils. If the same address is specified for multiple outputs, only the rung closer to the END instruction will be valid. This is because programs are executed sequentially from top to bottom. Invalid rungs caused by duplicated coils will be detected by CX-Programmer as an error. E.g. A program with duplicated coils The error may be resolved by modifying the program as shown below. SYSMAC CP1L/CP1E Introduction Manual 63 4-5 Inputting Programs 4 4 64 C re a tin g P ro g ra m s 4-5-4 Inputting Timers 1. Press the [C] key. Input contact "W000". For details on inputting a contact, refer to 4-5-2 Inputting Contacts. 2. Press the [T] Key. A list of instructions beginning with T will be displayed. 3. Press the [Enter] key. "Timer number (1/2)" will be displayed, and "0.0" will be displayed in reverse video.SYSMAC CP1L/CP1E Introduction Manual 4-5 Inputting Programs 4 4 C re a tin g P ro g ra m s 4. Input the timer number. "0" is already displayed, so press the [Enter] key. 5. Input the timer set value. Input "#50" and then press the [Enter] key. The Comment dialog box will be displayed. "TIM 0 #50" indicates a 5.0 second delay timer, with a timer completion flag of T0000. 6. Input "Timer" as the I/O comment. Press the [Enter] key.SYSMAC CP1L/CP1E Introduction Manual 65 4-5 Inputting Programs 4 4 68 C re a tin g P ro g ra m s 3. Press the [Enter] key. "Counter number (1/2)" will be displayed, and "0.0" will be displayed in reverse video. 4. Input the counter number. "0" is already displayed, so press the [Enter] key.SYSMAC CP1L/CP1E Introduction Manual 4-5 Inputting Programs 4 4 C re a tin g P ro g ra m s 5. Input the counter set value. Input "#3" and then press the [Enter] key. The Comment dialog box will be displayed. "CNT 0 #3" indicates a decrementing counter starting at count 3, with a counter completion flag of C0000.SYSMAC CP1L/CP1E Introduction Manual 69 4-5 Inputting Programs 4 4 70 C re a tin g P ro g ra m s 6. Input "Counter" as the I/O comment. Press the [Enter] key. The counter instruction input is complete. Next, input a reset input for the counter instruction. The timer contact (TIM 0000) will be used as the reset input. SYSMAC CP1L/CP1E Introduction Manual 4-5 Inputting Programs 4 4 C re a tin g P ro g ra m s A first cycle flag will be displayed on the ladder program. 4-5-7 Inputting Differentiated Up Contacts 1. While referring to 4-2-2 Ladder Programs, enter a ladder program, extending to de-escalation motor contact, "10001". 2. Press the [Enter] key. A space for inserting an OR circuit will be created. 3. Press the [W] key. "OR 100.01" will be displayed. 4. Input address "3". Press the [Enter] key. The Comment dialog box will be displayed. SYSMAC CP1L/CP1E Introduction Manual 73 4-5 Inputting Programs 4 4 74 C re a tin g P ro g ra m s 5. Input "Car detection sensor" as the I/O comment. Press the [Enter] key. A contact representing input from the car detection sensor will be displayed as an OR circuit. 6. Double-click contact "003". The Edit Contact dialog box will be displayed. 7. Click [Detail]. 8. Select [Up] for Differentiation. Click [OK]. SYSMAC CP1L/CP1E Introduction Manual 4-5 Inputting Programs 4 4 C re a tin g P ro g ra m s An upward arrow representing a differentiated up condition will be displayed on the contact. Note  The following instruction variations can be input.  Upward differentiation (@)  Downward differentiation (%)  Immediate refreshing (!)END Instruction The symbols indicating these instruction variations will be added to the beginning of the instruction whenever they are input regardless of whether the cursor is before (example: |LD), in the middle (example:L|D), or at the end (example: LD|) of the instruction.  After an instruction has been entered, the variation can be changed as follows.  @: Upward differentiation  %: Downward differentiation  !: Immediate refreshing  Shift + 0: No differentiation 4-5-8 END Instruction Ladder programs must be terminated with an END instruction. When a new program is created in CX-Programmer, a section inclusive of an END instruction will be inserted automatically. Hence, there is no need to input an END instruction manually. To confirm the ladder program containing only the END instruction, double-click the [END] section. Example: Immediate refreshing (!) specified.SYSMAC CP1L/CP1E Introduction Manual 75 4-6 Saving/Loading Programs 4 4 78 C re a tin g P ro g ra m s 4-6-3 Loading Programs Load a saved ladder program into CX-Programmer. Programs are loaded in groups for each project. 1. Select [File] - [Open] from the main menu. The Open CX-Programmer Project dialog box will be displayed. 2. Specify the save location and file. Click [Open]. The CX-Programmer project file will be opened, and the saved programs will be displayed. SYSMAC CP1L/CP1E Introduction Manual 4-7 Editing Programs 4 4 C re a tin g P ro g ra m s 4-7 Editing Programs Created ladder programs can be edited in CX-Programmer. I/O comments and rung comments can also be added or edited. 4-7-1 Editing I/O Comments I/O comments can be added and edited via a list of addresses. 1. Select [Edit] - [I/O Comment] from the main menu. The I/O comment window will be displayed. SYSMAC CP1L/CP1E Introduction Manual 79 4-7 Editing Programs 4 4 80 C re a tin g P ro g ra m s 2. Double-click the address for which you wish to input or edit the I/O comment. The I/O comment field will become editable. Input or edit the I/O comment. Note In Smart Input Mode, an I/O comment can be input after an operand has been input using the comment dialog box. The Comment dialog box shown above is displayed only when [Show with comment dialog] is selected on the Options - Diagrams dialog box. The Options - Diagrams dialog box is accessed by selecting [Options] from the Tools menu. 4-7-2 Inputting Rung Comments Comments can be added to each rung of a ladder program. 1. Double-click the rung header for the rung you wish to add a comment to. The Rung Properties dialog box will be displayed. SYSMAC CP1L/CP1E Introduction Manual 4-7 Editing Programs 4 4 C re a tin g P ro g ra m s • Creating a line from bottom to top: Hold down the [Ctrl] key and press the up arrow key. • Creating a line from top to bottom: Hold down the [Ctrl] key and press the down arrow key. Note Repeating the process over an existing connection line will delete it. ■Copying/Pasting Contacts/Instructions/Rungs ●Contacts/Instructions 1. Place the cursor on a contact or an instruction. 2. Hold down the [Ctrl] key and press the [C] key. The selected contact or instruction will be copied to the clipboard. 3. Move the cursor to where you wish to paste. Hold down the [Ctrl] key and press the [V] key. The contact or instruction on the clipboard will be pasted. ●Rungs 1. Click the rung header of the rung you wish to copy. The whole rung will be selected. 2. Hold down the [Ctrl] key and press the [C] key. The selected rung will be copied to the clipboard. 3. Move the cursor to the rung where you wish to paste. Hold down the [Ctrl] key and press the [V] key. The rung on the clipboard will be pasted. SYSMAC CP1L/CP1E Introduction Manual 83 4-7 Editing Programs 4 4 84 C re a tin g P ro g ra m s SYSMAC CP1L/CP1E Introduction Manual SECTION 5Transferring and Debugging ProgramsThis section describes how to transfer and debug programs using CP1L (14-point I/O unit with AC power supply) as an example. To transfer data from a computer to CP1L, the computer and CP1L must first be online. Monitoring and debugging programs executed on CP1L are also performed with the computer and CP1L online. 5-1 Going Online......................................................................... 86 5-1-1 Setting the CP1L Clock .................................................. 87 5-1-2 Changing the Operating Mode ....................................... 88 5-1-3 Transferring Programs.................................................... 90 5-1-4 Executing Operations ..................................................... 92 5-2 Adjusting/Debugging Online ................................................. 93 5-2-1 Monitoring....................................................................... 93 5-2-2 Force-Setting/Force-Resetting ....................................... 96 5-2-3 Changing Timer Settings (Only CP1L) ........................... 97 5-2-4 Searching ....................................................................... 97 5-2-5 Online Editing ............................................................... 100 5-2-6 Confirming Cycle Time ................................................. 101 5-1 Going Online 5 5 88 T ra n s fe rrin g a n d D e b u g g in g P ro g ra m s 4. Set the date and time. Click OK. The Set PLC Clock dialog box will be closed. 5. Select [File] - [Exit] from the menu. The clock on CP1L is now set. 5-1-2 Changing the Operating Mode Change to PROGRAM mode. The procedure for changing to the PROGRAM operation mode is as follows. 1. Select [PLC] - [Operating Mode] - [Program] from the main menu. A dialog box will be displayed to confirm the operating mode change. SYSMAC CP1L/CP1E Introduction Manual 5-1 Going Online 5 5 T ra n s fe rrin g a n d D e b u g g in g P ro g ra m s 2. Click [Yes]. The operating mode will be changed. o The operating mode will be displayed on the title bar and on the project tree. ■CP1L Operating Mode CP1L has 3 operating modes: PROGRAM, MONITOR, and RUN. Change the operating mode to reflect the operation to be performed. The operation mode affects the whole user program, and is common to all tasks. • PROGRAM mode: In this state, the program is stopped. This mode is used to prepare for program execution by performing initial settings such as PLC setup, transferring the program, checking the program, and force-setting/force-resetting. • MONITOR mode: In this state, the program is executed. You can perform online editing, force-set/ force-reset, and change I/O memory values. This mode is also used for making adjustments during test runs. • RUN mode: In this state, the program is executed. Use this mode for production runs. SYSMAC CP1L/CP1E Introduction Manual 89 5-1 Going Online 5 5 90 T ra n s fe rrin g a n d D e b u g g in g P ro g ra m s The following table lists the status and available operations for each mode. *CP1E is not available. 5-1-3 Transferring Programs A program created with CX-Programmer can be transferred to CP1L. 1. Select [PLC] - [Transfer] - [To PLC] from the main menu. The Download Options dialog box will be displayed. Operating Mode PROGRAM RUN MONITOR Program status Stopped Running Running I/O refreshing Execute Execute Execute External I/O status OFF Depends on program Depends on program I/O memory Non-holding memory Cleared Depends on program Depends on programHolding memory Held Operations from CX-Programmer I/O memory monitoring OK OK OK Program monitoring OK OK OK Program transfer From PLC OK OK OK To PLC OK No No Compiling OK No No PLC setup OK No No Changing program OK No OK Force-setting/Force-resetting OK No OK Changing timer/counter SV OK * No OK * Changing timer/counter PV OK No OK Changing I/O memory PV OK No OKSYSMAC CP1L/CP1E Introduction Manual 5-2 Adjusting/Debugging Online 5 5 T ra n s fe rrin g a n d D e b u g g in g P ro g ra m s 5-2 Adjusting/Debugging Online This section explains functions used for debugging and for adjustments during test runs. 5-2-1 Monitoring ■Displaying Conduction Status The conduction status of the program rungs will be displayed. This will allow you to confirm program execution. Change CP1L to the MONITOR operating mode to display the conduction status. The conduction status is displayed on the program. ■Displaying Conduction Status at Multiple Sections The diagram workspace can be split. Multiple sections of the program can be viewed simultaneously. 1 1 SYSMAC CP1L/CP1E Introduction Manual 93 5-2 Adjusting/Debugging Online 5 5 94 T ra n s fe rrin g a n d D e b u g g in g P ro g ra m s (1) Window divider Drag the window divider to split the diagram workspace. The workspace can be split in up to 4 sections. ■Monitoring Specific Addresses I/O values can be monitored by specifying their address. 1. Select [PLC] - [Monitor] - [Monitoring] from the main menu. 2. Select [View] - [Windows] - [Watch] from the main menu. 3. Input an address. The I/O value will be displayed. For Boolean values, "0" indicates OFF. SYSMAC CP1L/CP1E Introduction Manual 5-2 Adjusting/Debugging Online 5 5 T ra n s fe rrin g a n d D e b u g g in g P ro g ra m s Note • Input the address as the channel followed by a period and the bit. For example, "0 CH 04 bit" should be input as "0.04". • You can input addresses by dragging & dropping items from the diagram workspace to the watch window. Select the rung header to input all addresses included in the rung. SYSMAC CP1L/CP1E Introduction Manual 95