Home
CP1L/CP1E CPU Unit Introduction Manual
Contents
1. Found New Hardware x OMRION PLC The Found New Hardware Wizard dialog box will be displayed This screen will be used to install the USB driver The programming console is not available The following dialog box will be displayed Select one of the options and click Next Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on Can Windows connect to Windows Update to search for software J Ycs this time only M Yes now and every time connect a device 3 No not this bre Click Next to continuc 44 SYSMAC CP1L CP1E Introduction Manual 4 1 Preparing for Programming 4 The following dialog box will be displayed Select Install the software automatically Recommended and click Next Found New Hardware Wizard This wizard helps you install software for OMRON PLC If your hardware came with an installation CD or floppy disk inscrit it now I What do you want the wizard to do Install from a list or specific location Advanced Click Next to continuc Cea Cea 5 Ignore the following dialog box if it is displayed and click Continue Anyway suJeJ604d DuneoJ25 Hardware Installation The sof
2. Cancel Help SYSMAC CP1L CP1E Introduction Manual suJeJ604d DuneoJ25 ES 55 Ed inputting Programs 0 3 Click Settings The Device Type Settings dialog box will be displayed Change PLC ecc suJeJDoJg Buneay gt 4 Select the CPU from the CPU Type drop down list Click OK The Device Type Settings dialog box will be closed Device Type Settings CP1L Read Only Read Only Gap SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs D Confirm that USB is displayed for Network Type Click OK Change PLC Device Mame NewPLC Device Type Network Type Comment suJeJ604d DuneoJ25 ES The Change PLC dialog box will be closed Main window for the new project will be displayed Liedithial CX Programma Fut C1 Hamer 2 Pis deo Vene enmt eer PLC Dain Poh Riedie Mep Deiat 4h ius ABT TW 2454 4 P Ww ta a SERRA BE GiH i opgaf m v t5twum nERBDSEPaspmmE Mik EH If USB is not displayed for Network Type refer to 4 1 2 Connecting to a Computer and Installing the USB Driver and confirm that the USB driver has been installed properly SYSMAC CP1L CP1E Introduction Manual 57 suJeJDoJg Huneal gt 58 4 5 Inputting Programs 4 5 2 Inputting Contacts Input a contact For details on lad
3. l BATTERY L1 L2 N COM 01 o3 07 01 05 07 09 11 A 00 0 08 1 00 02 04 1 R EXP SYSMAC 4000006000000 SYSMAC XaOOOOO0000000 CPIE POWER OLIN 1100 OO OO OO OO 000 CPIE POWER C IN 01080 OO 000000000 U mio OOO00000000 RUN 000000000000 ERIVAIM O 966 OO OOO ERVALM O 1woiOO OO O O IM OOD eIlOOOO OO OO IM OB oO O 000000 PERIPHERAL PRPHL O 0O 0 OOOO ele e BKUP 00 01 02 03 04 05 06 07 08 08 10 71 00 01 02 03 04 05 06 07 08 09 10 71 S00 RS485 0 00 01 02 03 04 06 00 01 03 04 06 00 01 02 o3 04 06 00 01 o3 04 06 in COM COM COM COM 05 07 COM 02 COM 05 07 COM COM COM COM 05 07 COM 02 COM 05 07 n OJ O O 16 SYSMAC CP1L CP1E Introduction Manual 1 1 CP1L CP1E Models MBuilt in analog with 20 points I O Units CP1E NA20DLI L1 CPU unit has built in analog with 2 analog inputs and 1 analog output CPU unit has 12 input points and 8 output points e CP series expansion I O units can be used to add I O points up to a total of 140 I O points NA type CPU Unit CP1E NA20DLI L1 O C POOOCOO0G00 9 9 919 9 0 9 9 919 9 9
4. 110 A 3 Inner Workings of CP1L CP1E sseeusss 113 A 3 1 Inner Structure of CPU Units 113 A372 GP Unit Behavior ect mete anes 116 A 4 CP1L Programming Examples e meee e e 123 A 4 1 Using Adjusters to Set Timers 123 AA 2 Capture MOM SIG MAS seve ens See ee see eee 126 A 4 3 Using Interrupt Inputs to Accelerate Processes 130 A 4 4 Using Calendar Timers ccccccccssseseeeeeeeeneeeeeeeeees 136 A 4 5 Using Rotary Encoders to Measure Positions 141 A 4 6 Using Servo Drivers for Positioning 146 A 4 7 Using Inverters for Speed Control 1 152 A 4 8 Using Inverters for Speed Control 2 160 A 4 9 Exchanging Data between CP1Ls 170 A 5 Comparison between CP1L and CP1E 174 A 5 1 Differences between CP1L and CP1E 174 A 5 2 CP1L Instructions not Supported by the CP1E 180 A 6 Difference between CP1E E N NALILI type and ENDERS A SEV Ge etm ee eo 181 xipueddy Bw A 1 Channel Relay Numbers In CP1L or CP1E channel CH numbers and relay numbers are specified as described below Each channel consists of 16 bits Hence relay numbers are expressed as channel number bit number 00 to 1
5. I 0 04 Toooo WO O0 Work Area Light detection Timer W 00 Work Area 1 0 00 4 Work Area 100ms Timer Timer BCD Type Timer Timer number Set value 2 I 0 04 i 6 I List Misc d O Bava 2 2 CNT OR 7 68 SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs 5 Input the counter set value Input 3 and then press the Enter key Vork Area 1 wo 00 Work Area 100ms Timer Timer BCD Type Tutt Timer number Set value 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 suJeJ604d DuneoJ25 ES Vrk Area Light detection 100ms Timer Timer BCD Type Tuner SYSMAC CP1L CP1E Introduction Manual 69 4 5 Inputting Programs 6 Input Counter as the I O comment Press the Enter key t 004 Fark Area Werk Area 100m Tener Tuner BOD Type Timer Tirner mumier Set value 4 aaa ala ae 2 Pi z k 0 04 3 Light detection CNT DES comen 77 7 The counter instruction input is complete suJeJ6oJd BuneoJ25 I 0 04 ToOQ0 vun O0 E Work Area Light detection Timer Yul O0 Work Area 1 VwD n0 Work Area TIM 100ms Timer Timer BCD Type 0000 Timer Timer number 50 Set value 2 E 004 yry MN 8 L Light detection CNT a Counter SS EEEESIO ESS RR RRR REESE L L Dona Counter 1
6. Dien Crin X B 5 A S m Open Ctrl O Close i Save Ctrl 5 Save Bs Reusable File gt Function Block gt Load Function Block from File rtt Load Comment Program Save Comment Program pa Compare Program Change PLC Type Page Setup 1 app2 2 application 1 Exit 2 Select the FBL omronlib Inverter INVRT Serial folder A list of FB library files for serial communication with inverters will be displayed select CX Programmer Function Block Library File Look in B Serial o amp tj _INVOO2_Refresh2d cxf Ej _INV201_ReadParameter20 cxf Ed INVOS2_MovevelocityHz20 cxf E INV 03 ReadAxisErrorz0 cxf INVOS3_MoveVelocityRPM20 cxf Ej IMV401 WwriteParameterz0 cxf IMv 60 Staopz cxf Ej _INv600_S5et Commi 1 cxf E E IMvOBO Resetz0 cxf E _INV200_ReadStatus20 cxf File name INVOD2 A elresh2U Files of type Function Black Library Files c r Cancel SYSMAC CP1L CP1E Introduction Manual gt 167 xipueddy xipueddy mM A 4 CP1L Programming Examples Select INVO02 Refresh20 cxf Click Open INVOO2 Refresh is added under Function Blocks in the project tree Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram File Edit View Insert Program PLC Simulation Tools Window Help Du E Re amp M a 5 Ss isa te 2 e A R4 Ea Oe oh 75 2 zd xi NewProject fg NewPLC1 CP1L Offline 45m Memor
7. 18 SYSMAC CP1L CP1E Introduction Manual 1 2 Part Names and Functions 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 Peripheral USB port Used for connection to a computer Computers can be used for programming and monitoring Analog adjuster except CP1E ELIDLIS NLILIS 1 type Rotate to adjust the value for auxiliary area AG42CH CP1E A642CH A643CH to within the 0 to 255 range Use to change timer and counter settings without using a programming tool software MSIAIJGAO dLEdO 1L dO m 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 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 Battery only CP1L and CP1E N NALILI SLEI type Maintains the internal clock and RAM contents while the power supply is OFF A battery serves as an option for CP1E N NALILI SEI type CPU units Operation indicators Indicates the operating status of CP1L Indicated
8. 73 46 B AENDINSUTUCHOM eoo sorteo cet eet nee ene ced umm a Us Z omsavitmg boachrigsredgraissache cotes eecce he oe C eife one 76 4 6 1 lt Compiling Programs 1 uc dete MeL Ce 76 Z o 2 Saving Programs 5 Sate ore ee a a 77 4 6 3 O aGinGs Rrogramis nene ars a eames et tenses d cron 78 A eE dting Hei GAM Sense Neate LI EL 79 2 0 mM Edting VO Comments a tco astu mE IA 79 4 7 2 Inputting Rung Comments eese 80 ASE RUNG Stet uot noc co t eto c 82 SWeIBOIY Bunea gt 42 Creating Programs 4 1 Preparing for Programming This section explains the necessary preparations such as connecting CP1L to a computer and installing the USB driver in order to begin creating ladder programs 4 1 1 What is CX Programmer CX Programmer is a programming tool software for creating the ladder programs that are to be executed by CP1L In addition to programming functions it also offers other useful functions for CP1L setup and operation such as debugging programs address and values display PLC setup and monitoring and remote programming and monitoring via the network CX Programmer can be run on computers running Windows 2000 SP2 or later XP or Vista only CP1E For details on installing CX Programmer refer to 1 1 Installation of CX Programmer of CX Programmer Introduction Guide R132 For details on using CX Programmer refer to CX Programmer Operation Manual W446 The CX Programmer scre
9. 8 HN SB HK SS HH BB BB HK 88 HK SS HH SS HH BB PB HH SI HK SB HK BSN BWI SB 8 JH 88 JH 88 HK SB JHE SB JHE 88 JH 38 JHE SB JH 88 JH 88 HK 88 1 88 IH 88 JHI 88 L1 L2ZNECOM 01 03 05 07 09 1 01 03 05 07 a S 00 02 04 ie og 15 6 08 10 00 02 04 06 Oo PERIPHERAL le sialrelors 9 1 1 9 1 O0 02 o3 05 07 09 04 06 08 10 o Ol O2 O3 04 06 OO O1 O3 04 06 COM f COM COM COM 05 07 COM 02 COM 05 07 38 IA SB JL 88 1 SB HAL 88 JL 88 1 88 DAL 88 JK 88 88 1 88 1 88 8 88 88 83 88 Kae 98 88 88 88 98 C88 SL ELILIS type CPU Unit CP1E E40DR A NLILIS1 type CPU Unit CP1E N40S1DR U
10. Tal i PA Pe lu A iis E n ee n Fe GO Veee hani Pli Prodi Smddiem Tool Amdos peg DEH PP SSA RAAD A gt a AQ Sit Aw Me Raa a Baas aero e J Bp NewProject id f MenPLCI CP1L Offine I g Programm ame CPIL Potton Symbols Sethings Section Mame Section 8B Progams toD Sql CPL Positioning 00 zi Symbols Section 1 t ooo END 2 a TT Function Blocks LLL LLL Sh A AU 1 a or Help press Fi distant CPAE CP1E anual A3 7C E m Ert CP1L L10DLI CP1L L14DLI L1 CP1L L20DLI L CP1L MSODLI L CP1L MAODLEI EI CP1L M60DLI L CP1E ELILISDLI LI CP1E NOOSODO O CP1E ELILIDLEI LI CP1E NLILIDLEI EI CP1E NALILIDLI LI CP1L CP1E CPU Unit Introduction Manual Notice OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual The following conventions are used to indicate and classify precautions in this manual Always heed the information provided with them Failure to heed precautions can result in injury to people or damage to property AN DANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury Additionally there may be severe property damage Z WARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury Additionally there may be severe prop
11. eeeseeeseeeeeeeeeeene 51 project workspace iicet unii abaci aos 51 pulse signal T 146 Q quick response input 126 R 2r 104 relay DUEITIDGTF ussxescexe sex nisus suntsc spent ts 104 rung coMMent M 80 rung header GN NR RU o2 S saving program cogs ca setannetswaressentaueeeonataeaes re 182 SYSMAC CP1L Introduction Manual scan time eeeseeenne 127 130 gd clem 97 cle m 51 serial communication 152 setting the clock EE IO 87 Smart FB Library succsusoresieeti vage sts ord 160 special instruction uuussossuresiacv vipera eraat 109 starting CX Programmer 50 T zii p e T a 93 UG DAT c 91 e 9 9 EE 51 transferring program 90 turning DOWSEOITauieaden etes encedburtedesthss 39 U Brod Ec 44 UBD MR en aetaerans neue 18 W WALCA WINGOW ceo dence shear seteneeteaeensstene 94 wiring ground line 36 WnG MOUT cscciesne ee gteneecceesseeeceaasonnsssececsees 38 WII OUDUT OC 38 wiring power line eeeseeee 36 writing relay coil axecsnescuctitu tero Uo EiEE ERES 111 Authorized Distributor
12. L2 File Ed Wew bemi Progam PME Salikoa Teci Wirehoey ILE Dag SR tee g PEELE cu AL a ot ee a a ag 4 Sie Bm e ib Keyboard Mapping Reference nemBIiDGBsoSPHgE uu p OMBONEB Library Reference jc Meer Pafaranna L QM Saree Mer regect a BP Mee PL tire CN tynbok Cere Curr Meri A About Ooga fa seta E Bun it Furs lion Bedi e 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 54 SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs 4 5 Inputting Programs Using the commands available in CX Programmer create a program for the example application 4 5 1 Creating New Projects 2 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 Select File New from the main menu The Change PLC dialog box will be displayed amp memo clas te ass sg TE deat ue O BER PES os E E 3 Select CP1L from the Device Type drop down list Change PLC Device Name NewPLC1 r Device Type EPIL Settings Settings
13. Yellow User program parameter or data memory is being written to or read from the built in flash memory backup memory User program parameter data memory DM defaults or comment memory is being written to or read from the memory cassette User programs parameters and data memory are being restored following a PLC power on CP1E CPU units The user program parameters or specified DM Area words are being written to the backup memory built in EEPROM Note Do not turn the PLC power supply OFF while this indicator is lit Notlit Any other state SYSMAC CP1L CP1E Introduction Manual 21 M IN AQ 3L dO lLdO 22 1 2 Part Names and Functions SYSMAC CP1L CP1E Introduction Manual SECTION 2 Designing 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 Mates boc 24 2 2 About the Shutter Control Systeme esee eee 26 22 Operation ane RU LU 26 222 2 System OM OME MINS 8 ub Sos crei Toi a 27 2 3 1 O Allocation for the Shutter Control System 2 4 Example Ladder Program na uM 30 sulejs g DuiuDiseq N 24 Designing Systems 2 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 sh
14. 0 00 OPEN button gt 0 01 STOP button 0 02 CLOSE button 0 03 Car detection sensor 0 04 Light detection sensor 0 05 Upper LS 006 y LowerLs 0 07 0 08 0 03 0 10 0 11 0 12 Note In Smart Input Mode an I O comment can be input after an operand has been input using the comment dialog box Comment 1 1 Comment Sample 1 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 suJeJDoJg Buneay gt 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 Work Area Light dete cti Timer Wwo 00 Work Area Timer Timer Timer number Set value AELELEBLEEEEEEEEREEE EERE EERE ES EEE EE 2 COPPELL PP I 0 04 Counter Light detecti TOOO00 0000 Counter Counter number Timer coooo 3 Set value Counter P_First_Cycle First Cycle Flag SYSMAC CP1L CP1E Introduction Manual 4 7 Editing Programs 2 Onthe General tab input the comment into the comment field Rung Properties General Annotations Rung i Timer 5 seconds 3 Close the Rung Properties dialog box The entered rung comment will be displayed on the ladder progr
15. 30 SYSMAC CP1L CP1E Introduction Manual SECTION 3 Mounting and Wiring This section explains how to install CP1L 14 point I O unit with AC power supply onto a DIN track how to wire power supply and I O lines and how to test operation as an example i dmstallatohNOR Seem ache hito ecdesia ioo rien cd 32 3 2 Mo nt ng onto DIN Tracks ei mono atr ence 39 S ONNO DC VICC S Saat a ake a a Moser ciii Hd 36 3 3 1 Connecting Power Supply and Ground Lines 36 3 3 2 Connecting sites wd caelo sexe rote eas 37 SAn Power Testmng Oe daien aa a a a et 39 DuuiM pue Bbununoyy 32 Mounting and Wiring 3 1 Installation Notes For improved reliability and maximized functionality take the following factors into consideration when installing a CP1L CP1E system llinstallation Location Do not install in the following locations e Locations subject to ambient temperature lower than 0 C or higher than 55 C Locations subject to dramatic temperature changes causing possible condensation e Locations subject to relative humidity lower than 10 RH or higher than 90 RH Locations subject to corrosive or flammable gases e Locations subject to excessive dust salt or metal powder Locations subject to shock or vibration e Locations exposed to direct sunlight Locations subject to water oil or chemical reagent splashes Shield the system sufficiently when installing in the following locations e Location
16. BATTERY 7 oan ee 04 T 06 T 08 T 10 r oed POWER IE PRIPHERAL T O comm ERR ALM OO0O0000 INH PREHL CI G O0ooooo ak 000000 m 0 0 02 4 05 0 N IOUTO COM f COM f COM 03 f COM 06 NC fVOUTO COMO 8oo6666666 oj 7 7 e SYSMAC CP1L CP1E Introduction Manual M IN AQ 3L dO lLdO m 17 1 2 Part Names and Functions 1 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 BCP1L14 point I O Unit D amp o D M IM AQ 3EdO TEdO S ANN DOOS DOY BCP1E 40 point I O Unit ELILI type CPU Unit NLILI type CPU Unit CP1E E40DR A CP1E N40D0 0 38 Ji 88 88 2 88 COCR wie eT e wie YSS Z O ELILIS type CPU Unit NOOS 1 type CPU Unit CP1E E40SDR A CP1E NA40S 1 DL1 L Q 9 S E
17. BOOL Execute Command Aborted REAL BOOL Velocity Error INT WORD Direction ErrorlD WORD ArealD INT AreaNo Matching InVelocit speed Force quit Error Error code Inverter No Area type Decelerate to stop _INVO60_ Stop _INVO60_ Stop BOOL BOOL EN ENO BOOL Done BOOL Error INT NodeNo BOOL Execute WORD ArealD INT AreaNo Start Area No Deceleration complete Error Error code No MSGAreaNo Decelerates an operating axis to a stop Specifies start signal rotation direction and frequency in Hz Required for communication with the inverter 1 FB is used for each PLC serial port 1 Status refresh FB will be used for a serial port even if the serial port has multiple inverters connected Issues communication commands to inverters Processes communication errors Assigns priorities when multiple commands are issued Note Function blocks are not available for 10 14 20 point CP1L SYSMAC CP1L CP1E Introduction Manual gt xipueddy 163 xipueddy e adder Program WO0 00 t Contact A Wo 01 Contact B W0 02 Contact C 164 SYSMAC CP1L CP1E Introduction Manual mM A 4 CP1L Programming Examples Frequency command 60 00Hz 1770 Hex Rotation direction Normal 0 Frequency command 55 00Hz 157C Hex Rotation direction Normal 0 Frequency command 50 00Hz 1388 H
18. DCD Typel z imet ys AAA AAA i EE eB Ee eee AA mmmmmmm a Next input a counter instruction O D V ct ae O te bun S o 66 SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs 4 5 5 Inputting Counters 1 Press the C key Input contact 004 For details on inputting a contact refer to 4 5 2 Inputting Contacts u I 0 04 Internal Auxiliary Area Light detecti wo0 00 Internal Auxil wo0 00 Internal Auxil Timer Timer Timer number Set value mmm mm R cccccc z 2 I 0 04 b Light detecti v mm mmm eot 2 Press the C Key A list of instructions beginning with C will be displayed Select the instruction from the list or input the mnemonic directly Work Area 100ms Timer Timer BCD Type lower Timer number Set value 2 3 SYSMAC CP1L CP1E Introduction Manual suJeJ604d DuneoJ25 ES 67 4 5 Inputting Programs 3 Press the Enter key Counter number 1 2 will be displayed and 0 0 will be displayed in reverse n 0 0 04 Work Area Light detection Timer wD DO Work Area 1 VwD O0 Work Area 10 0ms Timer Timer BCD Type Timer Timer number I Set value D T 2 Loog d Light sl Counter number 1 2 Q CNT i I i O 3 Q Q o 4 Input the counter number 0 is already displayed so press the Enter key
19. Direct mode or counter 6 inputs 6 inputs 5 inputs only for CPU Only direct mode Unit with 10 I O points Only direct mode Pulse Pulse output method Pulse plus direction outputs Not supported Only pulse plus direction outputs CW CCW outputs Speed control Supported C LS S curve Supported Not o o acceleration and deceleration PWM outputs 2 outputs Not supported C output Inverter positioning functions Supported Not supported NENNEN DIP switch on front panel Supported Not supported The following functions are not supported without a DIP switch Program write protection mode External inputs by DIP switch AR395 12 allocation Automatic transfer from Memory Cassette without memory cassette function e Serial port setting Toolbus protocol is not supported 2 Only ELILI type and N NALILI type External analog setting input Provided Not provided USB port Provided Provided USB2 0 Full speed 12M USB2 0 Full speed 12M Analog adjusters Built in analog Not available Not available N type CPU Unit None NA type CPU Unit 2 analog inputs 1 analog output Built in serial Not provided Option Not provided Provided communication port Board NLILI S type CPU Unit RS 232C NLILIS1 type CPU Unit RS 232C and RS 485 Serial option port CP1L L type CPU Unit Not provided N14 20 CPU Unit None 1 port N30 40 60 or NA20 CPU Unit 1 port CP1L M type CPU Unit 2 ports Se
20. E ie A Ad dre 55 Increme ntal Copy Ctr F5 f r E em af Delete Delete La ork Ar m SPOT D woo Find Replace Batch Replace ld 4 m l 100ms Timer Timer BCD Type Go To b eee U Timer Function Block r imer numser O Edik Rung Comment Set value Q Row Column Rung Edit e pplication CK Programmer HewPLC1 Cement Edisisg Cee ae ok en Lewallen aL eo K Sl E Bximu rur cwm Lh f Hanki CAMBOS He Pee mM S NEMM EM is k E E dii oulipie commands amine EE shew mile comments BE MeePic FIL offing a Tris u LI i Settings ud Herry F4 Programa bus gi MewProgramt 000 ETT 10P button Sy nbus 1 Sadoni n o3 Ca detectors paraz EN a G4 Light debex hori pisi IC rareten Boca a 008 Lippe rst LS agguxsHESHS um ini ni pi mi mb quii pi ui mi pi pii pi mi wi pk ins aa m m m m m m m m m m m m m m NN M m NM M NM NM NM NM MM EM PRP RP PRP RP RP RP EMI EM NM NM NM NM NM NM MM MM Pe PRP EM MEM ee ee ee Fat Help peras Fil Maret feta hod ir rung 10 1 10008 Sonar BUH SYSMAC CP1L CP1E Introduction Manual 79 4 7 Editing Programs 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 Area Tupe E dit multiple comments 10 bit zl Show multiple comments Start Address o Edit Header Address Symbol Comment
21. 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 7 Untitled CX Programmer E Edit View Insert PLC Program Tools Window Help Ra D dA tig TR 458 ATZR m EE E a OSS EEL iU 44 16 t 5s UR d h p g mi Save Ctrl 5 lif z Save Bs Reusable File gt 2 Specify the save location and file Click Open The CX Programmer project file will be opened and the saved programs will be displayed Open CX Programmer Project application 1 File name application Files of type CX Programmer Project Files c p Cancel SYSMAC CP1L CP1E Introduction Manual 4 7 Editing Programs 4 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 ERN application 1 CX Programmer NewPLC1 NewProgram1 Section1 Diagram pU File SIS View Insert Program PLC Simulation Tools Window Help m x D a 2 undo cuNITasAjw xu E JR dE SEDED ws a P Redo es T ja Q thuy o448 lk5mm egt tst I EEE O cut Shift Delete m B Ba copy Ctrl C 2 c i Paste IUe p C
22. The execution time will increase as the number of channels being refreshed increases Hence the total cycle time may be extended It should be noted that the total cycle time may be increased significantly For details refer to SECTION 4 Instruction Execution Times and Number of Steps of CP Series CP1H CP1L CPU Unit Programming Manual W451 or SECTION 3 Instruction Execution Times and Number of Steps of CP Series CP1E CPU Unit Instructions Reference Manual W483 118 SYSMAC CP1L CP1E Introduction Manual A 3 Inner Workings of CP1L CP1E fii MPeripheral Services Peripheral services are event services that occur on an irregular basis such as monitoring and setup on PT and online editing editing programs under execution and monitoring on CX Programmer It involves processing of service requests both to and from external devices In the CP series most of the services use the FINS command Each service is allocated with a fixed amount of time specified by the system and is executed every cycle If the services processing completes within the allocated time no processing is performed during the remaining time Service Type Content Peripheral USB port service Processes unscheduled requests received as FINS or Host Link commands from CX Programmer PT or from a host computer via a peripheral USB port or serial port i e requests for program transfer monitoring forced set reset or online editing Processes unscheduled re
23. cou com o Nc e CP1L RS 232C option board zA CP1W CIF01 xipueddy RS 232C option board CP1W CIF11 12 To perform serial communication on CP1L install an optional serial communication board RS232C or RS422A 485 14 20 point I O units can have 1 optional serial communication board installed 30 40 60 point I O units can have up to 2 boards installed CP1L 10 point I O units cannot install option board Only CP1E N30 40 60 and NA20 CPU units have 1 serial communication board CP1E N30 40 60S1 CPU units can also use a built in RS 485 port for communications The Modbus RTU easy master function allows for easy communication with components connected via a serial connection board 152 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Example
24. e g set 0001 Hex for No 0001 operation command see below For number of bytes use 9 bytes from Attached data size in bytes 4 upper D32303 to upper D32307 4 bytes from lower D32305 to upper D32307 CP1E Upper D1203 to upper D1207 CP1E lower D1205 to upper D1207 Number of registers data is written to 2 2 data No 0001 and No 0002 on register 2 Hegister No for starting data write 0001 start writing to inverter at register No 0001 Operation Command Register No 0001 Hex allocation and details for Inverter 3G3MV Multifunction input 3 1 ON Multifunction input 4 1 ON Multifunction input 5 1 ON Multifunction input 6 1 ON Multifunction input 7 1 ON 11 to 15 Unused For this example only operation command No 0 bit will be used e With Modbus RTU easy master function CRC 16 checksums do not need to be set in the DM area since they are calculated automatically SYSMAC CP1L CP1E Introduction Manual xipueddy gt 159 mM A 4 CP1L Programming Examples A 4 8 Using Inverters for Speed Control 2 ll unctions Used e Smart FB Library Only CP1L omart FB Library smart function block library is a set of components provided by OMRON as an FB function block By using Smart FB Library OMRON PLC and FA component functions can be easily used in PLC programs When using serial ports for communication between an inverter and a PLC substantial knowledge of communication command specifica
25. ground resistance of 100 Q or less GR GR is a protective ground terminal To prevent electrical shocks use a dedicated ground line 2mm or thicker for a class D grounding ground resistance of 100 Q or less To prevent electrical shocks and noise always ground the terminal with class D grounding ground resistance of 100 Q or less If the power supply has a grounded phase connect the grounded phase to the L2 N terminal Do not share the ground line with other equipment or connect it to building structure beams The results may be unfavorable Bun M pue BununoJv m Recommended crimp terminal When wiring the AC power supply use ring type crimp terminals to prevent unintended disconnection 4 ZN WARNING Secure the AC power supply line to the terminal block with 0 5N m of torque Loosening the screw may result in a fire or malfunction 3 3 2 Connecting I O Lines B4 point I O Units CP1L has input terminals located at the top and output terminals located at the bottom OR NEUSS f E PERIPHERAL BATTERY 1 Input terminal 2 Output terminal SYSMAC CP1L CP1E Introduction Manual 37 DuuiM pue BununoJy 38 e Wiring Inputs 1 Wire the inputs as shown while referring to 2 3 I O Allocation for the 3 3 Wiring Devices Shutter Control System PB2 SENI E51 0 01 0 03 0 05 PB1 PBS SENZ LS
26. 1 Operation G Entering the Garage suJeJ604d DuneoJ25 ES The component functions and operations will be defined in detail below 1 Push buttons A16 series etc The shutter can be opened closed and stopped with buttons The OPEN and CLOSE buttons will continue operating the shutter even when they are not held down A self maintaining bit is used to achieve this Limit switches WL WLM series etc When the shutter is fully opened or fully closed it will be stopped by a limit switch When the shutter is opening the de escalation motor will be interlocked to prevent damage Light detection sensor A light detection sensor detects light from headlights pointed at the garage When 3 headlight flashes are detected by a counter instruction the shutter escalation motor is activated After the first headlight flash a timer is activated by a timer instruction After 5 seconds a reset command is given to the counter instruction The present value of the counter instruction is retained even when CP1L is powered OFF To prevent malfunction a reset command is given to the counter instruction when CP1L is powered ON SYSMAC CP1L CP1E Introduction Manual 47 4 2 Creating Ladder Programs OG 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 suJe
27. 2 Organization or this Manlal 5 cea saben soasn ico tuta ides side a Rc URN cue E 24 2 2 About the Shutter Control System 0 c cccccceccseeeccceesececcceseeeecceeeeeesseseeeeseaeeeeeses 26 2 3 O Allocation for the Shutter Control SySteM ccecccccceeseseeeeeeeeeseeeeeeeeeeaeeeeeeeeeeaas 28 24 Example badder Progra voiced etiaro Oi PE reo ie b es 30 SECTION 3 Mounting and WILING cccccceccceceeeeeeeeceeeseeceeeeeeeeeeseees 31 Sr salainn NOOS xoti itii eo Drac hd enh anette se nance tee leet tied 32 3 2 Mounting onto DIN Tracks seeessssessseeeeneeeeen nnne 35 393 WINING DEVICES ioca viai edet anteba E cuo ubere Ud EC tav eb f RcES 36 34 Power Iesung GETL saiedete deco meets betont a 39 SECTION 4 Creating ProGras cccccccsscccsseeceseeteeeesseeeseeesneetaeees 41 4 Preparing for Programimihg sss duces eue pue soe E T kv e duke lian bxe UE vl o ia uv D baw cuc UE aogu di 42 A2 Creating EaAdder Programe sauscddesidbed seu icr pePc tu obdtevee a to deae tci eunt 47 4 3 Using CX Programmetr eesssssssssssessseeeeen nennen nennen nennen nnns nna nnns nnn nnn 50 4 4 Using thie Helps iia beta ated ee N eee 53 Z 5 Jiputtild PEOSIBITIS assess vacated tet chocan Quae a Vra e ome aes esa tbe Poit Do uc d 55 4 6 Saving Loading Programs ccccccceseeececceseeeescceeceesccuseeccccsseeeseceuseceseeueeseccseeseeses 76 4 7 Bg T O glalris coreg a a P
28. 2 Program address 3 Rung header If a rung is incomplete a red line will be displayed to the right of its rung header 4 Bus bar einformation Window LxX Programmoer Information Unt Edan Jodo etl IL Diff None HIPS pH E stint P shi mo T Commented Fung dump te Error Show Ha t Next Out Shi SPACE Shift L Shift Slice Mati 8 at gan zi eros On Force OM Cancel shilreCiriet Wars P Program Monitor Run F Ctri W Ctrl 1 Ctri 3 Cord Cirih Ctri K Ctrl h Displays basic shortcut keys used in CX Programmer Select View Windows Information Window from the main menu to show hide the information window 52 SYSMAC CP1L CP1E Introduction Manual 4 4 Using the Help 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 MReferencing CX Programmer Help 1 While using CX Programmer press the F1 key The help window will be displayed E CX Programmer Help x co gt amp E Hide Back Forward Print Options Contents Index Search Favorites Type in the keyword to find List Topics Ladder Programming Workspace The use of a Ladder Diagram is generally the same for all PLC series units The Ladder Section Window Using Symbols IO Comments Creati
29. 3G3MV an OMRON inverter are connected by RS485 for frequency and start stop control RS422 485 option board In this FB library example capacity of the user memory may exceed 5K steps For this reason since a memory capacity error may occur on a 10 14 20 point CP1L with a user memory of 5K steps use a 30 40 60 point CP1L with a user memory of 10K steps for this example For details on wiring and on the settings for CP1W CIF11 12 3G3MV and CP1L refer to System Configuration of A 4 7 Using Inverters for Speed Control 1 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM mProgramming Example e runction Blocks Used Specify host unit Serial port No Scan list MV RV type Interval I F area type I F area No Message area type Message area Status refresh INVOO2 Refresh INVOO2 Refresh BOOL ENO BOOL BUSY INT NodeAddr BOOL Error WORD ErrorlD BOOL EN INT UnitSelect INT PortNo DWORD Scanlist DWORD ModelTypeMV UINT IntervalCount WORD ArealD INT AreaNo WORD MSGArealD INT Busy flag Axis No in use Error Error code Execute rotation frequency specification in Hz INVO32 MoveVelocity Hz Inverter No Start Frequency Rotation direction Utilization area type Utilization area No INVO32 MoveVelocityHz BOOL BOOL EN ENO INT BOOL NodeNo BOOL
30. A I2 E 22 gi LF Qe I2 2 Lg Fountain llSystem Configuration e Wiring Example ETESESTISTTISTIS xs es 39 9 69 G9 Fountain pump 100 00 196 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mProgramming Example Ladder Program 100 00 Fountain pump A Turned ON for Monday thru Friday i e when A354 day is less than or equal to Friday from 17 30 when A351 hh mm ss becomes equal to the value set in DO 17 30 00 until 20 30 when A351 hh mm ss becomes equal to the value set in D10 20 30 00 B Turned ON for Saturday and Sunday i e when A354 day is greater than or equal to Saturday from 10 00 when A351 hh mm ss becomes equal to the value set in D20 10 00 00 until 21 15 when A351 hh mm ss becomes equal to the value set in D30 21 15 00 e DT and DT are time comparison instructions BINFO Time Data on CP1L CP1E The clock s PV is output to the following auxiliary areas Time data Second 00 to 59 BCD Minute 00 to 59 BCD Hour 00 to 23 BCD Day of the month 01 to 31 BCD A353 00 to A353 07 Month 01 to 12 BCD A353 08 to A353 15 Year 00 to 99 BCD A354 00 to A354 07 Day of the week 00 to 06 BCD 00 Sunday 01 Monday 02 Tuesday 03 Wednesday 04 Thursday 05 Friday 06 Saturday SYSMAC CP1L CP1E Introduction Manual 137 gt
31. Manual 59 4 5 Inputting Programs D Input Work Area as the I O comment Press the Enter key An OR circuit representing the work area contact will be displayed 1 m Commeni1 1 Work Are Next input a closed contact llinputting Closed Contacts 1 Press the up arrow key The cursor is moved upward suJeJDoJg Buneay gt Wok Area 2 With the cursor in the up position press the key LDNOT W0 01 will be displayed Light detection 0 07 W0 00 LONOT VE Area Auxihary Relay Area Address Name Comment 0 04 Light detection sen 1 wog Work Area 3 Press the Enter key Bit 1 1 will be displayed and WO 01 will be displayed in reverse video 4 Input address TO Press the Enter key I 0 04 uid altel pu Light detecthian p l WODO LONOT TO Work Ares 60 SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs TO is entered The Comment dialog box will be displayed idii Li Light detection L4 Pd WOOO LoNOT To VWork Area E Uu T D Input Timer as the I O comment Press the Enter key An AND circuit representing the timer closed contact will be displayed E 0 04 Light detection WO 00 LDNOT TO Wirk Area Comment 1 hn pu 0 0o 3 Next input a work area output SYSMAC CP1L CP1E Introduction Manual suJeJ604d DuneoJ25 ES 61 suJeJDoJg Buneay gt 62 4 5 I
32. Next set the parameters as follows n003 Operation command RS 422 485 communication enabled n004 Frequency command Frequency commands from RS 422 485 communication enabled n019 Acceleration time 1 Acceleration time sec n020 Deceleration time 1 Deceleration time sec n151 RS 422 485 communication Detection enabled detect errors stop Timeout detection deceleration after deceleration time 1 Default monitoring Unit 0 01Hz Default n153 RS 422 485 communication Slave address n154 RS 422 485 communication Baud rate n155 RS 422 485 communication Parity n156 RS 422 485 communication Transmission wait time n157 RS 422 485 communication RTS control n152 RS 422 485 communication 1 Select unit for communication of frequency Frequency commands and commands data and frequency monitoring data Slave address slave node number unit 1 Communication baud rate communication speed 9600bps Default LN Even parity 2 0 0 1 1 2 10 Sets the response wait time for request messages received from the master 10ms Default RTS control enabled Default SYSMAC CP1L CP1E Introduction Manual 155 mM A 4 CP1L Programming Examples Qe PLC Setup Configure serial port 1 1 Open the PLC Settings dialog box 2 Click the Serial Port 1 tab CP1E Built in RS232C Port tab 3 Setthe following settings 73 PLC Settings NewPLC1 File Options Help Settings Timings Input constant S
33. O memory area which is used as instruction operands by the user there is also a separate memory area that can be manipulated only from CX Programmer This is the parameter area The parameter area stores PLC setup data PLC Setup PLC setup is the configuration data used by the user to provide a software definition of the basic specifications of the CPU unit These consist of parameters such as serial port settings built in analog settings and minimum cycle time settings For details on configuring PLC setup refer to CX Programmer Operation Manual W446 Built in flash memory CP1E Built in EEPROM CP1L CPU units have built in flash memory Data is automatically backed up to the built in flash memory as they are written to the user program area or the parameter area PLC setup routing table by methods other than programmed instructions i e when transferred or edited using CX Programmer or PT or when transferred from the memory cassette The next time the unit is powered ON user memory user program or parameter area will automatically be transferred back from the built in flash memory to RAM By using CX Programmer data in the DM area of the I O memory can also be saved to the built in flash memory This saved data can be set as defaults for the DM area and can be automatically written back into the DM area when the unit is powered ON next Symbol table comment file and program index file can be stored in the comment memory por
34. Place the mouse cursor over an icon to display the corresponding function name Select View Toolbars from the main menu to show hide toolbars Drag the toolbars to change their position Project tree 6 Project workspace Used to manage programs and settings Drag amp drop items to copy the data Select View Windows Workspace from the main menu to show hide the workspace Section Programs can be split into and managed as multiple parts Diagram workspace Used to create and edit ladder programs I O comment bar Displays the name address value and I O comment for the variable selected by the mouse cursor SYSMAC CP1L CP1E Introduction Manual 514 4 3 Using CX Programmer 9 Output window Select View Windows Output from the main menu to show hide the output window Displays the following information Compile Displays program check results Find Report Displays search results for contacts instructions and coils Transfer Displays errors which occurred while loading a project file 10 Status bar Displays information such as PLC name offline online status and active cell position If an online connection error or other errors occur and are recorded by the error log while online a blinking red error message will be displayed Select View Windows Status Bar from the main menu to show hide the status bar e Diagram Workspace suJeJDoJg Buneay gt Mor Area 1 Rung number
35. T0000 wooo Vork Ares Light detection Timer W000 Work Area UE EBRERPERRRRERPEEPPPAPE 2 2 woo 4 p Vio k Ares A Oms Timer Timer BCD Type TIE TIM TAN B TAND TCMP TIMH TIML TKOF TKON TKY TMHH TOCY 3 Press the Enter key Timer number 1 2 will be displayed and 0 0 will be displayed in reverse video Work Area Light detection 0 00 Work Area 1 0 00 reeeeerpannepa up pun ru 2 x Vunrlk A EATEN 2 Timer number 1 2 TIM 0 SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs 4 Input the timer number 0 is already displayed so press the Enter key Work Arena Work Area wo 00 al i lat F i Vit Area r Tim 0 i 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 Light detection Timer O00 Wk Area agasAPgrisrPPPPPEFPFAR fi 1 Wal 00 E m M Arg F siue 2 2 TM 0 50 I 0 04 TOONO WO 00 SS 4 8 Work Area Light detection Timer v0 00 Work Area 7 T a r Fa Work Area TIM 0 50 Comment 2 2 Timed SYSMAC CP1L CP1E Introduction Manual gt 65 suJeJ604d DuneoJ25 4 5 Inputting Programs The timer instruction input is complete ow 400mz Timer Timer
36. The data is control bits The data is backed up when power is restored to RAM when restored to RAM when interrupted and then power is turned ON for the power is turned ON for the restored to RAM the next settings in the PLC Setup settings in the PLC Setup time power is turned ON DM Area initialization function Task Flag Area 32 1 TKO to TK32 Index Registers IR IRO to IR15 Not provided Data Registers DR DRO to DR15 Not provided Trace Memory 4 000 words Not provided ll Connection with Programming Devices Item CP1L CPU Units CP1E ELILI S type CPU CP1E N NALID SE type Units CPU Units CX Programmer Connecting tool CX Programmer CX Programmer Utility Switch Box Error simulator Programming Device USB port USB port only USB port only connection port Optional serial communication board Applicable Support Software CX Programmer version 7 1 CX Programmer version 8 2 or higher or higher Refer to the following table for the applicable units SYSMAC CP1L CP1E Introduction Manual gt 177 xipueddy xipueddy I A 5 Comparison between CP1L and CP1E Program Head protection protection from the CX Programmer task Supported Enabling and disabling overwriting programs from the CX Programmer FINS write protection for CPU Unit via Network Supported Supported Enabling and disabling writing program files for file memory Supported PLC backup tool Supported CPS f
37. a Counter number E E L u 3 a Set value B E E E J Next input a reset input for the counter instruction The timer contact TIM 0000 will be used as the reset input T SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs f Place the cursor below the contact created in step 1 8 Input contact T0000 0 t 0 04 Too00 w000 gt Work Area Light detection Timer v0 00 Work Area 1 Vn a00 4 Work Area Tihi 1 00ms Timer Timer BCD Type 0000 Timer Timer number 50 Set value 2 i 0 04 6 Light detection CNT Counter ea BEEE ga ERSS testes TERS SELLE SS a TOOOQ 1 2 0000 Counter o 2 Counter number a Timer mmmmum3 3 Set value O Press the Ctrl and the down arrow key 5 times simultaneously When the cursor is positioned on the next rung counter instruction input is complete I 0 04 TOOO0 wo 00 C Work Area Light detecti Timer Wwo 00 Wok Area 1 Wwi0 00 4 Work Ara Tih Timer 0000 Timer Timer number 50 Set value m mumumumuuuumumummuumumumumumuuuuuumumumuumumumumumuuumumuummummmmEMEEMNNHENNEEmMENENENEMNENENENENEHN oe I 0 04 1 5 Light detecti CNT Counter L L n Too00 0000 Counter L 5 Counter number a Timer s u E 3 Set value B u L 1 u z 1 3 famee eee Next input an auxiliary area SYSMAC CP1L CP1E Introduction Manual 11 TI suJeJ604d DuneoJ25 4 5 Inputting Programs 4 5 6 Inputt
38. 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 Z Caution Before starting online editing confirm that the extension of cycle time will have no adverse effects Otherwise input signals may not be read Z Caution With an CP1E ELILI S type CPU unit or with an N NALILI SEI 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 4 Application Precautions Z Caution Confirm that the facility will not be affected by changing to MONITOR or RUN mode 12 Application Precautions SECTION 1 CP1L CP1E Overview This section introduces the types of
39. flag O6 SYSMAC CP1L CP1E Introduction Manual 5 2 Adjusting Debugging Online 5 2 3 Changing Timer Settings Only CP1L Timer settings can be changed to better suit operating conditions 1 Change CP1L to the MONITOR or PROGRAM operating mode 2 Double click the timer setting to be changed The Set Timer Counter Value dialog box will be displayed 3 Input the new value Click OK The timer setting will be updated Set Timer Counter Value Value or address OF OM Hag Browse I UIMT BED 079999 bed Symbol Information 0 2 4 Searching MAddress Reference Tool The address reference tool displays which instructions are using the address being pointed to with the cursor It also allows jumping to another instruction with the same address The address reference tool will display the following items e Address at the cursor position e Variables local global Program name section name Program address step e Instruction using the address SYSMAC CP1L CP1E Introduction Manual suJeJ6o4d Buib6nqeq pue BurueJsueJ a 97 suJeJ6o4d BuibO6nqeq pue BuruejsueJ a 98 5 2 Adjusting Debugging Online 1 Select View Windows Address Reference Tool from the main menu The address reference tool will be displayed 2 Input the address to search for Click Find Por Help prim P1 qun MenPLCIeU ModexI SopfPengam Ede SE ARD j ert WEH SYSMAC CP1
40. ports are used the servicing time will be Oms Built in flash memory Processing time for these services will vary depending on the PLC EEPROM accessing settings service If a cycle time has not been specified service will be executed using 4 of the preceding cycle time calculated by cycle time Memory cassette calculation If a cycle time has been specified service will be accessing service executed for the specified time Execution will take at least 0 1ms regardless of whether the cycle time has been specified 1 If there is no access the servicing time will be Oms CP1E CPU Units do not execute these services The cycle time will vary depending on the following factors Type and number of instructions in the user program all cyclic tasks and additional tasks executable during the cycle and interrupt tasks of which execution condition are satisfied Type and number of CP series expansion I O units and expansion units connected Minimum cycle time specified in the PLC settings Use of peripheral USB ports and serial ports Fixed peripheral servicing time specified in the PLC settings 2 The cycle time is not affected by the number of tasks in the user program The cycle time is only affected by cyclic tasks that are READY within the cycle 3 When changing from MONITOR to RUN mode the cycle time will be extended by approx 10ms this will not however make the cycle time too long 4 Service t
41. program indexes 8K steps Including comments symbol tables and program indexes Program capacity 2K words DO to D1499 can be backed up to EEPROM Only ladder Function block Not provided Instruction set Approx 500 instructions Approx 200 instructions Instruction execution time LD 0 55us LD 1 19us MOV 4 1us MOV 7 9us Mode Up down or pulse plus Up down or pulse plus Up down or pulse plus direction inputs direction inputs direction inputs 100 kHz x 4 counters 10kHz x 2 counters 100kHz x 1 counter Or Or 10kHz x 1 counter Differential phases 4x Differential phases 4x Or 50 kHz x 2 counters 50 kHz x 2 counters Differential phases 4x Or Or 50kHz x 1 counter Increment inputs Increment inputs SkHz x 1 counter 100 kHz x 4 counters 10kHz x 6 counters Or 8K words DO to D6999 can be backed up to EEPROM DM Area capacity Program language Quick response inputs 10kHz x 5 counters only for CPU Unit with 10 I O points High speed counter method 6 inputs 6 inputs 5 inputs only for CPU Unit with 10 I O points 174 SYSMAC CP1L CP1E Introduction Manual Increment inputs 100kHz x 2 counters 10kHz x 4 counters Target value comparison Target value comparison Target value comparison and Range comparison and Range comparison and Range comparison 6 inputs A 5 Comparison between CP1L and CP1E CP1E ELILI S type CPU CP1E N NALILI SLI type Interrupt inputs 6 inputs
42. series used with E32 series fiber unit Product I d A Sensor input 3 Sensor input 1 Sensor input 2 Interrupt tasks will be executed when the sensor input interrupt changes from OFF to ON Sensor input interrupt input 0 Contact 0 04 y Process Process Process interrupt task interrupt task interrupt task Sensor input 1 Contact 0 00 i I Sensor input 2 Contact 0 01 l Sensor input 3 OS I T E E E Contact 0 02 RESET input p S e 4 T E S E A I I Contact 0 05 I I I I I PASS output obe o 5 t I Contact 100 00 I I NG output s m NEEN Contact 100 01 I I l I NG output sensor input 1 712 c MENENNMA e I l I Contact 100 02 l l I 1 l I NG output sensor input 2 20 20 1 5 aaa l I I I Contact 100 03 NG output sensor input 3 EA R ES EE UT Contact 100 04 130 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples llSystem Configuration e Wiring Example On CP1L units with 14 point I O interrupt inputs can be allocated to contacts 0 04 to 0 07 Input interrupt O CP1E 4 will be allocated to contact 0 04 The interrupt task executed by input interrupt O CP1E 4 is task No 140 CP1E No 4 sensor input 3 0 02 Sensor input interrupt input 0 0 04 HESET input 0 05 O IR Sensor input 2 0 01 Sensor input 1 0 00 fesses es en OPI
43. statuses include power status operating mode errors and peripheral USB communication status Power supply ground and input terminal block Used to connect the power supply line ground line and input lines 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 e 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 MSIAIJGA O dEdO T1LdO 20 1 2 Part Names and Functions e 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 SL1 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 exce
44. sum of ON bits are calculated and expressed as a single digit MSB LSB Most Significant Bit Least Significant Bit O BEBBUBDGDEHBEBEBEUE mme ed Ee eg ea epe e z EE Content 1 1 1 1 1 1 ON O OFF Digit value The above channel will be expressed as OF7C Hex G Constants Notation Constants used in CP1L or CP1E instructions are represented as follows Notation Content Purpose 0000 to 9999 BCD Timer counter values BCD arithmetic instruction etc xipueddy l 0000 to FFFF Hex Comparison data for comparison instructions transfer data BIN arithmetic instructions etc amp 0 to 65535 Unsigned decimal notation Available in certain special instructions only Can be loaded into CX Programmer by converting to and from hex digits instruction Execution Conditions There are 2 types of instructions cyclic instructions and differentiated instructions Cyclic Instructions The instruction is executed on each cycle for as long as the execution condition is ON Example W00000 MOV 021 On each cycle for which work area W00000 is H010 ON data in holding area HO10CH is transferred D00010 ito DM D00010 Differentiated Instructions The instruction is executed only once i e on 1 cycle only when the execution condition turns ON The instruction name is prefixed with an Example W00001 MOV 021 When work area W00001 switches from OFF to i H020 ON data in holding area HO20CH is trans
45. task 04 will be executed Interrupt task rem 04 SET Set motor slow 100 01 SYSMAC CP1L CP1E Introduction Manual gt xipueddy 145 mM A 4 CP1L Programming Examples When the PV of the high speed counter matches target value 2 3500 interrupt task 05 will be executed P On Reset motor run Interrupt task 05 Reset motor slow Reset motor stopped DM Area Setup The comparison table for the CTBL register comparison table instruction should be allocated to DM D600 through D606 D600 0002 ltems compared 2 D601 OBB8 Target value 1 3000 BCD BB8 Hex D602 0000 xipueddy D603 0004 Target value 1 Interrupt task No 4 D604 ODAC Target value 2 3500 BCD DAC Hex D605 0000 D606 0005 Target value 2 Interrupt task No 5 A 4 6 Using Servo Drivers for Positioning ll unctions Used e Pulse Output by Built in Output Pulse signal outputs from the built in output of a CPU unit can be used for positioning and speed control of a servo motor driver with up to 2 axes Note CP1E ELILI S type CPU units have no pulse output functions MOperation Overview The following example is for a single axis handling machine that is used to transfer product Origin search will be executed followed by positioning operations to points A and B Point A Origin Point B qu EE 146 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM e Origin Search An accurate origin search th
46. the cycle time to become longer and or failure to read input signals e When making large changes when moving or copying rungs or when inserting or deleting block programs edit offline then transfer the program Change CP1L to the MONITOR or PROGRAM operating mode Click the rung header of the rung you wish to edit Select PLC Online Edit Begin from the main menu The grey shading in the diagram workspace will disappear and the program becomes editable o Iw application 1 CX Programmer Running NewPIC1 NewProgram1 Section1 Diagram D Fie Edt View Insert Program EZ Osa ASR a Qa usi ms mg as V 424 98 X3 BAR RF o0o08U t tL Bom t m 7 RAPHE HE b i g gt PLC Configuration pia C NewProgram 00 Ri E Differential Monitor b Section Trace END Eorce t F Furtion Blocks Set Reset suJeJDoJg Buibbngeg pue Buluessues a a 4 Edit the program nummmumumuumm Q 100 01 UpperLS De escalatio I 0 06 Q 100 00 Q 100 01 De escalation motor Lower LS Escalation m Q 100 01 De escalatio 100 SYSMAC CP1L CP1E Introduction Manual 5 2 Adjusting Debugging Online D Select PLC Online Edit Send Changes from the main menu The edited rungs will be transferred to CP1L application 1 CX Proprammer 5taopped HewPLC1 MewProgram1 Sectiont Diagram Feasa nRa i Bh Work Online Chl a XQ E
47. to continue JLEJ If the following dialog box is displayed click Yes CX Proprammer v8 2 Make sure that there aren t any problems if the PLC is stopped Do you wish to switch the PLC into program mode The transfer will begin The Download dialog box will be displayed SYSMAC CP1L CP1E Introduction Manual 91 5 1 Going Online 4 Click OK Transferring of the program is now complete Download Pragram Download to PLC MewPLCT Download succezshul 5 1 4 Executing Operations To perform a production run change to the RUN operating mode The procedure for changing to RUN mode is described below To perform a trial run for adjustments and debugging change to MONITOR mode Caution Confirm that the facility will not be affected by changing to MONITOR or RUN mode 1 Select PLC Operating Mode Run from the main menu A dialog box will be displayed to confirm the operating mode change suJeJ6o4d BuiB6nqeq pue BuruejsueJ application 1 CX Propgrammer Stopped NewPLC1 NewPropram Section Diapram 9 File Edt View Insert Program HN Simulation Tools Window Help Deis M Ad i E UIS Lh Work Online Crew Aas PEM ateQnine Im mE E DB O0 4 Ww uL l SS ogam arhi k ree J T p Ge Motor Cuh3 F Tri Programs c gl NewProgramt 00 St Symbols Section END 2 Click Yes The system will change to RUN mode and begin opera
48. 0 04 Light detecti CNT Counter TOODO 0000 Counter Counter number coooo 3 3 Set value Counter ummmmm 4 CLCCLEL EEE EEE EEE L EE aP_First_Cycle 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 3 cooo0 Q 100 01 Q 100 00 Escalation motor Counter Stop button I 0 00 UpperLS Dae escalatio Open button Q 100 00 Escalation m I 0 02 Q 100 00 Q 100 01 18 De escalation motor Close button Escalation m ueeeeeceeeeeeee eee ec z Q 100 01 7 De escalatio 7 7 7 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 gt ie suJeJ604d DuneoJ25 suJeJDoJg Buneay gt 14 4 5 Inputting Programs D 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 Q 100 00 3 coooa 0 D Q 100 01 Escalation matar Counter Stop button De escalatio I 0 00 Uu pper LS Open button Q 100 00 Escalation m I 0 02 Q 100 01 Q 100 00 De escalat
49. 0 04 0 03 0 05 WO0 01 Positioning Start origin Positioning to point A search to point B WO0 01 A280 03 100 02 Point A positioning complete Pulse output complete 0 05 0 03 0 04 W0 02 Positioning Start origin Positioning to point B search to point A W0 02 A280 03 100 03 Point B positioning complete Pulse output complete 150 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples DM Area Setup Example Point A D0000 07DO positioning Acceleration ratio 2000 Hz 4ms D0001 07D0 Deceleration ratio 2000 Hz 4ms D0002 C350 Target frequency 50000 Hz D0003 0000 D0004 FC18 Pulse output volume 1000 Hz D0005 FFFF Initial DO00060 0000 Initial frequency O Hz frequency E 0000 Point B D0010 07D0 positioning D0011 a D0012 Acceleration ratio 2000 Hz 4ms ratio 2000 Hz 4ms SS ae ratio 2000 Hz 4ms Sa frequency 50000 Hz Pulse output volume 100000 Hz SYSMAC CP1L CP1E Introduction Manual xipueddy gt 151 mM A 4 CP1L Programming Examples A 4 7 Using Inverters for Speed Control 1 ll unctions Used Modbus RTU Easy Master Function By using Modbus RTU easy master function Modbus compliant slave devices i e inverters can be controlled easily via serial communication O Li COM o 05 o5 07 E3 00 02 7 n6 NG NG omron E SYSMAC oO CP1L o OOoooooO oO oOOooooo o OOO0 000 PERIPHERAL BATTERY ne Two wl Los 9 Nc T wc com cou
50. 00 Counter A zl E il Project TI Name Address or Value N A Auto Comment 0000000000000 si 1 uses symbol w with an invalid address at rung 1 0 01 Section Mame END Le NewPLCT 1 error 0 warning The programs have been checked with the program check option set to Unit Yer 1 1 Deon Compile Find Report il 4 H For Help press F1 3 i rung 1 0 0 96 f NUM s 16 SYSMAC CP1L CP1E Introduction Manual 4 6 Saving Loading Programs 4 6 2 Saving Programs Save the created ladder program Programs are saved in groups for each project 1 Select File Save As from the main menu The Save CX Programmer File dialog box will be displayed Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram fel SEM Edit View Insert Program PLC Simulation Tools Window Help i D new ow fealaloclaaes ete ase l an a 22 82 e D rw t S E amp Open Ctrieo i cose Gh Hue I oppg ZlS in bl Save Cti s B k Reusable File Function Block a Load Comment Pragram Area 100ms Timer Timer BCD Type Save Comment Program z 4 2 Specify the save location and input a file name Click Save The CX Programmer project file will be saved Save CX Programmer File Save inal 3 program SYSMAC CP1L CP1E Introduction Manual T TI suJeJ604d DuneoJ25 suJeJDoJg Buneay gt 78 4 6 Saving Loading Programs 4 6 3 Loading Programs
51. 1 07 to 00 FUNCTION code CP1E D1252 15 to 08 to 08 Reserved must be 00 Hex D32353 ee to 00 Number of response bytes 0000 to OS3EA CP1E D1253 Hex D32354 to D32399 15 to 00 Response data max 92bytes CP1E D1254 to D1299 C When a communication error occurs A640 02 execution error flag is turned ON and the error code is stored to D32352 CP1E D1252 158 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM e DM Area Setup DM Fixed Allocation Words for Modbus RTU Easy Master DM settings from D32300 to D32305 CP1E D1201 to D1205 are set before the execution of the ladder program D32306 and D32307 CP1E D1206 and D1207 do not need to be set explicitly They are modified by MOV instructions and are used to change start and stop frequency commands Serial Port 1 Command Settin Slave FUNCTION Communication Communication data D32303 to Max D32349 g address code data bytes CP1E D1203 to Max D1249 Address D32300 D32301 D32302 D32303 D32304 D32305 D32306 D32307 CP1E D1200 CP1E D1201 CP1E D1202 CP1E D1203 CP1E D1204 CP1E D1205 CP1E D1206 CP1E D1207 vae o0 o 00 10 00 i o9 oo of oo i 02 04 00 aj ofsi LY wy l 00 00 Inverter slave address 1 Hex Data for next register e g set 60 0Hz 0258 Hex for No 0002 frequency commandg Data for starting register Inverter data write 10 Hex
52. 1 1 or 2 0 cable A B 5m or shorter suJeJ604d DuneoJ25 ES G Restrictions on USB Connections Due to limitations of the USB specifications the following restrictions apply when connecting CP1L to a computer e 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 SYSMAC CP1L CP1E Introduction Manual 43 4 1 Preparing for Programming llConnecting to a Computer and Installing the USB Driver suJeJDoJg Buneay gt N Note 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 Turn the power ON for CP1L and the computer Using a USB cable 2 connect the peripheral USB port 3 on CP1L to a USB port on the computer 1
53. 1L CP1E Execution by Instructions with Immediate Refresh Variation Note If the immediate refresh variation has been specified for an instruction and the built in I O area has been specified as an operand then I O refreshing is performed when the instruction is executed during the program execution cycle Actual I O data built in I O Immediate refresh 15 11 0 LD 000 oH 15 7 0 IOUT 100 00 100 CH mm 15 11 0 IMOV 1 101 1 Immediate refreshing is possible on the built in I O area only For CP1E CPU unit s built in analog I O and CP series expansion I O units use the IORF instruction 2 Bit specific instructions The channel 16 bits containing the specified bit will be refreshed Channel specified instruction The specified channel 16 bits will be refreshed 3 Inputs and S source operands The input is refreshed immediately before executing the instruction Outputs and D destination operands The output is refreshed immediately after executing the instruction Executing IORF I O REFRESH Instructions Note IORF I O REFRESH instructions can be used to refresh all I O data or just the data within the specified range at a desired timing IORF instructions refresh CP series expansion I O units D1 Starting CH number D2 Ending CH number I O channel data between D1 and D2 will be refreshed D2 IORF instructions take a relatively long time to execute
54. 2 0 00 0 02 0 04 0 06 e Wiring Outputs 1 Wire the outputs as shown while referring to 2 3 I O Allocation for the Shutter Control System MO1 1 1 MO2 100 00 100 01 SOc C Teseesesp os c 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 SYSMAC CP1L CP1E Introduction Manual 3 4 Power Testing CP1L 3 4 Power Testing CP1L After wiring CP1L perform a power test lllurning 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 Turn the power ON for CP1L Wait 2 seconds for the CP1L to initialize 4 Check the indicators on CP1L If POWER and RUN are lit CP1L is operating normally w N S Fees AA Note When CP1L is turned ON it will go into RUN mode automatically 5 Turn the power OFF for CP1L SYSMAC CP1L CP1E Introduction Manual Bun M pue BununoJv m 39 BuuiM pue GununoJ v w 40 3 4 Power Testing CP1L Note Battery AN Caution e 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 r
55. 3 Positioning of points A and B are repeated Because absolute pulse specification is used the positioning SV for 3 will be the same as for 1 SYSMAC CP1L CP1E Introduction Manual gt xipueddy 147 xipueddy mM A 4 CP1L Programming Examples llSystem Configuration e Wiring Example Senser E2E series CCW limit Origin proximity CW limit sensor sensor sensor Switch A16 series 0 00 0 02 0 01 Start Positioning Positioning origin search to point A to point B 0 03 0 04 0 05 NO NO NO contact contact contact E 24VDC AELE Origin input 0 06 S8VM series i E D RITE R7D serie CW output CCW NN E 100 00 output 100 01 Error counter reset output 100 04 Indicator Sx M16 series Point A Point B Origin search positioning positioning complete complete complete 100 05 100 02 100 03 1 Insert a resistance of 1 6 to 2 2k O so that the current is within the 7 to 15mA range 2 The bit allocations of origin proximity sensor origin input and error counter reset output are different with the CPU unit I O points Refer to CP Series CP1E CPU Unit User s Manual W462 or CP Series CP1E CPU Unit Hardware User s Manual W479 for the details on allocation 9 CP1E units can only be used in pulse plus direction method Set the servo drive to pulse plus direction In addition for CP1E units the terminal arrangement need to be changed set 100 00 to pulse and 100 02 to d
56. 5 Relay numbers are used to handle contacts Channel numbers are mainly used as operands for special instructions when processing data by the channel Note In CX Programmer abbreviated as CX P below upper bits of channel numbers and relay numbers are not displayed if their value is O For example 0000CH will be displayed as O Relay numbers are displayed as a channel number followed by a period and a bit number The bit number ranges in value from 00 to 15 BCP1L CPU Units Area In CX P In CX P W000 to W511 CH W000 to W511 W00000 to W51115 W0 00 to W511 15 owas D wemewnsre ewe 1 H512 to H1535 is FB special area 2 For 10 14 20 point I O units DO to D9999 D32000 to D32767 Note The work words in CIO Area may be assigned to new functions in future versions of the CPU Units Be sure to use the work words in W000 to W511CH first MCP1E CPU Units Area Channel Relay In CX P In CX P CIO 000 to 199 0 to 199 00000 to 19915 0 00 to 199 15 area Serial PLC link area 200 to 289 CH 200 to 289 20000 to 28915 200 00 to 289 15 Work area Wo0 to W099 CH Wo0 to W99 W0000 to W9915 W0 00 to W99 15 OM EDO D00000t0D0e047 Dopo P 104 SYSMAC CP1L CP1E Introduction Manual A 1 Channel Relay Numbers mM e Channel Data Notation Channel data is represented by 4 hexadecimal digits derived from 16 binary digits representing the ON OFF state of the 16 bits In other words for each 4 bits the
57. 5 BB 4 3 Inner Workings ot CP1L CP1E A 3 2 CPU Unit Behavior This section briefly explains operations that take place within a CP1L or CP1E CPU unit MCPU Unit Operation Flow Program executions execution of instructions are first processed followed by I O refresh and execution of the peripheral servicing These processes are repeated in cyclic fashion Power ON Power ON Initialize hardware memory and system work initialization Detect connected units processes Execute automatic start up transfer 1 from memory cassette Clear I O memory Check user memory UM Force set force reset Overseeing X Check for battery error processes Monitor DIP switches 1 Check I O bus Check user program memory Cycle time Program During execution Execute user program execution Error processing Turn outputs OFF For bus errors reset unit When an error occurs Clear I O memory area except when executing FALS instructions xipueddy I O refresh Perform cyclic data exchange on the following units 2 CP series expansion I O units Peripheral Services only executed on event occurrence Services Peripheral USB port service Serial port service Communication port service 1 Built in flash memory EEPROM access service Memory cassette access service 1 Online editing 1 CP1E CPU units do not execute these services 2 VO refresh i
58. 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 l 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 W462 W451 W479 SYSMAC CP Series CP1L CPU Unit User s Manual SYSMAC CP Series CP1H CP1L CPU Unit Pro gramm
59. CP1L and CP1E as well the part names used during operation 1 1 1 2 CP1L CP1E Models um mh EE E 14 deste d SSP Ail Nodels desde a e oec one hice 14 i i 2scpPqTE Models ete co cac p AERA M eee 15 Part Names and Functions CP1L CP1E Overview 1 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 ELILI S type CPU Units basic models for standard control operations using basic movement arithmetic and comparison instructions and NLILI SEI type CPU Units application models that supports connections to Programmable Terminals Inverters and Servo Drives ELILI S type CPU Unit is available with 10 14 20 30 or 40 I O points NLILI SEI type CPU Unit is available with 14 20 30 40 or 60 I O points NALILI type CPU Unit is only available with 20 I O points two analog inputs and one analog output The CP1E includes the standard ELILI type NLILI type CPU Units and the renewal ELILIS type NLILIS 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 Bi10 point I O Units CP1L L10DLI LI e CPU unit has 6 input points and 4 output points e CP series expansion I O units cannot be used to add l O points MSIAIJGA O AldO 1kdO i B20 point I O Units CP1L L20DLI LI e CPU unit has 12 input points and 8 output p
60. D1206 0000 D32307 CP1E D1207 Start Modbus communication 1 second after executing ladder program Continue Modbus communication P On xipueddy WO0 15 Contact Z Operation command 0 Stop Frequency command 00 00Hz TIM 0 0010 TIMO A640 00 A640 01 Modbus RTU easy master function execution bit Modbus RTU easy master function execution normal flag SYSMAC CP1L CP1E Introduction Manual 157 xipueddy mM A 4 CP1L Programming Examples Flags for Modbus RTU Easy Master Function Serial Port 1 A640 00 Execution bit J4 7 dw yg fF p b GSGb A640 01 Execution normal flag A640 02 Execution error flag A B A Turn the A640 00 execution flag ON to send command data D32300 CP1E D1200 and later For details refer to DM Area Setup on the next page Channel Bits Setting D32300 Slave address 00 to F7 Hex ORME D1200 Reserved must be 00 Hex D32301 FUNCTION code AE Die 151008 Command Reserved must be 00 Hex D32302 15 to 00 En of communication data bytes CP1E D1202 0000 to 005E hex D32303 to D32349 15 to 00 Communication data max 94bytes CP1E D1203 to D1249 B When a command has been sent successfully A640 01 execution normal flag is turned ON and data is stored to responses D32350 CP1E D1250 and later Serial Port 1 D32350 07 to 00 Slave address 01 to F7 Hex CP1E D1250 15 to 08 Reserved must be 00 Hex D3235
61. EEE 1394 Bus host controllers ae Keyboards 5 Mice and other pointing devices BB Network adapters Y Ports COM amp LPT 31 898 Processors Sound video and game controllers System devices E Universal Serial Bus controllers gt OMRON SYSMAC PLC Device 6 Standard Enhanced PCI to USB Host Controller amp Standard Universal PCI to USB Host Controller amp Standard Universal PCI to USB Host Controller f Standard Universal PCI to USB Host Controller amp Standard Universal PCI to USB Host Controller amp USB Root Hub amp USB Root Hub amp USB Root Hub amp USB Root Hub K USB Root Hub Close the Device Manager dialog box and then the System Properties dialog box If OMRON SYSMAC PLC Device is not displayed reinstall the USB driver For details on reinstalling the USB driver 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 SYSMAC CP1L CP1E Introduction Manual 4 2 Creating Ladder Programs 4 2 Creating Ladder Programs A ladder program can now be created for the example introduced in SECTION 2 System Design First however the functions of the ladder program will be described 4 2 1 Operation The ladder program to be created will open and close a garage shutter For details on the example application refer to 2 2
62. HER CLAIMS REGARDING THE PRODUCTS UNLESS OMRON S ANALYSIS CONFIRMS THAT THE PRODUCTS WERE PROPERLY HANDLED STORED INSTALLED AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION ABUSE MISUSE OR INAPPROPRIATE MODIFICATION OR REPAIR Application Considerations BSUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards codes or regulations that apply to the combination of products in the customer s application or use of the products At the customer s request OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products This information by itself is not sufficient for a complete determination of the suitability of the products in combination with the end product machine system or other application or use The following are some examples of applications for which particular attention must be given This is not intended to be an exhaustive list of all possible uses of the products nor is it intended to imply that the uses listed may be suitable for the products e Outdoor use uses involving potential chemical contamination or electrical interference or conditions or uses not described in this manual e Nuclear energy control systems combustion systems railroad systems aviation systems medical equipment amusement machines vehicles safety equipment and installations subject to separate industry or government regulations e Syste
63. J604d Bunea gt 2 Push buttons A16 series etc When pulling the car out of the garage use the buttons to operate the shutter e 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 48 SYSMAC CP1L CP1E Introduction Manual 4 2 Creating Ladder Programs 4 2 2 Ladder Program The ladder program for the example application is shown below 0 04 T0000 W0 00 Light detection Timer 3 Work area 4 sensor 1 W0 00 1 Refer to nputting Contacts of 4 5 2 Inputting Contacts 2 Refer to nputting OR Circuits of 4 5 2 Inputting Contacts Work area 2 3 Refer to Inputting Closed Contacts of 4 5 2 Inputting Contacts 4 Refer to 4 5 3 Inputting Output Coils gt W0 00 Work area Timer 5 0 04 Light detection sensor Counter 6 T0000 suJeJ604d DuneoJ25 Timer C0000 Counter 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 A200 11 P First Cycle Firstcycle flag 7 C0000 0 01 0 05 100 01 100 00 Counter STOP button Upper De escalation Escalation limit LS motor motor 0 00 OPEN button 100 00 Escalation motor 0 02 0 01 0 06 100 00 100 01 CLOSE button Lower Escalation De escala
64. L PASS output 100 00 NG output 100 01 PLC Setup Set contact 0 04 to be Interrupt 1 Open the PLC Settings dialog box 2 Click the Built in Input tab 3 OnthelNO CP1E IN4 drop down list for Interrupt Input select Interrupt While the sensor input contact is 0 04 setup is performed for INO CP1E IN 4 since the interrupt input setting is set to 0 CP1E 4 SER xipueddy gt NG output sensor input 3 100 04 NG output sensor input 2 100 03 NG output sensor input 1 100 02 73 PLC Settings NewPLC1 File Options Help Startup Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 04 gt High Speed Counter 0 High Speed Counter 1 Use high speed counter 0 Counting mode E Circular Max Count Reset Input Setting High Speed Counter 2 Use high speed counter 2 Counting mode Ss Circular Max Count Reset Input Setting Interrupt Input INO Normal v IN1 Normal v Jem INA arm INS Norma Use high speed counter 1 Counting mode Circular Max Count Reset Input Setting High Speed Counter 3 Use high speed counter 3 Counting mode d Circular Max Count Reset Input Setting IN2 Normal v IN3 Normal CP1L L Offline 4 Close the PLC Settings dialog box 5 To apply changes made to the PLC settings turn the PLC power ON SYSMAC CP1L CP1E Introduction Manual 131
65. L CP1E Introduction Manual 5 2 Adjusting Debugging Online A list of used addresses will be displayed Click an address to display the program being used lil adder Backtracking This function is used to backtrack the ladder to determine why a contact does not turn ON for example S a D i o 3 Q U D ey c G a e T O e o 3 a 1 Place the cursor on the contact being investigated y zl 3 coooo E Bia 1 0 05 Q 100 01 Q 100 00 Y Escalation motor Counter N op button UpperLS De escalatio Escalation m 4 I 0 02 I 0 06 Q 100 00 Q 100 01 18 De escalation motor Close button on Lower LS Escalation m De escalatio I 0 03 Car detection 2 Press the Space key The cursor will be moved to the source output for the contact Counter z Counter Counter number AW Set value Q 100 00 First Cycle Flag coooo Q 100 04 Escalation motor UpperLS De escalatio Q 100 00 SYSMAC CP1L CP1E Introduction Manual 99 5 2 Adjusting Debugging Online 5 2 5 Online Editing The CP1L program can be edited online Z Caution Before starting online editing confirm that the extension of cycle time will have no adverse effects Otherwise input signals may not be read Note Note that if CP1L is running in MONITOR mode changing the program via editing online may cause
66. Manual A 4 CP1L Programming Examples mM A 4 5 Using Rotary Encoders to Measure Positions ll unctions Used e High Speed Counting by Built in Input High speed counter inputs can be enabled by connecting rotary encoders to the built in inputs CP1L units come with multiple high speed counter inputs making it possible to control multi axis devices with a single CP1L or CP1E High speed counters can be used for matching target values and for high speed processing using range comparison interrupts Interrupt tasks can be triggered when the counter value reaches a specific value or value range MOperation Overview A sheet feeder will be regulated to feed constant lengths in a given direction i e for vacuum packing of food products gt xipueddy Motor Speed Motor Start Contact 0 02 Motor Run Contact 100 00 Motor Slow Contact 100 01 Normal stop position Contact 100 02 Error stop position Contact 100 03 3550 pope M MP A High speed counter 2900 l en PL M Q P RT TM measurement pulse pes z A270 Pulse z Ladder program turns the high speed software reset A531 00 ON upon motor startup While the pulse count is between 3500 and 3550 normal stop position 100 02 will be ON When the pulse count exceeds 3550 error stop position 100 03 will be ON SYSMAC CP1L CP1E Introduction Manual 141 mM A 4 CP1L Programming Examples llSystem Configuration e Wiring Exa
67. OR or PROGRAM operating mode Place the cursor on the contact to force set P First Cycle First Cycle Flag dtetetetteteee ecco 3 coooo I 0 01 I 0 05 2 Q 100 00 Escalation motor Q 100 01 De escalation motor 2 A Upper LS 2 De escalatio Is 4 Bru I 0 06 Q 100 00 Lower LS Escalation m DA File Edt View Insert Program ii Doh pR 64 8 Simulation Took Window Help MW aes 52 a sont r j ih amp Work Online Cui w e E 7 QW Qo sr Auto Online OFRES ELL I fl Fa Ed i ar 6h a Operating Mode b e o sy Ww i Transfer J gn Partial Transfer k Online Edit b Protection k Clear Al Memory Areas L 9 amp Programs PLC Configuration b Gq NewProgramt 00 St E Diferential Monitor enm Iraca a Qno TF Function Blacks Set Reset H o Ctrl k Gancel Ctr Cancel All Forces P_First_Cycle First Cycle Flag 3 coooo 1 0 01 I 0 05 4 mm mma PELE LEE EEE EEE EEE Q 100 00 2 a Escalation motor Counter on Upper LS 2 We escalatio d I 0 00 7 wl ww we at I 0 06 Q 100 00 e escalation motor uous e Select On to force the contact ON and Off to force the contact OFF To undo the force set force reset select Cancel e The following areas can be force set force reset CIO area I O area data link area CPU bus unit area special I O area and work area work area WR timer completion flag holding area HR counter completion
68. Ox oe 0 LM mm TOK Gsm YK changing param OK Force sennae OK Changing imereounterPV OK changing ro memen OK CP1E is not available 5 1 3 Transferring Programs A program created with CX Programmer can be transferred to CP1L swesbojg Buibbngeqg pue Buuuejsuei a 1 Select PLC Transfer To PLC from the main menu The Download Options dialog box will be displayed application 1 CX Pragrammer Stopped HewPLC1 HewPragram1 Sectiont Diagram M 42 dik tit Chie shiftT b d Transfer PLC Rc H CR Compare PC PLC A ure Seria 00 St zi Symbol ES sectiont eno TT Function Blocks 90 SYSMAC CP1L CP1E Introduction Manual 5 1 Going Online 2 Click OK A dialog box will be displayed to confirm the transfer Download Options PLC NewPLC1 Include Program s 4 Special Unit Setup v Symbols Transfer All ME Comments L Program index m Symbols Comments Program indes Transfer To From Comment memory Transfer files of all tasks C Transfer files by the tast IV Clear program memory Exclude Pi Note For details on the transfer options refer to SECTION 9 Transferring Monitoring Debugging Programs of CX Programmer Operation Manual W446 3 Click Yes CX Programmer v8 2 suJeJboJg BuibBbngeq pue Buuuosjsuei a This command will affect the state of the connected PLC Do you wish
69. P1E E20DR A ELILIS type CPU Unit CP1E E20SDR A 20000006E 6600 95 Let NC COOCOO Oo IL l aN o3 o5 07 oo 11 02 04 06 o8 10 bee L1 L2 N COM O1 03 05 07 09 11 NC 00 L2 Nf com o1 oa o5 o7 09 11 02 04 08 08 10 o0 02 04 06 08 10 COMM POWERO RUN OLIN wm OO OOOOOOOOOO ERR ALM O gut O O O O OO O O NHO 00 01 02 03 04 05 06 07 08 09 10 11 M IM AO dEdO 1L dO PRPHLO BKUPO PERIPHERAL PERIPHERAL 07 O2 03 o COM fj COM NC COM NC 00 o1 o2 os T o4 05 EHE oF COM COM NC coM NC COM oe 06 C 40 point I O Units CP1E 040 SO DO D CPU unit has 24 input points and 16 output points e CP series expansion I O units can be used to add I O points up to a total of 160 I O points ELILI type CPU Unit CP1E E40DR A NLILI type CPU Unit CP1E N40D0 0 O PERIPHERAL
70. SE N aungi osteel amp Oa TAARAH 8h operating mode K 858515515 3 9 B HI d Yen Transfer k Partial Transfer fi NewProject E HewPLCI CPIL Stop Prograr Protection 5 2 6 Confirming Cycle Time Change CP1L to the MONITOR or RUN operating mode 2 Click the diagram workspace Cycle time will be displayed on the status bar Dub wm GI he s Aa TW ALA Lu BB RFE D Gm h a a 90 u umPEETNIEEZEG3Ma I oB 01HG itELtuwiub sgmgu tt ugrrrtE GERACE GACEN HAS 8 0097 4 NEHM U E Wo meri ms snc rung 11 1 10A Tart nura Note For details on cycle time refer to A 3 2 CPU Unit Behavior SYSMAC CP1L CP1E Introduction Manual suJeJBoJg Buibbngeq pue Buuuoejsuei a 101 5 2 Adjusting Debugging Online suJeJDoJd BuibBngeq pue Bunuesjsuei a 102 SYSMAC CP1L CP1E Introduction Manual Appendix This section briefly explains channel and relay numbers instructions and the inner workings of CP1L and CP1E This section also provides examples of applications utilizing CP1L 14 point I O unit with AC power supply functions such as pulse functions communication functions and special instructions In case of CP1E the settings are included in the parentheses A 1 Channel Relay Numbers eese 104 A2 SHINS UCHOM ebd temer E NL M 109 A2 stg lasts dotueno brutos dede het eS 109 A 2 2 Basic I O Processing Instructions
71. Use block transfer instruction to transfer 1CH 2CH to 3120CH 3121CH 220CH 221CH Note The values of CP1E are included in the paretheses SYSMAC CP1L CP1E Introduction Manual gt xipueddy 173 xipueddy gt I A 5 Comparison between CP1L and CP1E A 5 Comparison between CP1L and CP1E The following table shows the differences between the CP1L CPU Units and CP1E CPU Units A 5 1 Differences between CP1L and CP1E llFunctional Specifications Maximum number of I O points 10 to 180 points 10 to 180 points Maximum number of Expansion CP1E N NALILI SEI type CPU Units CP1L L type CPU Unit 1 E10 14 20 S or N14 20 CPU Unit None Units and Expansion I O Units that can be connected Power supply AC or DC power supply Output types Relay or transistor outputs Power supply to external Only AC power supply Only AC power supply devices service power CPU Unit with 30 40 or 60 E30 40 60 S N30 40 60 SL1 or NA20 CPU Unit 300mA I O Points 300mA E10 14 20 S or N14 20 CPU Unit None CPU Unit with 10 14 or 20 I O Points 200mA CP1L L type CPU Unit 5K steps CP1L M type CPU Unit 10K steps Not including comments symbol tables and program indexes CP1L L type CPU Unit 10K words CP1L M type CPU Unit 32K words Ladder ST Only in the function block definition CP1L M type CPU Unit 3 E30 40 60 S N30 40 60 SO or NA20 CPU Unit 3 2K steps Including comments symbol tables and
72. al PLC link J gt S8 areas The ladder program transfers the data to be linked to the data link area D 2 Q Boiler A Boiler B Boiler C i CP1L Master CP1L Slave No 0 CP1L Slave No 1 l OCH 7 1CH A_Temperature data 0 B Temperature data 0 C Temperature data 0 2CH A Temperature data 1 1 B Temperature data 1 l C_Temperature data 1 l i 100CH l 3100CH 200CH A Temperature data 0 A Temperature data 0 A Temperature data 0 3109CH 209CH 3110CH 210CH B Temperature data 0 B Temperature data 0 1 B Temperature data 0 3111CH 211CH B Temperature data 1 B Temperature data 1 B Temperature data 1 Serial PLC link area 3119CH 219CH 3120CH 220CH C Temperature data 0 C Temperature data 0 C Temperature data 0 3121CH 221CH C Temperature data 1 C Temperature data 1 C Temperature data 1 i 3129CH 229CH l i 3189CH 289CH Note The values of CP1E are included in the paretheses 3101CH 201CH A Temperature data 1 I i 172 SYSMAC CP1L CP1E Introduction Manual i A Temperature data 1 i A Temperature data 1 A 4 CP1L Programming Examples mM e adder Program Boiler A Boiler B CP1L Master CP1L Slave No 0 P On P On Use block transfer instruction to transfer 1CH 2CH to 3110CH 3111CH 210CH 211CH Use block transfer instruction to transfer 1CH 2CH to 3100CH 3101CH 200CH 201CH Boiler C CP1L Slave No 1 P On
73. al Y IN1 Normal s IN2 Normal Normal INA Interrupt IN5 Normal Quick d IN3 Normal CP1L L Offline 5 Close the PLC Settings dialog box 6 To apply changes made to the PLC settings turn the PLC power ON mProgramming Example Ladder Program 0 04 BCD counter Sensor input 0 01 Counter reset input C0000 100 00 Count complete SYSMAC CP1L CP1E Introduction Manual 129 xipueddy gt xipueddy gt ll unctions Used mM A 4 CP1L Programming Examples A 4 3 Using Interrupt Inputs to Accelerate Processes e interrupt Inputs CP1L and CP1E CPU Units normally repeat processes in the following order overseeing processes program execution I O refreshing peripheral servicing During the program execution stage cyclic tasks are executed The interrupt function on the other hand allows a specified condition to interrupt a cycle and execute the specified program Interrupt inputs direct mode execute interrupt tasks when the built in input of a CPU unit switches from OFF to ON or from ON to OFF Interrupt tasks 140 to 145 CP1E 2 to 7 are allocated to the input contacts The allocation is fixed Use interrupt inputs to achieve faster processing that is unaffected by the scan time llOperation Overview Moving product i e IC chips will be inspected for curvatures and bends Use interrupt inputs if the normal cycle time cannot provide fast enough processing Sensor input interrupt E3X
74. am Work Area Light detecti Work Area Work Area TiM Timer 0000 Timer Timer number 50 Set value 2 I 0 04 6 Light detecti CNT Counter TOOO0 0000 Counter Counter number Timer coooo 3 Set value Counter P_First_Cycle First Cycle Flag SYSMAC CP1L CP1E Introduction Manual gt 81 suJeJ604d DuneoJ25 4 7 Editing Programs 4 3 Editing Rungs Created ladder programs can be edited MDeleting Contacts Instructions 1 Place the cursor on a contact or on an instruction Press the Delete key The selected contact or instruction will be deleted Rungs Click a rung header The whole rung will be selected Ej Wor Area Light detecti Timer wo 00 Work Area Timer Timer Timer number suJeJDoJg Buneay gt aS Set value D pl EREEREER I 0 04 6 Light detecti CNT Counter TOOO0 0000 Counter Counter number Timer coooo 3 Set value Counter P_First_Cycle First Cycle Flag 2 Press the Delete key The selected rung will be deleted llCreating Vertical Horizontal Lines Vertical and horizontal connection lines can be created Vertical lines are created as follows Position the cursor at the starting point of the vertical line N Hold down the Ctrl key and press the up down arrow key Horizontal lines can be created in the same manner 1 Starting point 2 Cursor Creating a line from right
75. am Properties dialog box Select Section1 under NewProgram2 Int 140 CP1E 4 Untitled CX Programmer NewPLC1 NewProgram2 Section1 Diagram BAR FA File Edit View Insert Program PLC Simulation Tools Window Help 8 x Dc E Uu 6a x58 G5 MSE A X 9 bs 93 aXQ Hiel MS te e GE lR it ew O QC E E EL Ix e g ma D R3 E E3c d ae E EH amp NewProject NewPLC1 CP1L Offline END 1 t 0 00 Fe NewProgram2 Int 140 4 3 Symbols 2 I 0 01 Q 100 04 Bit number Weeeeeeeeett ee teet poreeseeseeeee ee e e Project xj xj Name Address or Value Comment t Far Helm nrezc F1 NMewbPl C1 MeF N Made M Offline nina4 m nne Sat Input the ladder program for the interrupt To display the main ladder program double click Section1 under NewProgram 1 00 in the project tree SYSMAC CP1L CP1E Introduction Manual xipueddy 135 mM A 4 CP1L Programming Examples A 4 4 Using Calendar Timers MFunctions Used Clock CP1L and CP1E CPU units have a built in clock The clock cannot be used if a battery is not installed or the battery voltage is low Note CP1E ELILI S type CPU units have no clock function MOperation Overview In this example a fountain will be controlled The fountain is to be activated according to the following schedule e Mon thru Fri 17 30 to 20 30 e Sat Sun 10 00 to 21 15 PSP ap Gb de A CP1L CP1E xipueddy A I2
76. and Debugging Programs This 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 S eG ONG Millie eect trice uS e tcd D d Ern 86 S dc desettingtihescb9Tcoclockomo ec erdt een eee 87 5 1 2 Changing the Operating Mode 88 O21 eO dransfermng Programs oraa decreti 90 5 1 4 Executing Operations ee a aT ae 92 5 2 Adjusting Debugging Online a tc 93 5 254 AITO MLO MANN ean aE tix a E E a a Cou 93 5 2 2 Force Setting Force Resetting 96 5 2 3 Changing Timer Settings Only CP1L 97 9 2 de sadchlhg sts Mea oats oM ee MEC MES Metis 97 9 2 9E mitte ditin ite eco Dn creen cedet so 100 5 2 6 Confirming erem ee ME 101 suJeJ6o4d Buib6nqeq pue BuujejsueJ a Transferring and Debugging Programs 5 1 Going Online To configure CP1L settings transfer programs or execute programs the computer and CP1L must first be online 1 In CX Programmer open the program to be transferred 2 Select PLC Work Online from the main menu A dialog box will be displayed to confirm going online application 1 CX Programmer NewPLC1 NewP rogram Section Diagram F
77. are reserved by the CPU unit As expansion I O units and expansion units are connected to the CPU unit input and output areas are assigned 1 channel at a time in the order of connection e Number of Reserved Channels and Expansion I O Units CPU unit Number of Expansion osmiOuM 0cH ec PIE CPIED 20 point I O and 0 CH 90 CH 91 CH 100 CH 190 CH 3 built in analog unit 30 point I O unit 0 CH 1 CH 100 CH 101 CH 40 point I O unit 0 CH 1 CH 100 CH 101 CH 60 point I O unit 0 CH 1 CH 2 CH 100 CH 101 CH 102 CH For example when using a 40 point I O unit input areas OCH and 1CH and output areas 100CH and 101CH are assigned to the internal I O of the CPU unit If expansion I O units are connected to the CPU unit input areas 2CH and later and output areas 102CH and later will be assigned in order When the CPU unit is powered ON input and output channels are automatically allocated to the input and output areas of the expansion I O units after the connections are checked Changes to the connection order of the units will result in inconsistencies with the ladder program Be sure to review the ladder program when changing the unit connection order 108 SYSMAC CP1L CP1E Introduction Manual A 2 Instructions iB A 2 Instructions CP series has a rich instruction set There are approximately 500 types of instructions that can be used by CP1L and 200 types of instructions that can be use
78. at makes use of various I O signals origin proximity input signal origin input signal positioning completed signal error counter reset output etc can be executed with a single instruction Origin proximity input f Contact 0 02 E x Origin input Contact 0 06 Pulse frequency CCW Origin Search Method Search direction Detection method Search acceleration ratio 2000Hz Ams Search high speed l 10kHz A Search deceleration ratio 2000Hz 4ms Search proximity speed CW Setting Description Origin search is executed in the CW direction Methd 0 Reads the first origin input signal after an OFF ON OFF sequence of the origin proximity input signal Search operation Invers 1 Reverses direction on a limit input and continues the origin search Operating mode Mode 1 Executes an error counter reset output when the origin is detected Positioning completed input will not be used G Positioning Common settings for the positioning operations are as follows Target frequency 50kHz Acceleration deceleration ratio 2000Hz 4ms Initial frequency OHz Point B CW 100000 1 After completion of the origin search the equipment will be positioned to point A 1000 by absolute pulse specification absolute coordinate system 2 After positioning to point A the equipment will be positioned to point B 100000 by absolute pulse specification absolute coordinate system
79. ation 1 CX Programmer Stopped New LC1 NewProgram Section Diagram MY File Edit View Insert Program PLC Simulation Tools Window Help Dai gi S Bre FC ABW THK 4244 5 X SS S Bt mE 1k Ep Ww 9 uz D A eo DG BUS eevee 089 gl NewProgram 00 Stopped 2 Symbols E secten ENO TF Function Blocks BCP1L 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 e 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 e 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 suJeJboJg BuibBbngeq pue Buuuosjsuei a e 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 The following table lists the status and available operations for each mode Operating Mode PROGRAM MONITOR I O refreshing Execute Execute Execute External I O status MEM on on program program ommno O 9 9 WU eee meme
80. built in CP1E ELILIS NLILIS 1 type CPU units have no analog adjusters SYSMAC CP1L CP1E Introduction Manual 125 mM A 4 CP1L Programming Examples 0 00 T0010 100 00 Photoelectric Gate sensor 100 00 Gate P On xipueddy gt Photoelectric sensor Gate A To use the analog adjuster on CP1L or CP1E for setting the timer in the example application change auxiliary area A643 in the ladder program to A642 A 4 2 Capturing Short Signals MFunctions Used e Quick Response Input By setting the built in input to use quick response inputs inputs having a signal width as small as 30Us CP1E 50ys can be captured regardless of the cycle time CP1L 10 point I O units can use up to 2 quick response inputs 14 point I O units can use up to 4 20 30 40 60 point I O units can use up to 6 CP1E 10 point I O units can use up to 4 others can use up to 6 MOperation Overview Products moving at high speeds are detected by a sensor and counted Sensor E3X series used with Product E32 series fiber unit P d e 126 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM oignals that are shorter than the scan time must be read and counted When 100 signals have been counted a counting completed signal will be output 30us min CP1E 50ys min Sensor input C C Bi C Contact 0 04 BCD counter instruction C0000 Set Value 100 100 Present Value 99 98 Cou
81. cesses Program Execution Cycle Time Calculation I O Refresh Peripheral Services Overseeing Processes Details Processing Time and Variation Factors Checks I O buses 0 4ms Checking of user program memory battery error etc Program execution Details Processing Time and Variation Factors Processes program execution execution of instructions The Sum of instruction processing time is the sum of individual instruction execution times execution times For details refer to SECTION 4 Instruction Execution Times and Number of Steps of CP Series CP1H CP1L CPU Unit Programming Manual W451 or SECTION 3 Instruction Execution Times and Number of Steps of CP Series CP1E CPU Unit Instructions Reference Manual W483 Cycle Time Calculation Details Processing Time and Variation Factors Waits for the specified cycle time to When the cycle time has not been fixed the elapse when a minimum fixed cycle processing time is approximately O time is specified in PLC Settings Additional time for fixing the cycle time Calculates the cycle time Fixed cycle time Actual cycle time processing time for overseeing processes program execution I O refreshing peripheral services I O Refreshing Details Processing Time and Variation Factors CP1E CPU Units CP series Each unit is refreshed I O refresh time for Expansion I O Units and Outputs from the CPU unit to each unit is multiplied Expansion Units the expan
82. d by CP1E This section explains how to use the instructions and gives some basic instructions A 2 1 Using Instructions With previous PLCs from C series to micro PLCs instruction sets were designed with the primary focus on handing BCD data However as data size grow and exchange of data between computers becomes more commonplace however support for BIN data has become a necessity for control equipment as well In response to such needs and for greater convenience many of the instructions for handling BIN data have been added in the process of creating the CP series Note Foralist and explanation of the instructions refer to the CX Programmer Help For details on using the CX Programmer Help refer to 4 4 Using the Help llNotation for Instructions e instructions and Function Numbers In this section special instructions which have a function number assigned are displayed as a mnemonic followed by a 3 digit function number in parenthesis E g MOV 021 SYSMAC CP1L CP1E Introduction Manual gt xipueddy 109 mM A 2 Instructions A 2 2 Basic I O Processing Instructions Basic I O processing instructions are used for writing to contacts and coils EN Instruction Name Instruction Function Contact LOAD LD Used for contacts connected to the bus bar or to the beginning of a rung block LOAD NOT LD NOT Used for closed contacts connected to the bus bar or to the beginning of a rung block Used for contacts c
83. d 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 BERRORS 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 0 0 ees 10 2 General Precautions 2 0 0 0 ees 10 3 Safety Precautions nananana aa cee 10 4 Application Precautions llle 11 Intended Audience 1 Intended Audience This manual is intended for the following personnel who must also have knowledge of electrical systems an electrical engineer or the equivalent Personnel with little experience installing FA systems e 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 accord
84. da ta toe citun adc lc sam da deciteim ua eic nutus au M d uud 79 SECTION 5 Transferring and Debugging Programs 85 S NE Co OTI 86 5 2 Adjusting Debugglrig OnIlIPe ida ottenere Hp a etait en re eot URL Qe tle tura d UbEe 93 AP ENOK Ante tet eee einer DERE II E 103 AT Chahnel Belay NUMDeCrs qe lesus Cu Diolabaree Yers ced ee ea eda ee upon 104 A2 MASIUCU OMS odo siiera tui ipaa aco eon ord saad ob cine a den LO M rdU s LL DIC LU 109 Ped Inner workings or GP TENE TE quicssd tuin tte deste cael dta aeneus eva OM oae d tn ate eau 113 A CPIE Programming Examples dte ideo ee a bag ue Cube roba v rcd 123 A 5 Comparison between CP1L and CP1E sseeeessssssssseseeennnennnn nenne 174 A 6 Difference between CP1E E N NALILI type and E NLILIS 1 type 181 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
85. der programs refer to 4 2 2 Ladder Program llinputting Contacts Press either the L or C key LD 0 00 will be displayed 1 Press the Enter key Bit 1 1 will be displayed and 0 00 will be displayed in reverse video Lo ERR 0 00 Auxiliary Relay Area Input address 4 Press the Enter key 4 is entered The Comment dialog box will be displayed LD4 Comment 1 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 LD4 Commeni 1 1 Light detection sensor Next input an OR circuit SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs llinputting OR Circuits 1 Place the cursor on the program Press the Enter key A space for inserting an OR circuit will be created L 0 04 Pee errr reer eet cay O D NS ct 5 ie U O te S 3 o 2 Press the W key OR 0 05 will be displayed t 0 04 3 Press the Enter key Bit 1 1 will be displayed and 0 05 will be displayed in reverse video t 0 04 Lii detection Aree ada 1 OR TE 0 05 Auxiliary Relay Area Address Name Comment 004 Light detection sen 4 Input address W0 Press the Enter key WO is entered The Comment dialog box will be displayed E 0 04 SYSMAC CP1L CP1E Introduction
86. e PLC Settings dialog box po d onc um Use high speed counter 1 S t Circular Max Count Input Setting t Circular Max Count Input Setting IN3 Normal CP1L L Offline Check the Use high speed counter 0 checkbox for High Speed Counter Select Linear mode for Counting mode Select Software reset comparing from the Reset drop down list Select Differential phase input from the Input Setting drop down list To apply changes made to the PLC settings turn the PLC power ON SYSMAC CP1L CP1E Introduction Manual xipueddy gt 143 xipueddy mM A 4 CP1L Programming Examples llProgramming Example 1 Use comparison instructions to compare counter values The program can be created easily by using comparison instructions to compare counter values e adder Program Counter values are used to start slow stop the motor 0 02 W0 00 4 DIFU Start motor Stop motor A531 00 100 00 100 00 Motor run Motor run 100 01 gt 325 eS A270 Motor slow 0BB8 W0 00 2 325 A270 Stop motor 0DAC After motor stops check the stop position Wo0 00 0 02 Wo 01 Stop motor Start motor Motor stopped Wo 01 100 02 A270 A270 Normal stop 0DAC 0DDE positon 100 03 gt 325 A270 Error stop 0DDE position Motor stopped 144 SYSMAC CP1L CP1E Introduction Manual Software reset for high speed counter O When high speed counter A270 reaches 3000 OBB8 Hex
87. eaesveedvr mee meii vorum bern 104 CIOCK p 87 clock pulse 107 COSCO CONIAC eo rentuteiacenue enia Ex id 60 voi q 76 COBOIUOB TAG usoneaiauumi mde ee 106 connecting CX Programmer and CP1L 43 connecting to a computer 44 connection line EN RT 82 610 0 een ee eee eee eR seer eee 58 counter instruction eos dT VENDER RU 67 CPU HUI scentesienineiecameasmetns 15 16 17 113 CX PrograMMEr sus ccu seco xai t erae tiene tasee 42 cycle time aespsestocbqisensesieitonid 100 101 120 cyclic refreshing 117 D data memory DM 18 ole M 93 deleting contacts and coils 02 GS VIC SY Oe eR 99 diagram workspace 51 52 differentiated up contact 13 DIN TACK serisine ranira E E E 34 BEIM RET 19 E editing rung Me TEE 82 END instruction saccxsnrudmbunceriturim suspe 9 BITOI eee ee ee ee ee eee ee en 21 expansion Unit sinuceyentacesreakaeraentetenanaas 19 external analog settings input 19 123 external dimension 34 F first task startup flag 72 force set force reset 96 function block oussstestaesiued pne ta etui REUNIR 161 G ere Info ONINO asec RE E i 86 H glo o3 high speed cou
88. ection 2 Light detection 2 Z Z T2722 2222222 i000 CEERI terrm Work Area Work Area 0 00 0 00 ss Work Area llMonitoring Specific Addresses I O values can be monitored by specifying their address Select PLC Monitor Monitoring from the main menu N Select View Windows Watch from the main menu suJeJ6o0Jgd GuibOnqeq pue BuuJeJsuelJ a 3 Input an address The I O value will be displayed For Boolean values 0 indicates OFF E PLC Name Name Address Data T FBUsageg Value Comment 0 04 BOOL mo Light d 0 05 BOOL l a Upper LS tunnun x 94 SYSMAC CP1L CP1E Introduction Manual 5 2 Adjusting Debugging Online 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 amp dropping items from the diagram workspace to the watch window Select the rung header to input all addresses included in the rung I 0 04 TOO00 Work Area Light detectio Timer wo 00 Work Area Timer Timer Timer number Set value 3 Counter p x eeeell227 P I 5 ee Light detectio CNT n TANAN nnnn Coaunter gt xs Name Address Wr value Comment EE F PLC Name Name A DataT FBUsage Value Value B Comment E ll 4 o g a N sheer she
89. ejsueJ a Exit PLC Clock Program 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 7 application 1 CX Programmer Stopped NewPLC1 MewProgram1 Section1 Diagram E File Edit View Insert Program ffei Simulation Tools Window Help 3 on Li efi amp x B Change Communication Settings 5 k IDEL 1 ESTE amp work Online Ctrl i a KAA BERL Auto Online Poe cath RAB AO Ss ss gt NY D c6 Chrl zZ Transfer NewProject Ctrl4 3 B E NewPLC1 CP1L Stop Prograr Partial Transfer iik Symbols Online Edit b F Settings Protection 1 Error log Cl All el A E PLC Clock saa n eas Timer p ee Memory PLC Configuration y H 1 Programs E E MewPragram1 00 St a Differential Monitor EE Symbols Trace b y Section 1 B END Force b JPF Function Blocks Set Reset 88 SYSMAC CP1L CP1E Introduction Manual 5 1 Going Online 2 Click Yes The operating mode will be changed CX Programmer v8 2 Make sure that there aren t any problems if the PLC is stopped Do you wish to switch the PLC into program mode The operating mode will be displayed on the title bar and on the project tree applic
90. ens described in this section will be displayed on the menu items in the Smart Style Mode CX Programmer version 9 0 or higher The menu items are different in the Classic Style Mode or when using CX Programmer version 7 or version 8 For details on Smart Style refer to the CX Programmer Operation Manual Cat No W446 Compatible CX Programmer Version of CP1L CP1E CX Programmer Version CP1L CPU Unit CP1E CPU Unit Version 7 1 or higher All CP1L CPU Unit Not supported Version 8 2 or higher are supported CP1E LI20LIDLI E CP1E LI3OLIDLI E CP1E LIAO0LIDLI E Version 9 03 or higher CP1E E10DLI L CP1E LI20LIDET E CP1E LI30LIDLET E CP1E LIAO0LIDLEIT E CP1E N60LIDLI E CP1E NA20LIDLEI LI Version 9 42 or higher All CP1E CPU Unit are supported SYSMAC CP1L CP1E Introduction Manual 4 1 Preparing for Programming 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 ltems Required for Connection Operating system Windows 2000 XP or Vista only CP1E CX One i e CX Programmer USB driver Included with software USB cable USB
91. erial Port 1 Peripheral Service Built in Input Pulse Output 0 Pulse 04 gt Communications Settings Link Words C Standard 9600 1 7 2 E Custom Baud Format Mode 9600 amp 1E Serial Gateway Start Code End Code c c JE c css poa e m r is NTPC Link Max PC Link Unit No Response Timeout Unit Number Delay default 5000ms I O Oo D 2 Q x CP1L L Offline Mee Mode Serial Gateway Mode CP1E Modbus Easy Master Response Timeout 0 Default 4 Close the PLC Settings dialog box 156 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM mProgramming Example Ladder Program P_First_Cycle 0000 D32306 CP1E D1206 MOV 021 Stop operation when communication starts Operation command 0 Stop Frequency command 00 00Hz 0000 D32307 CP1E D1207 0117 D32306 CP1E D1206 MOV 021 W0 00 Contact A gt Operation command 1 Start Frequency command 60 00Hz 1770 Hex 7000 D32307 CP1E D1207 0115 D32306 CP1E D1206 MOV 021 WO0 01 Contact B Operation command 1 Start Frequency command 55 00Hz 157C Hex 7C00 D32307 CP1E D1207 0113 D32306 CP1E D1206 MOV 021 W0 02 Contact C Operation command 1 Start Frequency command 50 00Hz 1388 Hex 8800 D32307 CP1E D1207 0000 D32306 CP1E
92. erty damage Z Caution Indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury or property damage OMRON Product References All OMRON products are capitalized in this manual The word Unit is also capitalized when it refers to an OMRON product regardless of whether or not it appears in the proper name of the product The abbreviation Ch which appears in some displays and on some OMRON products often means word and is abbreviated Wad in documentation in this sense The abbreviation PLC means Programmable Controller PC is used however in some CX Programmer displays to mean Programmable Controller Visual Aids The following headings appear in the left column of the manual to help you locate different types of information Note Indicates information of particular interest for efficient and convenient opera tion of the product 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc Trademarks Windows is a registered trademark of Microsoft Corporation in the United States and other countries SYSMAC is a registered trademark of OMRON s Programmable Controllers Other brand and product names are trademarks or registered trademarks of their respective owners OMRON 2009 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any
93. et2 sheet3 4 NewPLC1 Net 0 Node 0 Run Mode O 6ms SYNC rung 1 0 0 94 Muz suJeJboJg BuibBbngeq pue Buuuosjsuei 1 0 04 Work Area Light detecti wo0 00 Work Area 4 F wm mte mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmEmmmmm e 4 B Timer L E E Timer L d Timer number a E B E rj LI Set value u L J e 2 P SOT SSS ee TE 6 CNT Counter PR Iw bee ninkar of aig Name Address or Value Comment sate lt a Seal lala eB lt ald PLC Name Name Address Data T FBUsage Value Yalue B Comment W NewPLC1 TO CHANN 0 Bcd 0000 0 Timer NewPLC1 TOO00 BOOL 0 Timer g NewPLCI w0 00 BOOL 0 Interna m es ae Kueutenug Bee BRB BBB RBBB RPP PBR PRR PRP ee ee eee eee eee lei dor ESTS TRIP sheett A sheet2 sheet rung 3 1 2 96 NUM SYSMAC CP1L CP1E Introduction Manual 95 gt 5 2 Adjusting Debugging Online 5 2 2 Force Setting Force Resetting Note Q o D Q 2 9 o D Oo Cc a y O e Q 3 o Note CX Programmer can control inputs independent of inputs from I O devices Use this function to force input conditions and output conditions during test runs Before force setting force resetting releasing or setting resetting confirm that the facility will not be affected The force setting procedure is as follows Change CP1L to the MONIT
94. ex Rotation direction Normal 0 P On 0o W0 00 W1 00 WO 01 Contact B W0 02 Contact C W1 01 Contact Z Stopped P_First_Cycle BSET 071 First cycle flag Note A 4 CP1L Programming Examples mM Convert frequency command D100 from BIN to floating point Convert constant 100 64 Hex to floating point Convert BIN value in D100 to floating point REAL in 0 01 increments Divide frequency by 100 to achieve 0 01Hz increments Store value in FB MOV V DO E g 6000 100260 00Hz Reset data interface work area between FBs when operation is started Block settings Data to transfer convert Lower CH No Upper CH No For floating point data secure regions for 2CH SYSMAC CP1L CP1E Introduction Manual gt 165 xipueddy xipueddy mM A 4 CP1L Programming Examples P On Always ON flag amp 1 Inverter slave unit 1 W1 00 Start DO Frequency D2 Direction amp 9000 I P On Always ON flag amp 1 Inverter slave unit 1 W1 01Stop DM area I i specification L amp 9000 P First Cycle First cycle flag CCCC PLC used select CP1L amp 1 Select serial port 00000002 Inverter slave unit used 00000000 Inverter 3G3MV amp 10 Interval counter amp 9000 specification amp 9100 MoveV _INV032_MoveVelocityHz BOOL EN BOOL ENO BOOL NodeNo Velocity BOOL BOOL Execute Command Abo
95. f CP1E the settings are included in the parentheses For details on wiring and settings refer to CP Series CP1L CPU Unit User s Manual W462 or CP Series CP1E CPU Unit Hardware User s Manual W479 For details on instructions refer to CP Series CP1H CP1L CPU Unit Programming Manual W451 or CP Series CP1E CPU Unit Instructions Reference Manual W483 For details on using CX Programmer refer to CX Programmer Operation Manual W446 A 4 1 Using Adjusters to Set Timers MFunctions Used OG External Analog Settings Input Only CP1L Analog values can be digitized according to the external analog settings input 0 to 10V resolution 256 Converted values are sent to the auxiliary area A643CH This function is useful for changing settings based on inputs such as change in outside temperature or feedback from a variable resistor An example using input from a variable resistor is shown below MOperation Overview A photoelectric sensor is placed in front of a gate When the sensor detects a car the gate is opened When the car passes the gate the sensor is turned OFF Photoelectric sensor E3G series etc When a set amount of time passes after the sensor is turned OFF the gate is closed Sensor input Contact 0 00 Contact 100 00 i z Time to OFF Min 2 0s to Max 27s The time until the gate closure will be adjusted with by a variable resistor connected to CP1L Adjustment range Min 2 0s to Max 27s Variable
96. ferred D00020 ito DM D00020 r Some instructions cannot be specified as a differentiated instruction with the prefix If such is the case use the UP 521 DOWN 522 or DIFU 013 differentiated UP DIFD 014 differentiated DOWN instructions SYSMAC CP1L CP1E Introduction Manual 105 xipueddy A 1 Channel Relay Numbers Ge Condition Flags Condition flags are used to reflect the processing results during or after the execution of instructions Whether a flag is used or not will depend on the instruction These flags are used in ladder programs as contacts B Access error flag P AER i n aie e Turns ON when an instruction handling BCD data attempts to execute using non BCD data e Turns ON when an operand value specified by the instruction is invalid e g a value outside the work area Turns ON when unauthorized access is attempted on an area that is not meant to be accessed e Turns ON when the number of digits is increased or decreased as a result of executing an arithmetical instruction Data shift instructions and some arithmetical instructions may handle the carry as part of their processing e Turns ON when data comparison returns an equal e Turns ON when data becomes 0 as a result of calculations or transfers Turns ON when data comparison returns an unequal Greater than flag gt P GT Turns ON when data comparison returns data1 gt data2 Greater than or gt P GE Turns ON
97. fore touching it e improving Noise Resistance Avoid installing into a cabinet which also has high voltage equipment installed e Secure at a distance of 200mm or more from power lines Power Line 200mm min 200mm min Properly ground the mounting plate between the unit and the mounting surface SYSMAC CP1L CP1E Introduction Manual 33 3 1 Installation Notes e Mounting For heat dissipation mount CP1L CP1E in the orientation shown below E ETATS f i am amor oed ae WExternal Dimensions CP LL CPL CP1L CP1E common CP1E E N NAOU CP IE ELILIS NLIEISE BuuiM pue GununoJ v w WEDIN Track Secure the DIN track onto the control panel using at least 3 screws e 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 34 SYSMAC CP1L CP1E Introduction Manual 3 2 Mounting onto DIN Tracks 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 BuuiM pue BununoJv m C2 SYSMAC CP1L CP1E Introduction Manual 35 BuuiM pue Bununoy 3 3 Wiring Devices 3 3 Wiring Devices This section explains how t
98. 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 SECTION 4 Creating Programs In this section the steps for creating ladder programs essential to CP1L 14 point I O unit with AC power supply operation will be shown as an example using CX Programmer In creating the ladder program for the shutter control system the basic functions of CX Programmer will be explained Z dr rempanmoeronb noedratmiboce tete s uc 42 4 1 1 What is c X Programimer qe seco ti CI cedem 42 4 1 2 Connecting to a Computer and Installing the USB Driver 43 Z 2 Creatimgaddenirograiris es es eee eade Eu d m 47 d 2 4 3X9Deralonss hoses teur co fm T tes 4T 252 2 Ladder odds diee dcc A f Ducem ee 49 4 3 Using X Irodramibnet 92 96 69 0v ea cte nasci coder infos ei coe 50 72 35 16 Starting eX Programmers ecc ee ce eee toate 50 A 3 2 Operation Screens orainen aa tonat or Mud bise UM sud 51 CAN MUESS IG he Hepa E con Ne nee c Eo a T de o3 2 5 apttd FOC FANS seagate Meta d t mS c 55 4 5 1 Creating New Projects 2m eL Eie 55 4 5 2 AMUN C OM GES Aa ae ok a See ier ae caro 58 4 5 3 p putt CUPU eol cc c M CE 62 2 57 NAPUNI STS a ciarum Dur etc einn 64 4 5 5 inputting Counters caia cete Mex cct 67 4 5 6 Inputting Auxiliary Areas sess 72 4 5 7 Inputting Differentiated Up Contacts
99. ian motor Close button Escalation m Q 100 01 De escalatia I 0 03 AELCLL LCL LLL LEC L LLL A Car detection 4 7 6 Double click contact 003 The Edit Contact dialog box will be displayed Edit Contact v Detail gt gt f Click Detail Edit Contact 0 03 Detail k Cancel 8 Select Up for Differentiation Click OK Edit Contact 003 tdi j ok t neil Symbol Information M ame Global Address or al BOOL value Comment Car detection sensor IY Global F Link to the Dien C None Up C Down Immediate refresh SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs An upward arrow representing a differentiated up condition will be displayed on the contact 3 coooo Q 100 04 Q 100 00 Escalation motor Counter De ezcalatio Stop button Upper LS I 0 00 Open button Q 100 00 Escalation m I 0 02 Q 100 00 Q 100 01 Close button Stop button Escalation m Q 100 01 De escalation motor D a escalatiao I 0 03 Car detection 22222222422422424222242 54 Note The following instruction variations can be input Upward differentiation e Downward differentiation 96 e Immediate refreshing END Instruction suJeJ604d DuneoJ25 ES Example Immediate refreshing specified h PII ILD ILDNOT The symbols indica
100. ile Edt View Insert Program KAU Simulation Tools Window Help Dai xt MAS 4 OoO 0tH8 235 tL t5 a Qa isi RS BARRO aR NowProject Transfer d f NewPLC1 CP1L Offline Partial Transfer gt 22 Symbols Online Edit 8 Settings Protecbon gt A Programs 9 rea 00 PLC Configuration O Section 3 Click Yes The dialog box will be closed CX Programmer v8 2 About to connect to the PLC Do you wish to continue Online status is one in which the computer and CP1L are connected To execute a program created with CX Programmer on CP1L the program will need to be transferred For details on transferring programs refer to 5 1 3 Transferring Programs The CX Programmer screens described in this section will be displayed on the menu items in the Smart Style Mode CX Programmer version 9 0 or higher The menu items are different in the Classic Style Mode or when using CX Programmer version 7 or version 8 For details on Smart Style refer to the CX Programmer Operation Manual Cat No W446 86 SYSMAC CP1L CP1E Introduction Manual 5 1 Going Online Note If the system fails to go online check the PLC type setting and communication settings To check the settings double click NewPLC1 CP1L Offline in the project tree For details on the settings refer to 4 5 1 Creating New Projects 5 1 1 Setting the CP1L Clock Note 3 The CP1L clock should be set to match your time zone Use CX Progra
101. iles Supported Changing the PV refreshing Need to set format BCD or binary for timers counters Changing timer PVs Possible Others Protection can be set by CP1E ELILI S type CPU CP1E N NALILI SE1 type Units CPU Units Supported It is the protection for the whole program Read protection cannot be set by task Not supported Not supported Not supported Not supported Not supported Not need to set Impossible Changing during online editing LEE a Supported Not supported Supported Not supported PT programming Supported Not supported console Trouble shoot Supported Not supported Daikansan Supported Not supported FINS Supported Compatible CX Programmer Version of CP1E Supported A part of FINS are not supported Refer to CP1E CPU Unit Software User s Manual CX Programmer Version Applicable CPU Unit CP1E LI20LIDLI E CP1E LISOLIDLEI E CP1E LIAOLIDLI LI CP1E E10DLI L1 Version 8 2 or higher Version 9 03 or higher CP1E LI20LIDLI E1 CP1E LISOLIDLEI EI CP1E LIAOLIDLI EI CP1E N60LIDLI EI CP1E NA20LIDLI LI Version 9 42 or higher All CP1E CPU Unit are supported 17 8 SYSMAC CP1L CP1E Introduction Manual A 5 Comparison between CP1L and CP1E IN BP C Setup oo mmo CP1L CPU Units l an CP1E ELILI S type CPU CP1E N NALILI SE1 type Units CPU Units Functions not provided in the PLC Setup Comms Instructions Settings in FB None Inverter posit
102. ime is separately allocated for the peripheral USB port serial port and communication port services By default 496 of the preceding cycle time will be allocated If services take several cycles for execution and are delayed allocate a fixed amount of time as opposed to percentage to each service To do this use Set time to all events under PLC Settings CP1E has no setting and cycle time is fixed to 896 SYSMAC CP1L CP1E Introduction Manual gt 121 xipueddy xipueddy 122 BB 4 3 Inner Workings of CP1L CP1E e Example Calculation of Cycle Time An example for 4 2 2 Ladder Programs is shown Process Name Formula Processing Time Program execution Sequential input instructions LD 0 55ys x 6 instructions OR 0 68us x 6 instructions AND NOT 0 65us x 7 instructions Sequential input instructions differentiated 5 5us x 1 instruction Sequential output instructions 1 1uUs x 3 instructions Timer instructions 6 4us x 1 instruction Counter instructions 6 7us x 1 instruction END instruction 6 2us x 1 instruction The following conditions apply e CP1L 14 point I O unit is used No expansion units are used e No connections are made i e with CX Programmer SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM A 4 CP1L Programming Examples This section provides examples for wiring DIP switch settings and programming of CP1L 14 point I O unit with AC power supply In case o
103. in Search Use define origin operation Use Search Direction Detection Method Methd 0 Search Operation Invers 1 Operating Mode Mode 1 Origin Input Signal NO Proximity Input Signal NO Search High Speed 10000pps Search Proximity Speed 1000pps Search Compensation Value Search Acceleration Ratio 2000 Search Deceleration Ratio 2000 Positioning Monitor Time Oms SYSMAC CP1L CP1E Introduction Manual 149 xipueddy mM A 4 CP1L Programming Examples mProgramming Example e adder Program Allocate limit sensors to limit inputs 0 01 A540 08 CW limit sensor CW limit input 0 00 A540 09 CCW limit sensor CCW limit input Execute origin search and positioning 0 03 ORG 889 Origin search ORG instruction Start origin search Pulse output O Origin search function CW CCW pulse output method 0 04 PLS2 887 Positioning PLS2 instruction Positioning to point A Pulse output 0 Absolute pulse specification CP1E 101 Position data setup table Initial frequency setting PLS2 887 Positioning PLS2 instruction Positioning to point B Pulse output 0 0 Absolute pulse specification CP1E 101 Position data setup table D Initial frequency setting 0 05 Output flags for origin search and positioning completion 0 03 0 04 0 05 WO0 00 Positioning Positioning to point A to point B Start origin search W0 00 A280 06 100 05 Origin search complete Origin stop
104. ing Auxiliary Areas Auxiliary area is a relay with a specific purpose The first cycle flag will be ON for only 1 cycle after the PLC has been powered ON Here it will be used to reset the counter when CP1L is powered ON 1 Press the W key Input an OR circuit contact C0000 A space for inserting an OR circuit will be created For details on inputting a contact refer to 4 5 2 Inputting Contacts suJeJ6oJd BuneoJ25 gt I 0 04 TOOO00 Wo oo C Mio rk Area Light detecti Timer Ww0 00 Wok Area 1 Wwo oo 4 Work Area TIM Timer 0000 Timer Timer number 50 Set value i I 0 04 B Light detecti CNT Counter TOOO0 0000 Counter Counter number ALLELE LLL EEE EEE EEE EL coooa z 3 Set value 2 Press the left arrow key 3 Press the W key The Operand input box will be displayed 4 Input address A20011 Press the Enter key 0 0 Vork Area Ligt detection Tener wo 00 Vork Area 1 wooo 4 Work Area 100ms Timer Timer BCO Type Tener Tener Set value 2 t 0 04 6 Light detection Counter T0000 Courter Counter number Timer C0000 ourter Set value eter Precerecosceveveseerey 3 OR A20011 12 SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs A first cycle flag will be displayed on the ladder program I 0 04 T0000 wo 00 Mam Area Light detecti Timer Wwo0 00 Wok Area 1 Wwo0 00 4 Work Area Tih Timer 0000 Timer Timer number 50 Set value Zz I
105. ing Manual SYSMAC CP Series CP1E CPU Unit Hardware User s Manual W480 SYSMAC CP Series CP1E CPU Unit Software User s Manual SYSMAC CP Series CP1E CPU Unit Instructions Refer ence Manual W483 W446 SYSMAC CX Programmer Operation 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 Provides the following information on the CP Series Programming instructions Programming methods e Tasks File memory Functions Use this manual together with the CP1H Program mable Controllers Operation Manual W450 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 nstructions Reference Manual W483 Describes the following information for CP1E PLCs CPU Unit operation e Internal memory Programming e Settings CPU Unit built in functions nterrupts 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 Describes each programming instruction in detail When
106. ing resistance present resistance for PLCs at the ends e awie seston ON ON ON ewieype s meses on ON f ON awewe EE RS control for RD Disabled C KOC OV OV Ehe Note CP1E N30 40 6081 CPU units can only support RS 485 with 2 wire connections oet the terminating resistance switch only e PLC Setup Configure serial port 1 Open the PLC Settings dialog box Click the Serial Port 1 tab CP1E Built in RS232C Port tab 3 Setthe following settings NO 73 PLC Settings NewPLC1 File Options Help Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 0 Pulse 0 f gt Communications Settings Link Words C Standard 9600 1 7 2 E Custom Baud Format Mode 115200 72E PC Link Master 10 default Start Code End Code PC Link Mode C fs C Master Response Timeout Unit Number Delay NT PC Link Max PC Link Unit No default 5000ms CP1L L Offline SYSMAC CP1L CP1E Introduction Manual 171 gt xipueddy mM A 4 CP1L Programming Examples Boiler A Master Boiler B Slave No 0 Boiler C Slave No 1 Format 7 2 E Default PLC Link Master PLC Link Slave Link Words Teran a EMEN PLC Link Mode Complete Link Method NT PLC Link Maxs ooo ooo oto PLOUnkUntNo Pt 4 Close the PLC Settings dialog box EProgramming Example Serial PLC links are used for program free linking of data in the seri
107. ing 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 N 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 ZN 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
108. ioning None e Set time to all events Deleted e Startup Hold Deleted Force Status Hold IOM Hold Scheduled Interrupt Interval Deleted Only 0 1ms Changing functions in the PLC Setup from CP1L Detect Low Battery Default Do not detect CP1L Detect e Watch Cycle Time Maximum 1000ms CP1L 32000ms Constant Cycle Time Maximum 1000ms CP1L 4000ms SYSMAC CP1L CP1E Introduction Manual gt xipueddy 179 A xipueddy IE A 5 Comparison between CP1L and CP1E A 5 2 CP1L Instructions not Supported by the CP1E Sequence Input and LD TST Double precision Display Instructions Output Instructions e LD TSTN Floating point e D AND TST Instructions e D AND TSTN gt D Clock Instructions e SEC OR TST B iris HMS e DEGD OR TSTN SIND Debugging Instructions TRSM OUTB e COSD Failure Diagnosis e FPD Sequence Control e TAND Instructions Instructi MEURS ASIND Other Instructions e ACOSD Timer and Counter MTIM MTIMX ATAND Instructions e SQRTD e EXPD e MCMP LOGD Block Programming BPRG Instructions BCMP2 i i BEND PWRD Instructions BPPS Data Movement LD AND OR BPRS EXIT EXIT NOT Table Data Processing IF Data Shift Instructions Instructions IF NOT ELSE IEND WAIT WAIT NOT TIMW TIMWX CNTW CNTWX TMHW TMHWX Symbol Math LOOP Instructions LEND LEND NOT Instructions D lt gt D lt D lt D gt D or gt D Text String Processing Data Control Instr
109. ions OR OR NOT Instructions Use for contacts connected in parallel 000000 Bus bar 000004 000001 000005 xcix ra ECC Note There is no limit on the number of contacts that can be connected by OR OR NOT instructions lIWriting Relay Coils e OUT OUT NOT Instructions OUT instructions turn a relay coil ON when the execution condition is ON OUT NOT instructions turn a relay coil OFF when the execution condition is ON 000100 Execution condition 000101 Execution condition Note Do not use coils with the same relay number for OUT and OUT NOT simultaneously Doing so will result in a duplicated coil program error SYSMAC CP1L CP1E Introduction Manual gt xipueddy 111 xipueddy gt 112 A 2 Instructions SET RSET RESET Instructions SET instructions turn and keep a relay coil ON once the input condition is ON RSET instructions turn and keep a relay coil OFF 000000 SET 000102 RSET 000102 000001 000000 l 000001 000102 In the above example relay coil 000102 is turned ON by the SET condition and OFF by the RSET condition Note Holding areas and auxiliary areas turned ON by SET instructions will retain the ON status even when power is interrupted or when operation is stopped GKEEP 011 KEEP RELAY Instructions KEEP instructions make relay coils function as keep relays This allows for easy constructi
110. irection 148 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM PLC Setup specify the settings for pulse output O 1 Open the PLC Settings dialog box 2 Click the Pulse Output 0 tab 3 Set the following settings 73 PLC Settings NewPLC1 File Options Help Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 0 Pulse Q gt Base Settings Undefined Origin Y Limit Input Signal Operation Always NO x Speed Curve Limit Input Signal Define Origin Operation Settings V Use define origin operation Search Direction Cw ad Search High Speed 10000 z pps Detection Method Methd 0 hd Search Proximity Speed 1000 pps nvers 1 Y Search Compensation Value 0 Mode 1 Search Acceleration Ratio 2000 Origin Input Signal NO v Search Deceleration Ratio 2000 Proximity Input Signal NO Positioning Monitor Time 0 Search Operation Operation Mode Base Settings Undefined Origin Limit Input Signal Operation Setting Hold Always Limit Input Signal NO Opps Trapezoidal Search Return Initial Soeed Speed Curve p Close the PLC Settings dialog box Search Return Initial Speed fo E pps Trapezium m 5 To apply changes made to the PLC settings turn the PLC power ON Origin Retum Speed gt pps Y Acceleration Ratio AE Deceleration Ratio gt O O D o x CP1L L Offline Orig
111. le The rotation speed of the bobbin winder must be made variable as the thread is wound so that the speed at which the thread is pulled stays constant m ee eT Speed Constant thread speed d Fast rotation Slow rotation 60 00Hz 55 00Hz 50 00Hz Stooped Contact A Contact B Contact G Contact Z ON ON ON ON WO0 00 WO 01 WO 02 WO0 15 The target speed is achieved based on input from multiple contacts Acceleration and deceleration is modified by the acceleration and deceleration of an inverter llSystem Configuration CP1L and 3G3MV an OMRON inverter are connected by RS485 for frequency and start stop control e Wiring Example CP1W CIF11 12 CP1W CIF11 12 50m or less RS422 485 option board 154 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples CP1W CIF11 12 Setup Set the DIP switches as follows Rear panel CPU unit connector Operation setup DIP switches 1 ON Presence of terminating resistance Terminating resistance present p 0 vay OFF s socom ON Hw Note CP1E N30 40 60S1 CPU units can only support RS 485 with 2 wire connections oet the terminating resistance switch only gt xipueddy 3G3MV Setup oet the DIP switches as follows e SW2 1 ON terminating resistance present Terminating resistance for RS422 485 communication
112. lect Insert Program Ladder from the pop up menu NewProgram2 Unassigned will be added to the bottom of the project tree 7 Untitled CX Programmer NewPLC1 NewProgram2 Section1 Diagram File Edit View Insert Program PLC Simulation Tools Window Help D ur Ed p Gla t Be gA Oh eS VN as a KA HSE m m E GE R ik wu O H a A R3 E EE li a E ERES xix NewProject fa NewPLC1 CP1L Offline ma Symbols 4e Memory qd Programs 2 2 3 NewProgram1 00 pececer eter eset eetere Z I Symbols uvummm mmummuEMEMEMENMINEN x dE 7n NewProgram2 Unassigned 3 Symbols fJ Section1 Wr i Function Blocks onunu anne 2 Right click NewProgram2 Unassigned Select Properties from the pop up menu The Program Properties dialog box will be displayed Program Properties General Protection Comments Name NewFrogram T ask type Unassigned Operation start SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM 3 bm 6 Click the General tab Select Interrupt Task 140 CP1E 4 from the Task type drop down list Program Properties General Protection Comments Name NewProgram T ask type Unassigned E Interrupt Task 1 35 Interupt Task 135 Interrupt Task 137 Interrupt Task 1 38 Interupt Task 139 Interrupt Task 140 Interrupt Task 141 Interrupt Task 142 Interrupt Task 143 Interrupt Task 144 Close the Progr
113. lowing components are to be used PLC Equipment and Software for Programming lnputs eG Outputs e CP1L 14 point I O unit with AC power supply CX Programmer Computer USB cable A B sulejsKg BuiuBiseq N Shutter OPEN button PB1 A16 series etc Shutter STOP button PB2 A16 series etc Shutter CLOSE button PB3 A16 series etc Car detection sensor SEN1 E3G series etc Headlight detection sensor SEN2 Limit switch turned ON when shutter is fully open LS1 WL series etc Limit switch turned ON when shutter is fully closed LS2 WL series etc Contact for activating the shutter escalation motor MO1 Contact for activating the shutter de escalation motor MO2 SYSMAC CP1L CP1E Introduction Manual 27 2 3 I O Allocation for the Shutter Control System 2 3 O Allocation for the Shutter Control System I O relays on CP1L are allocated to contacts as defined by following lnputs OPen owton Ps fowo Car detection SEN1 0 03 sensor Light detection SEN2 0 04 sensor sulejs S DuiuDiseq N Outputs Escalation motor 100 00 De escalation motor 100 01 SLA E a SEN2 0 04 MO 2 100 01 LS a SEN1 0 03 PB1 0 00 PB2 0 01 PB3 0 02 28 SYSMAC CP1L CP1E Introduction Manual 2 3 I O Allocation for the Shutter Control System 1 O Allocation on CP1L with 14 point I O 8 inputs Input Area 0 CH 0 00 0 07 Allocate Output Area 100 CH 100 00 100 05 6 outpu
114. lt in EEPROM when changes are made for example from the CX Programmer When the unit is powered ON data is transferred from the built in flash memory CP1E Built in EEPROM to RAM 2 Transfer of DM defaults data e When initiated from CX Programmer DM defaults are transferred from RAM to the built in flash memory CP1E Built in EEPROM According to PLC setup DM defaults are transferred from the built in flash memory CP1E Built in EEPROM to RAM when the unit is powered ON 3 Transfer of data between flash memory and memory cassette Only CP1L When initiated from CX Programmer data is transferred from RAM or the built in flash memory to the memory cassette SYSMAC CP1L CP1E Introduction Manual 113 xipueddy gt BB 4 3 Inner Workings of CP1L CP1E When the unit is powered ON data is transferred from the memory cassette to the built in flash memory User program The ladder program is stored in this memory RAM area The ladder program can be saved edited or opened from CX Programmer I O memory This is the memory RAM area the user program writes to and reads from Some parts of the I O memory are cleared when the power is interrupted Other parts are maintained There are also parts which are used for data exchange with PLC units and other parts which are only used internally There are 2 ways to exchange data with other units once each execution cycles or only when instructed Parameter areas In addition to I
115. means mechanical electronic photocopying recording or otherwise without the prior written permission of OMRON No patent liability is assumed with respect to the use of the information contained herein Moreover because OMRON is constantly striving to improve its high quality products the information contained in this manual is subject to change without notice Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the information contained in this publication TABLE OF CONTENTS PREGOAUTIOINS eucvtsstutesdeteretatun s tuse etu pba e ME EIN UIS 9 1 Intended AUCICNCE ccccccsseecceceeeeeeecaeuseeecaauececseeeeeeeseeeeeesseaseeeeseauseesssgeeeeseeeeeeseas 10 2 General Precautions visos oscec iu bes deu be indui a etl Lupe tin UE eS Cus 10 3 SaiebV Precautlolls cect teehee Sete thon et ceed unuutu aks ok Lies eels eater et cena 10 4 Application Precautions cccccseccccseseceeeeseeeseeeeseeeeseeeeeeseeeeeseueeeeeeeeeseeeesseeensnaeees 11 SECTION 1 CP1L CP1E Overview eene 13 Tet GOPTERGPTE MOGSGIS eri ida epe b E Det e de Mw deas ta t Evae uote DEM e cato cebat te eee suse ous 14 12 Pat Names and FUnGClOFHS ssussscecesnmaga sexui x vs tein ove Rv at ek t arx vuv xU ua pora rud rx PEERS dex oR 18 SECTION 2 DESIGNING 9VstelfiSssneu step ds ceu eraa 23
116. mmer to set the time If the time on CP1L is not set properly the error log will not be displayed correctly CP1E ELILI S type CPU units have no clock function In CX Programmer open an existing project For details on opening a project refer to 4 6 3 Loading Programs Double click PLC Clock The PLC Clock dialog box will be displayed application 1 CX Programmer Running HewPLCT MewProgram1 Sectiont Diagram F fie Edt view Insert Program PLC Simulation Tools Window Help D c B Ei p miclwuyzE CES ILE Sy itg me pe amp o ikaw 1 o o amp amp scct a Programs Gal NewProgram 00 Running 2 Symbols Sections amp END 1 F Function Blocks Select Options Set PLC Clock from the menu The Set PLC Clock dialog box will be displayed re PLC Clock NewPLC1 Pile Options E Always on bop ES T S nchranise Clocks ees 2 1 3 2007 203 2000 3 2007 synchronise eA 5et the PLC clack Program SYSMAC CP1L CP1E Introduction Manual sueJ6o4g Buib6nqeq pue 6GuuJeJsueJ a 8 5 1 Going Online 4 Set the date and time Click OK The Set PLC Clock dialog box will be closed Set PLC Clock 10 11 AM El 213 200 5 Select File Exit from the menu The clock on CP1L is now set re PLC Clock NewPLC1 Help 10 12 34 10 12 34 2 13 2007 2 1 3 2007 Synchronize suJeJ6o4d BuiB6nqeq pue Buru
117. mple Encoder power PhaseA supply 24VDC 9 E g Model E6B2 CWZ6C NPN open collector output Start motor AC100 240V 0 02 Switch A16 series e Jinen os 05 or ne ne aLe So o8 os o6 wc wc x Motor run 100 00 Ld Hearse slow 100 01 Error stop position o9 CA 100 03 Indicator M16 series Inverter etc SG3MX series Normal stop position 100 02 Indicator M16 series xipueddy Note Use the external power supply for input devices only It cannot be used to power output devices 142 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM PLC Setup High speed counter 0 will be enabled 1 Open the PLC Settings dialog box 2 Click the Built in Input tab 73 PLC Settings NewPLC1 File Options Help DEK Startup Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 0 4 gt High Speed Counter 0 Iv Use high speed counter 0 High Speed Counter 1 Counting mode Linear mode Circular mode Circular Max Count Reset Software reset comparing v Input Setting Differential phase input Y High Speed Counter 2 Use high speed counter 2 Counting mode Reset High Speed Counter 3 Counting mode C Circular Max Count Reset Input Setting Interrupt Input Counting mode Reset INO Normal v IN1 Normal Y IN2 Normal Y IN4 Normal Y IN5 Normal v ps 0 Close th
118. ms machines and equipment that could present a risk to life or property Please know and observe all prohibitions of use applicable to the products NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM EPROGRAMMABLE PRODUCTS OMRON shall not be responsible for the user s programming of a programmable product or any consequence thereof Disclaimers ECHANGE 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 BDIMENSIONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufacturing purposes even when tolerances are shown MPERFORMANCE DATA Performance data given in this manual is provided as a guide for the user in determining suitability an
119. n blocks The function blocks can then be placed in a program and be easily reused by simply setting the I O parameters Device 1 Control eee ey A1 B1 X1 Inputs Program elements p Processing algorithm mmm xipueddy gt Take a ladder program for Device 1 Control Replace the program I Os with parameters Save the algorithm as a template The template is defined as a function block FB Device 1 Control P On Device Control EN ENO Device Control EN A B Device Control EN ENO v e mm m m m m m m m m m m m m m m m m m M M M Mm M M M M M MM MM MM M M M M M M M M ON OA Insert function block instance into ladder program m m X A The defined function block can be used in ladder programs as function block instances SYSMAC CP1L CP1E Introduction Manual 161 xipueddy 162 mM A 4 CP1L Programming Examples llOperation Overview The example for A 4 7 Using Inverters for Speed Control 1 will be used again 60 00Hz 00H a 50 00H2 Speed Stopped Contact A ContactB Contact C Contact Z O ON ON ON W0 00 W0 01 W0 02 W0 15 The target speed is achieved based on input from multiple contacts Acceleration and deceleration is modified by the acceleration and deceleration of an inverter llSystem Configuration The system configuration for A 4 7 Using Inverters for Speed Control 1 will be used again CP1L and
120. n cepe 3 NewProgram1 00 3 Symbols p Section f END F Function Blocks The Memory window will be displayed Es PLC Memory NewPLC1 File View Window Help sg zi ESI ET EEEE z pea Fo P ffine NM 7 SYSMAC CP1L CP1E Introduction Manual gt xipueddy 1439 mM A 4 CP1L Programming Examples 3 Double click D in the data area workspace The PLC data table will be displayed Es PLC Memory NewPLC1 D File Edit View Grid Window Help asla SIR see ejeje jejje ale ilw amp alal Forcen ForceUff Forcelanc L ISI ISTSTSISISISISIS po J Off T Change rder Etis Forcen Cue ForceOf Gul Forcefzancel CP1L L Offline NUM Z xipueddy Start Address 33 On Off Sety Change rder Forcen Forcellff boo000 0017 0000 D00010 0020 0000 D00020 0010 0000 D00030 o joooo lj CT J Onf T Change rder Cti J Forcetin Etik Forcellft Ctl l Forcefzancel D Click Save in Project The settings will be saved 6 Transfer the data from the computer to CP1L 1 Confirm that the computer is online with CP1L 2 Select Online Transfer to PLC from the menu The Transfer to PLC dialog box will be displayed 3 Select the area and its region for the transfer Click Transfer to PLC The data will be transferred 140 SYSMAC CP1L CP1E Introduction
121. nction Blocks The PLC Settings dialog box will be displayed 73 PLC Settings NewPLC1 File Options Help Startup Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 0 4 gt Startup Hold Mode Force Status Hold Bit Program IOM Hold Bit C Monitor C Run Startup Data Read ry lel Read DM from flash memory se programming console Run CPiL L Offline 3 Click the Built in Input tab 128 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM On the INO CP1E IN4 drop down list for Interrupt Input select Quick While the sensor input contact is 0 04 setup is performed for INO CP1E IN4 since the interrupt input quick response input setting is set to O CP1E 4 PLC Settings NewPLC1 PRISES File Options Help Startup Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Qutput 0_4 High Speed Counter 0 Use high speed counter 0 Counting mode C High Speed Counter 1 Use high speed counter 1 Counting mode E Circular Max Count Circular Max Count Reset Reset Input Setting Input Setting High Speed Counter 2 Use high speed counter 2 Counting mode E High Speed Counter 3 Use high speed counter 3 Counting mode Es Circular Max Count Circular Max Count Reset Reset Input Setting Input Setting Interrupt Input INO Norm
122. nd with the same common terminals CIO 100 00 and CIO 100 01 are different COM Not neededDo not connect an external power supply terminal CIO 100 00 and CIO 100 01 are the same COM Neededlt is necessary to connect a DC24V external power supply when using terminals 00 and 01 on terminal block CIO 100 Do not connect the external power supply to the terminals except 00 and 01 on terminal block CIO 100 SYSMAC CP1L CP1E Introduction Manual xipueddy gt 181 xipueddy gt 182 a 4 6 Difference between CP1E E N NALIL type and E NOIOS 1 type SYSMAC CP1L CP1E Introduction Manual Index Numerics 10 point I O unit CP TES wchevsdasiavniedsiontes 15 10 point I O unit CP1L 14 20 point VO unit CP TE ocio br eni del 16 20 point I O unit OI T sscssansers tun tritus 14 40 point I O unit CPT1E 16 40 point I O unit CP1L 15 A address reference tool 97 analog adjuster asserit oio AEraES 18 125 auxiliary area susescnescetcumm nocte tete denis na bIn etes 72 B basic I O processing instruction 110 eile eT 19 battery free operation 40 Built in analog with 20 points I O Units 17 built in flash memory 114 built in I O NCS 118 C calendar timer RR E T TT 136 changing timer setting 97 Channel u
123. necting CP 1L to a computer Refer to 4 2 Creating a Ladder Program 4 3 Using CX Writing programs Programmer 4 5 Inputting Programs 4 6 Saving Enter ladder programs u in CX Programmer Loading Programs and 4 7 Editing Programs Compile Save Edit Refer to 5 1 Going Online Going online with CP 1L and the computer Set the CP 1L clock Switch to PROGRAM mode Transfer the program Refer to 5 2 Adjusting Debugging Online Online debugging Monitor power Force set force reset commands Online Editing Refer to 5 1 Going Online SYSMAC CP1L CP1E Introduction Manual sulejsKg BuiuBiseg N 25 2 2 About the Shutter Control System 2 2 Aboutthe Shutter Control System This section defines the operation and components of a shutter control system 2 sulejs S DuiuDiseq 2 2 1 Operation This section defines the operation of a shutter control system A car approaches the shutter When a sensor detects 3 headlight flashes within 5 seconds the shutter opens e The shutter can also be opened closed and stopped with buttons e When a sensor detects full car entrance into the garage the shutter closes When pulling the car out of the garage use the buttons to operate the shutter 26 SYSMAC CP1L CP1E Introduction Manual 2 2 About the Shutter Control System 2 2 2 System Components This section defines components to be used in the shutter control system The fol
124. ng a PLC Program PLC Instructions l O Comment View Function Block Ladder Editor Select Topic to display suJeJ604d DuneoJ25 ES A ladder diagram cannot be directly transferred into the PLC CX Programmer converts i e compiles the ladder diagram into mnemonic code which the PLC can run CX Programmer also allows you to view and edit the mnemonic code directly if required CX Programmer Help can also be displayed in several other ways From the Desktop Menu 1 Onthe desktop select Start All Programs OMRON CX One CX Programmer CX Programmer Help CX Programmer Help will be displayed F m w ow r 7 3 Face Plate Auto Budder lr NS 2 C3 ekdhbos Utlity Cxcna Auto Update Chine Introduction Guide EE UD Release Notes SYSMAC CP1L CP1E Introduction Manual ED 4 4 Using the Help From CX Programmer 1 Select Help Help Contents from the main menu CX Programmer Help will be displayed Untitind Ct fireprarencr Nee 0 T UE IET ILI rng fp Pile Et View reet Progen AG miti Tonks Wire ELSE Deo ia Bhithe m U IH E by 63 Y rcteuction Rs eren a DEARA EE ET HERI tsar tarping Reference a e amp Hm mEIBBEI Sm CHS d Hep Bree lt j fo If Peres Reference fe tauiraa 5 Onine Pagi i MEL TM t Bud Capen P Sobiivncrt pannoo da Mary Programs z ES MeesiProgrsm 1 000 E3 Symbols ae seoni m rn MReferencing PLC Instruction Sets For details
125. nputting Programs 4 5 3 Inputting Output Coils 1 Input an output coil for the work area Press the O key OUT 100 00 will be displayed voog Werk Area OUTE OUTNOT Press the Enter key Bit 1 1 will be displayed and 100 00 will be displayed in reverse video Input address WO Press the Enter key WO is entered The output coil input for the work area is complete with the I O comment already entered 100 00 Aribert Name Comment w 00 Work Aea Work Arpa SYSMAC CP1L CP1E Introduction Manual 4 5 Inputting Programs Note Next input a timer instruction 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 END OO SYSMAC CP1L CP1E Introduction Manual suJeJ604d Huneal ES 63 suJeJDoJg Buneay gt 64 4 5 Inputting Programs 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 ToO00 Vu O0 Work Area Light detecti Timer v 2 Ce ee ee S RJC 2 Press the T Key A list of instructions beginning with T will be displayed 0 0 t 0 04
126. nter 141 VD allocation seviciticnsrmotasuiedsrssasvenawetederanant 28 ex qe 108 VO COMMENT sarisin 19 UO comment bar esatrndar pP MERI 51 I O refreshing DEPT 117 information WINdOW assiceccnsvescassactucedunoenesss 52 Mmput ng contati MERECE ERES 58 inputting output coil 62 INStrUCt ON REPRE 54 109 instructions reference 54 MONOC cerr rerea nE 47 interrupt function sasidiabeisaecisvorhawtasacdeteden 130 L ladder backtracking 99 ladder pDrOOP TDI aestesceiteotccunat Du abis 4T 49 loading program MR 78 M main menu cc ccc cece eecceeceeeeeeseeeeeeeeeees 51 man WNAOW oarcacpactouceasiceccansccemieceesian 51 Modbus RTU easy master function 152 MOROT O ume X 93 Mounting CPIE m 35 O online editing encase ccenoenacnacsaneasceteenenesese 100 operating mode aT E 88 SYSMAC CP1L Introduction Manual 181 Index operation indicator esseiiedexe mas terga ee ms 21 ODIO DOGG oaosenssrenmodetum PI EU IUIUS 19 JR elici RR RTT 59 P peripheral service 119 PEG INK q 170 PLO 0 cee eenee ern eeemene ne emer oer 114 128 power supply voltage 36 DrecaUllOnS serren aE 9 program check asecencemssqee do Ein tigtan di idexds 16 programming e 42 EEEE E Gee C 55 project tree
127. nter reset odi AA Input contact 0 01 Count complete ap 4PkJ NE O e Contact 100 00 Quick response inputs can read short signals that are shorter than the cycle time However as with any other input the full cycle time will be used for ladder processing For accelerated processing unaffected by the scan time use interrupt inputs The input can only be counted once during each cycle time regardless of how many times the input occurs To count the input multiple times within each cycle time use a high speed counter xipueddy llSystem Configuration e Wiring Example Sensor input 0 04 Counter reset input 0 01 1 mS ooo o qunJ e Hg JISEEEISE aibes Ro gt Count complete 100 00 SYSMAC CP1L CP1E Introduction Manual 127 I O Oo D Q x mM A 4 CP1L Programming Examples MPLC Setup On the PLC Settings dialog box set the sensor input 0 04 to Quick 1 Openthe CX Programmer main window 2 Double click Settings in the project tree 7 Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram File Edit View Insert Program PLC Simulation Tools Window Help Dl of a MR Sm HE Te 2 e NewProjeck fg NewPLC1 CP1L Offline Symbols Ft Memory 1 Programs Pt NewProgram1 00 3 Symbols f Sectiont amp END 7 Fu
128. o wire CP1L 14 point I O unit with AC power supply llProtective Label Wire scraps may be scattered during wiring To prevent them from entering the unit leave the protective label adhered on the top surface of the unit on until wiring is done When wiring is complete remove the label to ensure proper heat dissipation 3 3 1 Connecting Power Supply and Ground Lines This section explains how to wire the power and ground lines llUnits with AC Power Supply Power and ground terminals A are located near the top of CP1L Terminal block layout at A 1 Power supply terminal Supply 100 to 240VAC voltage at 50 60Hz The acceptable supply voltage range is 85 to 264VAC Use separate circuits for the power supply circuit and the motor circuit in order to prevent voltage drops due to starting currents and inrush currents from other equipment Use a twisted pair of power supply cables to prevent noise from the power supply line Adding a 1 1 isolating transformer will further reduce electrical noise 36 SYSMAC CP1L CP1E Introduction Manual 3 3 Wiring Devices In consideration of voltage drops and allowable current use the thickest electrical wire possible LG LG is a functional ground terminal noise filtered neutral terminal To resolve errors and electrical shocks caused by noise short the LG and GR terminals for a class D grounding
129. oints e CP series expansion I O units can be used to add I O points up to a total of 60 I O points JS JS SIS RS S SS N Mes fes ese fes edes Li Li 14 SYSMAC CP1L CP1E Introduction Manual 1 1 CP1L CP1E Models IBA0 point I O Units CP1L M40D0 D CPU unit has 24 input points and 16 output points e CP series expansion I O units can be used to add I O points up to a total of 160 I O points Sj S9 9 9 9 9 59 9 9 S9 9 59 f 68 e Mises es ess es es es es s eo es n BATTERY PERIPHERAL NOIMO9AQ 3L dO lLdO m 00 01 02 03 u 08 00 01 03 04 06 com com com com o o com o com os o 1 1 2 CP1E Models BI10 points I O Units CP1E E10DLI L1 e CPU unit has 6 input points and 4 output points e CP series expansion I O units cannot be used to add I O points E type CPU Unit CP1E E10DLI L com o1 03 05 HAN S olere AUD LaL L 4 L 4 7 posta thee pr OPPE JAHL SYSMAC CP1L CP1E Introduction Manual 19 1 1 CP1L CP1E Models lI20 point I O Units CP1E 0120 S DO D e CPU unit has 12 input points and 8 output points e CP series expansion I O units cannot be used to add I O points NLILI type CPU Unit CP1E N20D0 0O ELILI type CPU Unit C
130. on instructions used in ladder programs refer to PLC Instruction Sets E CS Series PLC Instruction Sets ME o c Hide Back Forward Print Options O S D V ct 5 e O te S o Contents Sequence Input Instructions SEGUENHE NPUT SEQUENCE iO OUTPUTS SEQUENCE CONTROL Sequence Output Instructions TIMER amp COUNTER COMPARISON J Sequence Control Instructions DATA MavEMENT DATA SHIFT Timer and Counter Instructions INCREMENTIDECREMENT SYMBOL Comparison Instructions MATHS CONVERSATION LOGIC Data Movement Instructions SPECIAL MATHS FLOATING POINT Data Shift Instructions MATHS TABLE DATA PROCESSING Increment Decrement Instructions DATA CONTROL SUBROUTINE Symbol Maths Instructions INTERRUPT CONTROL STEP Basic WO Conversion Instructians UNIT SERIAL COMMS NETWORK Logic Instructions FILE MEMORY Special Maths Instructions DISPLAY CLOCK DEBUGGING Floating Point Maths Instructions FAILURE DIAGNOSIS BLOCK Z Table Data Processing Instructions PROGRAMMING Data Control Instructions TEXT STRING PROCESSING ASK A CONTROL USER DEFINED OTHER Subroutine Instructions Bo ieee eee en E I IP MER a out i E iil Contents Index Search Favorites Contents CS Series PLC Instructions From CX Programmer 1 Select Help Instruction Reference CS CJ Series from the main menu CP Series PLC Instruction Sets will be displayed CAU DESI uud uu EE rogram Section Diagram
131. on of self maintaining bits 000000 SET input KEEP 011 000001 RSET input 000103 000103 000200 O 000000 C rq E l l l l l l 000001 T l l 000102 N rd Ignored In the above example relay coil 000103 is turned ON by the set condition and OFF by the reset condition While the reset input is ON the set input will be ignored Note Holding areas and auxiliary areas turned ON by KEEP instructions will retain the ON status even when power is interrupted or when operation is stopped SYSMAC CP1L CP1E Introduction Manual A 3 Inner Workings of CP1L CP1E iim A 3 Inner Workings of CP1L CP1E This section briefly explains the inner structure functions and internal operation flow of CP1L and CP1E CPU units A 3 1 Inner Structure of CPU Units The inner structure of a CP1L or CP1E CPU unit is shown below Write operation from Built in inputs CX Programmer CPU unit Flash memory CP1E Built in EEPROM Memory cassette User program Comment Analog adjuster memory External analog FB program settings input memory Parameters i e PLC settings xipueddy Parameters i e PLC settings Built in outputs CP1E CPU Units do not execute these services 1 Transfer of programs and parameter data Data in RAM is automatically backed up to the built in flash memory CP1E Bui
132. onnected in series UT AND NOT AND NOT Used for closed contacts connected in series OR JOR Used for contacts connected in parallel OR NOT OR NOT Used for closed contacts connected in parallel Coil O OUT Turns relay coil ON when execution condition is 1 and OFF when Output execution condition is 0 OUT NOT OUT NOT Turns relay coil OFF when execution condition is 1 and ON when execution condition is 0 SET SET Turns relay coil ON when execution condition changes from OFF to ON The relay coil will remain ON even when the execution condition changes back to OFF RSET Turns relay coil OFF when execution condition changes from OFF to ON The relay coil will remain OFF even when the execution condition changes back to OFF KEEP RELAY KEEP 01 1 Makes the specified relay function as a keep relay Note When programming in CX Programmer there is no need to think of contacts and coils OUTs as instructions They can be written into the program by simply selecting the corresponding symbols xipueddy gt lI Writing Contacts eL D LOAD LD NOT LOAD NOT Instructions Use at the bus bar or at the beginning of a rung block Bus bar 110 SYSMAC CP1L CP1E Introduction Manual A 2 Instructions mM AND AND NOT Instructions Use for contacts connected in series Se al 000000 000002 p an l l 000001 000003 Note There is no limit on the number of contacts that can be connected by AND AND NOT instruct
133. or only CP1E N NALILI SLI type Flashing when the built in RS 232C or RS 485 port is in communication mode 22 Built in RS 485 port only CP1E NLILIS1 type Connect a device such as inverter temperature controller etc SYSMAC CP1L CP1E Introduction Manual 1 2 Part Names and Functions lilindicator Statuses This section describes the operating statuses of CP1L and CP1E as displayed by the operation indicators es es es es i Nicol PERIPHERAL NMOIMO9AQ AlLdO 1bdO z n 5 M Nc TT NC Emu eou eou uou o Nc EEEE i POWER Lit Power is ON Green Not lit Power is OFF RUN CP1L CP1E is executing a program in either RUN or MONITOR mode Green Not lit Operation is stopped in PROGRAM mode or stopped due to a fatal error ERR ALM Lit A fatal error including FALS execution or a hardware error WDT error Red has occurred CP1L CP1E operation will stop and all outputs will be turned OFF Blinking A non fatal error including FAL execution has occurred CP1L CP1E operation will continue Not lit Operation normal INH Lit The output OFF bit A500 15 has turned ON Yellow All outputs will be turned OFF Notlit Operation normal PRPHL Blinking Communication either sending or receiving is active on the peripheral Yellow USB port Notlit Any other state BKUP e CP1L CPU units
134. pa Memory View Aco Symbols Memory Adocation IR jug pp V Memory br The compilation is started When the compilation is complete program check results will be displayed in the output window ine des NN j O S D V ct 5 e O te Q S o Project C Name Address or Value Comment ed a PLC NewPLCT PLC Model CP1H 248 mdi rH Compiling H a PLC Program Name NewPLC1 NewProgrami 1 a Section Name Section i a Section Name END H E a NewPLC1 0 errors 0 warnings i E The programs have been checked with the program check option set to Unit Yer 1 1 r E a E E n 1 H b Compile Find Report Transfer f KIM gt a ka emeren Hu E N N m M m eee eee eee eee eee eee eee eee eee eee eee ee eee See ee eee ee ee For Help press ss Fi NewPLC1 Net 0 Node 0 Offline rung 2 1 2 96 NUM 2 Ifan error has been detected double click the error message in the output window The cursor is moved to where the error was detected Correct the error x 0 E NewProject p NewPLCI CP1L Offline m Symbols 5 IO Table and Unit Setup I 0 04 Toooo wooo Settings ee Light detecti Time 4 Memory 9 imer b Programs WO 00 E S NewProgram1 00 3 Symbols Gg Section1 1 END TIM Tim F Function Blocks es Ys Timer num ber 50 Set value 2 I 0 04 6 mae pe ior TOO00 00
135. plicable Not applicable Battery Provided Built in Not provided Not provided Cannot be mounted CP1W BATO 1 can be Capacitor backup 5 minutes at ambient temperature of 25 C mounted as an option 50 hours at ambient temperature of 25 C 40 hours at ambient temperature of 25 C xipueddy Nonvolatile memory Backup memory Battery free operation Backup function of DM Area to nonvolatile memory The function to retain I O memory data in battery free operation Built in flash memory Contains the user programs parameters DM Area initial values and comment files Only the data in the above nonvolatile memory will be retained without a Battery Otherwise the data is unstable All the data unchangeable of the DM Area can be backed up to the backup memory by using the Auxiliary Area control bits The data can be restored to the DM Area automatically when power is turned ON for the settings in the PLC Setup Built in EEPROM Contains the user programs parameters DM Area initial values and comment files Only the data in the above nonvolatile memory will be retained without a Battery Otherwise the data is unstable The data of DM HR or CNT area will be automatically cleared when power is turned ON Any specified data from DO of the DM Area can be backed up to the backup memory by using the Auxiliary Area control bits The data can be restored to the DM Area automatically when powe
136. programming use this manual together with the CP1E CPU Unit Software User s Manual W480 Provides information on installing and operating the CX Programmer for all functions except for function blocks Read and Understand this Manual Please read and understand this manual before using the product Please consult your OMRON representative if you have any questions or comments Warranty and Limitations of Liability BWARRANTY OMRON s exclusive warranty is that the products are free from defects in materials and workmanship for a period of one year or other period if specified from date of sale by OMRON OMRON MAKES NO WARRANTY OR REPRESENTATION EXPRESS OR IMPLIED REGARDING NON INFRINGEMENT MERCHANTABILITY OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE OMRON DISCLAIMS ALL OTHER WARRANTIES EXPRESS OR IMPLIED BI IMITATIONS OF LIABILITY OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS WHETHER SUCH CLAIM IS BASED ON CONTRACT WARRANTY NEGLIGENCE OR STRICT LIABILITY In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANT Y REPAIR OR OT
137. pt 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 ELILI 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 NALILI SLI 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 indicat
138. quests issued by the CPU unit via a serial port non solicited communications Serial port service Executes serial communication by SEND RECV and CMND instructions Uses internal logic ports 0 to 7 as Communication port service communication ports Executes instructions in the background using internal logic ports 0 to 7 as communication ports Built in flash memory EEPROM Processes reading and writing of data from and to the accessing service built in flash memory EEPROM Memory cassette Processes reading and writing of data from and to the accessing service memory cassette CP1E CPU Units do not execute these services Note Service time is separately allocated for the peripheral USB port serial port and communication port services By default 496 of the preceding cycle time will be allocated If services take several cycles for execution and are delayed allocate a fixed amount of time as opposed to percentage to each service To do this use Set time to all events under PLC Settings CP1E has no setting and cycle time is fixed to 8 SYSMAC CP1L CP1E Introduction Manual gt xipueddy 119 xipueddy ll Cycle Time BB 4 3 Inner Workings ot CP1L CP1E CPU units process data in cycles starting with Overseeing processes and ending with Peripheral services Calculating Cycle Time The cycle time is calculated as the sum of the following processing times Cycle Time Overseeing Pro
139. r is turned ON for the settings in the PLC Setup Data that can be backed up ELILI S type DO to D1499 max N NALILI SLI type DO to D6999 max Sock TO Scheduled interrupts 1 interrupt 1 interrupt Time unit 10ms 1ms Time unit Only 0 1ms 0 1ms Interrupt intervals are fixed when MSKS instruction is executed Only reset start can be executed by MSKS instruction 1 6 SYSMAC CP1L CP1E Introduction Manual A 5 Comparison between CP1L and CP1E I E O Memory fom CP1L CPU Units CP1E EHLDI S ype CPU CP1E N NAOO S0O type Units CPU Units CIO Area 98 304 bits 4 640 bits CIO 0 to CIO 6143 CIO 0 to CIO 289 Work Area W 8 192 bits 1 600 bits WO 00 to W511 15 WO 00 to W99 15 Temporary Area TR 16 bits 16 bits TRO to TR15 TRO to TR15 Holding Area H 24 576 bits 800 bits H0 00 to H1535 15 H0 00 to H49 15 Auxiliary Area A Read only 7 168 bits Read only 7 168 bits AO to A447 AO to A447 Read write 8 192 bits Read write 4 896 bits A448 to A959 A448 to A753 Timers T 4 096 timers 256 timers TO to T4095 TO to T255 Counters C 4 096 counters 256 counters CO to C4095 CO to C255 DM Area D 32K words 2K words 8K words DO to D32767 DO to D2047 DO to D8191 All the data of the DM Area DO to D1499 can be DO to D6999 can be can be backed up to flash backed up to EEPROM by backed up to EEPROM by memory as initial values for using the Auxiliary Area using the Auxiliary Area use at startup The data is control bits
140. resistor SYSMAC CP1L CP1E Introduction Manual gt 123 xipueddy mM A 4 CP1L Programming Examples llSystem Configuration e Wiring Example Sensor input 0 00 O Variable resistor External analog setting l 1kQ 1 4W i A input connector Gate Gul Gul 100 00 gt 5 mProgramming Example 2 x e adder Program 0 00 T0010 100 00 Photoelectric Gate sensor 100 00 P On Gate Photoelectric sensor A To set a minimal value of 2sec first convert the external analog input value A643 to a BCD value of DO increment it by 20BCD 2sec and then store it as D1 B TIM will act as a decrementing ON timer with 0 1sec intervals 124 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples BINFO Relationship between Input Voltage and A643 s PV Value in A643CH BCD 281 100 Hex 256 0 10 11 Input Voltage V The maximum input voltage is 11VDC Do not apply voltages any greater gt Using the Analog Adjuster on CP1L Settings can be changed by using the analog adjuster on CP1L instead of using an external analog settings input The analog adjuster can set the auxiliary area A642CH to any value in the 0 to 255 range 0 to FF Hex xipueddy Philips screwdriver Analog adjuster CP1E ELILI NLILI NALILI type CPU units can use A642 and A643 with 2 analog adjusters
141. rial communication protocols Baud rate 300 600 1200 2400 4800 No communication port 1200 2400 4800 9600 9600 19 2k 38 4k 57 6k 19 2k 38 4k 57 6k 115 2k 115 2k 300 600bps are not supported Supported protocol Host Link Host Link Toolbus Cannot connect to the CX P No protocol directly 1 N NT Link No protocol 1 1 NT Link 1 N NT Link Serial Gateway Can only connect one PT CompoWay F PT programming console is Modbus RTU not supported Serial PLC Link Master Serial PLC Link Master Serial PLC Link Slave PTs participation is not ble 1 1 Link Master poss 1 1 Link Slave Serial PLC Link Slave Modbus RTU Refreshed at once when PLC Setup is changed Refreshed for power interruption after PLC Setup has been changed SYSMAC CP1L CP1E Introduction Manual 1 9 xipueddy IE A 5 Comparison between CP1L and CP1E CP1E EOO CP1E N NADIO SD type S type CPU PT programming console Supported Not provided Option Boards that can be RS232C Option Board Cannot be mounted Only N NALILI type CPU mounted CP1W CIFO1 Unit NLILIS 1 type CPU RS422A 485 Option Board Unit cannot be mounted CP1W CIF11 12 RS232C Option Board LCD Option Board CP1W CIFO1 CP1W DAMO 1 RS422A 485 Option Board Ethernet Option Board CP1W CIF11 12 CP1W CIF41 Ethernet Option Board CP1W CIF41 version 2 0 The followings cannot be mounted LCD Option Board CP1W DAMO 1 Ethernet Option Board CP1W CIF41 version 1 0 Memory Cassette Ap
142. rted REAL BOOL Velocity Error INT WORD Direction ErrorlD WORD ArealD INT AreaNo INT Decelerate to stop INVO6O Stop BOOL BOOL EN ENO BOOL Done BOOL Error WORD ErrorID INT NodeNo BOOL Execute WORD ArealD INT AreaNo Refresh _INV002_ Refresh BOOL EN INT UnitSelect INT PortNo DWORD Scanlist BOOL ENO BOOL BUSY INT NodeAddr BOOL Error DWORD WORD ErrorlD ModelTypeM V UINT IntervalCount WORD ArealD INT AreaNo WORD MSGArealD INT MSGAreaNo 166 SYSMAC CP1L CP1E Introduction Manual W10 00 Matching W10 01 Force quit W10 02 MoveFB error W10 03 Deceleration complete W10 04 StopFB error 1 Set the same area to use l as FB data interface l W7 00 Communicating W8 Inverter slave unit communicating or done communicating W9 INV error code Inverter slave unit used Unit address 1 Inverter 3G3MV 0 3G3RV 1 1 3 0 BIT 3 2 1 A 4 CP1L Programming Examples mM BINFO Using Smart FB Library E g Reading INVOO2 Refresh20 1 Select File Function Block Load Function Block from File from the main menu The Select CX Programmer Function Block Library File dialog box will be displayed 7 Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram IMP Edit View Insert Program PLC Simulation Tools Window Help
143. s mM Describe Modbus RTU commands in the DM fixed allocation words Communication can then be enabled by simply turning ON the software switch A640 CH bit 00 Modbus RTU easy master function execution switch A640 CH bit 0 for port 1 D32800 LC f Seve adires CP1E D1200 D32301 FUNCTION code CP1E D1201 D32302 Communication data bytes CP1E D1202 D32303 Communication data CPIE pen Slave address FUNCTION code Slave address FUNCTION code Modbus RTU Eb OMRON inverter 3G3JV 3G3MV 3G3RV E In the DM fixed allocation words for Modbus RTU easy master allocate the slave address function and data to the Modbus slave device After the allocations have been made Modbus RTU commands can be sent by turning the software switch ON Received responses are automatically stored in the DM fixed allocation words Note Modbus RTU easy master execution bits and DM Fixed Allocation words depend on unit type CP1L10 14 20 point I O units or 30 40 60 point I O units built in RS 232C port built in RS 485 port or serial option port of CP1E CPU unit For details refer to CP Series CP1L CPU Unit User s Manual W462 or CP Series CP1E CPU Unit Software User s Manual W480 SYSMAC CP1L CP1E Introduction Manual gt xipueddy 153 xipueddy mM A 4 CP1L Programming Examples MOperation Overview A bobbin winder on a spinning machine will be used for in the following examp
144. s performed in PROGRAM mode also 116 SYSMAC CP1L CP1E Introduction Manual W O Refreshing A 3 Inner Workings of CP1L CP1E I O refreshing refers to cyclic data transfers between a preset area of the memory and an external source It involves the following refreshing processes Target Unit Type Max Data Exchange Data Exchange Area CPU unit s built in I O Input 3 CH I O area Output 3 CH CPU unit s built in analog I O Input 3 CH including I O area analog input 2 CH Output 3 CH including analog output 1 CH CP series expansion I O unit expansion unit Fixed dependent on unit I O refreshing is performed without interruption within a single cycle Furthermore I O refreshing is always performed after program execution I O refreshing can be performed for CP1L CP1E s built in normal I O CP1E s built in analog I O and CP series expansion I O units at one of the following 3 timings Cyclic refreshing Execution by instructions with immediate refresh variation only CPU unit s built in I O e Execution by an IORF instruction only CPU unit s built in analog I O and expansion I O units e Cyclic Refreshing I O refreshing is performed after all instructions in the executable tasks have been executed This is the standard method for I O refreshing Cycle Actual I O data SYSMAC CP1L CP1E Introduction Manual gt xipueddy 117 xipueddy gt BB 4 3 Inner Workings of CP
145. s subject to static electricity and other forms of noise e Locations subject to strong electromagnetic fields e Locations subject to possible radioactive exposure e Locations in close proximity to close to power lines Winstallation into Cabinets and Control Panels When installing CP1L CP1E into a cabinet or control panel ensure adequate environment resistance as well as sufficient accessibility for operation and maintenance Temperature Control The ambient operating temperature for CP1L CP1E is 0 to 55 C The following precautions apply Provide adequate space for air flow Do not install above equipment which generates significant heat i e heaters transformers high capacity resistors e f the ambient temperature is to exceed 55 C install a cooling fan or air conditioner SYSMAC CP1L CP1E Introduction Manual 3 1 Installation Notes 1 Control panel 2 Fan 3 Louver BuuUiM pue BununoJv m G 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 Z 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 be
146. sion units are by the number of refreshed first followed by the units used inputs from the expansion units to the CPU unit For details on I O refresh time refer to 2 7 Computing the Cycle Time of CP Series CP1L CPU Unit User s Manual W462 or SECTION 4 Monitoring and Computing the Cycle Time of CP Series CP1E CPU Unit Instructions Heference Manual W483 120 SYSMAC CP1L CP1E Introduction Manual A 3 Inner Workings of CP1L CP1E MN Note Peripheral Services Details Processing Time and Variation Factors Peripheral USB port Processing time for these services will vary depending on the PLC service settings If a cycle time has not been specified service will be executed using 496 of the preceding cycle time calculated by cycle time calculation If a cycle time has been specified service will be executed for the specified time Execution will take at least 0 1ms regardless of whether a cycle time has been specified or not If the ports are not connected the servicing time will be Oms Serial port service If a cycle time has not been specified in the PLC settings service will be executed for 496 of the preceding cycle time calculated by Communication port service W u cycle time calculation If a cycle time has been specified service will be executed for the specified time Execution will take at least 0 1ms regardless of whether the cycle time has been specified If no communications
147. sor unit CP1W TS101 Boiler B CP1L Slave No 0 Temperature sensor unit CP1W TS101 Boiler C CP1L Slave No 1 Temperature sensor unit er W TS101 W mow e e w w w lw TSOO o n 5 TOARDB SbASOB ro ull4 sssss nu nouo h Tou BE si LJ E E 1CH 2C PTAA IETEJESERERES jfeejcejoejoe ejos joe mm 1CH 2C CRT ER TIT CERELERE Ie oefecfefoejocdos ANOS LAL TENE El CHHEDOUN fecpotosfesfosospoo z CJ 2 Pt100 sensor inputs E52 P10AE CP1W CIF11 12 RS422 485 option board 2 Pt100 sensor inputs E52 P10AE CP1W CIF11 12 RS422 485 option board 2 Pt100 sensor inputs E52 P10AE CP1W CIF11 12 RS422 485 option board CP1W CIF11 12 CP1W CIF11 12 CP1W CIF11 12 170 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples DIP Switch Setup for CP1W CIF11 12 RS422 485 Option Board Rear panel CPU unit connector Operation setup DIP switches Setting Master Slave Slave Content No 0 No 1 Presence of terminating OFF ON Terminat
148. t to the FB O9 Set the I O parameters for the FB 1 Place the cursor next to an FB parameter Press the Enter key The New Parameter dialog box will be displayed 2 Input the parameter Press the Enter key Du E taky BeA D Mee eri asa S a KA s Sx qme l leE O QC H SEL lx a A R3 kd De amp 2h NewProject NewPLC1 CP1L Offline 3 Symbols Cs Settings Ft Memory A Programs INV0O02 Refresh 3 NewProgram1 00 3 Symbols invertersetting_1 BOOL BOOL EN ENO a ses Pt 4F Function Blocks 7 iiteelect BUSY dE _Invo02_Refresh E New Parameter Scanlist Error DWORD WORD ModelTypeMv ErrorlD UINT IntervalCount NORD ArealD INT AreaNo WORD MSGArealD INT MSGAreaNo SYSMAC CP1L CP1E Introduction Manual 169 xipueddy mM A 4 CP1L Programming Examples A 4 9 Exchanging Data between CP1Ls MFunctions Used e Simple PLC Link By using RS 422A 485 option boards up to 10CH of data per CPU unit can be shared by as many as 9 CP1E CP1L CP1H CJ1M units without the aid of a program llOperation Overview Current temperature information is exchanged by boilers This setup may be used to adjust boiler temperatures according to the other boiler conditions or to monitor the boilers from a single location Boiler A a Boiler B 4 Boiler C WSystem Configuration e Wiring Example Boiler A CP1L Master Temperature sen
149. the motor decelerates When high speed counter A270 reaches 3500 ODAC Hex the motor is stopped Stop position is normal if the high speed counter A270 is between 3500 ODAC Hex and 3550 ODDE Hex Stop position is in error if the high speed counter A270 is greater than 3550 ODDE Hex A 4 CP1L Programming Examples mM llProgramming Example 2 Use a CTBL register comparison table instruction to execute an interrupt process when the target value is achieved olowing and stopping are executed as interrupt tasks allowing high speed processes to be executed without affecting the cycle time e adder Program Use a CTBL instruction to execute interrupt tasks when the target position is reached 0 02 1 Start motor Reset motor stopped W0 02 Be CD m 2 Ol C2 e o Software reset for high speed counter 0 CTBL 882 Specification for high speed counter 0 Start comparison with target Lower CH of comparison table m Set motor run 100 00 M1 g s OD eur After motor stops check the stop position W0 02 100 02 Stop position is normal if the high speed counter A270 is between 3500 ODAC Hex and 3550 ODDE Hex Normal stop position Motor stopped mS Stop position is in error if the high speed counter A270 is Error stop position greater than 3550 ODDE Hex When the PV of the high speed counter matches target value 1 3000 interrupt
150. ting CX Programmer v8 2 Make sure that there aren t any problems if the PLC is started mode Do you wish to switch the PLC into Run JL 92 SYSMAC CP1L CP1E Introduction Manual 5 2 Adjusting Debugging Online 5 2 Adjusting Debugging Online This section explains functions used for debugging and for adjustments during test runs 5 2 1 Monitoring llDisplaying 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 TOO00 llDisplaying Conduction Status at Multiple Sections The diagram workspace can be split Multiple sections of the program can be viewed simultaneously I 0 04 TOOO0 wo 00 Work Area 1 WO 00 Work Area 2 I 0 04 6 Light detecti CNT Counter TOOO00 0000 Counter M us SACRE SYSMAC CP1L CP1E Introduction Manual suJeJ6o4d BuiB6nqeq pue BurueJsueJ a 93 5 2 Adjusting Debugging Online 1 Window divider Drag the window divider to split the diagram workspace The workspace can be split in up to 4 sections T0000 Light detection Timer E Light detection 2 v0 00 4 EHE aaa Work Area Work Area 0 00 i 0 00 4 e Work Area Work Area weeeoeedeeeoeeeeeeee weeeeeeeeveveeceeeeceee E Light det
151. ting 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 e Downward differentiation e Immediate refreshing e 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 NewProject fj NewPLCI CP1L Offline 3 Symbols 10 Table and Unit Setup Settings 3 End AR Memory eS Programs 1 Govovereerte weereerte 3 NewProgram1 00 3 Symbols Gg Section 9 dT Function Blocks SYSMAC CP1L CP1E Introduction Manual 9 4 6 Saving Loading Programs 4 6 Saving Loading Programs Created ladder programs must be saved This section explains how to check save and load ladder programs 4 6 1 Compiling Programs By compiling you can check for errors in the program Select Program Compile All PLC Programs from the main menu DA DARRE DD Crom Retererece tapat Ake DE o
152. tion limit LS motor motor CLOSE button 100 01 De escalation motor 0 03 Car detection sensor 8 8 Refer to 4 5 7 Inputting Differentiated Up Contacts Creating the program in CX Programmer will be explained in the next section SYSMAC CP1L CP1E Introduction Manual 49 4 3 Using CX Programmer 4 3 Using CX Programmer This section explains CX Programmer start up and operation screens 4 3 1 Starting CX Programmer 1 Onthe 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 suJeJDoJg Huneal gt Note For details on installing CX Programmer refer to Chapter 1 Overview and Installation of CX One of CX One Introduction Guide R145 G amp D SYSMAC CP1L CP1E Introduction Manual 4 3 Using CX Programmer 4 3 2 Operation Screens This section explains the functions available on the CX Programmer main window For details on using CX Programmer refer to CX Programmer Operation Manual W446 eMain Window ie dt ew Insert Progam Fic camdaton Toda emde Pe D wd ft aa A9 Bet tH A te m n E a suJeJ604d Huneal ES T TT d A A l d9 Hl Hee Oel 1 Mesa sto Oi 1 2 3 Title bar Displays the data file name created in CX Programmer Main menu Used to select CX Programmer functions Toolbars Displays icons for frequently used functions
153. tion of the flash memory When a project is transferred from CX Programmer to the CPU unit program information for the function block will automatically be saved to the flash memory Only CP1L Memory cassette Only CP1L Memory cassettes can store programs data memory contents PLC setup data and I O comments from CX Programmer Data stored in the memory cassette can be loaded automatically when the unit is powered ON 114 SYSMAC CP1L CP1E Introduction Manual A 3 Inner Workings of CP1L CP1E MN Caution With an CP1E ELIPI S type CPU unit or with an N NALIEI SEI 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 gt xipueddy 11
154. tions and communication procedures are generally required in creating the program In such cases Smart FB Library can be used to significantly simplify the programming process User program xipueddy Modbus RTU OMRON inverter 3G3MV 3G3RV Smart FB Library for OMRON 3G3MV 38G3RV Inverter _INV002_ Refresh Status refresh Refreshes the inverter status the inverter status nor Execute rotation frequency G start signal rotation specification in Hz direction and rotation speed in Hz INV033 MoveVelocity RPM Execute rotation rotation Specifies start signal rotation speed specified in rpm direction and rotation speed in rpm r min INVO60 Stop Decelerate to stop Decelerates an operating axis to a stop INVO80 Reset Decelerates an operating axis to a stop FB used in this example Note Documentation PDF file on Smart FB Library functions can be found in the FBL omronlib Inverter INVRT Serial folder For details on the Smart FB Library refer to this file 160 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM e Function Blocks Only CP1L Function blocks are programming elements templates that group a set of processes functions into a single block The user can define a function block in advance and then use it by simply inserting it into a program and setting its I O Create and save standard program sections as functio
155. to left Hold down the Ctrl key and press the left arrow key Creating a line from left to right Hold down the Ctrl key and press the right arrow key 82 SYSMAC CP1L CP1E Introduction Manual Se 4 7 Editing Programs Note 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 Repeating the process over an existing connection line will delete it llCopying Pasting Contacts Instructions Rungs OG Contacts Instructions 1 2 2 Rungs Place the cursor on a contact or an instruction Hold down the Ctrl key and press the C key The selected contact or instruction will be copied to the clipboard 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 Click the rung header of the rung you wish to copy The whole rung will be selected Hold down the Ctrl key and press the C key The selected rung will be copied to the clipboard 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 suJeJ604d DuneoJ25 ES 83 suJeJ6o4d Bunea gt 84 4 7 Editing Programs SYSMAC CP1L CP1E Introduction Manual SECTION 5 Transferring
156. ts or 15 14 13 12 11 10 09 N8 07 06 05 04 03 02 01 00 dd Not available Input area 8 inputs 100 CH BENE eee eee NEN ee Used as work area PT Output area 6 outputs Allocate On 14 point I O units 8 input relays from 0 00 to 0 07 bits 00 to 07 on OCH 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 SYSMAC CP1L CP1E Introduction Manual sulejsKg BuiuBiseq N 29 2 4 Example Ladder Program 2 4 Example Ladder Program An example ladder program for the shutter control system is shown below Program creation is explained in SECTION 4 0 04 T0000 W0 00 Light detection Work area sensor W0 00 Work area W0 00 sulejs S Bulubiseq N Work area 0000 Timer 0 04 Light detection sensor T0000 Timer C0000 Counter A200 11 P First Cycle First cycle flag C0000 0 01 0 05 100 01 100 00 Counter STOP button Upper De escalation Escalation limit LS motor motor 0 00 OPEN button 100 00 Escalation motor 0 02 0 01 0 06 100 00 100 01 STOP button Lower Escalation De escalation limit LS motor motor CLOSE button 100 01 De escalation motor 0 03 Car detection sensor
157. tware vau are installing for this hardware OMRON SYSMAC PLC Device has not passed Windows Logo testing ta verify Its compatibility with Windows XP Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that haz passed Windows Logo testing 6 Click Finish USB driver installation is now complete Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for OMRON SYSMAC PLC Device Click Finish to close the wizard Back Finish SYSMAC CP1L CP1E Introduction Manual 45 suJeJDoJg Buneay gt 46 4 1 Preparing for Programming llConfirming Installation Confirm that the driver has been installed properly On the desktop select Start and then right click My Computer A context menu will be displayed Select Properties The System Properties dialog box will be displayed Select the Hardware tab and click Device Manager The Device Manager dialog box will be displayed Double click Universal Serial Bus controllers Confirm that OMRON SYSMAC PLC Device is displayed If so the USB driver has been installed successfully Device Manager File Action View Help amp R I
158. uctions Instructions Conversion Instructions Subroutine Instructions Interrupt Control e MSKR Logic Instructions e XNRW Instructions e XNRL High speed Counter Special Math and Pulse Output Instructions Instructions Task Control Basic I O Unit Instructions Floating point Math Instructions Instructions Model Conversion Instructions Serial Communications Instructions Special Function Block GETID Instructions Network Instructions Double precision Floating point Instructions 180 SYSMAC CP1L CP1E Introduction Manual A 6 Difference between CP1E E N NACID type and E NOOS 1 type IE A 6 Difference between CP1E E N NALILI type and E NLILIS 1 type MELILI S type CPU Units e Difference in Functions and Characteristics ELILI type ELILIS type 2 adjusters None Function Analog adjusters BN NALILI SLI type CPU Units e Difference in Functions and Characteristics Function Analog adjusters Built in RS 232C port Built in RS 485 port Option board Terminal allocation COM allocation Transistor output type only Power supply for transistoroutputs 1 port6 signals are supported SD 1 port4 signals are supported SD RD RS CS DR and ER RD RS and CS 1 port N30 40 6081 CPU unit only N NADIEI type N NADIHIS 1 type only CIO 100 00 and CIO 100 01 1 port N30 40 60 NA20 CPU unit Cannot be mounted CIO 100 00 and CIO 100 01 correspond with different common correspo
159. unning 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 With an CP1E ELILI S type CPU unit or with an N NAOO SO 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
160. utter 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 e 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 I O allocation System Allocate relay numbers to sensors and switches Refer to 3 2 Mounting onto DIN Tracks and 3 3 Preparing the equipment Wiring Devices Equipment preparation Wire power supply and ground Wire I O devices Refer to 3 4 Power Testing CP1L Supplying power to CP 1L Test PLC operation Refer to 4 1 Preparing for Programming Preparing to write program Install USB driver onto computer Con
161. when data comparison returns equals flag data1 data2 Less than flag lt PLT Turns ON when data comparison returns data1 data2 Less than or lt P LE Turns ON when data comparison returns equals flag datal lt data2 Negative flag Turns ON when the MSB becomes 1 as a result of calculations Overflow Overflow flag me RE l Turns Turns ON when the calculation result overflows when the calculation result overflows Underflow flag P UF Turns Ael ies online when the calculation result underflows Remains ON at all times Used as an execution condition for instructions that cannot be connected directly to the bus bar Always OFF flag P OFF Remains OFF at all times 106 SYSMAC CP1L CP1E Introduction Manual A 1 Channel Relay Numbers e Clock Pulses Clock pulses are contacts that turn ON OFF at a fixed time interval 0 02s clock pulse P 0 02s 0 1s clock pulse P_0 1s 0 2s clock pulse 1 0s clock pulse xipueddy 1min clock pulse Note To enter a clock pulse or condition flag into CX Programmer first enter a contact then press the P key to select from the drop down list SYSMAC CP1L CP1E Introduction Manual 107 xipueddy gt O Areas B A 1 Channel Relay Numbers Input area 0 00 to 99 15 100 CHs Output area 100 00 to 199 15 100 CHs With CP1L or CP1E the first 1 or 2 channel s of the input and output areas starting at OCH and 100CH respectively
162. xipueddy xipueddy mM A 4 CP1L Programming Examples Time Comparison Instructions Time comparison instructions allow for easy comparisons of time E g If 0 00 is ON and the time is 13 00 00 turn 100 00 ON The hour minute and second of the current time in the CPU unit s built in clock A351 to A352 and set time D100 to D102 will be compared 0 00 100 00 6 54 3 2 1 0 J Ja 1J o o Jo 9 Set Do 0038Hex Compare seconds Compare minutes DO Compare hours Mask days Mask months Mask years Compare highlighted data 97 0 A351 Second 4 S2 D100 A352 Hour qe D101 ae on condition flag when power is turned ON 138 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM DM Area Setup The following values are set into the DM area as BCD DO 3000 30min 00sec Di Dno D2 1 D D10 3000 30min 00sec D11 0020 20hr D12 0000 D20 0000 00min 00sec D21 0010 10hr D22 0000 D30 1500 15min 00sec D31 0021 2ihr D32 0000 Open the CX Programmer main window Double click Memory in the project tree Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram r File Edit View Insert Program PLC Simulation Tools Window Help AEEA LER EEEE T QQA SE PS e B a S 4buwI o2o0sttft tL ATERS E BD 19 39 25 dr a s e e oe PI NewProject ga NewPLCI CP1L Offline ui Symbols a
163. xipueddy 132 mM A 4 CP1L Programming Examples mProgramming Example e adder Program MSKS interrupt mask set instructions will be used to assign the up specification to the interrupt input and to set the interrupt permission for enabling the interrupt inputs P First Cycle Interrupt input O CP1E Interrupt input 4 MSKS 690 100 104 Up specification for input Interrupt input O CP1E Interrupt input 4 Allow interrupt 100 02 NG output sensor input 1 100 03 NG output sensor input 2 100 04 NG output sensor input 3 0 05 HESET input SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM When interrupt input O CP1E 4 contact 0 04 turns ON the following interrupt task 140 CP1E 4 will be executed once Assignment of interrupt tasks to interrupt inputs is fixed Interrupt input O CP1E 4 will always execute interrupt task 140 CP1E 4 0 00 0 01 0 02 __ SET PASS output Sensor input 1 Sensor input 2 Sensor input 3 100 00 0 00 SET NG output Interrupt task Sensor input 1 sensor input 1 erie 4 w SET NG output Sensor input 2 sensor input 2 0 02 NG output Sensor input 3 sensor input 3 SYSMAC CP1L CP1E Introduction Manual 133 gt xipueddy xipueddy 134 mM A 4 CP1L Programming Examples BINFO e Creating Interrupt Task Programs 1 Right click NewPLC1 CP1L Offline in the project tree Se
164. y 1 Programs Pt MewProgrami 00 Je Ex Symbols 4 Function Blocks JE Bien Place the cursor at the position where the INVO02 Refresh FB is to be inserted Press the F1 key to call up the Function Block Invocation D zu E tek 2828 GR dA SEIN Ss 9 a XQ sS Ree BS GER A O Stee I3 A pa E 53 Bb zm xxi NewProject NewPLCI CP1L Offline Symbols Settings 4 Memory amp Programs A MewP 1 00 4 s o GENET Section1 FB Invocation GJ END FAL q E Function Blocks E dH _INVOO2_Refresh FDIV FIFO FIND FIX FIXD FIL FIXLD The New Function Block Invocation dialog box will be displayed New Function Block Invocation FB Instance FB Definition IND Refresh Cancel Press the Enter key 168 SYSMAC CP1L CP1E Introduction Manual A 4 CP1L Programming Examples mM T Input a name for FB Instance Press the Enter key The named FB instance will be displayed Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram H Fie Edit View Insert Program PLC Simulation Tools Window Help D c E ei ea te n dA aaa amp E Me um aXQ Sex PB Te S GS lR d O SHEL e d BE D A F baD e 4 2h E NewProject ful NewPLC1 CP1L Offline 3 Symbols E Settings 4 Memory A Programs 3 NewProgram1 00 3 Symbols ji Section1 END F Function Blocks F iwvo02 Refresh gt xipueddy 99 Connect an input contac
Download Pdf Manuals
Related Search
Related Contents
Manual - Crestron Lavatrice Waschmaschine - Alle Kingston Technology ValueRAM 48GB DDR3-1333 Solarpod 240 User Manual Philips 227E6QDSW Votre programme 2012 INSTALLATION MANUAL Minicurso De UserRPL - PET Engenharia Química Copyright © All rights reserved.
Failed to retrieve file