Home
GETTING STARTED GUIDE
Contents
1. When the computer detects CP1L the following message will be displayed b Fumul Mew 7 Found Nevv Hardvvare VVizard dialog vvill be displayed This screen vvill be used to install the USB driver The programming console is not available for CP1L On the Found New Hardware Wizard dialog box select No not this time and click Next Depending on computer environment the Found Nevv Hardvvare VVizard dialog box may not be displayed f it is not displayed proceed to step 4 Faund New Hardware Wizard Welcome to the Found New Hardware Wizard Windows vali s amp sech hor Quine and updated pohiwase by looking on your computer on en Ehe hard sars imalallao n CD er on the arces Uplate Wiel cate vta pong pisini Head our i Lan Windova eonnect be Windows Update b wth loi CO Yes thet lime only Ter now and ever ime connect a device Ho nol this ima CEE Het lo contras SYSMAC CP1L Getting Started Guide 4 1 Preparing for Programming 4 Select Install from a list of specific location Advanced and click Next Found New Hardware Wizard Welcome to the Found New Hardware Wizard Fa azar helps you mahal pahi h r UMF M PLU l pou hardware came eth an mitallation CD lt of floppy disk insert il now what d
2. a 86 SYSMAC CP1L Getting Started Guide 5 2 Adjusting Debugging Online 3 Select PLC Force On from the main menu T applicalien 1 Ch Piepiracomer epeedi HevPiiL1 No agam ecrit Diagram Dag gen LGA LI BAR RPL ST RR ow ae H rk LET Oria Shift ew AQ s ERE O KITI BARA e Oar CONDO r x pa an r q Bode 2 Bi ford Tybee E a n M PLC rca and FT RO Taki arali qaqam Check Options Ab Error kg E Fuc Chet Prog an Aare um mm suJeJboJd buibbngag pue a Note 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 flag SYSMAC CP1L Getting Started Guide 87 suJeJ6oJg buibbngag pue BuuejsueJ a 88 5 2 Adjusting Debugging Online 5 2 3 Changing Timer Settings 1 2 3 Timer settings can be changed to better suit operating conditions Change CP1L to the MONITOR or PROGRAM operating mode Double click the timer setting to be changed The Set Timer Counter Value dialog box will be displayed Input the new value Click OK The timer setting will be updated Set Tim
3. Courdar Coyeiar rember Sel waling SYSMAC CP1L Getting Started Guide 65 4 5 Inputting Programs 4 5 7 Inputting Differentiated Up Contacts 1 extending to de escalation motor contact 10001 D Lo E001 1 O08 G 1004 arb Pe egcalalis Stop buttan zal ation m E iR Clete hun hip urbe m Ge 368 0 mera srra vere eee eee Press the Enter key A space for inserting an OR circuit will be created suJeJ6oJd DuneoJ2 ES Press the W key The New Contact OR dialog box will be displayed Input address 3 Press the Enter key The Edit Comment dialog box will be displayed While referring to 4 2 2 Ladder Programs enter a ladder program Ercalatiz n molor Pe escalsion motar 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 E DDA I n m D 100 04 Shep bulan Ea arealatiz Upped LS Caen batiar D sno ci Local tian m rz buton e von D vererem 6 Double click contact 003 The Edit Contact dialog box will be displayed 1 Edit Contact 66 SYSMAC CP1L Getting Started Guide Da e seal atiam moba 4 5 Inputting Programs f Click Detail Edit Contact Sumbol Information Mesi Global Address or 0 03
4. nombar Timi Ud b al n b E 2 i H Peer reru rera a rrr 3 mnmmummauammmmmm BmNmummummmummmmmmmmmmmmmmmmmmmmmmmmmmm mmmmimmmmmm ummmmmmmmmmm r r 5 a Next input an auxiliary area SYSMAC CP1L Getting Started Guide 63 suJeJ6oJd DuneoJ2 ES 64 4 5 Inputting Programs 4 5 6 Inputting 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 Then press the Enter key while the Edit Comment dialog box is up For details on inputting a contact refer to 4 5 2 Inputting Contacts us Light dete vi Lila a nds Aura 2 Press the Enter key A space for inserting an OR circuit will be created Tima Tima Timai number rE we oe Laurier Coy mambar Sat wale SYSMAC CP1L Getting Started Guide Vim Timar number ik ra Coustei C aust r Courier ham b t Sak wally 4 5 Inputting Programs 3 Press the left arrow key 4 Press the W key The New Contact OR dialog box will be displayed 5 Input address A20011 Press the Enter key New Contact OR suJeJ6oJd bungal EN Timapi T li gi Fimei humbar Sak al r q le c Light
5. ASIE NS 42O es AA 46 4 1 on Qodu Beh MA TERE ununu aEEM dad eet vrrHH NU PS Ep Note For details on cycle time refer to A 3 2 CPU Unit Behavior SYSMAC CP1L Getting Started Guide Appendix This section briefly explains channel and relay numbers instructions and the inner workings of CP1L This section also provides examples of applications utilizing CP1L functions such as pulse functions communication functions and special instructions A 1 Channel Relay Numbers 94 A Z EI SUCTION Sie so me AA a 99 A 2 T 5S mq IsttacdorSm es eed nem a 99 A 2 2 Basic I O Processing Instructions 100 A 3 Inner Workingsiok CP Tesoro Td 103 A 3 1 Inner Structure of CPU Units 103 A 3 2 AA n 105 A 4 CP1L Programming Examples 112 A 4 1 Using Adjusters to Set Timers 112 4 2 Capturing SNo Signals o eso dE 115 A 4 3 Using Interrupt Inputs to Accelerate Processes 119 A 4 4 Using Calendar Timers 125 A 4 5 Using Rotary Encoders to Measure Positions 130 A 4 6 Using Servo Drivers for Positioning 135 A 4 7 Using Inverters for Speed Control 1 141
6. 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 e Locations subject to shock or vibration Locations exposed to direct sunlight Locations subject to water oil or chemical reagent splashes buuin pue Sununoly co Shield the system sufficiently when installing in the following locations Locations subject to static electricity and other forms of noise Locations subject to strong electromagnetic fields e Locations subject to possible radioactive exposure e Locations in close proximity to close to power lines m Installation into Cabinets and Control Panels When installing CP1L into a cabinet or control panel ensure adequate environment resistance as well as sufficient accessibility for operation and maintenance e Temperature Control The ambient operating temperature for CP1L is 0 to 55 C The following precautions apply Provide adequate space for air flow e 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 20 SYSMAC CP1L Getting Started Guide 3 1 Installation Notes 1 Control panel 2 Fan 3 Louver Accessibility for Operation and Maintenance buli pue Sununoly m
7. SYSMAC CP1L Getting Started Guide Buneag EN 59 4 5 Inputting Programs 4 Press the Enter key Made Light dada ct Timar iat Area suJeJ6oJd DuneoJ2 ES 5 Press the down arrow key 3 times When the cursor is positioned on the next rung timer instruction input is complete Light feta efi Timas Minds Area TA NN NA NA AN 1 CAC quda bi uGu umummummumumummumumummumumummumumummumumuummumuumumumuumuumuumumumumuumuumumumumuumuummuummumummumumummummumummmmm x E Area Time i B Timai Timad numbai L Li S bwvalus H B J a a a L r PRPS PPPS Pe Pee Next input a counter instruction 60 SYSMAC CP1L Getting Started Guide 4 5 Inputting Programs 4 5 5 Inputting Counters 1 Press the C key Input contact 004 Then press the Enter key while the Edit Comment dialog box is up For details on inputting a contact refer to 4 5 2 Inputting Contacts Coc Tu mmm sx 2 Press the I key The Nevv nstruction dialog box vvill be displayed Mow Instruction CNT 0 8 is entered The Edit Comment dialog box is displayed with the I O comment already entered CNT 0 8 indicates a decrementing counter starting at count 3 with a counter completion flag of C0000 SYSMAC CP1L Getting Started Guide Buneag EN 61
8. Type in the pagod in find Ladder Programming Workspace The use of a Ladder Diagram m generally ihe sama for all PLC series units s Creating a PLC Proqram s PLC insmuc tion NO Comment View a Function Block Ladder Editor ES A ladder diagram cannol b dreclly tracreferred into The PLC CX Programmer converts ie compiles the ladder diagram indo mnemonic code which the PLC can nun Cx Programmer also allows you lo wew and edit the c de directly if nequired 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 48 SYSMAC CP1L Getting Started Guide 4 4 Using the Help From CX Programmer 1 Select Help Help Contents from the main menu CX Programmer Help will be displayed Untithed O Phan Hra PLEC Mee roe ait Seen Dap azal 7 Fla Ede wem yd AC Popma Pack Winder D D nan xum ama 0 0 550 777 o Ge bratruzemr 2 1 L a GO m m G eB 5Wylrrr Banana a mE EE S enii ara Hy oh 24 EH Paa paz i een T f ra Symi m Referencing PLC Instruction Sets For details on instructions used in ladder programs refer to PLC Instruction Sets C5 Series PLE Instruction Sets EB c Hide
9. m VVriting Relay Coils eOUT 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 Getting Started Guide gt xipueddy 101 xipueddy mM A 2 Instructions eSET 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 000001 000102 In the above example relay coil 000102 is turned ON by the SET condition and OFF by the RSET condition 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 Note KEEP 011 KEEP RELAY Instructions KEEP instructions make relay coils function as keep relays This allows for easy construction of self maintaining bits 000000 SET input KEEP 011 000001 RSET input 000103 j 000200 000103 O 000000 o C11 000001 n n 000102 m x Ignored In the above example relay coil 000103 is turned ON by the set condition and O
10. 152 SYSMAC CP1L Getting Started Guide 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 Hex Rotation direction Normal 0 A 4 CP1L Programming Examples mM P On WO 00 Contact A W0 01 Contact B W0 02 Contact C Contact Z P First Cycle First cycle flag Too W1 00 Start W1 01 Stopped BSET 071 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 Er 6000 100 60 00 2 xipueddy gt Reset data interface work area between FBs when operation is started Block settings Data to transfer convert Lower CH No Upper CH No Note For floating point data secure regions for 2CH SYSMAC CP1L Getting Started Guide 153 xipueddy 154 mM A 4 CP1L Programming Examples MoveV INVO32 MoveVelocityHz BOOL EN a BOOL ENO BOOL Velocity BOOL INT NodeNo BOOL Always ON flag 1 nverter slave unit 1 VV1 00 Start Execute Command Aborted REAL BOOL DO Frequency 4 velocity 7 m INT VVORD D2 Direction Direction l 77 4 7
11. Changing timer counter SV O A Changing timer counter PV O Changing memory PV 5 1 3 Transferring Programs A program created with CX Programmer can be transferred to CP1L buibbngag pue BuuejsueJ a 1 Select PLC Transfer To PLC from the main menu The Download Options dialog box will be displayed application 1 CX Programmer Stopped Peri C1 Meettropram Section Diagram Er at View kest GO Progra Window Dai of Sami n AR udu bi di a AQ us B G EHUELE kk wi m 8 Aa bd a eo OFF SOM UR Operating ods j Pe Hirer aries eLa ER d K9 Compl PLC Programs F7 l Takla ard Li P Error ing PLC Chek Program amp esignments R a Furx lar Flex i Firmar y Gg mc a G SYSMAC CP1L Getting Started Guide 5 1 Going Online 2 Click OK A dialog box will be displayed to confirm the transfer Download Options ia L Oga Special Und Setup fel Symbol ct Core L Pra gia index Tramafes To Froe Comment memory fs Tremabet Hes of ali tark Note For details on the transfer options refer to SECTION 9 Transferring Monitoring Debugging Programs of CX Programmer Operation Manual VV446 3 Click Yes CX Programmer v7 1 buibbngag pue BuuejsueJ a Tete ae en of the connected PLC Do you wish bo continue ve iL 1
12. 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 N Caution When power is ON or has just been turned OFF do not touch the power supply I O terminals or the surrounding areas Doing so may result in burns After turning the power OFF wait for the unit to cool down sufficiently before touching it mproving 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 TAN Power Line 200mm min 200mm min e Properly ground the mounting plate between the unit and the mounting surface SYSMAC CP1L Getting Started Guide 27 m 3 1 Installation Notes Mounting For heat dissipation mount CP1L in the orientation shown below B External Dimensions BuuiM pue Sununoly c 11 hm url CZ Ca B DIN Track Secure the DIN track onto the control panel using at least 3 screws Use M4 screws at intervals of 210mm 6 holes or less Screw torque is 1 2N m For details on installing CP1L refer to SECTION 3 Installation and Wiring of CP Series CP1L CPU Unit User s Manual W462 28 SYSMAC CP1L Getting Started Guide 3 2 Mounting onto DIN Tracks 3 2 Mounting onto DIN Tracks This section explains how
13. l Lower 15 007 008 009 q 11 4 7 2 Inputting Rung Comments Comments can be added to each rung of a ladder program ES 1 Double click the rung header for the rung you wish to add a comment to The Rung Properties dialog box will be displayed Lib dabadi Ticini n n ioe Aeg Tamar al valua uu 5 Light datecti Counter TOODO 000 Caunter sui bai Tirni cawi am fal value Counta P Fimt Cyola Finit Cycle Flag 2 Onthe General tab input the comment into the comment field Rung Properties dal General Annotations Hung i Timer 5 seconds Delete 72 sYSMAC CP1L Getting Started Guide 4 7 Editing Programs Close the Rung Properties dialog box The entered rung comment will be displayed on the ladder program Timer I imei Timer number Bat wales Counter E umi l i Et sal na 4 7 3 Editing Rungs Created ladder programs can be edited m Deleting e 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 1 Click a rung header The whole rung will be selected 4 Nats ie re TI Light il b cli Tice Mec n iph An Tens Tim er Tim Saf valua LE oz L Light datert Counter T H Cauntar C
14. 15 11 0 LD 00 TO ocH 15 7 0 IOUT 100 00 100 CH E 15 11 0 HA 1CH ocr pg IMOV 1 101 o For CP series expansion I O units use the IORF instruction xipueddy 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 1 0 units D1 Starting CH number D2 Ending CH number I O channel data between D1 and D2 will be refreshed IORF instructions take a relatively long time to execute 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 SYSMAC CP1L Getting Started Guide 107 xipueddy NI A 3 In
15. A 4 8 Using Inverters for Speed Control 2 148 A 4 9 Exchanging Data between CPT1Ls 158 A 1 Channel Relay Numbers In CP1L 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 15 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 0 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 Area Channel Relay In CX P In CX P I O area 00 to 199 0 to 199 00000 to 19915 0 00 to 199 15 1 1 link area 3000 to 3063 CH 3000 to 3063 300000 to 306300 3000 00 to Bid 3063 00 area Serial PLC link area 3100 to 3189 CH 3100 to 3189 310000 to 318915 3100 00 to 3189 15 Work area 3800 to 6143 CH 3800 to 6143 380000 to 614300 3800 00 to 6143 00 Work area VVOOO to W511 CH VVOOO to W511 VVOOOOO to WO 00 to W511 15 W51115 For 14 20 point I O units DO to D9999 D32000 to D32767 xipueddy gt Note The work words in CIO Area may be assigned to new functions in future versions of the CPU
16. Back Foward geash Fayogas Contents 2 SEQUENCE INPUT SEQUENCE mi yu eda T p 1 Fire MEMORY EAILURE DIA amp GHOSIS BLOCK PROGRAM bel ch ICAT STAING PROCESSING CUHTHUL Weer Derive THER Sees LSS FS E PL ET ED 0 Eu B I la h m SYSMAC CP1L Getting Started Guide bungal EN 49 suJeJ6oJd bungal ES 50 4 4 Using the Help From CX Programmer 1 Select Help Instruction Reference CS CJ Series and CP Series from the main menu CP Series PLC Instruction Sets will be displayed mith CE P rogrammer How C1 Nea iomal tection Diagram D Fia bi W bart ME ayra Mi Wika ON F M D E dl rma Ne Contents nin a mc E I ENENEN m uurr TARRE dapan pe OMRON Ubrary Falerenca eWhile Creating Ladder Programs 1 While creating a ladder program instruction click Instruction Help on the New Instruction dialog box CP Series PLC Instruction Sets will be displayed T New Instruction Sumibol Intermation Note When selecting a special instruction Instruction Help will be displayed SYSMAC CP1L Getting Started Guide 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 When using CX Programmer for the first t
17. P DM d WORD DM area specification 1 INT amp 9000 1 AreaNo Decelerate to stop _INVO60_ Stop BOOL BOOL EN ENO BOOL Done P On INT Always ON flag 81 NodeNo nverter slave unit 1 BOOL BOOL VV1 01Stopped 7 Execute 117 PDM 7 IJ WORD DM area ArealD specification 4 INT amp 9000 q AreaNo Refresh INVOO2 Refresh P First Cycle BOOL BOOL EN MSGAreaNo ENO First cycle flag HCCC Unitselect BUSY PLC used select CP1L nitoelec amp 1 INT INT Select serial port PortNo NodeAddr 00000002 DWORD BOOL Inverter slave unit used Scanlist Error 00000000 DWORD WORD Inverter CIMR V7 ModelTypeM ErrorlD V A amp 10 UINT Interval counter IntervalCount 1 P DM WORD DM area ArealD specification INT 89000 AreaNo b o a bi P DM VVORD DM area MSGaArealD specification NT amp 9100 UMP SYSMAC CP1L Getting Started Guide W10 00 Matching speed W10 01 Force quit W10 02 MoveFB error W10 03 Deceleration complete W10 04 StopFB error 1 Setthe same area to use as FB data interface W7 00 Communicating W8 Inverter slave unit communicating or done communicating W9 INV error code Inverter slave unit used 7 address 1 321 OBIT nverter CIMR V7 0 CIMR F7 1 31 321 O BIT A 4 CP1L Programming Examples mM B INFO eUsing Smart FB Library 2
18. dpa oOGH UYLK C B YY YUM Bree ngu os EE tail anapun HY EM EN ang FL pe subi He Pura Blei h kaa Comment Pog am Sues CogmentiProgram 2 Specify the save location and input a file name Click Save The CX Programmer project file will be saved Save CX l rogrammer File Save ina LJ program SYSMAC CP1L Getting Started Guide Huneal EN 69 4 6 Saving Loading Programs 4 6 3 Loading Programs Load a saved ladder program into CX Programmer Programs are loaded in groups for each project 1 Select File Open from the main menu The Open CX Programmer Project dialog box will be displayed Untitled CX Programmar gj Edit View Insert PLC Program Tools Window Help m MEE TN Asu m L 14e 4 amp tL VEB Vu 3 09 2 Specify the save location and file Click Open The CX Programmer project file will be opened and the saved programs will be displayed suJeJ6oJd DuneoJ2 ES Open CX Programmer Project application 1 T SYSMAC CP1L Getting Started Guide 4 7 Editing Programs 4 7 Editing Programs Created ladder programs can be edited in CX Programmer I O comments and rung comments can also be added or edited 4 7 1 Editing 1 O Comments O comments can be added and edited via a list of addresses 1 Select Edit I O Comment from the main menu TI IBEESSUI Tu INMSIL GENNLE UT TIT LINT TRNI
19. time use a high speed counter E System Configuration eWiring Example Sensor input 0 04 Counter reset input 0 01 O omron SYSMAG CPTL CP1L PERIPHERAL BATTERY Count complete 100 00 116 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples m B PLC Setup 1 2 3 On the PLC Settings dialog box set the sensor input 0 04 to Quick Open the CX Programmer main window Double click Settings in the project tree Untitled CX Programmer HewPLCT HaewProgram1 5ection1 Diagram OZ Gs mETSORnRS AXTVv and m 24 il Ze JEFF Q GE amp vt ml a S 0 49 36 11 31 93 li m NGWPLCI CPIL Offline 22 Symbols Bra and ur son V Proqrame Gil HevProqram 00 5 Symbols E section I END YF Function Block The PLC Settings dialog box will be displayed PLC Settings NewPLE1 Fle Options Help State Settings Tenge ingua consent Serial Pod 1 Peripheral ulitin input Puke O Startup Hold Mode f Foe Statue Hold Bit 7 Program F 10M Hold ia Monitor Bun Startup Data Mead Read DH kem Hath mamar f program n n Click the Built in nput tab SYSMAC CP1L Getting Started Guide gt 117 xipueddy xipueddy mM A 4 CP1L Programming Examples 4 On t
20. 0 2s 1s 1 0s clock pulse 0 2s clock pulse m SYSMAC CP1L Getting Started Guide xipueddy gt 97 xipueddy 98 m A 1 Channel Relay Numbers 0 00 to 99 15 100 CHs Output area 100 00 to 199 15 100 CHs With CPTL the first 1 or 2 channel s of the input and output areas starting at OCH and 100CH respectively are reserved by the CPU unit As expansion 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 1 0 Units CPU unit Reserved CH Number of Expansion I O Input area Output area Units Allowed 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 1 0 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 SYSMAC CP1L Getting Started Guide A 2 Instructions m A 2 Instructions CP1L has a rich instruction set This section e
21. 4 5 Inputting Programs 4 Input Counter as the I O comment Press the Enter key Timar Timar Timar mumga l xal n suJeJ6oJd bungal ES 8 y 1 IN 3 kp Light deberi a CHT E E and rrara erria noon Cune number s R a PI el L a H 5 mummummummummummummummum Next input a reset input for the counter instruction The timer contact TIM 0000 will be used as the reset input 5 Place the cursor below the contact created in step 1 ada Presa Tima Tim Timi number Sub wal numb Sai walue 62 SYSMAC CP1L Getting Started Guide 4 5 Inputting Programs 6 Input contact T0000 Wode rea Tiii Tirad Tithe numh r Sat wale I z k s Courter 5 Counter Cougntar em bad Sal Buneag 7 Press the down arrow key 2 times When the cursor is positioned on the next rung counter instruction input is complete Wode Mea Lighe dada oh T imet wo ok Area 1 4 Tiii Viri numb amp r Sub valra 7 Oe eee eee eee eee eee eee eee eee eee ee ee m E N H N mmummuumummmmM 2 1 a Light data eti Coumjer TO Coweta
22. A 4 CP1L Programming Examples mM Function Blocks 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 function 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 T 5 m m m m m A1 B1 X1 Inputs An Bn Xn Outputs An Bn Program elements Processing algorithm i m 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 xipueddy gt Device 1 Control Device Control Device Control EN ENO A Device Control EN ENO Insert function block instance into ladder program m mom um Um um Gm Gm Gm um m um ew eee eee eee m m Es The defined function block can be used in ladder programs as function block instances SYSMAC CP1L Getting Started Guide 149 xipueddy mM A 4 CP1L Programming Examples E Operation Overview The example for A 4 7 Using Inverters for Speed Control 1 will be used again 60 00Hz 00H 50 00 2
23. A270 is greater than 3550 ODDE Hex SYSMAC CP1L Getting Started Guide 133 xipueddy 134 mM A 4 CP1L Programming Examples E Programming Example 2 Use a CTBL register comparison table instruction to execute an interrupt process when the target value is achieved Slowing 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 A 0 Im W0 02 gt co o o 31515 2 Softvvare reset for high speed counter CTBL 882 Specification for high speed counter 0 Start comparison vvith target Lovver CH of comparison table Set motor run 100 00 After motor stops check the stop position W0 02 100 02 Stop position is normal if the 310 high speed counter A270 is between 3500 ODAC Hex and 3550 ODDE Hex A270 Normal stop position ODDE Motor stopped vo Stop position is in error if the high speed counter A270 is greater than 3550 ODDE Hex gt 325 A270 ODDE Error stop position When the PV of the high speed counter matches target value 1 3000 interrupt task 04 will be executed Interrupt task kaa 04 SET Set motor slow 100 01 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming
24. CP1L Getting Started Guide 5 2 Adjusting Debugging Online m Monitoring Specific Addresses Note O values can be monitored by specifying their address Select PLC Monitor Monitoring from the main menu Select View Windows Watch from the main menu Input an address The I O value will be displayed For Boolean values O indicates OFF m PU Hama Mame Add DaT FE Uraqan al n irsi i1 ae BE T NG lira d Heci ci Li BO A uper LI e Input the address as the channel followed by a period and the bit For example O CH 04 bit should be input as 0 04 e 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 SYSMAC CP1L Getting Started Guide sweibo g Buibbngag pue a 85 5 2 Adjusting Debugging Online 5 2 2 Force Setting Force Resetting 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 Note 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 MONITOR or PROGRAM operating mode 2 Place the cursor on the contact to force set mi EE buibbngag pue
25. E g Reading INV002 Refresh12 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 Untitled CX Programmer MewPLC1 NewP rogram Section Diagram TOC MUN ALB Close tke Oe EH Bl save cules 10 42 16 T a Save Ar Ja l L Print Preview 1 AAA AHAN T 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 ziki fe TNWOO2_Refreshi2 cxf mj INY201 ReadParameterli cxf 23 INVOU32 MoveVelockyHz1i cxf 2534 INV203 ReadAxisErrorll c f 2 INVO033 MoveVelockyRPMI11 cxf Z INV401 WriteParameterll cxf 24 INVUbU Stopll cxf 224 INVBUU Settomm11 cxf _INVOGO_Reset 11 ex INV200 ReadStatusl1 cxf Filename INVUUZ Hetresh1Z Files of tyne Function Block Librar Files c d Lancel SYSMAC CP1L Getting Started Guide gt xipueddy 155 xipueddy mM A 4 CP1L Programming Examples 3 Select INV002 Refresh12 cxf Click Open INVOO2 Refresh is added under Function Blocks in the project tree Untithed CE Programmes Hawi Noe togram 1 Section Map azal Daun Xum MUT TW ad AQ 9 EZ Bh bA WWE GARROT Gn EC we nn P
26. Examples mM When the PV of the high speed counter matches target value 2 3500 interrupt task 05 will be executed P On Interrupt task 05 eDM Area Setup The comparison table for the CTBL register comparison table instruction should be allocated to DM D600 through D606 D600 0002 Items compared 2 D601 OBB8 Target value 1 3000 BCD BB8 Hex D602 0000 Reset motor run Reset motor slow Reset motor stopped D604 ODAC Target value 2 3500 BCD DAC Hex D605 0000 D606 0005 Target value 2 Interrupt task No 5 D603 0004 Target value 1 Interrupt task No 4 A 4 6 Using Servo Drivers for Positioning m Functions Used ePulse 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 E Operation 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 T SYSMAC CP1L Getting Started Guide gt xipueddy 135 xipueddy mM A 4 CP1L Programming Examples e Origin Search An accurate origin search that 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 prox
27. If the following dialog box is displayed click Yes CM n pprarmmer v 1 blak n sure thot there arent any problems F Ehe PLC k stopped ba v v li ba etch Ehe PLC Into program made Lele The transfer will begin The Download dialog box will be displayed SYSMAC CP1L Getting Started Guide 81 5 1 Going Online 4 Caution buibbngag pue BuuejsueJ a 2 Click OK Transferring of the program is now complete Download Program Download to PLC MewPLCT Download successful BRREHEHEHEEHEHHEHEEEHEHEHEHEHEHEHEEHEEEBH 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 Confirm that the facility will not be affected by changing to MONITOR or RUN mode Select PLC Operating Mode Run from the main menu A dialog box will be displayed to confirm the operating mode change Cae m oc KA LU a OQ BEFELE ool Rae Naa JL ruq D Eee Fc Morir i Eg Corp B PLA Pra adi FT jefa frog we Chuck Optra b Error on PLC Ceci Prag am Agana EL N dem li Boch Hinay J l exa Hindi ee Pangi Tine TF ne zu D naaa Te H Hy C b ER ps j li a RE Symbol Click Yes The sy
28. Refreshing 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 2 CH I O area Output 2 CH CP series expansion 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 s built in normal I O and CP series expansion 1 0 units at one of the following 3 timings Cyclic refreshing Execution by instructions with immediate refresh variation Execution by an IORF instruction 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 106 SYSMAC CP1L Getting Started Guide A 3 Inner VVorkings of CP1L Im e Execution by Instructions with Immediate Refresh Variation Note 1 Immediate refreshing is possible on the built in I O area only 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
29. SAN Quuuyur i o2BU TLEK mz METFET nad sa am Na 005 S EHE Ela a dM eC ee Mama eddron ox Vahan Comment Por Fisip preis FI BiinaPLC Fist id Tir nung D 0 ton LM 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 Getting Started Guide 53 suJeJ6oJd bungal ES 54 4 5 Inputting Programs 4 5 2 Inputting Contacts Input a contact For details on ladder programs refer to 4 2 2 Ladder Program E inputting Contacts 1 Press the C key The New Contact dialog box will be displayed 2 Input address 4 Press the Enter key 4 is entered The Edit Comment dialog box will be displayed New Contact 3 Input Light detection sensor as the I O comment Press the Enter key A contact representing input from the light detection sensor will be displayed on the ladder program Next input an OR circuit SYSMAC CP1L Getting Started Guide 4 5 Inputting Programs B Inputting OR Circuits 1 Place the cursor on the program Press the Enter key A space for inserting an OR circuit will be created Light detection m LL EE ER c Press the W key The New Contact OR dialog box will be displayed _ New Contact OR zi Detail gt Cancel Input address W0 Press the Enter key
30. SYSMAC CP1L Getting Started Guide gt 145 xipueddy xipueddy A640 01 Execution normal flag A640 02 Execution error flag mM A 4 CP1L Programming Examples Flags for Modbus RTU Easy Master Function Serial Port 1 A640 00 Execution bit O A Turn the A640 00 execution flag ON to send command data D32300 and later For details refer to DM Area Setup on the next page Channel Bits Setting D32300 Slave address 00 to F7 Hex ee D32302 15 to 00 Number of communication data bytes 0000 to 005E hex D32303 to D32349 1 15 to 00 Communication data max 94bytes B When a command has been sent successfully A640 01 execution normal flag is turned ON and data is stored to responses D32350 and later Bits Setting T Dum C When a communication error occurs A640 02 execution error flag is turned ON and the error code is stored to D32352 146 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples mM eDM Area Setup DM Fixed Allocation Words for Modbus RTU Easy Master DM settings from D32300 to D32305 are set before the execution of the ladder program D32306 and D32307 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 Slave FUNCTION Communication Setting data bytes Communication data D32303 to Max D32349 D32300
31. Speed A Stopped Contact A Contact B Contact C Contact Z ON 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 E System Configuration The system configuration for A 4 7 Using Inverters for Speed Control 1 will be used again CP1L and CIMR V7 an OMRON inverter are connected by RS485 for frequency and start stop control CP1L CIMR V7 CPIW CIF11 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 14 20 point CP1L with a user memory of 5K steps use a 30 40 point CP1L with a user memory of 10K steps for this example For details on wiring and on the settings for CP1W CIF11 CIMR V7 and CP1L refer to System Configuration of A 4 7 Using Inverters for Speed Control 1 150 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples mM E Programming Example Function 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 No Status refresh INV002 Refresh INVOO2 Refresh BOOL BOOL EN ENO BOOL INT UnitSelect BUSY INT PIT NodeAddr BOOL DWORD Scanlist Error DWORD d M
32. THAT THE PRODUCTS WERE PROPERLY HANDLED STORED INSTALLED AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION ABUSE MISUSE OR INAPPROPRIATE MODIFICATION OR REPAIR Application Considerations B SUITABILITY FOR USE OMRON shall not be responsible for conformity vvith 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 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 Systems machines and equipment that could present a risk to life o
33. Units Be sure to use the work words in W000 to W511CH first 94 SYSMAC CP1L Getting Started Guide A 1 Channel Relay Numbers Im eChannel 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 sum of ON bits are calculated and expressed as a single digit MSB LSB Most Significant Bit Least Significant Bit A a 19 0 0200 007 Content 1111111 114 T 4 1 ON 0 OFF The above channel will be expressed as OF7C Hex e Constants Notation Constants used in CP1L instructions are represented as follows 0000 to 9999 BCD Timer counter values BCD arithmetic instruction etc 0000 to FFFF Hex Comparison data for comparison instructions transfer data BIN arithmetic instructions etc xipueddy gt amp O to 65535 Unsigned decimal notation Available in certain special instructions only Can be loaded into CX Programmer by converting to and from hex digits nstruction Execution Conditions There are 2 types of instructions cyclic instructions and differentiated instructions e Cyclic Instructions The instruction is executed on each cycle for as long as the execution condition is ON Example W00000 MOV 021 each cycle for which work area W00000 is H010 ON data in holding area HO10CH is transferred D00010 ito DM D00010 1 Differentiated Ins
34. and memory cassette When initiated from CX Programmer data is transferred from RAM or the built in flash memory to the memory cassette e When the unit is powered ON data is transferred from the memory cassette to the built in flash memory SYSMAC CP1L Getting Started Guide 103 xipueddy xipueddy m A 3 Inner Workings of CP1L 4 5 6 7 8 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 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 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 and minimum cycle time settings For details on configuring PLC set
35. check for errors in the program 1 Select PLC Compile All PLC Programs from the main menu Untithed CE Pragrammzis NpLC1 AAreopan Section aga r x P Ma Edi Wem Feet DO Peas Took Window Help a Sx D zu m atone Chr ATA 1 xci m lma be amp auo BEL 11 16 51 naaa oda 5 4 NI MEM on fe Lal IG Nadama Ii 10 g z CTTO 20 Tabi ardi xara Check Opera a Sosa Mle al n n ahi aa The compilation is started When the compilation is complete program check results will be displayed in the output window 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 R il FT m LE HeviLET PLC Model TTH Xi T rim H zi EH 11 S n bur hi Sapte eas EM aa LC 1 AT Tha pecca hirea ban checked ahs ha peep ieee daa p r das iq Let Fa 1 4 qid M t sa Fries Ls Por Ha iH rung LIB l HUM SYSMAC CP1L Getting Started Guide 4 6 Saving Loading Programs 4 6 2 Saving Programs Save the created ladder program Programs are saved in groups for each profect 1 Select File Save As from the main menu The Save CX Programmer File dialog box will be displayed Untithed CP NEL uM UI IDEM nC T 22 AUT te area EPI PRAY ga
36. displayed 3 Select the area and its region for the transfer Click Transfer to PLC The data will be transferred SYSMAC CP1L Getting Started Guide 129 gt xipueddy xipueddy B Functions Used High Speed Counting by Built in Input mM A 4 CP1L Programming Examples A 4 5 Using Rotary Encoders to Measure Positions 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 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 E Operation Overview A sheet feeder will be regulated to feed constant lengths in a given direction i e for vacuum packing of food products 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 High speed counter 7 measurement pulse Pulse A270 Ladder program turns the high speed softvvare 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 130 SYSMAC CP1L Getting Started Gu
37. months Mask years Compare highlighted data 15 9 7 0 A351 Second 4 52 D100 A352 m D101 R on condition flag when power is turned ON SYSMAC CP1L Getting Started Guide xipueddy gt 127 mM A 4 CP1L Programming Examples eDM Area Setup The following values are set into the DM area as BCD 00 3000 sominoosee o wo D20 0000 00min 005 D30 1500 15min O0sec Open the CX Programmer main window xipueddy 2 Double click Memory in the project tree Untitled CX Programmer HewPLCT HewProegram1 5ection1 Diagram JD BR 50 x ola SF M asg s amp Tis Bof e 3r 1 oc amp 8 amp x lm 64 E ss 2 173 157 1 77 33 77 e 33 v a Hen Prolect BR NewPUCI CPIL Offline seg ss Ps gg PPS SS SS DURO unuduldu igi La i z ga 128 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples m 3 Double click D in the data area workspace The PLC data table will be displayed H PLC Memery Mewerc 0 lalalala lg lad mj alalay BEE RA MED EA DN 4 5 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
38. port Used for connection to a computer Computers can be used for programming and monitoring Analog adjuster Rotate to adjust the value for auxiliary area A642CH to within the O to 255 range Use to change timer and counter settings without using a programming tool software External analog settings input connector Takes an external input between O and 10V and changes the value for auxiliary area A643CH to a value between 0 and 256 This input is not isolated DIP switches 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 Maintains the internal clock and RAM contents while the power supply is OFF 14 SYSMAC CP1L Getting Started Guide 1 2 Part Names and Functions 7 Operation indicators Indicates the operating status of CP1L Indicated statuses include power status operating mode errors and peripheral USB communication status 8 Power supply ground and input terminal block Used to connect the power supply line ground line and input lines 9 Input indicators Lit when the corresponding input terminal contact is ON 10 Option board slot Used to install an RS 232C option board 16 or an RS 422A 485 option board 17 14 20 point I O units may have 1 serial communication option board installed 30 40 point I O units may have up
39. 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 E ERRORS AND OMISSIONS The information in this manual has been carefully checked and is believed to be accurate however no responsibility is assumed for clerical typographical or proofreading errors or omissions PRECAUTIONS This section provides general precautions for using the CP series Programmable Controllers PLCs and related devices The information contained in this section is important for the safe and reliable application of Programmable Controllers You must read this section and understand the information contained before attempting to set up or operate a PLC system 1 Intended Audience 10 2 General Precautions 10 3 Safety Precautions 10 4 Application Precautions 10 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 in charge of installing FA systems Personnel in charge of designing FA systems Personnel in charge of managing FA systems and facilities 2 General Precautions NWARNING The user must operate the product accor
40. then transfer the program Change CP1L to the MONITOR or PROGRAM operating mode Click the rung header of the rung you wish to edit N 3 Select Program Online Edit Begin from the main menu The grey shading in the diagram workspace will disappear and the program becomes editable T applicalien 1 CX Pragnammes lFunningl Nos 1 Nees or amni Section Diagram Dg E y Li e corde ame m R um fog oD a QQ Si m Bl etter rg a 2 eae s M CL eee Pn KO Talin are ni Seta Errar la SYSMAC CP1L Getting Started Guide sweiboig Buibbngag pue BuusJsueJ a 91 suJeJ6oJg buibbngag pue BuuejsueJ a 92 5 2 Adjusting Debugging Online 5 Select Program Online Edit Send Changes from the main menu The edited rungs will be transferred to CP1L applicalien 1 CE Programme s lhunningl dew Hee nar m1 Section Sapa Du m ala So A Wd rr a Bp ehe ME e PLCILORR Pembe JO Taki ard Unit Sears Setting Ib mores 5 2 6 Confirming Cycle Time Change CP1L to the MONITOR or RUN operating mode 2 Click the diagram vvorkspace Cycle time will be displayed on the status bar applizalian T CX Preprameser lkinin heel C3 Bos rogram Section Diagram T Fit Edt Wem iremt LC Program boi Wake Heb DEM ROR Reo AE te AA TA 2
41. writing of data from and to the accessing service memory cassette Service time is separately allocated for the peripheral USB port serial port and communication port services By default 4 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 108 SYSMAC CP1L Getting Started Guide A 3 Inner VVorkings of CP1L m B Cycle Time CPU units process data in cycles starting with Overseeing processes and ending with Peripheral services eCalculating Cycle Time The cycle time is calculated as the sum of the following processing times Cycle Time Overseeing Processes Program Execution Cycle Time Calculation I O Refresh Peripheral Services Overseeing Processes Details Processing Time and Variation Factors Checks I O buses 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 execution times times xipueddy gt For details refer to SECTION 4 Instruction Execution Times and Number of Steps of CP Series CP1H CP1L CPU Unit Programming Manual W451 Cycle Time Calculation Processing Time and Variation Fa
42. 032301 D32302 032303 D32304 D32305 032306 D32307 vaw o0 o1 00i 10 00 1 09 00 ot 00 i 02 04 00 of oz si d Data for next register e g set 60 0Hz 0258 Hex for No 0002 frequency command Inverter slave address 1 Hex Inverter data write 10 Hex Data for starting register e g set 0001 Hex for No 0001 operation command see below For number of bytes use 9 bytes from upper D32303 to upper D32307 Attached data size in bytes 4 4 bytes from lower D32305 to upper D32307 Number of registers data is written to 2 2 data No 0001 and No 0002 on register 2 Register 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 CIMR V7 Multifunction input 1 1 ON Multifunction input 2 1 ON 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 Getting Started Guide xipueddy gt 147 mM A 4 CP1L Programming Examples A 4 8 Using Inverters for Speed Control 2 B Functions Used Smart FB Library Smart FB Library smart
43. 1M units without the aid of a program E Operation 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 Boiler B Boiler C A xipueddy E System Configuration eWiring Example Boiler A CP1L Master Boiler B CP1L Slave No 0 Boiler C CP1L Slave No 1 Temperature sensor unit Temperature sensor unit Temperature sensor unit CP1W TS101 A CP1W TS101 CP1W TS101 a fe a lz ag 2 Tepe pe 2 Pt100 sensor inputs 2 Pt100 sensor inputs 2 Pt100 sensor inputs CP1W CIF11 CP1W CIF11 CP1W CIF11 RS422 485 option board RS422 485 option board RS422 485 option board CP1W CIF11 CP1W CIF11 CP1W CIF11 158 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples eDIP Switch Setup for CP1VV CIF11 RS422 485 Option Board Rear panel CPU unit connector Operation setup DIP switches Setting Master Slave Slave Content No 0 No 1 1 Presence of terminating
44. 4 eoe ia aa ee ate aw ee Heeb 4 M COCK DUlSQ a uc ar doi baa AA du a 97 closed contact 56 COMDE AAP 68 CODGIOD TAG s ue d bi 96 connecting CX Programmer and CP1L 37 connecting to a computer 38 connection line 14 jm Ya aban RR RR 54 counter instruction 61 GPU UMT eiie m Berge sl aod 13 103 CX Programmer 36 cycle time 91 92 109 cyclic refreshing 106 D data memory DM 14 GGDUG a deu opa 83 deleting contacts and coils 73 2222 51 diagram vvorkspace 46 47 differentiated up contact 66 DIN track 28 DIE SWIUGED peso are deo lar o 14 E editing runQ 73 END instruction 67 SON 225 37 sona b b df 16 expansion unit 15 external analog settings input 14 112 external dimension 28 F first cycle flag 64 force set force reset 86 function block 149 G going online 76 H dz SET 0 000 48 high speed counter 130 O allocalloti a i cR 22 O alea uc sionis Rd E i ab SERA 98 comment 71 O commentbar 46 O refreshing 106 inform
45. BOOL value Comment Car detection sensor z Global Link to the 5 Server file Buneag EN C Down Immediate refresh An upward arrow representing a differentiated up condition will be displayed on the contact a Choo nu 1 auos 100 08 O 100 00 d kt i eee Ezsalatis n maler Counsel blop baton Upper LE De ermcalatliz I 0 00 Qpan button O 1300 00 Local ation m 4 I Qu I d 1 08 100 00 10001 m r22 ze Ce emcal ation moter Close button Biop beton bese L55 Cacalation m O 100 04 Da amp rzalatio I 000i 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 ET Bo Ta l ened Lind Stop im Sacrum Ferry anie ag eProp ed 20 Symbok 22 Purcticn necis SYSMAC CP1L Getting Started Guide 67 suJeJ6oJd DuneoJ2 ES 68 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
46. CP1L CPU Unit GETTING STARTED GUIDE CP1L L14DLI L1 CP1L L20DLI L1 CP1L M30DLI LI CP1L M40DLI LI CP1L CPU Unit Getting Started Guide 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 DANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury Additionally there may be severe property damage NWARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury Additionally there may be severe property damage 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 Wd in documentation in this sense The abbreviation PLC means Programmable Controller PC is used however in so
47. CP1L Programming Examples E Operation Overview A bobbin winder on a spinning machine will be used for in the following example 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 xipueddy 60 00Hz Speed Contact A Contact B Contact C ON O W0 00 W0 01 Constant thread speed Fast rotation CP1L Slovv rotation 50 00Hz Stooped Contact Z The target speed is achieved based on input from multiple contacts Acceleration and deceleration is modified by the acceleration and deceleration of an inverter E System Configuration CP1L and CIMR V7 an OMRON inverter are connected by RS485 for frequency and start stop control eWiring Example CP1VV CIF11 RS422 485 option board 142 SYSMAC CP1L Getting Started Guide CP1VV CIF11 v CIMR V7 A 4 CP1L Programming Examples eCP1W CIF11 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 or AwsoF Semen Embed eCIMR V7 Setup Set the DIP switches as follows e SW2 1 ON terminating resistance present Terminating resistance for RS422 485 communication gt xipueddy Next set the paramete
48. CT ET D AU AMR LN uz eo atone ee O G P EEL ly rea r M MU UELU HU E E iw 5 mom 24 suJeJ6oJd bungal osa mi Shows tha 1 0 Comment seer The I O comment window will be displayed E applicalien 1 CEX Piroprammse s Hef LE KiCermment E diting G E V Fin Hom eem a AC roya Top Wee Help Hu Dal 8G ew la keane ui LPJ m xa 2 Ez Hi TELL TE eu x ln an n ti Y NE m E EDGE AA E E GAME Esin apk consen ri 1 mali o con il eA ci omi ate E i i i mr sao STOP buan q l amaron 20 1002 turo Smo g 003 Cas deere pera Sartor a 004 Layee eere a ERE D Purcter Ben H m KG m em m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m pr m h Prea T OD EPEPPPPETPTITTITITTTITTITITITITITITIITITITITTTITIE 412 For prem F1 eee Fnit i Pese DO Ol fna b d teri HUM SYSMAC CP1L Getting Started Guide 71 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 Edit muliple comments Pana ipa Show maple comments Adder Symbol Comment l OPEN button ES STOP button 002 CLOSE bullon 003 Car detection panga ods ight detection sensor O05 006
49. E OUT SA 12 SYSMAC CP1L Getting Started Guide 1 1 CP1L Models B 30 point I O Units CP1L M30DLI L1 CPU unit has 18 input points and 12 output points e CP series expansion I O units can be used to add I O points up to a total of 150 I O points 9 CSS SS ESI S SIS SES ee omron SYSMAC GP1L BATTERY SOS SISISISSS PERIPHERAL B 40 point I O Units CP1L MAODLI L1 e 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 OMRON SYSMAC CP1L BATTERY PERIPHERAL SYSMAC CP1L Getting Started Guide 13 1 2 Part Names and Functions 1 2 Part Names and Functions B 14 point I O Unit O 2 2 3 4 5 6 This section describes the part names and functions using the 14 point I O unit as an example s PEER e es ees en ss TT ID BOO Memory cassette slot 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
50. FF by the reset condition While the reset input is ON the set input will be ignored 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 Note 102 SYSMAC CP1L Getting Started Guide A 3 Inner Workings of CP1L A 3 Inner Workings of CP1L This section briefly explains the inner structure functions and internal operation flow of CP1L CPU units A 3 1 Inner Structure of CPU Units The inner structure of a CP1L CPU unit is shown below Write operation from Built in inputs CX Programmer CPU unit Flash memory Comment Analog adjuster memory External analog memory O FB program Parameters i e PLC settings Parameters i e PLC settings Memory cassette Built in outputs 1 Transfer of programs and parameter data Data in RAM is automatically backed up to the built in flash memory 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 to RAM 2 Transfer of DM defaults data When initiated from CX Programmer DM defaults are transferred from RAM to the built in flash memory According to PLC setup DM defaults are transferred from the built in flash memory to RAM when the unit is powered ON 3 Transfer of data between flash memory
51. High Speed Counter 0 4 Select Linear model for Counting model 5 Select Software reset comparing from the Reset drop down list 6 Select Differential phase input from the Input Setting drop down list 7 Close the PLC Settings dialog box 8 To apply changes made to the PLC settings turn the PLC power ON 132 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples mM E Programming 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 WO 00 DIFU Start motor Stop motor A531 00 100 00 100 00 Motor run Motor run 100 01 2j o A270 Motor slovv 0BB8 WO 00 gt 325 A270 Stop motor ODAC After motor stops check the stop position WO 00 0 02 W0 01 Stop motor Start motor Motor stopped W0 01 100 02 ZU A270 A270 Normal stop ODAC ODDE poswon 100 03 gt 325 d A270 Error stop 0DDE position Motor stopped Software reset for high speed counter 0 When high speed counter A270 reaches 3000 OBB8 Hex the motor decelerates xipueddy gt 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
52. 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 are allocated to the input contacts The allocation is fixed Use interrupt inputs to achieve faster processing that is unaffected by the scan time E Operation 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 Product Sensor input 1 Sensor input 2 Sensor input 3 Interrupt tasks will be executed when the sensor input interrupt changes from OFF to ON Sensor input interrupt input O Contact 0 04 Process Process Process interrupt task interrupt task interrupt task 1 Sensor input 1 Contact 0 00 I Sensor input 2 o Contact 0 01 l 1 Sensor input 3 z Hn Contact 0 02 1 1 1 1 RESET input C i i Contact 0 05 1 1 PASS output 67 1 1 Contact 100 00 1 1 NG output n NI HM Contact 100 01 1 1 1 1 1 I I NG output sensor input 1 2 52h Ema 1 I l Contact 100 02 1 l 1 NG output sensor input 2 QI I 1 Contact 100 03 NG output sensor input 3 VNDE IEEE MEME MEN KNEE Contact 100 04 SYSMAC CP1L Getting Started Guide gt 119 xipueddy mM A 4 CP1L Programmin
53. L Getting Started Guide buli pue Sununoly m 31 BB 3 3 Wiring Devices Wiring Inputs 1 Wire the inputs as shown while referring to 2 3 I O Allocation for the Shutter Control System PB2 SEN1 LS1 0 01 0 03 0 05 PB1 PB3 SEN2 LS2 0 00 002 004 0 06 buuin pue Sununoly c eWiring Outputs 1 Wire the outputs as shown while referring to 2 3 I O Allocation for the Shutter Control System MO1 L 1 MO2 100 00 100 01 oo or oo oe Te edes s No 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 32 SYSMAC CP1L Getting Started Guide 3 4 Power Testing CP1L mM 3 4 Power Testing CP1L After wiring CP1L perform a power test B Turning Power ON Supply power to CP1L and then check the status with the indicators 1 Turn the power OFF for all components escalation motor de escalation motor etc 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 77 Note When CP1L is turned ON it will go into RUN mode automatically 5 Turn the power OFF for CP1L SYSMAC CP1L Getting Started Guide buli pue Sununoly m 33 buuin pue Sununoly 34 m 3 4 Power Testing CP1L Note Battery e Using a battery The battery mainta
54. L Getting Started Guide 45 suJeJ6oJd DuneoJ2 ES 46 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 Main Window 2 BEH d d 1562 alt TW 2584 e a a l m Sh fia sr 0 dE rt bb na E E 3 asan sanan RE FER EM a 1 Title bar Displays the data file name created in CX Programmer 2 Main menu Used to select CX Programmer functions 3 Toolbars Displays icons for frequently used functions 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 4 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 5 Section Programs can be split into and managed as multiple parts 7 Diagram workspace Used to create and edit ladder programs 8 I O comment bar Displays the name address value and 1 O comment for the variable selected by the mouse cursor SYSMAC CP1L Getting Started Guide 4 3 Using CX Programmer 9 Output window Select View Windows Output from the main menu to show hide the output window Displays the f
55. ON OFF ON Terminating resistance present resistance for PLCs at the ends 2 4 wire selection 2 wire type 2 4 wire selection 2 wire type s ox ON ON ePLC Setup Configure serial port 1 1 Open the PLC Settings dialog box 2 Click the Serial Port 1 tab 3 Set the following settings PLC Settings MewPLCI File Options Help Gelings Targi Input contend Sein Per 1 Paaphasal Sensce Bulan Input Pulse Outpt Pe 4 r nmmuracahons Settings Link Weee C Standwd 5600 1 7 2E Custom F 1520 zz xl oa xl Stat Code Ered Cede PC Link Mode i Delay MT PC Link PC Link Uni No b wm P3 pz SYSMAC CP1L Getting Started Guide gt xipueddy 159 mM A 4 CP1L Programming Examples Gkwok Wem PLC Link Mode Complete Link Method NT PLC Link Max 0 Default m 4 Close the PLC Settings dialog box E Programming Example Serial PLC links are used for program free linking of data in the serial PLC link areas The ladder program transfers the data to be linked to the data link area D O o Boiler A Boiler B Boiler C 3 CP1L Master CP1L Slave No 0 CP1L Slave No 1 x OCH Input area ICH 2CH 100CH 3100 A Temperature data A Temperature data 0 A Temperature data 0 3101CH j A Temperature data 1 i Temperature data 1 i A Temperature data 1 3109CH 3110CH 1 B Temperature d
56. S PRECAUTION c n 9 1 HlErideo RUIN SING tr 10 2 General Precautions ui a a bb l 10 Safety recen M D a a a ab b H ada 10 4 Application PrecaillOllS dues Code qu Ouod 10 SECTION 1 e EMO IIIS T 11 12 SCP AA 12 1 2 Part Mamesone uncions uou b i 14 SECT ON 2 Designing SYSIEM ma a 17 2 1 Organization ot this MAR eco GANA 18 2 2 About the Shutter Control System 88 8888 888283 9333 20 2 3 Allocation for the Shutter Control System 22 2 4 Example Ladder Program ie ad NGA DAR eure AG 24 SECTION 3 Mounting and Wiring 25 o T Jnstallalol Notes a a s l Dn s n s l 26 90 2 MOUNTING onto DIN a a Ala dm uba 29 057 WINO EV 30 074 R 33 SECTION 4 Creating ProgralriS aNG m tenders 35 4 1 Preparing tor Programming a aa BA A AA oo aya 36 4 2 Creating Ladder Programs Zh UL ae ua es Un A Weel 42 4 0 Using GX PrOgratlriel scam eoi ee sese aa nein e ci aaa ao edes 45 4 1 RISING CS HEP amar T 48 XInput ng FOO ve c eve cai eut puma 51 4 6 Saving Loading Programs a dta uta
57. Transferring and Debugging Programs 5 1 Golng 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 applicalion 1 CX Programmer NewPLC NewProgram1 Section Diagram Fie Edt View Insert Program Tools ze Dom d 5 TT 4 i EE work Ordre Sam lstor a AQ is m 86 Fa E De Auto Ohne Operating Mode kel E MeweLCI CP1L O E Symbols 3 Compie PLC Programs E s PgamChwkOphns MG 2b opens Proqram Assignments Sel NewProgra C Symbol Function Block Memery 1 KI Sedir Transfer di Partial Transfer TE ricche Ds 3 Click IYesl The dialog box will be closed CX Programmer v 1 About En connect to the PLC Do you wish ko continue 7 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 SYSMAC CP1L Getting Started Guide 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 t
58. WO is entered The Edit Comment dialog box will be displayed Haw Contact OR Input Work Area as the I O comment Press the Enter key An OR circuit representing the work area contact will be displayed Edit Comment 1 1 W0 00 zi iWork Area Cancel Next input a closed contact SYSMAC CP1L Getting Started Guide Buneag EN 99 4 5 Inputting Programs B inputting Closed Contacts 1 Press the up arrow key The cursor is moved upward Mia Area 2 With the cursor in the up position press the key The New Closed Contact dialog box will be displayed suJeJ6oJd DuneoJ2 ES 4 New Closed Contact ix Detail gt gt Cancel 3 Input address TO Press the Enter key 4 New Closed Contact ix E Detail 22 Cancel TO is entered The Edit Comment dialog box will be displayed Edit Comment 1 1 10000 4 Input Timer as the I O comment Press the Enter key An AND circuit representing the timer closed contact will be displayed Edit Comment 1 1 10000 Next input a work area output D SYSMAC CP1L Getting Started Guide 4 5 Inputting Programs 4 5 3 Inputting Output Coils Input an output coil for the work area 1 Press the O key The New Coil dialog box will be displayed 1 New Coil xi Datadss OK Cancel 2 Input address WO Press the Enter key WO is entered The Edit Comm
59. Words Banda 8600 1 72 E 12 Custom B F so OE xl Sila Code Ered Code e fe m C r C t i Response Trepi Uni Humber MT PC Link PC Link Uni b am PH Paws F3 PS del ont SOOO 4 Close the PLC Settings dialog box 144 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples m E Programming Example e adder Program P First Cycle MOV 021 0000 D32306 MOV 021 0000 D32307 WO 00 MOV 021 0117 D32306 Contact A MOV 021 7000 D32307 W0 01 MOV 021 0115 D32306 Contact B MOV 021 7 C00 D32307 W0 02 MOV 021 0113 D32306 Contact C MOV 021 8800 D32307 W0 15 MOV 021 0000 D32306 Contact Z MOV 021 0000 D32307 Continue Modbus communication P On TIM A640 00 A640 01 Modbus RTU easy master function execution normal flag Stop operation when communication starts Operation command 0 Stop Frequency command 00 00Hz Operation command 1 Start Frequency command 60 00Hz 1770 Hex Operation command 1 Start Frequency command 55 00Hz 157C Hex Operation command 1 Start Frequency command 50 00Hz 1388 Hex Operation command 0 Stop Frequency command 00 00Hz Start Modbus communication 1 second after executing ladder program Modbus RTU easy master function execution bit
60. adjuster on CP1L for setting the timer in the example application change auxiliary area A643 in the ladder program to A642 A 4 2 Capturing Short Signals B Functions Used eQuick Response Input By setting the built in input to use quick response inputs inputs having a signal width as small as 30ys can be captured regardless of the cycle time 14 point I O units can use up to 4 quick response inputs 20 30 40 point I O types can use up to 6 E Operation Overview Products moving at high speeds are detected by a sensor and counted Product Sensor CO SYSMAC CP1L Getting Started Guide 115 xipueddy mM A 4 CP1L Programming Examples Signals that are shorter than the scan time must be read and counted VVhen 100 signals have been counted a counting completed signal vvill be output 30ps min Sensor input LI Contact 0 04 BCD counter instruction 0000 Set Value 100 100 Present Value 99 i 98 Contact C0000 EN Counter reset LLL mm Input contact 0 01 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 e 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
61. ameser Running C1 ee reeramt Sectiani Diagram T Fit Est Wee innert PLC Proqram Toss Wieke Heb Cae uo AL oc eS te last Sas ae 85 b 4b YP 98 iy E vt L g p dE H na aoe Tz AA GANANG EH Ladder Backtracking This function is used to backtrack the ladder to determine vvhy a contact does not turn ON for example Place the cursor on the contact being investigated ail Cede Flag 7 i A a 7 olla 7 mooo rem kam a we ewe ti eS T T Corali T b uq bee Lise LI Dae ster tine T iun Dia Damo Faza m vor a n I e uno e s n ri Cima Exam Lisp Lain T IA Tar qan ru m ri Tele aden gi rs Dp E telecon Press the Space key The cursor will be moved to the source output for the contact v 8 56 m va Lipar L Tu qaz l g SYSMAC CP1L Getting Started Guide 5 2 Adjusting Debugging Online 5 2 5 Online Editing The CP1L program can be edited online 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 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
62. ata B Temperature data 0 B Temperature data 0 3111CH i B_Temperature data 1 _Temperature data 1 Temperature data 1 Serial PLC link area 3119CH 3120CH C Temperature data 0 C Temperature data 3121CH C Temperature data 1 C Temperature data 1 3129CH 3189CH 160 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples mM e adder Program Boiler A CP1L Master P On Use block transfer instruction to transfer 1CH 2CH to 3100CH 3101CH Boiler B CP1L Slave No 0 Use block transfer instruction to transfer 1CH 2CH to 3110CH 3111CH Boiler C CP1L Slave No 1 P On Use block transfer instruction to transfer 1CH 2CH to 3120CH 3121CH SYSMAC CP1L Getting Started Guide gt xipueddy 161 xipueddy 162 SYSMAC CP1L Getting Started Guide Index Numerics 14 point I O unit 12 20 point I O unit 12 30 point Ounit 13 40 point I O unit 13 A address reference tool 88 analog adiuster 14 114 auxiliary ATCA ss cro ewe p ee 64 B basic 1 O processing instruction 100 DSL V a ana bine eee eee ex 14 battery free operation 34 built in flash memory 104 built in I O area 107 C calendar timer 125 changing timer setting 88 CHANING late eos m 8o CUORE Rom 9
63. ation window 47 inputting contact 54 inputting output coll 57 instruction 49 99 instructions reference 49 NENG fd danke eee awe ed 42 interrupt function 119 L ladder backtracking 90 ladder program 42 44 loading program 70 M main menu 46 main vvindov 46 Modbus RTU easy master function 141 monitoring 83 MOUNTING GP L dri rte 29 O online editing 91 operating mode 78 operation indicator 16 option board 15 OR CIFOUIE aa Bab d b d Ea 55 peripheral service 108 SYSMAC CP1L Getting Started Guide 163 Index 30503 T 158 PLC SEUD 104 117 power supply voltage 30 precautions CERCHI eR 9 program check 68 programming 36 DFOIG GI on noceant eG ei teh nd ie ds 51 project tree 46 project vvorkspace 46 pulse signal np d qc e e ec 135 Q quick response input 115 R 2 DE 94 relay number 94 rung comment 72 rung header 47 S saving program 69 scan IME s eee ewe Ee 116 119 SGaE GPL ic
64. 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 gt DT and DT are time comparison instructions e Time Data on CP1L The clock s PV is output to the following auxiliary areas Name Address Content Time data A351 00 to A351 07 Second 00 to 59 BCD A352 00 to A352 07 Hour 00 to 23 BCD A352 08 to A352 15 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 126 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples mM e 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 7 6 54 3 210 T 11111101010 DO iy Set D0 0038Hex Compare seconds Compare minutes Compare hours Mask days Mask
65. ctors Waits for the specified cycle time to elapse when a minimum fixed cycle time is specified in PLC Settings Calculates the cycle time When the cycle time has not been fixed the processing time is approximately 0 Additional time for fixing the cycle time Fixed cycle time Actual cycle time processing time for overseeing processes program execution I O refreshing peripheral O Refreshing services Details Processing Time and Variation Factors CP series Expansion Units and Expansion Units I O refresh time for each unit is multiplied by the number of units used Each unit is refreshed Outputs from the CPU unit to the expansion units are refreshed first followed by the 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 SYSMAC CP1L Getting Started Guide 109 xipueddy m A 3 Inner Workings of CP1L Note Peripheral Services 1 Serial port service Communication port service Memory cassette 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 4 of the preceding cycle time calculated by cycle time calculation If a cycle time has been specified service will be execute
66. cts as defined by following lnputs m po S1 S2 pe Outputs Escalation motor MO1 100 00 De escalation motor 100 01 LS1 0 05 bo MO1 100 00 SEN2 0 04 MO2 100 01 m SEN1 0 03 PB2 0 01 PB3 0 02 22 SYSMAC CP1L Getting Started Guide 2 3 I O Allocation for the Shutter Control System mM 1 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 outputs qe 14 13 12 11 10 09 N8 07 05 04 02 01 00 15 Not available Input area 8 inputs oe 100 CH 1 _ 0u 0075 Allocate On 14 point I O units 8 inputs 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 vvork area Unused upper bits on the output channel bits 06 to 15 hovvever can be used SYSMAC CP1L Getting Started Guide swa sAs Bulubiseq N 23 mM 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 WO 00 Light detection Work area sensor W0 00 Work area WO 00 sulojs S bulubi
67. d 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 If a cycle time has not been specified in the PLC settings service will be executed for 4 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 O 1ms regardless of whether the cycle time has been specified If no communications ports are used the servicing time will be Oms Built in flash memory Processing time for these services will vary depending on the PLC accessing service settings If a cycle time has not been specified service will be executed using 4 of the preceding cycle time calculated by cycle time accessing service 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 there is no access the servicing time will be Oms 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 use
68. d 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 SYSMAC CP1L Getting Started Guide 41 suJeJ6oJd DuneoJ2 ES 42 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 1 Operation Entering the Garage The component functions and operations will be defined in detail below 1 Push buttons e The shutter can be opened closed and stopped with buttons e 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 2 Limit switches 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 3 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 mo
69. der Programa ce vec Ba ae ene 44 4 3 Wsing CX Programime hig mU tei 45 4 3 1 Starting CX Programmer 45 4 3 2 Operatonsce eehs ho Eres e rr eda ev erre 46 4 2 95 mdgsthelbielps eie cse cU eb 48 4 5 4INpUtAgiBrog grams a AA Gn EE 51 4 5 1 Creating New Projects 51 4 5 24 Input Ag COMAC AA a 54 4 5 3 lHDUL RSLOLLULCo S alee GA E 57 ADA WENO UTE g TIE ES ome 59 drm dors 61 4 5 6 Inputting Auxiliary Areas 64 4 5 7 Inputting Differentiated Up Contacts 66 4 5 8 EINIDMSIFUCUOND NN ea ee ete ROCA 67 4 6 Saving Loading Programs 68 4 654 ComipllildgProgtrattis vid Cree BO 68 4 6 2 Saving Programs 6 y A M EN 69 4 6 3 0ad ng Fro fatlusra o E 70 4 7 Editingredgidirisss a 71 4 71 Ediling 10 Comments a eret 71 4 7 2 Inputting Rung Commenits 72 A53 EO UROURURNd5 555 RU M 73 Buneag ES 36 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 i
70. ding 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 It is extremely important that a PLC and all PLC Units be used for the specified purpose and under the specified conditions especially in applications that can directly or indirectly affect human life You must consult with your OMRON representative before applying a PLC System to the above mentioned applications 3 Safety Precautions Caution Caution Caution 4 Caution 10 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 th
71. e future Microsoft strongly recommends that you stop this installabon now and contact the hardware vendor for software that has passend Windies ngn testing Continue Anyway SUP Installation 6 Click Finish USB driver installation is novv complete Found New Hardware Wizard SYSMAC CP1L Getting Started Guide Completing the Found New Hardware Wizard T ha vazadd has hnuhed makal Hes tofia Toe 2 OMRON 5Y5MAC PLC Denne Chek Finish bo close the vazsad 4 1 Preparing for Programming m Confirming Installation Confirm that the driver has been installed properly 1 On the desktop select Start and then right click My Computer A context menu will be displayed 2 Select Properties The System Properties dialog box will be displayed 3 Select the Hardware tab and click Device Manager The Device Manager dialog box will be displayed 4 Double click Universal Serial Bus controllers 5 Confirm that OMRON SYSMAC PLC Device is displayed If so the USB driver has been installed successfully Buneag EN 7 Device Manager y Ports COM amp LPT Processes noon video and game controllers System davar Pet Sharir Learga PCT bo USB Herat Cran rae de Standard Universal bo USB Host Controller Pet Universal POT bo USB Host Controller fet Standard Universal PCI bo USB Host Conbroller 6 Close the Device Manager dialog box an
72. e power OFF wait for the unit to cool down sufficiently before touching it 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 Before starting online editing confirm that the extension of cycle time will have no adverse effects Otherwise input signals may not be read Application Precautions Confirm that the facility will not be affected by changing to MONITOR or RUN mode SECTION 1 CP1L Overview This section introduces the types of CP1L as well the part names used during operation 1 1 CP1L Models 12 1 2 Part Names and Functions CP1L Overview 1 1 CP1L Models CP1L programmable controller is a PLC package type available with 14 20 30 or 40 I O points For application examples that use CP1L refer to appendix A 4 CPTL Programming Examples 14 point I O Units CP1L L14DO D e CPU unit has 8 input points and 6 output points e CP series expansion units can be used to add I O points up to a total of 54 I O points 03 NC M 05 NC IRI B 20 point I O Units CP1L L20DLI L1 e 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 60 I O points SIS S SS SS SS SS GS G9 IN E PERIPHERAL BATTERY m Sai NC COM COM COM COM 06 9 69 AS
73. e project tree Select Insert Program from the pop up menu NewProgram2 Unassigned will be added to the bottom of the project tree Untitled CX Programmer HewPLCT HawPropram2 Section1 Diagram O File Edt Wew Insert PLC Program Tools Window Help Dc G D ate TM aka a Q FF li kl u O 2 amp 8 mil RS EA LJ SEM 28 NAA 005 S mb NGWPLCI CPIL 1 Offline di Programs ALIIT m m m m m m m m m m m m HHQ 2 Right click NewProgram2 Unassigned Select Properties from the pop up menu The Program Properties dialog box will be displayed Program Properties dal General Protection Comments Name T ask type Unassigned Operation start SYSMAC CP1L Getting Started Guide gt xipueddy 123 xipueddy mM A 4 CP1L Programming Examples 3 4 5 6 Click the General tab Select Interrupt Task 1401 from the Task type drop dovvn list Program Properties dal General Protection Comments Name NewProgram Task type Unassigned Interrupt Task 135 Interrupt T ask 135 Interrupt Task 137 Interrupt Task 138 Interrupt Task 133 Interrupt Task 140 Interrupt Task 141 Interrupt Task 142 Interrupt Task 143 Interrupt Task 144 Close the Program Properties dialog box Select Section1 under NewProgram2 Int 140 applicalien J CX Prognammi NOT nagan Section Tagan fe F A P
74. ent dialog box is displayed with the I O comment already entered New Coil Edit Comment 1 1 W0 00 SYSMAC CP1L Getting Started Guide Buneag EN 57 suJeJ6oJd DuneoJ2 ES 58 4 5 Inputting Programs 4 Press the down arrow key 2 times VVhen the cursor is positioned on the next rung the current rung input is complete Next input a timer instruction Note Duplicated Coils Do not duplicate coils If the same address is specified for multiple outputs only the rung closer to the END instruction will be valid This is because programs are executed sequentially from top to bottom Invalid rungs caused by duplicated coils will be detected by CX Programmer as an error E g A program with duplicated coils END amp QO SYSMAC CP1L Getting Started Guide 4 5 Inputting Programs 4 5 4 Inputting Timers 1 Press the C key Input contact W000 Then press the Enter key vvhile the Edit Comment dialog box is up For details on inputting a contact refer to 4 5 2 Inputting Contacts Wodk Area 2 Press the I key The New Instruction dialog box will be displayed Now Instruction 3 Input timer instruction TIM 0 50 Press the Enter key TIM 50 is entered The Edit Comment dialog box is displayed with the I O comment already entered TIM 0 50 indicates a 5 0 second delay timer with a timer completion flag of 10000 1 Mew Instruction
75. er Counter Value 20 Browse UIMT BED 1073333 bcd Symbol Infomation 5 2 4 Searching m Address Reference Tool The address reference tool displays vvhich instructions are using the address being pointed to with the cursor t 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 e Program name section name Program address step e Instruction using the address SYSMAC CP1L Getting Started Guide 5 2 Adlusting Debugging Online 1 Select View Windows Address Reference Tool from the main menu The address reference tool will be displayed applealion Ss dr xu a Steeped ew 0 No agam Seika 1 TW SALON AN R og druk Bei 2 AAPEEE NHY 2 applizalian 1 OX Programmer honing HPC Be rramendi Mapam Og bei claw e lA mS i E L Jk 4F up 1 o c y ftx r 4 APANG EH OR Mig let sr FETT Gk a i Heci Ci Honor Moda SYSMAC CP1L Getting Started Guide Buibbngag pue a 89 buibbngag pue BuuejsueJ a 90 5 2 Adjusting Debugging Online A list of used addresses will be displayed Click an address to display the program being used applicalion 1 CX Pregr
76. eration This section defines the operation of a shutter control system sulojs S bulubisag A car approaches the shutter e When a sensor detects 3 headlight flashes within 5 seconds the shutter Opens he shutter can also be opened closed and stopped with buttons e When a sensor detects full car entrance into the garage the shutter closes e When pulling the car out of the garage use the buttons to operate the shutter 20 SYSMAC CP1L Getting Started Guide 2 2 About the Shutter Control System am 2 2 2 System Components This section defines components to be used in the shutter control system The following components are to be used PLC Equipment and Software for Programming lnputs Outputs e CP1L 14 point I O unit with AC power supply CX Programmer Computer USB cable A B sulojs S bulubisag N Shutter OPEN button PB1 Shutter STOP button PB2 Shutter CLOSE button PB3 Car detection sensor SEN1 Headlight detection sensor SEN2 Limit switch turned ON when shutter is fully open LS1 Limit switch turned ON when shutter is fully closed LS2 Contact for activating the shutter escalation motor MO1 Contact for activating the shutter de escalation motor MO2 SYSMAC CP1L Getting Started Guide 21 sulojs S bulubisag mM 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 conta
77. ers can be controlled easily via serial communication RS 232C option board io CP1W CIF01 RS 422A 485 option board CP1W CIF 11 NC 00 NC M es espe es eene e KI 7 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 point I O units can have up to 2 boards installed The Modbus RTU easy master function allows for easy communication with components connected via a serial connection board A xipueddy gt D32300 D32301 D32302 Communication data bytes D32303 Communication data Slave address FUNCTION code Communication data Slave address FUNCTION code Communication data Modbus RTU OMRON inverter CIMR V7 CIMR F7 1 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 Modbus RTU easy master execution bits and DM Fixed Allocation words depend on unit type 14 20 point I O units or 30 40 point I O units For details refer to CP Series CP1L CPU Unit User s Manual W462 SYSMAC CP1L Getting Started Guide 141 mM A 4
78. es m E System Configuration eWiring Example Sensor input 0 00 000000 O Variable resistor External analog setting 1k O 1 4VV i input connector LATT 100 00 E Programming Example Ladder 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 SYSMAC CP1L Getting Started Guide 113 xipueddy gt xipueddy mM A 4 CP1L Programming Examples B INFO 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 eUsing 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 Philips screwdriver Analog adjuster 114 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples m 0 00 T0010 100 00 Photoelectric Gate sensor 100 00 Gate P On xipueddy Photoelectric sensor Gate A To use the analog
79. et PLC Clock dialog box will be closed Set PLC Clock AM 2 13 2007 Select File Exit from the menu The clock on CP1L is now set re PLC Clock NewPLC1 5 1 2 Changing the Operating Mode Change to PROGRAM mode The procedure for changing to the PROGRAM operation mode is as follows Select PLC Operating Mode Program from the main menu A dialog box will be displayed to confirm the operating mode change appikalien 1 e Sur Mmm Hopped Ka LOT Noa ropa Section Diagran DG 2 E a xa il Re T E I i H 8 a m m a A naaa oo FEO Beacon Ej Corp AALS Pri am FF onward raq am Check Optra Error kg Am Faction Block Memory k Bimar b gey Tarta Thaler i att Cedar E Hery Fin SYSMAC CP1L Getting Started Guide 5 1 Going Online 2 Click Yes The operating mode will be changed LX ni pprarmner v 2 1 Piika suns thot thara orent any problems F Ehe PLC k stopped Da yal vali bo a tha PLC inte program mada The operating mode will be displayed on the title bar and on the project tree applizaliz n 1 EX Piragirammei Hopped S SENI i TESTED Trl Fin Ede ra yd AC Pesce Dese Weeks Hel Dg i md amp h c a TY SAGA LU BHP ari aQq S Reh kiwy osteHttek Demou OHARA san HAH be CAR EON i R hv a Kl enc RR Rape og am Fode WT 30 Tute ari rk Setar asi
80. ettings Input mM A 4 CP1L Programming Examples A 4 CP1L Programming Examples This section provides examples for wiring DIP switch settings and programming For details on wiring and settings refer to CP Series CP1L CPU Unit User s Manual W462 For details on CP1L instructions refer to CP Series CP1H CP1L CPU Unit Programming Manual W451 For details on using CX Programmer refer to CX Programmer Operation Manual VV446 A 4 1 Using Adjusters to Set Timers 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 E Operation 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 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 l 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 resistor 112 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Exampl
81. eunbai mum beri Ti i COD anm fal value Coun P Firm Finit Cycle Flag 2 Press the Delete key The selected rung will be deleted suJeJ6oJg EN SYSMAC CP1L Getting Started Guide 73 gt 4 7 Editing Programs m Creating Vertical Horizontal Lines 1 2 O o O o 3 o Note 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 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 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 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 m Copying Pasting Contacts Instructions Rungs e Contacts Instructions 1 2 3 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 k
82. ey 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 T4 SYSMAC CP1L Getting Started Guide SECTION 5 Transferring and Debugging Programs 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 Hal NGO UNG ee tee eee ute M 76 Sade 1b KOO no MMe Cr Cek shea pe eee e m 5 1 2 Changing the Operating Mode 78 ransteramdgrogramseseccce e eoi E 80 5 1 4 Executing Operations 82 5 2 Adjusting Debugging Online 83 5 2 1 MONON Karena MA ree nes mec uM I a 83 5 2 2 Force Setting Force Resetting 86 5 2 3 Changing Timer Settings 88 5 2 4 5calch h o eee ce ee a nero 88 922 0 EIE dU 91 5 20 t Gonfipmirig Cycle T IIO e ose ono 0 92 suJeJ6oJg buibbngag pue BuuejsueJ a 76
83. 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 specifications 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 OMRON inverter CIMR V7 CIMR F7 Smart FB Library for OMRON CIMR V7 CIMR F Inverter INVOO2 Refresh Status refresh Refreshes the inverter status INV032 MoveVelocity Hz Execute rotation frequency Specifies start signal rotation specification in Hz direction and rotation speed in Hz INVO33 MoveVelocity RPM Execute rotation rotation Specifies start signal rotation speed specified in rpm direction and rotation speed in rpm r min INVOGO 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 148 SYSMAC CP1L Getting Started Guide
84. g Start origin search to pointA to point B WO 00 A280 06 100 05 Origin search complete Origin stop 0 04 0 03 0 05 W0 01 Start origin Positioning search to point B Positioning to point A W0 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 SYSMAC CP1L Getting Started Guide xipueddy gt 139 xipueddy NI A 4 CP1L Programming Examples eDM Area Setup Example Ass vao Point A D0000 07DO Acceleration ratio 2000 Hz 4ms m Target frequency 50000 Hz D0005 FFFF Initial Initial frequency O Hz positioning Deceleration ratio 2000 Hz 4ms D0012 C350 Target frequency 50000 Hz D0013 0000 D0014 86A0 Pulse output volume 100000 Hz D0015 0001 140 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples m A 4 7 Using Inverters for Speed Control 1 B Functions Used eModbus RTU Easy Master Function 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 00 for port 1 Note By using Modbus RTU easy master function Modbus compliant slave devices i e invert
85. g Example CCVV limit Origin proximity CVV limit sensor sensor sensor 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 m contact contact m output CCVV 100 00 outpput 100 01 Error counter reset output Point A Point B Origin search positioning positioning complete complete complete 100 05 100 02 100 03 Insert a resistance of 1 6 to 2 2k so that the current is within the 7 to 15mA range For a 20 30 40 point CPU the origin proximity input pulse O will be OCH1 Obit SYSMAC CP1L Getting Started Guide xipueddy gt 137 mM A 4 CP1L Programming Examples ePLC Setup opecify the settings for pulse output O Open the PLC Settings dialog box Click the Pulse Output 0 tab 3 Set the following settings N PLC Settings Mewi LC1 File Options Help Setinge Timirigi Input contend Seal Pest 1 Perphessl Sarasa Bulla Input Pulse Output O Puce 4 F Hate Yeliz Undefined rign METR Seek Pietun iraia Speed H Lind input Signal Aves Trapesu Lama Irig Sa ol H Define Ongn Operation Settings Origin Pleban w Lise define angin operation SewchDamc amp m Cw m Seach High Speed 10000 H ppe Detection Method Methd SaschPronip5peed 1000 pos Semh peaon iven 7 Seach Comcensalinn Vals Z Model Search Accele
86. g Examples E System Configuration eWiring Example On CP1L units with 14 point I O interrupt inputs can be allocated to contacts 0 04 to 0 07 Input interrupt O will be allocated to contact 0 04 The interrupt task executed by input interrupt O is task No 140 Sensor input 3 0 02 Sensor input interrupt input 0 0 04 Sensor input 2 0 01 Sensor input 1 0 00 RESET input 0 05 A B BEEBE gt EIS zd P to E KA 3 PASS output 100 00 NG output sensor input 3 100 04 x NG output 100 01 NG output sensor input 2 100 03 NG output sensor input 1 100 02 ePLC Setup Set contact 0 04 to be Interrupt Open the PLC Settings dialog box Click the Built in Input tab 3 Onthe INO drop down list for Interrupt Input select Interrupt While the sensor input contact is 0 04 setup is performed for INO since the interrupt input setting is set to O N PLC Settings HewPLC1 Settings Taminga Ingas cemilan Serial Pos 1 Penpharal Saraca Bulbininput Puce Chaput 04 e High Speed Counter l High Spesi Cesra 1 Ure high speed counter Use high speed counter 1 Counting mada Counino mede Cicus Court Circuli Court Plater Input Setting Input Setting zi High Speed Counter 2 High Speed Counter 3 m m Courting mode 7 Counting mode 7 r Circular Court Circulus Mise Co
87. he INO drop down list for Interrupt Input select Quick While the sensor input contact is 0 04 setup is performed for INO since the interrupt input quick response input setting is set to O PLC Settings HewPLC1 File Options Help ladup Settings Tininga constant Serial 1 Peripheral Bulin input Puce 4 r High Speed Counter l Une high speed countes O Counting mada 7 Input Setting High Speed Counter 2 Cina madi 7 Hagh Speed Condes 1 Wee high speed counter 1 Counting mode t Cul Cort Fast ee vee zl Input Setting Disens phena High Speed Counter 2 a Can n mode 7 5 Close the PLC Settings dialog box 6 To apply changes made to the PLC settings turn the PLC power ON E Programming Example e adder Program 0 04 Sensor input 0 01 Counter reset input C0000 118 SYSMAC CP1L Getting Started Guide BCD counter 100 00 Count complete A 4 CP1L Programming Examples mM A 4 3 Using Interrupt Inputs to Accelerate Processes m Functions Used einterrupt Inputs CP1L 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
88. he settings refer to 4 5 7 Creating New Projects 5 1 1 Setting the CP1L Clock The CP1L clock should be set to match your time zone Use CX Programmer to set the time If the time on CP1L is not set properly the error log will not be displayed correctly 1 In CX Programmer open an existing project For details on opening a project refer to 4 6 3 Loading Programs 2 Double click PLC Clock The PLC Clock dialog box will be displayed applicalion 1 CX Prograrmmer Stopped MowPLC1 NewPropram Section DO rie Edit View Insert PLC Program Tool Window Help Oe Bes miso IMG XIE A 5 m s iz PS Te IPA HP 45 7H d m A ha kd 51657 E x sk z B Hew LCI CP1L Stop Program Mode St Symbols IO Table and Unk Setup ELS V Programs Sel HewProgram 00 Stopped FS Section END Function Blocks Light debeo Wo 00 suJeJboJd buibbngag pue o ilin ik Area 3 Select Options Set PLC Clock from the menu The Set PLC Clock dialog box vvill be displayed s PLC Clock NewPLC1 File Options Always on top PLC Svnchronise Clocks ui 27372007 23 2007 Pragram SYSMAC CP1L Getting Started Guide 77 suJeJ6oJg buibbngag pue BuuejsueJ a 78 5 1 Going Online Set the date and time Click OK The S
89. hen 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 as well the part names Section 2 explains how to construct a CP1L system using a shutter control system as an example Section 3 explains the how to install CP1L onto a DIN track how to wire power supply and I O lines and how to test operation 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 of CP1L and CP1L pro gramming examples Related Manuals The following manuals are used for the CP series CPU Units Refer to these manuals as required SYSMAC CP Series CP1L CPU Unit User s Manual SYSMAC CP Series CP1H CP1L CPU Unit Pro gramming Manual 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 O
90. i a o dob diei ar CX AGRO si 88 creme wm 46 164 SYSMAC CP1L Getting Started Guide serial communication 141 setting the clock 77 Smart FB Library 148 special instruction 99 starting CX Programmer 45 T enn obs 83 timer instruction o9 Ne Dal oce sits pd iod Ee ERE 46 OQ D F fr PT 46 transferring program 80 turning povveron 33 U USB RVETL una Pb D 38 JOB DOVE id quinis beds onan cee di 14 W watch window 85 wiring ground line 30 WIKING INDUL usce ee ee x etu a aee 32 wiring output 32 wiring power line 30 writing relay coll 101
91. ide A 4 CP1L Programming Examples E System Configuration eWiring Example Encoder povver Phase A supply 24VDC E g Model E6B2 CVVZ6C NPN open collector output Inverter etc Start motor 0 02 OV 24VDC sao AC100 240V M Pa sp di fos 05 o7 ne wo l TbT T T wc wc Motor run 100 00 Motor slow 100 01 Normal stop position 100 02 Indicator Note Use the external power supply for input devices only It cannot be used to power output devices SYSMAC CP1L Getting Started Guide xipueddy gt 131 2 o o D 2 o x mM A 4 CP1L Programming Examples PLC Setup High speed counter O will be enabled 1 Open the PLC Settings dialog box 2 Click the Built in Input tab PLC Settings Mewi LC1 File Options Help Shaip Selling Tenge ingua condat Sea 1 Panpheral Sanace Bulin Inout Puce Quip 0 4 High Speed Counter High Spr Conan 1 zi Use high speed countes Use high speed counter 1 Counting mada Lines mode Creus mode Counting mada 7 C Co OO Cacos Cot ooo Fletet Soltwate nasticompaang Reset Z phare since Input Saling Dilerenhal phase reu Input Bating Disens pher High Speed Counter 2 High Speed Counter 3 E Counting mode 7 r Circular Max Count Irga mo Hem 2 int Nomal 22 Hemel 21 m3 Nomd xi 3 Check the Use high speed counter 0 checkbox for
92. ime 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 1 Select File New from the main menu The Change PLC dialog box will be displayed Propremmer je hcl alee la 3 s El me L deat ups 1 o HE EE PEE 38 25 NE NG 2 Select CP1L from the Device Type drop down list Change PLC Device Name NewPLC1 Device Tupe EFIE w Settings Settings SYSMAC CP1L Getting Started Guide bungal EN 51 4 5 inputting Programs 3 Click Settings The Device Type Settings dialog box will be displayed Change PLC ecc ES 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 Head riy Head Only 52 SYSMAC CP1L Getting Started Guide 4 5 Inputting Programs 9i Confirm that USB is displayed for Network Type Click OK Change PLC LA Device Mame NewPLE1 Device Tupe fer Se Network Type Comment Cancel The Change PLC dialog box will be closed Main window for the new project will be displayed suJeJ6oJd DuneoJ2 EN IINE rrr x Pin Ed Wwe duet AC Papa Tod Wede Heb MOX Dol GA n MUN TW ad a ll B nin 3 Z Rm Mm 9
93. imitations of the USB specifications the following restrictions apply when connecting CP1L to a computer Only 1 CP1L can be connected to a computer at any given time You cannot connect multiple CP1Ls simultaneously Do not disconnect the USB cable while the system is online Before disconnecting the USB cable switch the application to offline status If the USB cable is disconnected while online the following will occur Windows 2000 XP 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 Windows 98 Me If the USB cable is disconnected while the system is online a blue error screen may be displayed In this case you will need to reboot the computer SYSMAC CP1L Getting Started Guide 3 suJeJ6oJd DuneoJ2 ES 38 4 1 Preparing for Programming m Connecting to a Computer and Installing the USB Driver 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 refer to 1 3 1 Connecting with a Commercially Available USB Cable of CP Series CP1L CPU Unit User s Manual W462 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
94. imity input Contact 0 02 4 Origin input Contact 0 06 Search high speed Pulse 10kHz frequency A Search deceleration ratio Search acceleration ratio 2000Hz 4ms 2000Hz 4ms 1 N Search proximity speed CCW CW Search direction Origin search is executed in the CW direction Detection method 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 e Positioning Common settings for the positioning operations are as follows e Target frequency 50kHz Acceleration deceleration ratio 2000Hz 4ms Initial frequency OHz Point B 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 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 136 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples E System Configuration Wirin
95. ins the internal clock and retained regions of I O memory while the power supply is OFF If no battery is installed or if the installed battery is running low the internal clock will stop and data in the retained regions of I O memory will be lost Data such as user programs and PLC system settings are not lost even when the power is OFF and no battery is installed For details on replacing the battery refer to 70 2 Replacing User servicable Parts of CP Series CP1L CPU Unit User s Manual W462 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 SYSMAC CP1L Getting Started Guide SECTION 4 Creating Programs In this section the steps for creating ladder programs essential to CP1L operation will be shown using CX Programmer In creating the ladder program for the shutter control system the basic functions of CX Programmer will be explained 4 1 Preparing for Programming 36 4 1 1 What is CX Programmer 36 4 1 2 Connecting to a Computer and Installing the USB Driver 37 4 2 Creating Ladder Programs 42 4 2 5ODerallohi Sos O 42 1 2 2 cad
96. la Ed Ae uet AC eee Took We Help Hu Oe OA m AUT T BEA 0 era ia Lee i Sr mn iw p i Om n NA AGAD apan E Na D r EH H EH E Be m Por bie prem PI Biat C Fit def Can nura b l S nput the ladder program for the interrupt To display the main ladder program double click Section1 under NewProgram 1 00 in the project tree 124 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples m A 4 4 Using Calendar Timers B Functions Used e Clock CP1L CPU units have a built in clock The clock cannot be used if a battery is not installed or the battery voltage is low E Operation 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 Lats Ain LIN LBS Zi LR RONS AD qabda Z7 I V N Z h YE Fountain E System Configuration eWiring Example CP1L Fountain pump 100 00 SYSMAC CP1L Getting Started Guide xipueddy gt 125 xipueddy mM A 4 CP1L Programming Examples E Programming Example e adder Program B INFO 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
97. lace the cursor at the position where the INV002 Refresh FB is to be inserted Select Insert Function Block Invocation from the main menu red CK Piaopgraemmes No C1 Noe roam Section Dap azal The New Function Block Invocation dialog box will be displayed New Function Block Invocation FE Instance E 06 FB Definition INVOD2 Refresh Cancel 156 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples m 6 Input a name for FB Instance Press the Enter key The named FB instance will be displayed Untitled ala suci T Iu NL uud use DNIC Lf ll Fia Ede Vam reed AC fope Tode Weee Hep Dg Rk att a BA 5 4220 9 SAN AWW o G BELA u m akzu ud sac O h0 NG 5 8 DHS Ek 7 Connect an input contact to the FB 8 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 Pow 1 Aew rograni Section Diagram Be 2 C 6 Te BAGA LUN RS Rr tre EC TE k oS Peek F UNO Eee PED CU 09 E 0 nn ND M Ug e ig xipueddy SYSMAC CP1L Getting Started Guide 157 mM A 4 CP1L Programming Examples A 4 9 Exchanging Data between CP1Ls E Functions Used 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 CP1L CP1H CJ
98. losed Contacts of 4 5 2 Inputting Contacts 4 Refer to 4 5 3 Inputting Output Coils WO 00 Work area Timer 5 0 04 Light detection sensor Counter 6 suJeJ6oJd DuneoJ2 ES T0000 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 First cycle 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 STOP button Lower Escalation De escalation 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 44 SYSMAC CP1L Getting Started Guide 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 On the desktop select Start All Programs OMRON CX One CX Programmer CX Programmer CX Programmer will start The title screen will be displayed followed by the main window suJeJ6oJg EN Note For details on installing CX Programmer refer to Chapter 1 Overview and Installation of CX One of CX One Introduction Guide R145 SYSMAC CPT1
99. low 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 O Allocation for the Shutter Control System O allocation 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 CP1L Test PLC operation Refer to 4 1 Preparing for Programming Preparing to write program Install USB driver onto computer Connecting CP1L to a computer Writ Refer to 4 2 Creating a Ladder Program 4 3 Using riting programs CX Programmer 4 5 Inputting Programs 4 6 Saving in CX Programmer Loading Programs and 4 7 Editing Programs Compile Save Edit Refer to 5 1 Going Online Going online with CP1L and the computer Set the CP1L 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 Getting Started Guide swa sAs bulubisag N 19 mM 2 2 About the Shutter Control System 2 2 About the Shutter Control System This section defines the operation and components of a shutter control system 2 2 2 1 Op
100. me CX Pro grammer 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 VVindovvs 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 ovvners O OMRON 2007 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permission of OMRON 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 sub ject 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 CONTENT
101. mple program used in this section 2 1 Organization of this ManuAal 18 2 2 About the Shutter Control System 20 YAZA l fzi ce aires AE 0 35 20 2 2 2 5ystem COMPONE MO aa 6 eae eee 21 2 3 HO Allocation for the Shutter Control System 22 2 4 Example Ladder Program 24 swa sAs Bulubiseq N 18 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 shutter control system as an example Section contents are as follows Section 2 Workflow from design to operation shutter control system specifications components and I O allocation Section 3 CP1L installation component wiring and power testing Section 4 Connecting CP1L to a computer and creating ladder programs Section 5 Setting PLC clock and PLC operation mode transferring data from computer to CP1L operation adjustment and debugging Note Circuit configurations wiring methods and programs provided in this manual are given strictly as examples When constructing an actual system check the specifications performance and safety of each component by referring to the respective manuals SYSMAC CP1L Getting Started Guide 2 1 Organization of this Manual IM eWorkf
102. ner Workings of CP1L B Peripheral Services Note 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 requests 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 O 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 Processes reading and writing of data from and to the accessing service built in flash memory Memory cassette Processes reading and
103. o you want the wizard bo do 2 yeti the software automaticaly Recon D Confirm that Include this location in the search is checked and that C Program Files OMRON CX Server USB Win2000_XP Inf is displayed in the location field Click Next Driver installation will begin When the installation is complete a dialog box will be displayed confirming that installation is complete Found New Hardware Wizard Please choose pour search and installation options C2 Seaech for the best diver in hesa locations Ute the check bout below to limit or expand the defauk search which includes local patha and removable media The best diwa found val be installed eh ne pd flori CD ROM COO Don t search wil choose the driver to install Choose thet phon select the devica dives om a ist Windows does nob guasanbae Ihat Hha dines you choose will be the best maich for your SYSMAC CP1L Getting Started Guide Buneag EN 39 suJeJ6oJd DuneoJ2 ES 40 4 1 Preparing for Programming If the Hardware Installation dialog box is displayed click Continue Anyway Hardware Installation The software vou are installing for this hardware OMNON SYSHMAC PLE Device has not passed E Logo ee to k l its compatibility with Windows XP Tel Contmuing your installation of this software may impair or destabilize the comect operation of your system either immediately or in th
104. odelTypeMV rror UINT IntervalCount AreaNo WORD MSGArealD INT MSGAreaNo Busy flag Axis No in use Error Error code 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 e Issues communication commands to inverters Processes communication errors Assigns priorities when multiple commands are issued Execute rotation frequency specification in Hz INVO32 MoveVelocity Hz Inverter No Start Frequency Rotation direction Utilization area type Utilization area No Specifies start signal rotation direction and frequency in Hz _INV032_MoveVelocityHz BOOL BOOL EN ENO BOOL NodeNo InVelocit BOOL BOOL Execute Command Aborted REAL Velocity INT Direction WORD ArealD INT AreaNo INT Matching speed Force quit Decelerate to stop _INVO60_ Stop _INVO60_ Stop BOOL BOOL EN ENO BOOL Done BOOL Error INT NodeNo BOOL Execute Deceleration complete Error Inverter No Start Area type Error code Area No Decelerates an operating axis to a stop SYSMAC CP1L Getting Started Guide gt xipueddy 151 xipueddy e adder Program W0 00 Contact A W0 01 Contact B W0 02 Contact C
105. of protocol macro and max number of transmission data channels within messages 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 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 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 110 SYSMAC CP1L Getting Started Guide A 3 Inner VVorkings of CP1L 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 55Hs 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 1us x 3 instructions Timer instructions 6 4us x 1 instruction Counter instructions 6 7us x 1 instruction END instruction 6 2us x 1 instruction Cycle time calculation N A I O refreshing N A no expansion unit Oms xipueddy The following conditions apply 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 Getting Started Guide 111 xipueddy B Functions Used External Analog S
106. ollowing 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 eDiagram Workspace 1 2 3 4 Rung number Program address Rung header If a rung is incomplete a red line will be displayed to the right of its rung header Bus bar information Window Displays basic shortcut keys used in CX Programmer Select View Windows Information Window from the main menu to show hide the information window SYSMAC CPT1L Getting Started Guide Buneag EN 47 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 m Referencing CX Programmer Help 1 While using CX Programmer press the F1 key The help window will be displayed CX Proprammnr Help Contents Index ea Favostes
107. ondition is 0 OUT NOT OUT NOT Turns relay coil OFF when execution condition is 1 and ON when execution condition is 0 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 RESET 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 011 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 m 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 100 SYSMAC CP1L Getting Started Guide A 2 Instructions mM eAND AND NOT Instructions Use for contacts connected in series p cj 000000 1 000002 EU em Note There is no limit on the number of contacts that can be connected by AND AND NOT instructions OR OR NOT Instructions Use for contacts connected in parallel 000000 Bus bar 000004 000001 000005 Note There is no limit on the number of contacts that can be connected by NOT instructions
108. peration Manual W450 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 V arranty and Limitations of Liability B WARRANTY 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 E LIMITATIONS 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 INNO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY REPAIR OR OTHER CLAIMS REGARDING THE PRODUCTS UNLESS OMRON S ANALYSIS CONFIRMS
109. plains operations that take place within a CP1L CPU unit m CPU Unit Operation Flow Program executions execution of instructions are first processed followed by 1 O refresh and execution of the peripheral servicing These processes are repeated in cyclic fashion Power ON Power ON nitialize hardware memory and system work initialization Detect connected units Processes Execute automatic start up transfer from memory cassette Clear I O memory Check user memory UM Force set force reset gt gt Overseeing Check for battery error processes Monitor DIP switches T 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 I O refresh Perform cyclic data exchange on the following units CP series expansion units VO refresh is performed in PROGRAM mode also Peripheral Services only executed on event occurrence Services Peripheral USB port service Serial port service Communication port service Built in flash memory access service Memory cassette access service Online editing SYSMAC CP1L Getting Started Guide 105 gt 2 o o D 2 o x mM A 3 Inner Workings of CP1L m O
110. ps 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 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 alvvays ground the terminal vvith class D grounding ground resistance of 100 O 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 Recommended crimp terminal When wiring the AC power supply use ring type crimp terminals to prevent unintended disconnection N 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 B 14 point I O Units CP1L has input terminals located at the top and output terminals located at the bottom 1 2 SIS S SS SS SS GS G9 SERRE H 06 PERIPHERAL BATTERY Input terminal Output terminal SYSMAC CP1
111. r 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 AWHOLE 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 E PROGRAMMABLE PRODUCTS OMRON shall not be responsible for the user s programming of a programmable product or any consequence thereof Disclaimers m CHANGE IN SPECIFICATIONS Product specifications and accessories may be changed at any time based on improvements and other reasons It is our practice to change model numbers when published ratings or features are changed or when significant construction changes are made However some specifications of the products may be changed without any notice When in doubt special model numbers may be assigned to fix or establish key specifications for your application on your request Please consult with your OMRON representative at any time to confirm actual specifications of purchased products m DIMENSIONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufacturing purposes even when tolerances are shown E PERFORMANCE DATA Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty It may represent the
112. ration Raio 2900 input Signal MO Seach Ratis 2000 2 Prosamdy Input Signal NO Positioning Morihor Timo 0 H m xipueddy Base Settings Origin Search Undefined Origin Use define origin operation CW Limit Input Signal Operation Search Direction cw Limit Input Signal Detection Method Methd 0 Search Operation Operating Mode Origin Input Signal Search Return Initial Speed Opps Speed Curve Trapezoidal Search Compensation Vane 0 Positioning Monitor Time 4 Close the PLC Settings dialog box D To apply changes made to the PLC settings turn the PLC power ON 138 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples m E Programming 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 I ORG 889 Origin search ORG instruction Start origin search 0 Pulse output 0 Origin search function CW CCW pulse output method PLS2 887 Positioning PLS2 instruction 80 Pulse output 0 34 Absolute pulse specification Position data setup table 0 04 Positioning to point A Initial frequency setting 0 05 Positioning to point B Initial frequency setting Output flags for origin search and positioning completion 0 03 0 04 0 05 W0 00 Positioning Positionin
113. rns ON when data comparison returns an equal e Turns ON when data becomes 0 as a result of calculations or transfers Unequal flag lt gt P NE 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 when data comparison returns equals flag data15 data2 Less than flag lt PLT Turns ON vvhen data comparison returns data1 data2 Less than or lt P LE Turns ON when data comparison returns equals flag data1 lt data2 Negative flag Turns ON when the MSB becomes 1 as a result of calculations Overflow Overlowflag eae ri s r Turns ON when the calculation result overflows ON when the calculation result overflows Underflow flag P UF Turns 5 when the calculation result underflovvs Alvvays ON flag ON P ON Remains ON at all times Used as an execution condition for instructions that cannot be connected directly to the bus bar Alvvays OFF flag P OFF Remains OFF at all times xipueddy 96 SYSMAC CP1L Getting Started Guide A 1 Channel Relay Numbers Clock Pulses Clock pulses are contacts that turn ON OFF at a fixed time interval 0 02s clock pulse 0 02s P 0 02s 0 1s clock pulse 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 0 1s
114. rs as follows Operation command RS 422 485 communication enabled n004 Frequency command Frequency commands from RS 422 485 communication enabled Acceleration time 1 Acceleration time sec Deceleration time 1 Deceleration time sec n151 RS 422 485 communication Detection enabled detect errors stop Timeout detection deceleration after deceleration time 1 Default n152 RS 422 485 communication 1 Select unit for communication of frequency Frequency commands and commands data and frequency monitoring data monitoring Unit 0 01Hz Default n153 RS 422 485 communication Slave address n154 RS 422 485 communication Baud rate Slave address slave node number unit 1 Communication baud rate communication speed 9600bps Default n155 RS 422 485 communication Parity n156 RS 422 485 communication Transmission wait time n157 RS 422 485 communication RTS control 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 Ru Even parity SYSMAC CP1L Getting Started Guide 143 xipueddy mM A 4 CP1L Programming Examples ePLC Setup Configure serial port 1 Open the PLC Settings dialog box Click the Serial Port 1 tab 3 Set the following settings N PLC Settings Mewi LC1 File Options Help Setinge Tevenge constant Pest 1 COTE Buln Input Pulse Quit 0 Pule 0AE Link
115. s 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 98 SE Me NT 4 0 SP6a 2000 SP3 or later or XP 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 VV446 SYSMAC CP1L Getting Started Guide 4 1 Preparing for Programming 4 1 2 Connecting to a Computer and nstalling 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 7 1 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 98 Me 2000 or XP CX One i e CX Programmer USB driver Included with software USB cable USB 1 1 or 2 0 cable A B 5m or shorter Restrictions on USB Connections Buneag ES Due to l
116. sag N Work area 0 04 Light detection sensor T0000 Timer C0000 Counter A200 11 P First Cycle First cycle flag 0000 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 Lovver Escalation De escalation limit LS motor motor CLOSE button 100 01 De escalation motor 0 03 Car detection sensor 24 SYSMAC CP1L Getting Started Guide SECTION 3 Mounting and Wiring This section explains how to install CP1L onto a DIN track how to wire power supply and I O lines and how to test operation lhstallatlohi NOIES E 26 3 2 Mounting onto DIN Tracks 29 3 9 VEI DOV ICC Serie ced E uo 0 NANG 30 3 3 1 Connecting Power Supply and Ground Lines 30 S o 2 CONMECHEG VOLNE S ssi 0 31 cover Testing pP cui cM am gana a LI E 33 Mounting and Wiring 3 1 Installation Notes For improved reliability and maximized functionality take the following factors into consideration when installing a CP1L system B Installation Location Do not install in the following locations Locations subject to ambient temperature lower than 0 C or higher than 55 C Locations subject to dramatic temperature changes causing possible condensation
117. ssies UU Power is ON Green Notlit Power is OFF RUN CP1L is executing a program in either RUN or MONITOR mode Not lit 1 Operation is stopped in PROGRAM mode or stopped due to a fatal error ERR ALM Lit A fatal error including FALS execution or a hardvvare error VVDT error Red has occurred CP1L operation will stop and all outputs will be turned OFF Blinking A non fatal error including FAL execution has occurred CP1L 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 Not lit Operation normal PRPHL Blinking 1 Communication either sending or receiving is active on the peripheral Yellow USB port Notlit Any other state BKUP User program parameter or data memory is being written to or read Yellow 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 Note Do not turn the PLC power supply OFF while this indicator is lit Notlit Any other state SYSMAC CP1L Getting Started Guide SECTION 2 Designing Systems This section explains how to construct a CP1L system using a shutter control system as an example All subsequent sections are written based on the sa
118. stem will change to RUN mode and begin operating CX Programmar v7 1 Make sure ihat there arent any problem il Ue PLC i started Do you veh b feito Ue PLC inta Run L 02 SYSMAC CP1L Getting Started Guide 5 2 Adlusting Debugging Online 5 2 Adjusting Debugging Online This section explains functions used for debugging and for adjustments during test runs 5 2 1 Monitoring m Displaying Conduction Status The conduction status of the program rungs will be displayed This will allow you to confirm program execution Change CP1L to the MONITOR operating mode 2 Select PLC Monitor Monitoring from the main menu SAGA AN Gd BEL Bl R N EHM A ang sf 4 6 Fates cdit EF W H Frakak l E Corp B PLA Pagara Armand Check Option Error leg PLC Ces enp am Abaya Block J d suya a ip m eba b D ruere ficca Qe dd Memory lea LE b sweiboig Buibbngag pue BuusJsueJ o SYSMAC CP1L Getting Started Guide 83 suJeJ6oJg buibbngag pue BuuejsueJ a 84 5 2 Adjusting Debugging Online m Displaying Conduction Status at Multiple Sections The diagram workspace can be split Multiple sections of the program can be viewed simultaneously 1 Window divider Drag the window divider to split the diagram workspace The workspace can be split in up to 4 sections SYSMAC
119. t dme Eee dar 68 4 6 EOD PTOQTal s aa ne Urdu ba n ou 71 SECTION 5 Transferring and Debugging Programs 75 T Gold Online ass UNT 76 5 2 JAdjusting Debugging Online a dala a dud 83 APPENOD AA 93 A 1 Channel Relay Numbers aa eie a an a 11 94 7152 in EUC ORS 99 Aad 103 A 4 CP1L Programming Examples 112 About this Manual This manual describes installation and operation of the CP series Programmable Controllers PLCs and includes the sections described below The CP Series provides advanced package type PLCs based on OMRON s advanced control technologies and vast experience in automated control Please read this manual carefully and be sure you understand the information provided before attempting to install or operate a CP series PLC Be sure to read the precautions provided in the fol lowing section This manual is intended for first time users of the SYSMAC CP series The basic use of the series is explained based on SYSMAC CP1L 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 W
120. tiray m CP1L Operating Mode CP1L has 3 operating modes PROGRAM MONITOR and RUN Change the operating mode to reflect the operation to be performed The operation mode affects the whole user program and is common to all tasks 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 memory values This mode is also used for making adjustments during test runs e RUN mode In this state the program is executed Use this mode for production runs SYSMAC CP1L Getting Started Guide sweibo g Buibbngag pue BuusJsueJ a 19 5 1 Going Online The following table lists the status and available operations for each mode Operating Mode PROGRAM MONITOR Program status Stopped Running OFF Depends on Depends on program program Cleared Held I O refreshing External I O status memory Non holding memory Depends on Depends on Holding memory program program O A A I O memory monitoring Operations from CX Programmer O A Program monitoring Program From PLC OK transfer To PLC OK Compiling PLC setup Changing program O A O O O A A Force setting Force resetting O A
121. to 2 serial communication option boards installed m 11 Expansion I O unit connector Used to connect CP series expansion I O units and expansion units 14 20 point I O units may have 1 expansion unit connected 30 40 point I O units may have up to 3 expansion units connected 12 Output indicators Lit when the corresponding output terminal contact is ON 13 External power supply and output terminal block e 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 Output terminals Used to connect output lines 14 DIN track mounting pin Used for mounting unit to a DIN track 15 Memory cassette optional 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 17 RS 422A 485 option board Insert into option board slot 10 SYSMAC CP1L Getting Started Guide 15 M VM AQ ILdO 16 1 2 Part Names and Functions ndicator Statuses This section describes the operating statuses of CP1L as displayed by the operation indicators ha Com em oe eo ae a Ne 2 c N EXP Es POWER hz RUN Es ERR ALM PERIPHERAL a NC 00 of COM COM COM COM F E E EE E Si
122. to mount CP1L onto a DIN track 1 Pull out the DIN track mounting pin 1 BuuiM pue Bununo m ad SYSMAC CP1L Getting Started Guide 29 BB 3 3 Wiring Devices 3 3 Wiring Devices This section explains how to wire CP1L 14 point I O unit with AC power supply m Protective 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 m Units with AC Power Supply Power and ground terminals A are located near the top of CP1L pue Sununoly c 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 30 SYSMAC CP1L Getting Started Guide 3 3 Wiring Devices 4 In consideration of voltage dro
123. tor is activated e 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 e 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 Getting Started Guide 4 2 Creating Ladder Programs After Entering the Garage Exiting the Garage 1 Car detection sensor A car detection sensor will detect full car entrance into the garage and activate the shutter de escalation motor 2 Push buttons e 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 SYSMAC CP1L Getting Started Guide Buneag EN 43 4 2 Creating Ladder Programs 4 2 2 Ladder Program The ladder program for the example application is shovvn belovv 0 04 T0000 W0 00 Light detection Timer 3 Work area 4 sensor 1 W0 00 1 Refer to Inputting Contacts of 4 5 2 Inputting Contacts 2 Refer to Inputting OR Circuits of 4 5 2 Inputting Contacts Work area 2 3 Refer to Inputting C
124. tructions 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 H020 ON data in holding area HO20CH is transferred D00020 ito DM D00020 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 Getting Started Guide 95 NI A 1 Channel Relay Numbers eCondition 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 Error flag ER P ER 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 Access error flag AER P AER Turns ON when unauthorized access is attempted on an area that is not meant to be accessed Carry flag CY P CY 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 Equals flag P EQ e Tu
125. unt 4 Close the PLC Settings dialog box D To apply changes made to the PLC settings turn the PLC power ON 120 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples mM m Programming 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 On MSKS 690 Interrupt input O Up specification for input Interrupt input O 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 RESET input SYSMAC CP1L Getting Started Guide xipueddy gt 121 xipueddy mM A 4 CP1L Programming Examples When interrupt input O contact 0 04 turns ON the following interrupt task 140 will be executed once Assignment of interrupt tasks to interrupt inputs is fixed Interrupt input O will always execute interrupt task 140 0 00 0 01 0 02 HAHA Sensor input 1 Sensor input 2 Sensor input 3 PASS output 0 00 SET NG output i t1 Interrupt task Sensor input 1 10002 177 ups SET NG output sensor input 2 Sensor input 2 100 03 0 02 NG output 100 04 sensor input 3 Sensor input 3 122 SYSMAC CP1L Getting Started Guide A 4 CP1L Programming Examples mM B INFO eCreating Interrupt Task Programs 1 Right click NewPLC1 CP1L Offline in th
126. up refer to CX Programmer Operation Manual W446 Built in flash memory 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 portion 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 Memory cassette 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 104 SYSMAC CP1L Getting Started Guide A 3 Inner VVorkings of CP1L Im A 3 2 CPU Unit Behavior This section briefly ex
127. xplains how to use the instructions and gives some basic instructions A 2 1 Using nstructions 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 Fora list 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 m Notation for Instructions nstructions 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 Getting Started Guide gt 99 xipueddy mM A 2 Instructions A 2 2 Basic I O Processing Instructions Basic 1 O processing instructions are used for writing to contacts and coils LOAD 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 AN oR Coil Turns relay coil ON when execution condition is 1 and OFF when Output execution c
Download Pdf Manuals
Related Search
Related Contents
Craftsman 917.374365 Lawn Mower User Manual SERVICE MANUAL - Philips Parts and Accessories Manual de Usuario FULL HD Outdoor Sports Camera 取扱説明書 Notice d`instruction du TIM31x Provital - Angeloni TL 580 TL 580 Viewsonic DLP multimedia projector En Direct de la MDA – n°16 Copyright © All rights reserved.
Failed to retrieve file