Home

INTRODUCTION MANUAL

image

Contents

1. Input the ladder program for the interrupt To display the main ladder program double click Section 1 under NewProgram 1 00 in the project tree SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM A 4 4 Using Calendar Timers M Functions Used 6 Clock M Operation Overview LY Jy Be De BY 19 ahd Bhd AND AND ANS 4208 RZ GEN AWRY li LLLA 1 Ve C A en o FL m o g r Fountain M System Configuration Wiring Example I As s 69 9 59 1 1 3 ex es es es es ess RY Fountain pump 100 00 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 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 OK i Hi a CP1L SYSMAC CP1L Introduction Manual xipueddy 125 B A 4 CP1L Programming Examples E Programming Example Ladder Program 100 00 Fountain pump A Turned ON for Monday thru Friday i e when A354 day is less than or equal to Friday 1m from 17 30 when A351 hh mm ss becomes equal to the value set in DO 17 30 00 until 2
2. ERR ALM POVVER Povver is ON Green Not lit 1 Povver is OFF RUN CP1L is executing a program in either RUN or MONITOR mode Green Not lit Operation is stopped in PROGRAM mode or stopped due to a fatal error ERR ALM A fatal error including FALS execution or a hardware error WDT 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 Notlit lit Operation normal o normal INH The output OFF bit a has turned ON Yellow All outputs will be turned OFF Not lit 1 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 Introduction Manual SECTION 2 Designing Systems This section explains hovv to construct a CP1L system using a shutter
3. 64 B basic processing instruction 100 BALET Lao LE 14 battery free operation 34 built in flash memory 104 built in I O area 107 C calendar timer 125 changing timer setting 88 CPG ETT 94 cock TR M CIOCK DUIS Q 97 56 COH D E m anaE 68 condition flag 96 connecting CX Programmer and CP1L 37 connecting to a computer 38 connection line sees i por sas da 14 B n 54 counter instruction 61 CPU 13 103 CX Programmer 36 CVCE llmesi dal 91 92 109 cyclic refreshing 106 D data memory DM 14 GEDU m LDU 83 deleting contacts and coils 73 device VDE suci a d 51 diagram workspace 46 47 differentiated up contact 66 TIN TESI bn a coe D Ob Seti orar bau 20 DIP SWIC sie ina tei beo s ein deerat m noon 14 E eding T nd 73 END Instr ellon seis vitet badi 67 clue LC 16 EX DANSON uni eeri a bi 15 external analog settings input 14 112 exte
4. QORG 889 Origin search ORG instruction Start origin search 0 Pulse output 0 Origin search function CW CCW pulse output method 0 04 IO PLS2 887 Positioning PLS2 instruction Positioning to point A Pulse output 0 Absolute pulse specification Position data setup table Initial frequency setting 0 05 PLS2 887 Positioning PLS2 instruction Positioning to point B Pulse output 0 0 Absolute pulse specification Position data setup table D Initial frequency setting Output flags for origin search and positioning completion 0 03 0 04 0 05 WO 00 Positioning Positioning Start origin search topointA to point B W0 00 A280 06 100 05 Origin search complete Origin stop 0 04 0 03 0 05 WO0 01 Positioning Start origin Positioning to point A search to point B 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 WO 02 A280 03 100 03 Point B positioning complete Pulse output complete SYSMAC CP1L Introduction Manual xipueddy 139 i A 4 CP1L Programming Examples DM Area Setup Example mem Vae Content D0000 07DO Acceleration ratio 2000 Hz 4ms D0001 07DO Deceleration ratio 2000 Hz 4ms D0002 C350 Target frequency 50000 Hz EM 0000 E E 8 Pulse output volume 1000 Hz D0005 FFFF Point A positi
5. gt 4 Select the CPU from the CPU Type drop down list Click OK The Device Type Settings dialog box will be closed Device Type Settings CP1L General E Step Read Only Expansion Memory Read Only File Memory Read Only Timer Clock Installed Make Default 52 SYSMAC CP1L Introduction Manual 4 5 Inputting Programs 5 Confirm that USB is displayed for Network Type Click OK Change PLC Device Name INewPLCI Device Type M etwork T ype Comment The Change PLC dialog box will be closed Main window for the new project will be displayed Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram File Edit View Insert PLC Proqram Tools Window Help mi x D c ki pg amp Ba dA 980 ALBA ls 83 a Q HE Sis EH Ta S i w4uew HEY L Ix amp z BB mS m A 24 E lr ah 22 19 2 EI zd xd NewProject fm NewPLC1 CP1L Offline 3 Symbols 10 Table and Unik Setup 2 7777777772777227277722 z 7 A Settings 2 Memory 2 2 Programs ZA 2 3 NewProgram1 00 3 Symbols section END 1 F Function Blocks 4 Project xj Name Address or Value Comment For Help press F1 NewPLC1 Net 0 Node 0 Offline rung 0 0 100 NUM p Y EE a If US
6. New Coil SYSMAC CP1L Introduction Manual suJeJ6oJd DuneoJ2 ES 57 suJeJ60Jd DuneoJ2 gt 58 4 5 Inputting Programs 4 Press the down arrow key 2 times When the cursor is positioned on the next rung the current rung input is complete u vi Wok Area mu umummum 4 2 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 OUO SYSMAC CP1L Introduction Manual 4 5 Inputting Programs 4 5 4 Inputting Timers 1 Press the C key Input contact W000 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 Marc Area Wok Area mummmm 1 Yunun 4 2 Press the I key The New Instruction dialog box will be displayed New Instruction Detail gt gt 3 Input timer in
7. n Work Area 1 Ww0 00 4 Work Area TIM Timer 0000 Timer Timer number 50 Set value 2 0 04 Light detecti CNT Counter T n 0000 Counter Counter number Timer C 3 Set value Counter SE EBB HEE 4 Fa d a a a a d dA aFP First Cycle First Cycle Flag z mumuuum 222222222222 4 SYSMAC CP1L Introduction Manual gt 65 BureoJ25 suJeJ60Jd DuneoJ2 gt 66 4 5 Inputting Programs 4 5 7 Inputting Differentiated Up Contacts 1 While referring to 4 2 2 Ladder Programs enter a ladder program extending to de escalation motor contact 10001 3 0000 0 100 01 0 100 00 Escalation motor Counter Stop button Upper LS X Dae escalatin Open button Q 100 00 Escalatian m I 0 02 0 100 00 Q 100 01 De escalation motor Close button Lower LS Escalation m Q 100 01 P A De escalatio 2 4 A 2222222722772277777 Z 2 Press the Enter key A space for inserting an OR circuit vvill be created 3 Press the W key The New Contact OR dialog box will be displayed 4 Input address 3 Press the Enter key The Edit Comment dialog box will be displayed 5 Input Car detection sensor as the I O comment Press the Enter key A contact representing input from the car detection sensor will be displayed as an OR circuit 3 0000 0 100 01 Q 100 0
8. Buibbngeqg pue 1 Place the cursor on the contact being investigated First Cycle Flag s Ui 6666677 x Q 100 01 Q 100 00 Escalation motor Upper LS De escalatio Counter Stop button Open button Q 100 00 Escalation m Q 100 01 I 0 02 Q 100 00 De escalation motor Close button Lower LS Escalation m Stop button Q 100 01 De escalatio I 0 03 Car detection 2 Press the Space key The cursor will be moved to the source output for the contact Light detecti Counter TOO00 L Counter 2 Counter number A 2 Z A 7 Set value Counter P First Cycle First Cycle Flag coooo I 0 01 I 0 05 Q 100 01 Q 100 00 Escalation motor Counter Stop button UpperLS De escalatio I 0 00 Open button Q 100 00 Escalation m 90 SYSMAC CP1L Introduction Manual 5 2 Adjusting Debugging Online 5 2 5 Online Editing The CP1L program can be edited online Caution adverse effects Otherwise input signals may not be read Note Before starting online editing confirm that the extension of cycle time will have no 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
9. Personnel in charge of designing FA systems Personnel in charge of managing FA systems and facilities 2 General Precautions N WARNING The user must operate the product according to the performance specifications described in the operation manuals Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems railroad systems aviation systems vehicles combustion systems medical equipment amusement machines safety equipment and other systems machines and equipment that may have a serious influence on lives and property if used improperly consult your OMRON representative Make sure that the ratings and performance characteristics of the product are sufficient for the systems machines and equipment and be sure to provide the systems machines and equipment with double safety mechanisms This manual provides information for programming and operating the Unit Be sure to read this manual before attempting to use the Unit and keep this manual close at hand for reference during operation 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 N Caut
10. 0 00 0 01 0 02 Sensor input 1 Sensor input 2 Sensor input 3 PASS output 0 00 SET NG output input 1 Interrupt task Sensor input 1 100 02 SET NG output Sensor input 2 400 03 99 input 2 0 02 SET NG output 100 04 Sensor input 3 Sensor input 3 122 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM M NFO 6 Creating Interrupt Task Programs 1 Right click NewPLC1 CP1L Offline in the 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 MewPLC1 MewProgram2 Section1 Diagram File Edit View Insert PLC Program Tools Window Help iz E p elo s Ea B d En SS Y NP AL a AA mg EES fe R 1H wH O Hg TS lal RJ 64 2128 ah l9 EE zl xd MewPrajeck imd NewPLCi CPiL Offline Symbols ET 10 Table and Unit Setup Settings et Memory 2 F A Programs 2 MewPrograml 200 Symbols Section END t da NewPragram2 Unassigned m Symbols E Section 2 Right click NewProgram2 Unassigned Select Properties from the pop up menu The Program Properties dialog box will be displayed Program Properties General Protection Comments Name MewProaramz T ask type Unassigned SYSMAC CP1L Introduction Manual xipueddy 123 xipueddy 124 B A 4 CP1L P
11. Memory View I 0 04 TOO00 Check usage including unused ght detecti 00 Show Rung Annotation Lists Alt A 28 50 Show Symbol Comments Alt Y m Show Proqram Section Comments Alt o nm 0 55 Show in RungWrap Work Area Tea Multi Interlock Map F Monitoring Data Type y Toolbars v Status Bar Output Alt 2 GA watch Alt 3 Information Window Ctrl Shift I Address Reference Tool Show as gt x FB Instance Viewer Alt 5 G Motoring PLC Memory Backup Status Counter First Cycle 111 Grid G Q Zoom In Alt Right 2 Input the address to search for Click Find application 1 CX Programmer Running NewPLC1 NewProgram1 Section1 Diagram 28 File Edit View Insert PLC Program Tools Window Help Duzu eR a KA s DA map E NewProject fg NewPLC1 CP1L Monitor Mode 3 Symbols 7 10 Table and Unit Setup T i ik Aras iino Light detectio 8 PLC Clock Memory Work Area A Programs NewProgram1 00 Running 3 Symbols 2 Timer section 2 Timer END Timer number 1 F Function Blocks o 5 2 D 3 5 o 5 o o C G a 5 T o i Q o 3 o Set value 1 0 04 Light detectio Counter Tannin Project xi sl ci Name XU AddressorValue WO 00 Comment xi PLC Name Bros da m 7 Address Ere Address Ese Program Section Step Instruction vu For Help press F1
12. SYSMAC CP1L Introduction Manual 163 Index mis EXIT qe MO NM 158 104 117 power supply voltage 30 DIGCQulols cust auti 9 program CNECK iso a yal 68 DFOGFAETDIIO eoe Sofas pea a a 36 DO le ERN RET 51 project tree 46 project workspace 46 pulse signal 135 Q quick response input 115 R raya s sbb 94 relay number 94 rung COMMON 22223 72 FUN GNC SR EE 47 S saving program 69 scan ile 116 119 SC ANC i gsesediustaciac EA 88 S C lOH S acetate acetate 46 164 SYSMAC CP1L Introduction Manual serial communication 141 setting the clock 77 Smart FB Library 148 special instruction 99 starting CX Programmer 45 T I II 83 timer instruction 59 ICD b TT EAE 46 46 transferring program 80 turning power On 33 U USB CHV 60 La a La 38 uS n 14 W watch vvindOovv 85 wiring groun
13. 4 2 Creating Ladder Programs 4 2 2 Ladder Program The ladder program for the example application is shovvn belovv 0 04 T0000 WO 00 Light detection Timer 3 Work area 4 sensor 1 W0 00 x1 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 Closed 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 suJeJ60Jd DuneoJ2 gt 10000 Timer 0000 Counter x5 Refer to 4 5 4 Inputting Timers x6 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 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 CLOSE button Lovver 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 Introduction Manual 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
14. OFF Disabled SDeonrolforRD ON ON ON Ebed PLC Setup Configure serial port 1 1 Open the PLC Settings dialog box 2 Click the Serial Port 1 tab 3 Set the following settings 72 PLC Settings NewPLC1 File Options Help Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 0 Pulse 0 4 gt Communications Settings Link Words C Standard 9600 1 7 2 E Custom Baud Format Mode 115200 2E Y PC Link Master Y 10 default Y Start Code End Code PC Link Mode 285 x ALL m E TE Master C Response Timeout Unit Number Delay NT PC Link Max PC Link Unit No default 5000ms CP L L Offline SYSMAC CP1L Introduction Manual xipueddy 159 B A 4 CP1L Programming Examples Boiler A Master Boiler B Slave No 0 Boiler C Slave No 1 Format 7 2 E Default PLC Link Master PLC Link Slave wwa wem T PLC Link Mode Complete Link Method 4 Close the PLC Settings dialog box M 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 gt l D Boiler A Boiler B Boiler C o CP1L Master CP1L Slave No 0 CP1L Slave No 1 X 1 OCH 1CH A Temperature data l N B Temperature data N C Temperature data 2CH 1 A Temperature data
15. This section explains how to mount CP1L onto a DIN track 1 Pull out the DIN track mounting pin 1 BuuiM pue BununoJA m p SYSMAC CP1L Introduction Manual 29 3 3 VViring Devices 3 3 Wiring Devices This section explains how to wire CP1L 14 point I O unit with AC power supply MH 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 BuuiM pue BununoJA 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 Introduction Manual 3 3 VViring Devices n consideration of voltage drops and allowable current use
16. When the compilation is complete program check results will be displayed in the output window ad Project r Name Address or Value Comment PLE Progam Name NewPLC1 NewProgram1 Section Name Section11 Section Name END NewPLCT errors 0 warnings The programs have been checked with the proqram check option set to Unit Ver 1 1 Compile Find Report Transfer K B For Help press F1 Nev PLC1 Net 0 Node Offline rung 2 1 2 96 NUM 2 Ifan error has been detected double click the error message in the output window The cursor is moved to where the error was detected Correct the error zd xi NewProject fil NewPLC1 CP1L Offline 3 Symbols 10 Table and Unit Setup I 0 04 Toooo 00 Settings 4 Memory Programs S MewProgram1 00 3 Symbols Work Area Light detecti Timer wo 00 Work Area 2 TIM Timer ICA NN AR 1 F Function Blocks 0000 Timer Timer number 50 Set value 2 I 0 04 6 ues pe 1 2 n 10000 0000 Counter zl 4 Project El ali Local Name Address or Value N A Auto Comment oL e ERROR Operan ndi uses symbol W with an invalid address at runa 1 0 01 Section Name END NewPLCT 1 error warning The programs have been checked with the proqram check option set to Unit Ver 1 1 biy Compile Find Report il 4 Bel For Help press F1 rung 1 0 9695 NUM
17. 1 15 2nn Project RO eee eee eee cee H M For Help press F1 NewPLC1 Net 0 Node 0 Offline rung 100 NUM TY TT NY T T T T Tn 2 4 4 4 5 X A AAmMA Ig lt SYSMAC CP1L Introduction Manual 71 suJeJ60Jd DuneoJ2 gt 72 4 7 Editing Programs 2 4 7 2 Inputting Rung Comments Comments can be added to each rung of a ladder program 1 Double click the address for which you wish to input or edit the I O comment The I O comment field will become editable Input or edit the I O comment Area Type 10 bit X Start Address 0 Address Symbol Comment 0 00 OPEN button 0 01 STOP button 0 02 CLOSE button 0 03 Car detection sensor 0 04 Light detection sensor 0 05 006 e Loner LS 0 07 0 08 0 09 0 10 0 11 0 12 Edit multiple comments 1 Show multiple comments uu Double click the rung header for the rung you wish to add a comment to The Rung Properties dialog box will be displayed v n Work Area 22222222222 1 00 4 Wonk Area T Counter Light detecti Light detecti P First Cycle Timer First Cycle Flag TIM 0000 50 Work Area Timer Timer Timer number Set value Counter Counter Counter number Set value 2 Onthe General tab input the comment into the comment field Rung Properties dal Gene
18. Function Block ladder generation Counter number Timer Delete Row Ctrl Alt Up COO00 Delete Column Ctrl Alt Left Counter P_First_Cycle First Cycle Flag Differentiate y Ccooo0 I 0 01 I 0 05 Q 100 01 Q 100 00 Escalation motor Hn Validate Symbols Counter Stop button Upper LS De escalatio I 0 00 Delete Unused Symbols 4 Project xj si Name Address or Value Comment Shows the I O Comment view NewPLC1 Net 0 Node 0 Offline rung 4 2 2 96 NUM nn nnn GSP A A 4 n x x x xnxnxXxnxnxn4n4n4M4d4H41414HQRQRQAI 8 The I O comment window will be displayed application 1 CX Programmer NewPLC1 IOComment Editing KL File Edit View Insert PLC Proqram Tools Window Help 2 m x D z E amp amp l Sm 9 V 5 Sui PE RA E23 Ed 53 zd xd Edit multiple comments NewProject Area Type 10 bit M Show multiple comments mj NewPLCI CP1H Offline 53 Symbols Start Address 0 sve m i 10 Table and Unit Setup Settings Address Symbol Comment 2 0 00 OPEN button R Programs 0 01 STOP button gl NewProgramt 00 0 02 CLOSE button 3 Symbols 0 03 Car detection sensor Section1 0 04 Light detection sensor END 0 05 Upper LS 1 F Function Blocks 0 06 Lower LS 0 07 0 08 0 09 0 10 0 11 0 12 0 13 0 14 0 15 1 00 1 01 1 02 1 03 1 04 1 05 1 06 1 07 1 08 1 03 1 10 1 11 1 12 1 13 1 14
19. Help Contents from the main menu CX Programmer Help will be displayed Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram 22 File Edit View Insert PLC Program Tools Window Malis De k p amp b m d Help Contents k ina Rk ee POPS wl oe Instruction Reference a Q H s 2 E Ta R SEVERE Keyboard Mapping Reference m p im m 129 10 10 OMRON Library Reference xi l Online Registration 9 About CX Programmer NewProject fg NewPLCI CP1L Offline 3 Symbols i 10 Table and Unit Setup Settings di Memory A Programs S NewProgram1 00 3 Symbols Section END I M Referencing PLC Instruction Sets For details on instructions used in ladder programs refer to PLC Instruction Sets E CS Series PLC Instruction Sets TE Hide Bac Forward Print Options suJeJ6oJd DuneoJ2 Contents Index Search Favorites Contents Sequence Input Instructions 3 SEQUENCE INPUT SEQUENCE QUTPUTS SEQUENCE CONTROL Sequence Output Instructions Ties COMPRO Sequence Control Instructions Dara MOVEMENT DATA SHIFT Timer and Counter Instructions INCREMENT IDECRERMENT SYMBOL Comparison Instructions MATHS CONVERSATION LOGIC Data Movement Instructions SPECIAL MATHS FLOATING POINT Data Shift Instructions MATHS TABLE DATA PROCESSING Increment D ecrement Instructions DATA CONTROL SUBROUTINE Symbol Maths Instructions INTERRUPT CONTROL STEP Basic
20. Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 2 High Speed Counter High Speed Counter 1 Iv Use high speed counter 0 Use high speed counter 1 Counting mode Linear mode Circular mode Counting mode p Circular Max Count Circular Max Count Reset Software reset comparing Reset Input Setting Differential phase input z Input Setting High Speed Counter 2 High Speed Counter 3 in ln Counting mode C Counting mode ps Circular Max Count Circular Max Count Reset Reset Input Setting nput Settinq nterrupt nput IND Normal Y IN1 Normal IN Normal X IN3 Normal xipueddy CP1L L Offline 3 Check the Use high speed counter 0 checkbox for High Speed Counter 0 Select Linear mode for Counting model Select Software reset comparing from the Reset drop down list Select Differential phase input from the Input Setting drop down list Close the PLC Settings dialog box To apply changes made to the PLC settings turn the PLC power ON po D SO UE oes 132 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM ll Programming Example 1 Use comparison instructions to compare counter values The program can be created easily by using comparison instructions to compare counter values GL adder Program Counter values are used to start slow stop the motor 0 02 WO 00 A DIFU Software reset Start mo
21. W51115 maa botot zs For 14 20 point I O units DO to D9999 D32000 to D32767 Note The work words in CIO Area may be assigned to new functions in future versions of the CPU Units Be sure to use the work words in W000 to W511CH first 94 SYSMAC CP1L Introduction Manual A 1 Channel Relay Numbers mM 6 Channel Data Notation Channel data is represented by 4 hexadecimal digits derived from 16 binary digits representing the ON OFF state of the 16 bits In other words for each 4 bits the sum of ON bits are calculated and expressed as a single digit MSB LSB Most Significant Bit Least Significant Bit i 79 V9vV7v ETE Content 1 1 1 1 1 1 1 1 1 1 ON O OFF The above channel will be expressed as 7 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 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 6 Instruction Execution Conditions There are 2 types of instructions cyclic instructions and differentiated instructions Cyclic Instructions The instruction is executed on each cycle for as long as
22. or to monitor the boilers from a single location Boiler A o Boiler B Boller C M System Configuration Wiring 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 7777 CP1W TS101 777 1 2 mumu ESSERE IE ES DACIE 1CH 2C nu ji elrelkolelkel lisi 50 550 5 50 5015 52 2 Pt100 sensor inputs 2 Pt100 sensor inputs 2 Pt100 sensor inputs CP1W CIF11 CP1W CIF11 CP1W CIF 11 RS422 485 option board RS422 485 option board RS422 485 option board CP1W CIF11 CP1W CIF11 CP1W CIF 11 i i 158 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples DIP Switch Setup for CP1VV CIF11 RS422 485 Option Board Rear panel CPU unit connector Operation setup DIP switches No 0 No 1 es aero rece for PLCs at the ends y m ar or sem 1 per uror ener RSconrolforRD OFF OFF
23. 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 I 0 04 Work Area Light detectio Y Work Area 4 7777772779 f Talan Wok Area Time Tim Timernum ber Set val EE ET I 0 04 6 Light detectio CNT Counter Tn nonn Ceunter gt 2 xi sl Mame Address Wr value Comment i P PLC Mame Name AN F DataT FBUsage Value Value B Comment 4 gt sheet A sheet2 sheet3 4 NewPLC1 Net 0 Node 0 Run Mode D 6ms SYNC rung 1 0 0 9495 NUI SYSMAC CP1L Introduction Manual suJeJ604d Burb nq q pue BuujejsueJ o 85 5 2 Adjusting Debugging Online I 0 04 0000 0 0 Work Area Light detecti Timer Ww0 00 Work Area BEB BE BBB RBBB RR RP RRP RP RP RP RP RR RR RRP RP RP RP RP RRP RRR RRP eee ee ee eee e ne Timer u E Timer a Timer number E Set value l q BEEP RP RP RP RBBB RP RRP RRR PPP RP RPP eee eee eee Ne B 0000 Counter e bd gt Address or Value Comment NOTER n i PLC Mame Name Address Data T FB Usage Value Value B Comment a E NewPLC1 TO CHANN 0 Bed 0000 0 Timer E NewPLCI 10000 BOOL 0 Timer t a NewPLC1 w0 00 BOOL 0 Interna m 225 Yad Gee IANUE See RBBB BBB RRP RBBB PRP PRP PRP RP ee ee eee eee s
24. 1 B Temperature data 1 C Temperature data 100CH 3100 A Temperature data 4 A Temperature data 0 3101CH TA Temperature data 1 i A Temperature data 1 3109CH 3110CH B Temperature data B Temperature data B Temperature data 0 3111CH B Temperature data 1 i B Temperature data 1 B Temperature data 1 Serial PLC link area 3119CH l 3120CH C Temperature data 0 l 3 C Temperature data 0 3121CH C Temperature data 1 C Temperature data 1 3129CH 3189CH 160 SYSMAC CP 1L Introduction Manual A 4 CP1L Programming Examples mM G Ladder Program Boiler A CP1L Master P On Use block transfer instruction to transfer 1CH 2CH to 3100CH 3101CH Boiler B CP1L Slave No 0 P On 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 Introduction Manual xipueddy 161 xipueddy gt 162 SYSMAC CP1L Introduction Manual index Numerics 14 polnt VO Ulixi sienten rie tedas 12 20 point I O unit 12 3O DOIDE DG DIE cuento aa sib 13 40 point I O unit 13 A address reference tool 88 analog adiuster 14 114 auxiliary area
25. 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 m Cx Designer m CX Drive m Cx FLnet m Cx Integrator E CX Motion Fi CX Motion MCH Fi CX Motion NCF E CX Position CX Process Tool Ef Online Manuals 2 m CX Protocol d CX Net Network Configuration Tool m CX Simulator m CX Programmer m CX Thermo R CX Programmer Help Fi Face Plate Auto Builder For NS B s File Conversion Utility Ei SwitchBox Utility E Release Notes amp CX One Auto Update SE CX One Introduction Guide All Programs A Log Off Turn Off Computer Note For details on installing CX Programmer refer to Chapter 1 Overview and Installation of CX One of CX One Introduction Guide R145 SYSMAC CP1L Introduction Manual gt 45 suJeJDoJg 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 VV446 Main Window application 1 CX Programmer NewPLC1 NewProgram1 Section1 Diagram 2 Rsemmaxn 28 2 MOS 9020 ALB ls 83 2 QQ Sr Te 4E44u4Bu oO H8 L y amp BE E 56 59 19 El e NewProject i fg NewPLCI CP1L Offline E H 252 Symbols 17 10 Table and Unit S
26. 55 C Locations subject to dramatic temperature changes causing possible condensation Locations subject to relative humidity lower than 10 RH or higher than 90 RH Locations subject to corrosive or flammable gases Locations subject to excessive dust salt or metal powder Locations subject to shock or vibration Locations exposed to direct sunlight Locations subject to water oil or chemical reagent splashes 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 Locations subject to possible radioactive exposure Locations in close proximity to close to power lines 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 6 Temperature Control The ambient operating temperature for CP1L is 0 to 55 C The following precautions apply Provide adequate space for air flow Do not install above equipment which generates significant heat i e heaters transformers high capacity resistors If the ambient temperature is to exceed 55 C install a cooling fan or air conditioner SYSMAC CP1L Introduction Manual 3 1 Installation Notes 1 Control panel 2 Fan 3 Louver BuuiM pue Bununoyy m 6 Accessibility for Op
27. Bus controllers C OMRON SYSMAC PLC Device amp Standard Enhanced PCI to USB Host Controller 6 Standard Universal PCI to USB Host Controller Standard Universal PCI to USB Host Controller de Standard Universal PCI to USB Host Controller de Standard Universal PCI to USB Host Controller USB Root Hub deb USB Root Hub Ge USB Root Hub Ge USB Root Hub Ge USB Root Hub 6 Close the Device Manager dialog box and then the System Properties dialog box If OMRON SYSMAC PLC Device is not displayed reinstall the USB driver For details on reinstalling the USB driver refer to 1 3 1 Connecting with a Commercially Available USB Cable of CP Series CP1L CPU Unit User s Manual W462 SYSMAC CP1L Introduction Manual 41 suJeJ60Jd DuneoJ2 gt 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 G Entering the Garage The component functions and operations will be defined in detail below Push buttons The shutter can be opened closed and stopped with buttons The OPEN and CLOSE buttons will continue operating the shutter even when they are not held down A self maintaining bit is
28. DM from flash memory CP1L L Offline Click the Built in nput tab SYSMAC CP1L Introduction Manual xipueddy 117 m A 4 CP1L Programming Examples 4 On the 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 73 PLC Settings NewPLC1 File Options Help Startup Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 0_4 2 High Speed Counter 0 Use high speed counter 0 Counting mode d Circular Max Count Reset Input Setting High Speed Counter 2 Counting mode p Circular Max Count Reset nput Settinq Interrupt Input INO Normal 1N1 Normal Normal nterrupt Quick k xipueddy High Speed Counter 1 Use high speed counter 1 Counting mode C Circular Max Count Reset Input Setting High Speed Counter 3 Counting mode C Circular Max Count Reset Input Setting IN2 Normal IN3 Normal CP L L Offline 5 Close the PLC Settings dialog box 6 To apply changes made to the PLC settings turn the PLC power ON lal Programming Example G Ladder Program 0 04 Sensor input 0 01 Counter reset input 0000 118 SYSMAC 11 Introduction Manual BCD counter 100 00 Count complete A 4 CP1L Prog
29. Help C Mew Ctrl M d i 7 4 A 22 KE Open Creo Close T z Save Ctrl 5 Save s Reusable File k Function Black Load Commenti Program Save Comment Program Compare Program Page Setup Print Preview amp b Print Ctrl P 1 AnnliraFinn 3 2 Select the FBL omronlib Inverter INVRT Serial folder A list of FB library files for serial communication with inverters will be displayed Select CX Programmer Function Block Library File Look ir Z Serial BE _INY201_ReadParameter11 cxf Ed _INVO32_Move elocityHz11 cxf MV203 ReadAxisErrarll cxf es _INVOS3_MoveVelocityRPM1 1 cxF Ej IMv401 WriteParameker11 cxf 14 060 Stepli cxf INV600_SebCornm 1 cxF d INvO8O Resetil cxf MV200 Readstatusll cxf File name INVOO2 R elresh12 Files of type Function Black Library Files cxf Cancel SYSMAC CP1L Introduction Manual xipueddy 155 B A 4 CP1L Programming Examples 3 A xipueddy Select INV002 Refresh12 cxf Click Open INVOO2 Refresh is added under Function Blocks in the project tree Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram File Edit View Insert PLC Proqram Tools Window Help D c E a amp 2 2B mS as a Q umS MEJR Q dk BE 9E m A k ka r ab S El xl NewProject fm NewPLC1 CP1L Offline 3 Symbols i 10 Table and Unit Setup Settings 4 Mem
30. To perform a trial run for adjustments and debugging change to MONITOR mode Caution Confirm that the facility will not be affected by changing to MONITOR or RUN mode 1 Select PLC Operating Mode Run from the main menu A dialog box will be displayed to confirm the operating mode change suJeJ6oJg BuibBnqeq pue BuuJeJsueJ application 1 CX Programmer Stopped NewPLC1 NewProgram1 Section1 Diagram File Edit View Insert Makel Proqram Tools Window Help D c amp ak on dE am I Ge di GE Work Online Simulator Ctrl Shift vV R a Qs GHBUULEKAK amp Bt 07 424 Ea 20 Auto Online F bb NewProject Sim NewPLCI CP1L 5t 22 Symbols Z Compile All PLC Programs F7 10 Table and U Program Check Options zal Settings Error log PLC Clock Program Assignments a Memory Programs NewProgra Transfer 22 Symbol Partial Transfer Gg Sectior amp END 1 F Function Blocks Monitor EE Monitor Ctrl 3 Function Block Memory gn m Protection Clear All Memory Areas Edit 2 Click Yes The system will change to RUN mode and begin operating CX Programmer v7 1 A Make sure that there aren t any problems if the PLC is started Do you wish to switch the PLC into Run mode 82 SYSMAC CP1L Introduction Manual 5 2 Adjusting Debugging Online 5 2 Adlusting Debugging Online This section explains functions used for debugging and for adiustments dur
31. after deceleration time 1 Default n152 RS 422 485 communication 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 1 Slave address slave node number unit 1 Slave address n154 RS 422 485 communication Communication baud rate communication Baud rate speed 9600bps Default n155 RS 422 485 communication Even parity Parity n156 RS 422 485 communication Sets the response wait time for request messages Transmission wait time received from the master 10ms Default n157 RS 422 485 communication RTS control enabled Default RTS control SYSMAC CP1L Introduction Manual 143 m A 4 CP1L Programming Examples PLC Setup Configure serial port 1 1 Open the PLC Settings dialog box 2 Click the Serial Port 1 tab 3 Set the following settings 73 PLC Settings NewPLC1 File Options Help Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output Pulse 04 gt Communications Settings Link Words Standard 9600 1 7 2 E Custom Baud Format Mode 9600 Y 8 1 E m Serial Gateway M Start Code End Code c c Es x css Paz lie C Response Timeout Unit Number Delay NT PC Link Max PC Link Unit No default 5000ms xipueddy CP L L Offline 4 Close the PLC Settings dialog box 144 SYSMAC CP1L Introduction Manu
32. an actual system check the specifications performance and safety of each component by referring to the respective manuals Ladder programs in this manual are provided strictly as examples When designing the actual circuits take adequate safety measures Precautions provide general precautions for using the Programmable Controller and related devices Section 1 introduces the types of CP1L 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 programming 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 VV446 SYSMAC CX Programmer Operation Manual Explains the system configuration installation vvir 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 followin
33. cR RS A RIE a Q Htc BBR 46 O EH amp SG Z6 1 mpm k s lx ah s IZ El EE 19 8 16 a gt bl TU py x s NewProject fg NewPLCI CP1L 1 Stop Program Mode 3 Symbols 10 Table and Unit Setup Settings A EBS Error log PLC Clock wo0 00 27 Work Area eS Programs Sd NewProgram1 00 Stopped 1 2 Wo 00 m x Work Area Gg Sectioni END 1 Function Blocks IB 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 suJeJ6oJg BuibBnqeq pue BuuJeJsueiJ e RUN mode In this state the program is executed Use this mode for production runs SYSMAC CP1L Introduction Manual 79 5 1 Going Online The following table lists the status and available operations for each mode Operating Mode PROGRAM MONITOR Program status Stopped Running I O refreshing Execute Execute
34. cases Smart FB Library can be used to significantly simplify the programming process User program Modbus RTU OMRON inverter 3G3MV 3G3RV Smart FB Library for OMRON 3G3MV 3G3RV Inverter INVOO2 Refresh Status refresh Refreshes the inverter status the inverter status _INV032_MoveVelocity_Hz Execute rotation frequency 575 start signal rotation specification in HZ direction and rotation speed in Hz INV033 MoveVelocity RPM Execute rotation rotation Specifies start signal rotation speed specified in rpm direction and rotation speed in rpm r min 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 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 Introduction Manual A 4 CP1L Programming Examples mM 6 runction 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 set
35. control system as an example All subsequent sections are written based on the sample program used in this section 2 1 Organization of this Manual 18 2 2 About the Shutter Control System 20 2 2 20ODeluiu 6 a Ti E E 20 2 2 2 o5ystem Componehls E MIU EIUS 21 2 3 Allocation for the Shutter Control System 22 2 4 Example Ladder Program 24 sulejs g Sulubis q 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 oection 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 I
36. 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 ss n High speed counter 3500 ll s A measurement pulse m A270 2 Ladder program turns the high speed softvvare reset A531 00 ON upon motor startup VVhile the pulse count is betvveen 3500 and 3550 normal stop position 100 02 vvill be ON VVhen the pulse count exceeds 3550 error stop position 100 03 vvill be ON 130 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples l System Configuration G Wiring Example Encoder power supply 24VDC E g Model E6B2 CVVZ6C NPN open collector output 24VDC Ov AC100 240V m Start motor 0 02 cres os o7 Nc we 0B 08 06 No NC Tere e903 06 ne os nc xipueddy Error stop position E Motor run 100 00 Motor slovv 100 01 Inverter etc 100 03 Indicator 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 Introduction Manual 131 m 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 72 PLC Settings NewPLC1 File Options Help Startup Settings Timings
37. 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 W446 SYSMAC CP1L Introduction Manual 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 Q Items 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 suJeJ6oJd DuneoJ2 ES Due to limitations of the USB specifications the fo
38. l Conversion Instructions UNIT SERIAL COMMS NETWORK Logic Instructions FILE MEMORY Special Maths Instructions Display Clock DEBUGGING Floating Point Maths Instructions FAILURE DIAGNOSIS BLOCK Table Data Processing Instructions PROGRAMMING Data Control Instructions TEXT STRING PROCESSING TASK CONTROL USER DEFINED OTHER Subroutine Instructions ee ea Dia 1 1 7 1 r 1 iiil SYSMAC CP1L Introduction Manual 49 suJeJ60Jd DuneoJ2 gt 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 Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram 22 File Edit View Insert PLC Proqram Tools Window Mais Ds m SQ x8 dA Contents l EET QAQ gif E Te RS Fr ur E Be m Keyboard Mapping Reference CV Series m wz FA Ed u BB 129 OMRON FB Library Reference C Series FOM Series zix jo Online Registration 9 About CX Proqrammer NewProject ga NewPLC1 CP1H Offline 3 Symbols 10 Table and Unit Setup 7 1777777777777777777 706 2 2 1 Settings 4 Memory eS Programs O 77 44 error eee 2 3 NewProgram1 00 3 Symbols Gg Section1 END 1 E Funrtinn Blacks While Creating Ladder Programs 1 While creating a ladder program instruction click Instruction Help on the New Instruction dialog box CP Seri
39. may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway 6 Click Finish USB driver installation is now complete Found Mew Hardware Wizard SYSMAC CP1L Introduction Manual Completing the Found Mew Hardware Wizard The wizard haz finished installing the software far OMRON SYSMAC PLC Device Click Finish to close the wizard 4 1 Preparing for Programming M Confirming Installation Confirm that the driver has been installed properly 1 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 suJeJ60Jd DuneoJ2 ES Device Manager File Action View Help E sa 9 A amp g IEEE 1394 Bus host controllers x Keyboards 7 Mice and other pointing devices BB Network adapters Y Ports COM amp LPT 4 898 Processors Sound video and game controllers System devices 4 Universal Serial
40. 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 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 Introduction Manual 15 M LM AQ 11L dO 16 1 2 Part Names and Functions 6 Indicator Statuses This section describes the operating statuses of CP1L as displayed by the operation indicators i POWER SSS Sees GS S S S 22
41. used to achieve this 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 Light detection sensor A light detection sensor detects light from headlights pointed at the garage When 3 headlight flashes are detected by a counter instruction the shutter escalation motor is activated After the first headlight flash a timer is activated by a timer instruction After 5 seconds a reset command is given to the counter instruction The present value of the counter instruction is retained even when CP1L is powered OFF To prevent malfunction a reset command is given to the counter instruction when CP1L is powered ON SYSMAC CP1L Introduction Manual 4 2 Creating Ladder Programs 6 After Entering the Garage Exiting the Garage 1 Car detection sensor A car detection sensor vvill 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 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 Introduction Manual suJeJ6oJd DuneoJ2 ES 43
42. 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 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 Introduction Manual A 3 Inner VVorkings of CP1L 6 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 15 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 cond
43. when inserting or deleting block programs edit offline then transfer the program 1 Change CP1L to the MONITOR or PROGRAM operating mode 2 Click the rung header of the rung you wish to edit 3 Select Program Online Edit Begin from the main menu The grey shading in the diagram workspace will disappear and the program becomes editable application 1 CX Programmer Running NewPLC1 NewProgram1 Section1 Diagram FH File Edit view Insert PLC DG eh SR Sow ae Tools Window Help Ctrl 9 M2 z Q HE Si 2 Ble Section Rung Manager 2 m m RES 46 S ETE eas E NewProject fg NewPLCI CP1L Monitor Mode 3 Symbols i 10 Table and Unit Setup f l Settings Error log 8 PLC Clock m Memory A Programs Tmmumumummum s m 4 Edit the program 2 m mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmua 6 CNT Counter 0000 Counter t umb 3 Bed 3 Set value 8 m 3 I 0 05 Q 100 01 Q 100 00 11 Escalation motor UpperLS De escalatio 4 1 I 0 06 Q 100 00 Q 100 01 18 2 De escalation motor Close button top butto Lower LS Escalation m Q 100 01 De escalatio SYSMAC CP1L Introduction Manual suJeJ604d Burb nq q pue BuujejsueJ o 91 s Burb nq q pue
44. 0 Escalation motor Counter Stop button D a azcalatin u pper LS Open button Q 100 00 Escalation m I 0 02 Q 100 00 Q 100 01 Da ezcalation motor Close button Escalatian m Q 100 01 Da ezcalatino I 0 03 meceeeeeeeeeeeeeeccl ng A Car detection 4 A 7 4727777777777 7777 7 6 Double click contact 003 The Edit Contact dialog box will be displayed Edit Contact 7 Detail gt gt Cancel SYSMAC CP1L Introduction Manual 4 5 Inputting Programs f 8 Click Detail Edit Contact Edit Contact Edit su Lancel t Symbol Infarmatian Hame Global Address or BOOL value Comment ub C Mone 9 Up t Down Immediate refresh An upward arrow representing a differentiated up condition will be displayed on the contact 3 0000 D D Q 100 01 Q 100 00 Escalation motor Counter I 0 00 Stop button UpperLS De escalatio Open button Q 100 00 Escalation m I 0 02 Q 100 00 Q 100 01 Close button Escalation m De escalation motor Q 100 01 De escalatio I 0 03 Car detection V777777777777777777724 222222222222222222272 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 inc
45. 0 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 gt DT and DT are time comparison instructions MINFO 6 Time Data on CP1L The clock s PV is output to the following auxiliary areas Time data A351 00 to A351 07 Second 00 to 59 BCD A351 08 to A351 15 Minute 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 Introduction Manual A 4 CP1L Programming Examples mM 6 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 5 4 3 210 1 T T t 010 0 DO Set 00 0038 Compare seconds Compare minutes Compare hours Mask days Mask months Ma
46. 04 T0000 WO0 00 U l Light detection VVork area 0 sensor 3 W0 00 Q 02 lt Work area o D WO0 00 o Work area 0 04 Light detection sensor Counter T0000 Timer 0000 Counter A200 11 P First Cycle First cycle flag C0000 0 01 0 05 100 01 100 00 Counter STOP button Upper De escalation Escalation limit LS motor motor 0 00 OPEN button 100 00 Escalation motor 0 02 0 01 0 06 100 00 100 01 CLOSE button 100 01 STOP button Lower Escalation De escalation limit LS motor motor De escalation motor 0 03 Car detection sensor 24 SYSMAC CP1L Introduction Manual 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 3 ToastallaUom Notes an cr an SIUE 26 3 2 Mounting onto DIN Tracks n are e 29 ZRA L n DEVICES 0000000000 30 3 3 1 Connecting Power Supply and Ground Lines 30 3 3 2 Copneectig l 0000000000 31 Testing CPIE orto ettet oett tete r ets 33 26 BuuiM pue Sununoyy Mounting and Wiring 3 1 Installation Notes For improved reliability and maximized functionality take the following factors into consideration when installing a CP1L system Hi installation Location Do not install in the following locations Locations subject to ambient temperature lower than 0 C or higher than
47. 1 D32302 Communication data bytes D32303 Communication data Slave address FUNCTION code Communication data Slave address FUNCTION code Communication data Modbus RTU OMRON inverter C 3G3JV 3G3MV 3G3RV 4 LLLI em O coo ETLL1 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 Introduction Manual xipueddy 141 B A 4 CP1L Programming Examples M 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 DL 0 0 ini if ETT TUT Constant thread speed 7t Fast rotation Slovv rotation xipueddy 60 00Hz 00H LT 50 00Hz Speed Stooped Contact A Contact B Contact C Contact Z ON ON ON ON VV0 00 VV0 01 VV0 02 VV0 15 The target speed is achieved based on input
48. B 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 Introduction Manual 53 TI suJeJDoJg 4 5 Inputting Programs 4 5 2 Inputting Contacts Input a contact For details on ladder programs refer to 4 2 2 Ladder Program llinputting Contacts 1 O D m y amp 2 o 3 o 3 Press the C key The New Contact dialog box will be displayed New Contact Detail gt gt Cancel Input address 4 Press the Enter key 4 is entered The Edit Comment dialog box will be displayed New Contact zi 4 Detail 5 Cancel 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 Edit Comment 1 1 0 04 ix Light detection sensor Cancel Next input an OR circuit 54 SYSMAC CP1L Introduction Manual 4 5 Inputting Programs WE inputting OR Circuits 1 Place the cursor on the program Press the Enter key A space for inserting an OR circuit will be created 0 04 772777727772277722772 Press the W key The New Contact OR dialog box will be displayed New Contact OR 4 X mj Detail gt gt Cancel Input address WO Press the Enter key WO is entered The Edit Comment di
49. BuuJeJsuelJ 92 5 2 Adjusting Debugging Online O Select Program Online Edit Send Changes from the main menu The edited rungs will be transferred to CP1L application 1 CX Programmer Running NewPLC1 NewProgram1 Section1 Diagram File Edit View Insert PLC EZix Tools Window Help Dew e amp Compile Ctrl F7 0 M2 5 m 54 a A Q 2158 M gi section Rung Manager En send Changes A m MI ERES GS SEES ID Ber es fp xl 811 Go to Online Edit Rung Timer NewProject fg NewPLCI CP1L Monitor Mode 6 3 Symbols i 10 Table and Unit Setup Settings EBS Error log 4 o 1 5 2 6 Confirming Cycle Time 1 Change CP1L to the MONITOR or RUN operating mode 2 Click the diagram workspace Cycle time will be displayed on the status bar application 1 CX Programmer Running NewPLC1 NewProgram1 Section1 Diagram E File Edit View Insert PLC Program Tools Window Help D 5 E m 6B lala B ih 4 BAR AFR BO FF a Q iz Si BE Rit wuew 1 8 ELL Gl EH BE m mI 22 62 122 46 22 129 2 El 19 28 16 NewProject fg NewPLC1 CP1L Monitor Mode 3 Symbols i 10 Table and Unit Setup Settings Error log PLC Clock nu je Memory A Programs zl NewProgram1 00 Running 3 Symbols Section END 1 F Function Blocks Light detectio Work Area wWo oo Work Area I 0 04 B Light detectio TANAN Addr
50. CP1L CPU Unit INTRODUCTION MANUAL CP1L L14DLI L1 CP1L L20DLI L1 CP1L MS3ODLI LI CP1L M4ODLI L CP1L CPU Unit Introduction Manual Notice OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual The following conventions are used to indicate and classify precautions in this manual Always heed the information provided with them Failure to heed precautions can result in injury to people or damage to property NDANGER 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 som
51. CX Programmer 45 4 3 2 ODGFAtON CTEECHS a a TER QU ORO NS 46 2 4 8 the Helo 0 a eer eo t 48 4 5 unputtimd I rodgramis e scias sere DIS A RE 51 4 5 1 Creating New Projects 51 425 2 Inp ttind Contacts eres EI 54 4 5 3 Inputting Output Coils 57 A 5 45 inp tting dIerSess os ote ay cee tee 59 4 5 5 MAPUNO COUH E S enema a 61 4 5 6 Inputting Auxiliary Areas 64 4 5 7 Inputting Differentiated Up Contacts 66 4 9 0 END 67 4 6 Saving Loading Programs 68 2 651 Compiling Progra NnS Ss o occu e o o 68 2 5 2 Saving rodrattiszd 0 0 69 4 6 ILOAGING PROGRAM Sree eere a ME 70 Aqa ho iz d GLANS i r steers cae saan 005 71 Aft Editing VOCominenis IE 71 4 7 2 Inputting Rung Commenhnis 72 4 75 ditio mds eode EE 73 suJeJ60Jd DuneoJ2 gt 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 is a programming tool software
52. NewPLC1 Net 0 Node 0 Monitor Mode D 6ms SYNC rung 1 0 94 SYSMAC CP1L Introduction Manual 89 5 2 Adlusting Debugging Online A list of used addresses will be displayed Click an address to display the program being used application 1 CX Programmer Running NewPLC1 NewProgram1 Section1 Diagram 2 6 EH File Edit View Insert PLC Proqram Tools Window Help a x D c izi 2 x 5 51 m A R3 aos Work Area NewProject Yunan fj NewPLC1 CP1L Monitor Mode 3 Symbols 7 10 Table and Unit Setup Timer Settings Timer number Error log td PLC Clock Set value 4 Memory E A Programs zl NewProgram1 00 Running 3 Symbols Counter Section EUER g END Counter numbe 1 F Function Blocks Work Area Timer Set value s P First Cycle First Cycle Flad nannn Hr nns fn 40004 n 400 nn 4 Project 4 xi sl Address or Value 0 04 Comment Light detection sensor lt lt ge t Name NewPLCI Browse 4 Address 0 04 Find Address Symbol Program Section Step Instruction 0 04 MewProgrami Secti LD 1 0 04 bs NewProgram1 Secti 6 LD 1 Pa nuumuumumuuummmummmEENEMEEMENEMNENENMENENMEN eee eee ee A B For Help press F1 NewPLC1 Net 0 Node 0 Run Mode D 6ms SYNC rung 5 1 0 9495 NUI Mi Ladder Backtracking This function is used to backtrack the ladder to determine why a contact does not turn ON for example
53. OFF Depends on program program Cleared Held External I O status O memory Non holding memory Depends on Depends on Holding memory program program O A O A O A memory monitoring Operations from CX Programmer O A O K O Program monitoring Program From PLC OK transfer To PLC OK Compiling PLC setup Changing program O A O A O O A Force setting Force resetting O A O A Changing timer counter SV O A O A Changing timer counter PV O A O A O Changing I O memory PV O A O A 5 1 3 Transferring Programs A program created with CX Programmer be transferred to CP1L 1 Select PLC Transfer To PLC from the main menu The Download Options dialog box will be displayed suJeJ6oJg Burb nq q pue BuuJeJsuelJ a application 1 CX Programmer Stopped NewPLC1 NewProgram1 Section1 Diagram File Edit View Insert ffei Program Tools Window Help Da dl joe S ASE See HE work Online Simulator Ctrl Shift W a Q si jo 8 SL kx G Be m A ka Ed 53 Auto Online d dA b EG b Operating Mode d NewProject Monitor gt fg NewPLCI CP1L St 22 Symbols 3 Compile All PLC Programs F7 10 Table and U Program Check Options Settings Error log PLC Clock Program Assignments Memory 4 A Programs Function Block Memory 5S vo ESSEN 22 Symbol Partial Transfer gt From PLC Ctrl Shift T Section prote
54. OL NodeNo Velocity BOOL BOOL Execute Command Aborted REAL BOOL Velocity Error INT WORD Direction ErrorlD WORD ArealD INT AreaNo Decelerate to stop INVOGO Stop BOOL BOOL EN ENO INT BOOL NodeNo Done BOOL BOOL Execute Error VVORD VVORD ArealD 1 INT AreaNo Refresh INVOO2 Refresh BOOL BOOL EN ENO INT BOOL UnitSelect BUSY INT INT PortNo NodeAddr DWORD BOOL Scanlist Error DWORD WORD ModelTypeM ErrorlD V _ UINT IntervalCount _ WORD ArealD INT AreaNo WORD MSGArealD INT MSGAreaNo SYSMAC CP1L Introduction Manual VV10 00 Matching VV10 01 Force quit VV10 02 MoveFB error W10 03 Deceleration complete W10 04 StopFB error 1 Set the same area to use l as FB data interface VV7 00 Communicating W8 Inverter slave unit communicating or done communicating W9 INV error code Inverter slave unit used Unit address 1 Inverter 3G3MV 0 3G RV 1 31 A 4 CP1L Programming Examples mM BINFO Q Using Smart FB Library E g Reading INVOO2 Refresh12 1 Select File Function Block Load Function Block from File from the main menu The Select CX Programmer Function Block Library File dialog box will be displayed Untitled CX Programmer MewPLC1 NewProgram1 Section1 Diagram mi Edik View Insert PLC Program Tools Window
55. 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 mn SYSMAC CP1L Introduction Manual 135 xipueddy B A 4 CP1L Programming Examples 6 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 proximity input Contact 0 02 Origin input Contact 0 06 Search high speed Pulse 10kHz frequency A Search deceleration ratio Search acceleration ratio 2000Hz 4ms 2000Hz Ams Search proximity speed CCVV 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 6 Positioning Common settings for the positioning operations are as follows e Target frequency 50kHz Acceleration deceleration ratio 2000Hz 4ms e Initial frequency OHz Point B CVV 100000 1 Aft
56. P a s Bm Cluse i Biss coins El El 20 39 25 Sr 3 46 n s e Save s Reusable File 2 Specify the save location and file Click Open The CX Programmer project file will be opened and the saved programs will be displayed Open CX Programmer Project File name application Files of type CX Programmer Project Files c p Cancel 2 SYSMAC CP1L Introduction Manual 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 I O Comments comments can be added and edited via a list of addresses 1 Select Edit I O Comment from the main menu application 1 CX Programmer NewPLC1 NewProgram1 Section1 Diagram File asim View Insert PLC Proqram Tools Window Help x ai 22 Unde c mE las amp Sm bi C Redo Ctr Y a Yh o EEEL gii BE b cut Shift Delete D 1 m Ctrl C Q B Paste Ctrl 5 Delete Delete Select All Ctrl 4 10000 U dA Find Ctrl F y RANA a 42 Replace Ctrl H Light detecti Timer S Change All Ctrl R 00 Go To Work Area Q wo 00 3 Read Only Mode Edit d Work Area TIM Timer o 0000 Timer Timer number 50 Set value I 0 04 Run y pin Light detecti CNT Counter Edit Rung Comment T t 0000 Counter H
57. Programs F7 10 Table and U Q 100 00 Y Settings Program Check Options 2 RUE Error log PLC Clock Program Assignments qa Memor Progr id Function Block Memory NewProgra Transfer 20 symbol Partial Transfer 9 nad Protection De escalation motor 1 F Function Blocks Clear All Memory Areas Stop button LowerLS Escalation m Edit Bi I 0 06 Q 100 00 Q 100 01 Q liii Data Trace s Time Chart Monitorinq Set b Off Ctrl K Cancel Ctri L Cancel All Forces Force set will be set The contact will be marked with the force set symbol P First Cycle First Cycle Flag Pe mmm ZA pA 3 0000 I 0 01 I 0 05 2 B Q 100 01 2 Q 100 00 4 2 11 7 7 Escalation motor Counter n Upper LS 7 Be esoalatio 1 I 0 00 255522 4 4 I 0 06 Q 100 00 We escalation motor Stop button Lower LS Escalation m suJeJ6oJg BuibBnqeq pue BuuJejsuelJ 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 Introduction Manual 8 7 o 5 2 D 3 5 o 5 Cb C C G a 5 T o Q o 3 o 88 5 2 Adjusting Debugging Onlin
58. Settings NewPLC1 File Options Help Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output Pulse 0 4 gt Base Settings Undefined Origin m Search Return Initial Speed 0 H pps Limit Input Signal Operation amp lways vi Speed Curve Trapezium v Limit Input Signal NO Define Origin Operation Settings Origin Return Iv Use define origin operation Speed Search Direction Cw v Search High Speed 10000 pps 0 1 PPS Detection Method Methd v Search Proximity Speed 11000 pps Acceleration Ratio Search Operation Invers 1 Search Compensation vau D H peration Mode Mode 1 X Search Acceleration Ratio 2000 Deceleration Ratio Origin Input Siqnal NO v Search Deceleration Ratio 2000 Proximity Input Signal NO Positioning Monitor Time xipueddy CP1L L Offline Base Settings Origin Search Limit Input Signal Search Return Initial Speed Speed Curve Trapezoidal Search Compensation vave 0 4 Close the PLC Settings dialog box D To apply changes made to the PLC settings turn the PLC power ON 138 SYSMAC CP 1L Introduction Manual A 4 CP1L Programming Examples mM E Programming Example Ladder 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
59. System 2 3 O Allocation for the Shutter Control System I O relays on CP1L are allocated to contacts as defined by following Inputs open baton PBT on sensor sensor Heus us 95 6 Outputs Escalation motor 100 00 De escalation motor 100 01 EA S SEN2 0 04 MO2 100 01 TT al SEN1 0 03 PB1 0 00 PB2 0 01 PB3 0 02 22 SYSMAC CP1L Introduction Manual 2 3 I O Allocation for the Shutter Control System Q O Allocation on CP1L with 14 point I O 8 inputs Input Area 0 CH 0 00 0 07 Output Area 100 CH 100 00 100 05 Allocate 6 outputs cL 15 14 13 12 11 10 09 N8 07 06 05 04 02 01 00 Not available Input area 8 inputs ian 1 Allocate On 14 point I O units 8 input relays from 0 00 to 0 07 bits 00 to 07 on OCH are allocated to the input terminal block Also 6 output relays from 100 00 to 100 05 bits 00 to 05 on 100CH are allocated to the output terminal block Unused upper bits on the input channel bits 08 to 15 cannot be used as a work area Unused upper bits on the output channel bits 06 to 15 however can be used SYSMAC CP1L Introduction Manual sulejis g BuiuBiseq N 23 2 4 Example Ladder Program 2 4 Example Ladder Program An example ladder program for the shutter control system is shovvn belovv Program creation is explained in SECTION 4 0
60. The time until the gate closure vvill be adiusted vvith by a variable resistor connected to CP1L Adiustment range Min 2 0s to Max 27s Variable resistor 112 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM M System Configuration Wiring Example Sensor input 0 00 Variable resistor External analog setting 1k O 1 4VV input connector Gate output 100 00 E Programming Example Ladder Program 0 00 T0010 xipueddy 100 00 Photoelectric sensor 100 00 Gate 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 Introduction Manual 113 B A 4 CP1L Programming Examples MINFO 6 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 6 Using the Analog Adjuster on CP1L Settings can be changed by using the analog adjuster on CP1L instead of using an external analog settings input The analog adjuster can set the auxiliary area A642CH to any value in the 0 to 255 range 0 to FF Hex xipueddy Philips screwdriver Analog adjust
61. a RF NN NUN NUea u 68 SYSMAC CP1L Introduction Manual 4 6 Saving Loading Programs 4 6 2 Saving Programs Save the created ladder program Programs are saved in groups for each project 1 Select File Save As from the main menu The Save CX Programmer File dialog box will be displayed Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram Li Edit View Insert PLC Program Tools Window Help mx Cw cHN la 2c mS PW Ok 5 RK Open Ctr o d ose R 46 o HE 9EL ix amp 18 Be m 0 fel Save Ctrl S Reusable File y Function Block I 0 04 Toooo wo 00 Load Comment Program Light detecti Timer Save Comment Program wo 00 41 2 Specify the save location and input a file name Click Save The CX Programmer profect file vvill be saved Save CX Programmer File File name gapplication l 3 Save as type EX Programmer Project Files fi cep Cancel SYSMAC CP1L Introduction Manual suJeJDoJg Buneay ES 69 suJeJ6oJg gt 70 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 Programmer RET Edit View Insert PLC Program Tools Window Help Dm c o hth e N
62. 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 time use a high speed counter M System Configuration Wiring Example Sensor input 0 04 Counter reset input 0 01 CP1L Count complete 100 00 116 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM MPLC Setup 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 MewPLC1 NewProgram1 Section1 Diagram File Edit View Insert PLC Program Tools Window Help D is zi mh e se PNAS B G l I lal kd bd 57 2 586 MewPrajeck iml MewPLCI CP1L offline St Symbols FT 10 Table and Unit Setup Ta Programs oa MewPragraml 00 Symbols i Section Z END i F Function Blocks The PLC Settings dialog box will be displayed 73 PLC Settings NewPLC1 File Options Help Startup Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output 2 Startup Hold Mode Force Status Hold Bit Program IOM Hold Bit Monitor C Run Startup Data Read C Use programming console Run Read
63. al A 4 CP1L Programming Examples mM E Programming Example Ladder Program P_First_Cycle MOV 021 MOV 021 Start Modbus communication 1 second after executing ladder program Continue Modbus communication P On EE NN TIMO A640 00 Stop operation when communication starts Operation command 0 Stop Frequency command 00 00Hz WO 00 Contact A Operation command 1 Start Frequency command 60 00Hz 1770 Hex WO0 01 Contact B xipueddy 55 00Hz 157C Hex WO 02 Contact C Operation command 1 Start Frequency command 50 00Hz 1388 Hex WO 15 Contact Z Operation command 0 Stop Frequency command 00 00Hz Operation command 1 Start Frequency command Modbus RTU easy master function execution bit A640 01 Modbus RTU easy master function execution normal flag SYSMAC CP1L Introduction Manual 145 xipueddy B A 4 CP1L Programming Examples Flags for Modbus RTU Easy Master Function Serial Port 1 A640 00 Execution bit A640 01 Execution normal flag A640 02 Execution error flag B 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 Serial Port 1 D32300 07 to 00 Slave address 00 to F7 Hex 15 to 08 Reserved must be 00 Hex D32301 07 to 00 FUNCTION code 15 t
64. alog box will be displayed New Contact OR D Detail gt gt Cancel 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 4 work Area Cancel Next input a closed contact SYSMAC CP1L Introduction Manual suJeJDoJg Buneay ES 55 4 5 Inputting Programs WE inputting Closed Contacts 1 Press the up arrow key The cursor is moved upward Work Area 2 With the cursor in the up position press the key The New Closed Contact dialog box will be displayed Buneay gt 4 New Closed Contact 4 1 Detail gt Cancel 3 Input address T Press the Enter key 4 New Closed Contact Edit Comment 1 1 T0000 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 T0000 ix T Imer Cancel Next input a work area output SYSMAC CP1L Introduction Manual 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 New Coil Work A Detail gt gt Cancel 2 Input address WO Press the Enter key WO is entered The Edit Comment dialog box is displayed with the I O comment already entered
65. arameter 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 setup refer to CX Programmer Operation Manual VV446 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 oymbol 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 ca
66. are connected by RS485 for frequency and start stop control o 22 CP1VV CIF11 RS422 485 option board WV 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 3G3MV and CP1L refer to System Configuration of A 4 7 Using Inverters for Speed Control 1 150 SYSMAC CP 1L Introduction Manual A 4 CP1L Programming Examples mM E Programming Example 6 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 INVOO2 Refresh INVOO2 Refresh BOOL ENO BOOL BUSY INT NodeAddr BOOL Error WORD ErrorlD BOOL EN INT UnitSelect INT PortNo DWORD Scanlist DWORD ModelTypeMV UINT IntervalCount WORD ArealD INT AreaNo WORD MSGArealD INT 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 connect
67. ck Pulses Clock pulses are contacts that turn ON OFF at a fixed time interval 0 02s clock pulse P 0 02s un m 1min clock pulse P 1min Note To enter a clock pulse or condition flag into CX Programmer first enter a contact then press the P key to select from the drop down list SYSMAC CP1L Introduction Manual xipueddy 97 xipueddy 98 1 O Areas A 1 Channel Relay Numbers 0 00 to 99 15 100 CHs Output area 100 00 to 199 15 100 CHs With CP1L 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 I O units and expansion units are connected to the CPU unit input and output areas are assigned 1 channel at a time in the order of connection e Number of Reserved Channels and Expansion I O Units CPU unit Reserved CH Number of Expansion I O Units Allowed Input area Output area 30 point I O unit 0 CH 1 CH 100 CH 101 CH 40 point I O unit CH 1 CH 100 CH 101 CH For example when using a 40 point I O unit input areas OCH and 1CH and output areas 100CH and 101CH are assigned to the internal I O of the CPU unit If expansion 1 0 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 expan
68. command 50 00Hz 1388 Hex Rotation direction Normal 0 A 4 CP1L Programming Examples mM P On WO 00 Contact A WO 01 Contact B W0 02 Contact C Contact Z P First Cycle First cycle flag FLT 452 o VV1 00 Start VV1 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 E g 6000 100 60 00 2 xipueddy 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 Introduction Manual 153 xipueddy 154 B A 4 CP1L Programming Examples P On Always ON flag amp 1 Inverter slave unit 1 W1 00 Start DO Frequency D2 Direction amp 9000 g P_On Always ON flag 1 Inverter slave unit 1 VV1 01Stop DM area l specification amp 9000 P First Cycle First cycle flag CCCC PLC used select CP1L amp 1 Select serial port 00000002 Inverter slave unit used 00000000 Inverter 3G3MV amp 10 Interval counter amp 9000 specification amp 9100 MoveV INVO32 MoveVelocityHz BOOL BOOL EN ENO INT BO
69. ction CR Compare with PLC EN F Function Blocks Clear All Memory Areas To File Edit 80 SYSMAC CP1L Introduction Manual 5 1 Going Online 2 Click OK A dialog box will be displayed to confirm the transfer Download Options PLC NewPLC1 Include S v Program s d Special Unit Setup iv Symbols Transfer All S Comments Program index Symbols Comments Program index Transfer To From Comment memory w Transfer files of all tasks s Note For details on the transfer options refer to SECTION 9 Transferring Monitoring Debugging Programs of CX Programmer Operation Manual W446 3 Click Yes CX Programmer v7 1 suJeJ6oJg BuibBnqeq pue BuuJeJsueiJ This command will affect the state of Ehe connected PLC Do you wish to continue If the following dialog box is displayed click Yes CX Programmer v7 1 Make sure that there aren t any problems if the PLC is stopped iN Do you wish to switch the PLC into program mode o9 The transfer will begin The Download dialog box will be displayed SYSMAC CP1L Introduction Manual 01 5 1 Going Online 4 Click OK Transferring of the program is now complete Download Program Download to PLE NewPLET Download successtul s 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
70. d line 30 wiring input 32 WINING OUMU oio iicet oio 32 wiring power line 30 writing relay coll 101
71. d 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 Introduction Manual 105 xipueddy B A 3 Inner Workings of CP1L I O 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 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 CP 1L Introduction Manual A 3 Inner VVorkings of CP1L mM Q Execution by Instructions with Immediate Refresh Variation If the immediate refresh variation has been specified for a
72. der Section Window Using Symbols 10 Comments e Creatinq a PLC Proqram Creating a FLU Proqram e PLC Instructions e 1 0 Comment View Function Block Ladder Editor suJeJ6oJg A ladder diagram cannot be directly transferred into the PLC CX Programmer converts i e compiles the ladder diagram into mnemonic code which the PLC can run CX Programmer also allows you to view and edit the mnemonic code directly if required CX Programmer Help can also be displayed in several other ways From the Desktop Menu 1 Onthe desktop select Start All Programs OMRON CX One CX Programmer CX Programmer Help CX Programmer Help will be displayed m CX Designer m CX Drive Fm CX FLnet m Cx Integrator m i CX Motion NCF Fi CX Position E CX Process Tool uu fan CX Programmer m Online Manuals b My Recent Documents gt E CX Protocol yl a CX Net Network Configuration Tool m CX Simulator y m CX Programmer m CX Thermo E CX Programmer Help k m Face Plate Auto Builder For NS gt Ei SwitchBox Utility yi El Release Notes amp CX One Auto Update h CX One Introduction Guide gt Gm CX One Release Notes y m CX Server gt All Programs 5 A Log Off Turn Off Computer Ary 10 46 48 SYSMAC CP1L Introduction Manual 4 4 Using the Help QG From CX Programmer 1 Select Help
73. e 5 2 3 Changing Timer Settings Timer settings can be changed to better suit operating conditions 1 Change CP1L to the MONITOR or PROGRAM operating mode 2 Double click the timer setting to be changed The Set Timer Counter Value dialog box will be displayed 3 Input the new value Click OK The timer setting will be updated Set Timer Counter Value Value or address H2 Browse 0 Browse Cancel UIMT BED 8073333 bed Symbol Information 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 Introduction Manual 5 2 Adjusting Debugging Online 1 Select View Windows Address Reference Tool from the main menu The address reference tool will be displayed application 1 CX Programmer Stopped NewPLC1 NewProgram1 Section1 Diagram EH File Edit EYJA Insert PLC Proqram Tools Window Help D Ta El Symbols gt 2 r 23 a B ir 29 Diaqram Alt D AQ E Mnemonics Alt4 M O Hu ctLlix b i m Fel b l Bb Cross Reference Report Alt X x 3 55 m A E IH bi Mr p
74. e CX Programmer displays to mean Programmable Controller Visual Aids The following headings appear in the left column of the manual to help you locate different types of information Note Indicates information of particular interest for efficient and convenient opera tion of the product 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc Trademarks 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 owners 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 subject to change without notice Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the information contained in this publication TABLE OF CONTENTS
75. e backups for CP1L programs parameters and data memory They also allow you to copy data to other CP1L units without using a programming tool software Peripheral USB port Used for connection to a computer Computers can be used for programming and monitoring Analog adjuster Rotate to adjust the value for auxiliary area A642CH to within the 0 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 0 and 10V and changes the value for auxiliary area A643CH to a value between 0 and 256 This input is not isolated DIP switches 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 SYSMAC CP1L Introduction Manual 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
76. e shown MPEFFORMANCE DATA Performance data given in this manual is provided as a gulde for the user in determining suitability and does not constitute a warranty It may represent the result of OMRON s test conditions and the users must correlate it to actual application requirements Actual performance is subject to the OMRON Warranty and Limitations of Liability MEFRORS 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 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
77. ed Issues communication commands to inverters Processes communication errors Assigns priorities when multiple commands are issued Note 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 INVO32 MoveVelocityHz BOOL BOOL EN ENO INT BOOL NodeNo InVelocit BOOL BOOL Execute Command Aborted REAL BOOL Velocity Error INT WORD Direction ErroriD VVORD ArealD INT AreaNo Matching speed Force quit Error Error code Decelerate to stop INVO6O Stop INVO6O Stop BOOL BOOL EN ENO BOOL Done INT NodeNo BOOL Execute Deceleration complete Error Inverter No Start Area type Error code Area No Decelerates an operating axis to a stop Function blocks are not available for 14 20 point CP1L SYSMAC CP1L Introduction Manual gt xipueddy 151 m A 4 CP1L Programming Examples Ladder Program WO0 00 A Contact A VV0 01 Contact B xipueddy W0 02 Contact C 152 SYSMAC CP 1L Introduction Manual MOV 021 MOV 021 MOV 021 Frequency command 60 00Hz 1770 Hex Rotation direction Normal 0 Frequency command 55 00Hz 157C Hex Rotation direction Normal 0 Frequency
78. ensor input 3 Contact 100 04 Process interrupt task Process interrupt task Process interrupt task SYSMAC CP1L Introduction Manual xipueddy 119 B A 4 CP1L Programming Examples l System Configuration G Wiring Example On CP1L units with 14 point I O interrupt inputs can be allocated to contacts 0 04 to 0 07 Input interrupt O 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 O 0 04 Sensor input 2 0 01 Sensor input 1 0 00 RESET input 0 05 O CP1L r8 S EL amp EL amp Ojer PERIPHERAL BATTERY PASS output 100 00 NG output sensor input 3 100 04 NG output 100 01 NG output sensor input 2 100 03 NG output sensor input 1 100 02 xipueddy PLC Setup Set contact 0 04 to be Interrupt 1 Open the PLC Settings dialog box 2 Click the Built in Input tab 3 the 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 72 PLC Settings NewPLC1 File Options Help Startup Settings Timings Input constant Serial Port 1 Peripheral Service Built in Input Pulse Output y High Speed Counter High Speed Counter 1 Use high speed co
79. eos 000001 1 000003 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 aac SS SS SS Note There is no limit on the number of contacts that can be connected by OR OR NOT instructions II Writing Relay Coils OUT OUT NOT Instructions OUT instructions turn a relay coil ON when the execution condition is ON OUT NOT instructions turn a relay coil OFF when the execution condition is ON 000100 Execution condition 000101 Execution condition Note Do not use coils with the same relay number for OUT and OUT NOT simultaneously Doing so will result in a duplicated coil program error SYSMAC CP1L Introduction Manual xipueddy 101 B A 2 Instructions Q SET RSET RESET Instructions xipueddy Note 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 011 KEEP RELAY Instructions Note KEEP instr
80. er 114 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM 0 00 T0010 100 00 Photoelectric Gate sensor 100 00 Gate P_On xipueddy Photoelectric sensor Gate A To use the analog 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 M Functions Used 6 Quick 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 M Operation Overview Products moving at high speeds are detected by a sensor and counted Product Sensor SYSMAC CP1L Introduction Manual 115 xipueddy B A 4 CP1L Programming Examples Signals that are shorter than the scan time must be read and counted When 100 signals have been counted a counting completed signal will be output 30ps min Sensor input LI Contact 0 04 BCD counter instruction 0000 Set Value 100 l 100 Present Value 99 98 Contact C0000 Counter reset 57N 7xY IIX Input contact 0 01 Contact 100 00 e 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
81. er 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 Introduction Manual A 4 CP1L Programming Examples l System Configuration G Wiring Example CCW limit Origin proximity CW 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 D m 07 contact n 24VDC Ieo aaa 5 ECRST ECRST output CCW 100 00 outpput 100 01 Error counter reset output 100 04 Point A PointB Origin search positioning positioning complete complete complete 100 05 100 02 100 03 Insert a resistance of 1 6 to 2 2k O so that the current is within the 7 to 15mA range For a 20 30 40 point CPU the origin proximity input pulse will be OCH1 Obit SYSMAC CP1L Introduction Manual xipueddy 137 m A 4 CP1L Programming Examples PLC Setup Specify the settings for pulse output 0 1 Open the PLC Settings dialog box 2 Click the Pulse Output 0 tab 3 Set the following settings 73 PLC
82. eration and Maintenance For safety during operation and maintenance separate the unit as far as possible from high voltage equipment and power machinery For ease of operation mount the unit onto the control panel at a height of 1 000 to 1 600mm Caution When power is ON or has just been turned OFF do not touch the power supply I O terminals or the surrounding areas Doing so may result in burns After turning the power OFF wait for the unit to cool down sufficiently before touching it Improving Noise Resistance Avoid installing into a cabinet which also has high voltage equipment installed e Secure at a distance of 200mm or more from power lines Povver Line 200mm min 200mm min Properly ground the mounting plate between the unit and the mounting surface SYSMAC CP1L Introduction Manual 27 3 1 Installation Notes 6 Mounting For heat dissipation mount CP1L in the orientation shown below Mi External Dimensions BuuiM pue Sununoly o Grana m mium m MD N 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 Introduction Manual 3 2 Mounting onto DIN Tracks 3 2 Mounting onto DIN Tracks
83. ers to Measure Positions 130 A 4 6 Using Servo Drivers for Positioning 135 A 4 7 Using Inverters for Speed Control 1 141 A 4 8 Using Inverters for Speed Control 2 148 A 4 9 Exchanging Data between CPT1Ls 158 Bw o 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 will be displayed as 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 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 T 3063 00 area Serial PLC link area 3100 to 3189 CH 3100 to 3189 310000 to 318915 3100 00 to 3189 15 3800 to 6143 CH 3800 to 6143 380000 to 614300 3800 00 to 6143 00 xipueddy gt W000 to W511 CH WO00 to W511 VVO0000 to W0 00 to W511 15
84. es PLC Instruction Sets will be displayed New Instruction S l Operands Find Instruction Filter Symbol Sembol Information Note When selecting a special instruction Instruction Help will be displayed SYSMAC CP1L Introduction Manual 4 5 Inputting Programs 4 5 Inputting Programs Using the commands available in CX Programmer create a program for the example application 4 5 1 Creating New Projects When using CX Programmer for the first time you will need to create a new project When creating a new project you must set the target device type and CPU type for the program and data being created 1 Select File New from the main menu The Change PLC dialog box will be displayed CX Programmer AER view PLO Tools Help nj Jt lass igi Te S Ieee o Bee 2 19 El 89 10 49 26 Sr 48 m Open Chri a 1 untitled 2 application 1 Exit 2 Select CP1L from the Device Type drop down list Change PLC Device Mame NewPLC1 Device Type LPTL Settings Settings Cancel SYSMAC CP1L Introduction Manual suJeJ60Jd DuneoJ2 ES 51 4 5 Inputting Programs 3 Click Settings The Device Type Settings dialog box vvill be displayed Change PLC Device Name NewPLC1 Device Type i Settings Network Type USB Settings Comment Cancel suJeJ6oJg
85. ess or Value Comment x PLC Name Address Address Symbol Program Section Instruction For Help press F1 NewPLC1 Net 0 Node 0 Run Mode rung 5 0 94 Note For details on cycle time refer to A 3 2 CPU Unit Behavior SYSMAC CP1L Introduction Manual SEn a S Work Area Timer Timer Timer number Set value Counter Browse Find 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 zan irisi oq sada to tt 99 ea sind instructors tete soe re tete t 0 99 A 2 2 Basic I O Processing Instructions 100 A S3InpnepnvVerkhgsworcbli eue IE e 103 A 3 1 Inner Structure of CPU Units 103 2 X PU UmmBeldviore occ a 105 A 4 CP1L Programming Examples 112 A 4 1 Using Adjusters to Set Timers 112 A 4 2 Capturing Short Signals 115 A 4 3 Using Interrupt Inputs to Accelerate Processes 119 A 4 4 Using Calendar Timers 125 A 4 5 Using Rotary Encod
86. etup H FB settings 4 Memory a q ection1 4 suJeJ60Jd DuneoJ2 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 1 O comment bar Displays the name address value and I O comment for the variable selected by the mouse cursor 46 SYSMAC CP1L Introduction Manual 4 3 Using CX Programmer 9 Output window Select View Windows Output from the main menu to show hide the output window Displays the following information Compile Displays program check results Find Report Displays search results for contacts instructions and coils Transfer Displays errors which occurred while loading a project file 10 Status bar Displays information such as PLC name offline online status and active cell p
87. from multiple contacts Acceleration and deceleration is modified by the acceleration and deceleration of an inverter M System Configuration CP1L and 3G3MV an OMRON inverter are connected by RS485 for frequency and start stop control G Wiring Example Symbo Control ec S circuit 7 S terminal block 50m or less R communication R terminals CP1W CIF 11 RS422 485 option board 142 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples 6 CP1VV CIF11 Setup Set the DIP switches as follows Rear panel CPU unit connector Operation setup DIP switches Presence of terminating resistance Terminating resistance present 1 o nays OFF oowoo ox Emi 3G3MV 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 parameters as follows No Name Value Comments n003 Operation command command 2 RS 422 485 communication enabled 422 485 communication enabled m Frequency 55 commands from RS 422 485 communication enabled 019 Acceleration time 1 Acceleration time sec Deceleration time 1 time 1 5 0 Deceleration time sec n151 422 485 communication E 3L enabled detect errors stop Timeout detection deceleration
88. g 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 Bile CO ING Online I AIR 76 5 151 setin ne ci ik rie 77 5 1 2 Changing the Operating Mode 78 55129 Transtermimgasrogreairiss eee ree e een ones 80 5 1 4 Executing Operat6n85 end eso A 82 5 2 Adjusting Debugging Online 83 SEIR l li feli qo 560565 rM EE 83 5 2 2 Force Setting Force Resetting 86 5 2 3 Changing Timer Settings 88 Saa 88 2 hline Editih e a E s en E 91 5 2 6 Confirming Cycle Time 92 suJeJ6oJg Burb nq q pue BuuJeJsuelJ a 16 Transferring and Debugging Programs 5 1 Going Online To configure CP1L settings transfer programs or execute programs the computer and 1 must first In CX Programmer open the program to be transferred Select PLC Work Online from the main menu A dialog box will be displayed to confirm going online application 1 CX Programmer MewPI C1 NewProgram1 Section1 Diagram File Edit View Insert Bul Program Tools Window Help Du k o SS k a 5 E Work Online Simu
89. g information on the CP Series Programming instructions Programming methods e Tasks File memory Functions Use this manual together with the CP1H Program mable Controllers Operation Manual W450 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 MVVARRANTY OMRON s exclusive warranty is that the products are free from defects in materials and vvorkmanship 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 M 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 indiv
90. he 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 application 1 CX Programmer Stopped NewPLC1 NewProgram1 Section1 Diagram File Edit View Insert Proqram Tools Window Help D c 2 s B 9 E work Online Simulator Ctrl Shift W S i b m m ka Ed 53 Auto Online Operating Mode 2 mun Program be Ctrl 1 NewProject Monitor 3 P P RCIA JN 4 Monitor Ctrl 3 Symbols f Compile All PLC Programs F7 Da Run trl 4 10 Table and program Check Options Settings Error log PLC Clock Memory Programs Function Block Memory gb NewProgra Transfer 2 2 symbol Partial Transfer ya g Section Protection END it Function Blocks Clear All Memory Areas SYSMAC CP1L Introduction Manual 5 1 Going Online 2 Click Yes The operating mode will be changed CX Programmer v7 1 Make sure that there aren t any problems if the PLC is stopped Do you wish to switch the PLC into program mode The operating mode will be displayed on the title bar and on the project tree application 1 CX Programmer Stopped NewPLC1 NewProgram1 Section1 Diagram WE File Edit View Insert PLC Proqram Tools Window Help D c E ng aR d MW om G E ffl
91. idual 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 THAT THE PRODUCTS WERE PROPERLY HANDLED STORED INSTALLED AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION ABUSE MISUSE OR INAPPROPRIATE MODIFICATION OR REPAIR Application Considerations MSUITABILITY 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 e Nuclear energy control systems combustion systems railroad systems aviation systems medical equipment am
92. igh speed counter 0 Start comparison vvith target Lovver CH of comparison table in Set motor run 100 00 After motor stops check the stop position W0 02 100 02 Stop position is normal if the lt 310 high speed counter A270 is between 3500 ODAC Hex and 3550 ODDE Hex A270 Normal stop position ODDE Motor stopped Me Stop position is in error if the high speed counter A270 is Error stop position greater than 3550 ODDE Hex When the PV of the high speed counter matches target value 1 3000 interrupt task 04 will be executed Interrupt task 04 SET Set motor slow 100 01 134 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM When the PV of the high speed counter matches target value 2 3500 interrupt task 05 will be executed P On Reset motor run Interrupt task 05 Reset motor slow Reset motor stopped DM Area Setup The comparison table for the CTBL register comparison table instruction should be allocated to DM D600 through D606 D600 0002 Items compared 2 D601 OBB8 Target value 1 3000 BCD BB8 Hex D602 0000 xipueddy Target value 2 3500 BCD DAC Hex A 4 6 Using Servo Drivers for Positioning M Functions Used 6 Pulse Output by Built in Output Pulse signal outputs from the built in output of a CPU unit can be used for positioning and speed control of a servo motor driver with up to 2 axes M Operation
93. ile the Edit Comment dialog box is up For details on inputting a contact refer to 4 5 2 Inputting Contacts 2 Press the I key The New Instruction dialog box will be displayed New Instruction Detail gt gt New Instruction CNT 0 13 Detail gt gt CNT 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 Edit Comment 1 2 CO SYSMAC CP1L Introduction Manual Buneay ES 61 4 5 Inputting Programs 4 Input Counter as the I O comment Press the Enter key Edit Comment 1 2 CO I 0 04 Work Area Light detecti Yun n Var Area 1 YU o0 Work Area Timer Timer Timer number Set value mwmmmmsmm ay 2 p 2 suJeJ60Jd DuneoJ2 gt 2 004 a 6 z 2 Light detecti a z Counter Counter 2777777 r Counter number m E L E E L u Set value E L E L H 3 va mummumum um mumm ummum m am 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 0 04 Wok Area Light dete cti Wwo 00 Wok Area 1 Wwo 00 Work Area Timer Timer Timer number Set value 2 Counte
94. ing 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 1 Change CP1L to the MONITOR operating mode s 2 Select PLC Monitor Monitoring from the main menu application 1 CX Programmer Running NewPLC1 NewProgram1 Section1 Diagram WE File Edit View Insert Makel Program Tools Window Help Dae amp ak on Bt I Be HE GE Work Online Simulator Ctrl Shift W a AQ ENS EEEO amp Ct m ik g l Ed p Auto Online gt a EH Hn M gt Operating Mode y fg NewPLC1 CP1L M X Symbols i593 Compile All PLC Programs F7 Pause upon Trigger 10 Table and U Program Check Options l Settings Error loq PLC Clock Program Assignments Memory i A Programs Function Block Memory NewProgra Transfer 22 Symbol partial Transfer y Section Protection amp END it Function Blocks Clear All Memory Areas Edit 2 The conduction status is displayed on the program suJeJ6oJg Burb nq q pue BuuJeJsueiJ Work Area Light detect Yu 00 Work Area il Yu n Work Area Timer Timer Timer number Set value 2 6 Counter Counter Counter number Set value SYSMAC CP1L Introduction Manual 83 s Burb nq q pue BuuJeJsuelJ 84 5 2 Adjusting Debugging Online M Displaying Conduction Status at Multip
95. ion When power is ON or has just been turned OFF do not touch the power supply 1 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 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 4 Application Precautions N Caution 10 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 ll GPJAEMOdgelS eee 0 0050000 12 1 2 Part Names and Functions M9IAISAQ 1L dO 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 CP1L Programming Examples M 14 point I O Units CP1L L14DLI L1 e CPU unit has 8 input points and 6 output points e CP series expansion I O units can be used to add I O points up to a total of 54 I O points WE 20 point I O Units CP1L L20DLI D e CPU unit has 12 input points and 8 output points e CP series expansion I O unit
96. 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 1 O memory will be lost Data such as user programs and PLC system settings are not lost even when the power is OFF and no battery is installed For details on replacing the battery refer to 10 2 Replacing User servicable Parts of CP Series CP1L CPU Unit User s Manual W462 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 Introduction Manual 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 me a a a a 36 4 1 2 Connecting to a Computer and Installing the USB Driver 37 4 2 Creating Ladder Programs 42 A Z ODeraton ME LM 42 2 2 2 Ladder PI OGM Al sesso eter e eec 44 4 3 USING CXA Programmer cocus cde tee test tetro RE ers 45 4 3 1 Starting
97. itions apply e CP1L 14 point I O unit is used No expansion units are used e No connections are made i e with CX Programmer SYSMAC CP1L Introduction Manual 111 xipueddy B 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 M Functions Used 6 External Analog Settings Input 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 M 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 CP1L 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 Time to OFF Min 2 0s to Max 27s
98. 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 0 04 TOOO0 Wwo0 00 O Work Area OD Light detecti Timer 0 wo 00 e c Wok Area 1 n U 4 O lh Area TIM Timer Q 0000 Timer Q Timer number o 50 Set value 2 0 04 6 Light detecti CNT Counter T 0000 Counter Counter number Timer 0000 2 3 Set value Counter 2 2 2 Press the Enter key A space for inserting an OR circuit will be created I 0 04 T Wwo0 00 9 Work Area Light detecti Timer Wwo oo Work Area 1 00 Work Area TIM Timer 0000 Timer Timer number 50 Set value 2 I 0 04 6 Light detecti CNT Counter T 0000 Counter Counter number Timer C 3 Set value Counter mmmumumm mmm m m mummm yo mu m mmm mum mmm m m m mmm mmm mumu mn m m m E L 2 4 I 3 Arx eee n n na 64 SYSMAC CP1L Introduction Manual 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 I 0 04 T n Ww0 00 Wok Area Light detecti Timer
99. lator CtrH Shift nu a Q ms 2 zx imi fal Ea 24 Ir Auto Online Operating Mode MewPrajeck Monitor fg NewPLCI CP1L O E Symbols 44 Compile All PLC Programs F7 Ez 10 Table and U Program Check Options 7 Automatic Allocati d Memory utomatic Allocation 2 89 Programs Program Assignments oa NewProgra 3 Symbol Function Black Memory Fi Section Transfer END Partial Transfer 1 E Funrtinn Placlz Click IYesl The dialog box vvill be closed CX Programmer v7 1 About to connect to the PLC Do vau wish ba continue N I 0 04 5 Light detecti Counter 10000 Counter Counter number Timer e 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 Introduction Manual 5 1 Going Online Note If the system fails to go online check the PLC type setting and communication settings To check the settings double click NewPLC1 CP 1L Offline in the project tree For details on the settings refer to 4 5 1 Creating New Projects 5 1 1 Setting the CP1L Clock 9 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 In CX Programmer open an existing
100. le Sections The diagram workspace can be split Multiple sections of the program can be viewed simultaneously I 0 04 Work Area Light detecti wi0 00 Work Area 1 wo0 00 4 Work Area Timer Timer Timer number Set value 2 I 0 04 6 Light detecti CNT Counter T 0000 Counter ee eS Aue El 1 VVindovv divider Drag the vvindovv divider to split the diagram vvorkspace The vvorkspace can be split in up to 4 sections 0 0 A 0 0 I 0 04 10000 Light detection Timer 2 Light detection 7 v0 00 4 d m Work Area Work Area il 0 00 1 0 00 4 4 Work Area Work Area 2 Light detection 2 A di Light detection 2 ELAS RN Work Area 0 00 Work Area 0 00 Work Area SYSMAC CP1L Introduction Manual 5 2 Adjusting Debugging Online ll 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 indicates OFF F PLC Name Name Address Data T FB Usage g Value Comment 0 04 BOOL moO Light d 0 05 BOOL 0 L Upper LS sheetl A sheet2 A sheet3 4 e Input the address as the channel followed by a period and the bit For example 0 CH
101. ll 4 gt b Ib sheetl sheet2 sheet3 4 b rung 3 1 2 96 NUM 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 1 Change CP1L to the MONITOR or PROGRAM operating mode suJeJ6oJg BuibBnqeq pue BuuJeJsuelJ 2 Place the cursor on the contact to force set P First Cycle First Cycle Flag 3 0000 1 0 01 roos 2 0001 2 0 100 00 2 7 Escalation motor Counter on Upper L 2 De escalatio Ik 2222227277727772777 Open button Q 100 00 Q 100 01 4 0 02 I 0 06 Q 100 00 De escalation motor Close button Q 100 01 SYSMAC CP1L Introduction Manual 5 2 Adjusting Debugging Online 3 Select PLC Force On from the main menu application 1 CX Programmer Stopped NewPLC1 NewProgram1 Section1 Diagram WE File Edit View Insert Makel Proqram Tools Window Help xX Buz amp ak dy D 8 5 OURS th Bae ej Work Online Simulator Ctrl Shift W 2 gt a Q S f Hs tLb amp tn BE m A Fi EA 6 Ad one A e n n PR a Operating Mode ERI m NewProject Monitor fm NewPLC1 CP1H 51 3 Symbols Compile All PLC
102. llowing 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 Introduction Manual 3 7 suJeJ60Jd DuneoJ2 gt 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 Ril oooooo oooooo mill oooo
103. lusive of an END instruction will be inserted automatically Hence there is no need to input an END instruction manually To confirm the ladder program containing only the END instruction double click the END section NewProject fg NewPLCI CP1L 1 Offline 3 Symbols i 10 Table and Unit Setup Settings 2 A END 001 l End Memory Programs 1 2 zl NewProgram1 00 3 Symbols Gg Sectioni e E 1 F Function Blocks SYSMAC CP1L Introduction Manual 67 gt Buneay 4 6 Saving Loading Programs 4 6 Saving Loading Programs Created ladder programs must be saved This section explains hovv to check save and load ladder programs 4 6 1 Compiling Programs By compiling you can check for errors in the program Select PLC Compile AlI PLC Programs from the main menu FA Programs Proqram Assiqnments Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram KL File Edit View Insert fafai Proqram Tools Window Help x E Gr El nb amp E amp Work Online Ctrl W amp 2 84 2 T Wu 8 GE work Online Simulator Ctrl Shift E o a Q si OH EL S E BE OE EA li gt TTD 0 m Fa k ha Auto Online 8 Operating Mod gt NewProject ee id E NewPLCI CP1L O U 3 Symbols E O and U Proqram Check Options dokita Automatic Allocation Memory B o o The compilation is started
104. n 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 Note Actual I O data built in I O Immediate refresh 15 11 000 0 IOUT 100 00 100 61 IMOV 1 101 1 Immediate refreshing is possible on the built in I O area only For CP series expansion 1 0 units use the IORF instruction 2 Bit specific instructions The channel 16 bits containing the specified bit will be refreshed Channel specified instruction The specified channel 16 bits will be refreshed 3 Inputs and S source operands The input is refreshed immediately before executing the instruction Outputs and D destination operands The output is refreshed immediately after executing the instruction Executing IORF I O REFRESH Instructions 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 Note series expansion I O units D1 Starting CH number D2 Ending CH number I O channel data between D1 and D2 will be refreshed D2 IORF instructions take a relatively long time to execute 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 sig
105. nificantly 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 Introduction Manual xipueddy 107 xipueddy gt BE 4 3 Inner Workings of CPTL M 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 Communication port service Executes serial communication by SEND RECV and CMND instructions Uses internal logic ports 0 to 7 as communication ports Executes instruction
106. ntroduction Manual 2 1 Organization of this Manual Workflow from Design to Operation The workflow for constructing a CP1L shutter control system is shown below For details refer to the respective sections of the manual allocation Allocate relay numbers to sensors and switches Preparing the equipment Equipment preparation Wire power supply and ground Wire I O devices Supplying power to CP1L Test PLC operation Preparing to write program Install USB driver onto computer Connecting CP1L to a computer Writing programs Enter ladder programs in CX Programmer Compile Save Edit Going online with CP1L and the computer Set the CP1L clock Switch to PROGRAM mode Transfer the program Online debugging Monitor power Force set force reset commands Online Editing Production run Refer to 2 3 I O Allocation for the Shutter Control System Refer to 3 2 Mounting onto DIN Tracks and 3 3 Wiring Devices sulejis g BuiuBiseq N Refer to 3 4 Power Testing CPTL Refer to 4 1 Preparing for Programming Refer to 4 2 Creating a Ladder Program 4 3 Using CX Programmer 4 5 Inputting Programs 4 6 Saving Loading Programs and 4 7 Editing Programs Refer to 5 1 Going Online Refer to 5 2 Adjusting Debugging Online Refer to 5 1 Going Online SYSMAC CP1L Introduction Manual 19 2 2 About the Shutter Control System 2 2 About the Shutter Cont
107. o 08 to 08 Command Reserved Reserved must be 00 Hex be 00 Hex D32302 to 00 Number of communication data 0000 to 005E hex D32303 to D32349 1 15 to 00 Communication data Communication data max 94bytes 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 Serial Port 1 D32350 07 to 00 Slave address 01 to F7 Hex 15 to 08 Reserved must be 00 Hex D32351 07 to 00 FUNCTION code Reserved must be 00 Hex Response data max 92bytes C When a communication error occurs A640 02 execution error flag is turned ON and the error code is stored to D32352 146 SYSMAC CP 1L Introduction Manual A 4 CP1L Programming Examples mM DM 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 2 7 Setting data bytes Communication data D32303 to Max D32349 D32300 D32301 D32302 D32303 D32304 D32305 D32306 D32307 eee T l fel l l lvl lel l o M 00 pa Data for next register Inverter slave address 1 Hex e g set 60 0Hz 0258 Hex for No 0002 frequency command Inverter data
108. oning Initial frequency Point B positioning xipueddy gt 140 SYSMAC CP 1L Introduction Manual D0006 0000 Initial frequency O Hz an 0000 D0010 07DO Acceleration ratio 2000 Hz 4ms D0011 07DO Deceleration ratio 2000 Hz 4ms D0012 C350 Target frequency 50000 Hz D0013 0000 D0014 Pulse output volume 100000 Hz D0015 0001 A 4 CP1L Programming Examples mM A 4 7 Using Inverters for Speed Control 1 M Functions Used 6 Modbus RTU Easy Master Function Describe Modbus RTU commands in the DM fixed allocation vvords 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 inverters can be controlled easily via serial communication RS 232C option board li CP 1W CIFO1 RS 232C option board CP1W CIFO1 exe pes es es SS CP1L 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 D32300 D3230
109. oo El a When the computer detects CP1L the following message will be displayed The Found New Hardware Wizard dialog box will be displayed This screen will be used to install the USB driver 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 New Hardware Wizard dialog box may not be displayed If it is not displayed proceed to step 4 Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for software CO Yes this time only CO Yes now and every time connect a device Click Hest ta continue SYSMAC CP1L Introduction Manual 4 1 Preparing for Programming 4 Select Install from a list of specific location Advanced and click Next Found Mew Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for If your hardware came with an installation ED 0 or floppy disk insert it no
110. ory Programs 3 NewProgram1 00 3 Symbols x Section1 END 4 F Function Blocks _INVOO2_Refresh Place the cursor at the position where the INV002 Refresh FB is to be inserted Select Insert Function Block Invocation from the main menu Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram File Edit view PLC Proqram Tools Window Help DE a Ree z Ti la 28 Row Ctrl Alt Down a X Q coum I O BEHE Ctrl Alt Right m Contact 4 Horizontal NewProject Vertical gt fi NewPLCI Coil 3 symbc i 0 10 Tak Instruction I Jwbeeeeeeeceeeeeeceeen Settinc Memor Reusable File qu Function Block Invocation E C3 Function Block Parameter P Section1 END 4 F Function Blocks F _INVO02_Refresh The New Function Block Invocation dialog box will be displayed Mew Function Block Invocation x x FE Instance FB Definition INVOO2 Refresh Cancel 156 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM 6 Inputa name for FB Instance Press the Enter key The named FB instance will be displayed Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram EH File Edit View Insert PLC Proqram Tools Window Help D m bd rg GR al 2 L CH ALBA a Q uu Si BB R d 1 0ZHEL AX S 8 g LE m kd bd r ah IP El tes eee p Ne
111. osition 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 suJeJ6oJd DuneoJ2 ES 6 Diagram Workspace Work Area Var Area 172222 222727777727277772 1 Rung number 2 Program address 3 Rung header If a rung is incomplete a red line vvill be displayed to the right of its rung header 4 Bus bar Ge Information Window CX Programmer Information Displays basic shortcut keys used in CX Programmer Select View Windows Information Window from the main menu to show hide the information window SYSMAC CP1L Introduction Manual 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 Feferencing CX Programmer Help 1 While using CX Programmer press the F1 key The help window will be displayed 4 E CX Programmer Help PEE Soc o amp m Hide Back Forward Print Options Contents Index Search Favorites Type in the keyword to find List Topics Ladder Programming Workspace The use of a Ladder Diagram is generally the same for all PLC series units e The Lad
112. project For details on opening a project refer to 4 6 3 Loading Programs Double click PLC Clock The PLC Clock dialog box will be displayed application 1 CX Programmer Stopped NewPLC1 NewProgram1 Section1 File Edit View Insert PLC Program Tools Window Help D iz zi nb x 2 B Set 23 m l l Ed Eu gj b E 10 a 16 Jx a MewPrajeck ml MewPLCI CPIL Stop Program Mode St Symbols FT 10 Table and Unit Setup I 0 04 T n n Light detecti Timer vun n Memi Wok Area Ta Programs zl MewPragram1 00 Stopped a ris 22 symbols Work Area zi Section END 1 F Function Blocks Select Options Set PLC Clock from the menu The Set PLC Clock dialog box will be displayed el PLC Clock NewPLC1 File EIE C Always on top PLE synchronise Clocks 2 1 3 2007 2 13 2007 Synchronize Set the PLC clock Program SYSMAC CP1L Introduction Manual Surb nq q pue BuujeJsueJ o Tf suJeJ6oJg Burb nq q pue BuuJeJsuelJ a 78 5 1 Going Online 4 5 Set the date and time Click OK The Set PLC Clock dialog box will be closed Set PLC Clock 10 1188 AM afl 322007 Eu Cancel K Select File Exit from the menu The clock on CP1L is now set ra PLC Clock NewPLC1 10 12 34 2 13 2007 2 13 2007 Synchronize Exit PLC Clock Program 5 1 2 Changing t
113. r Counter Counter number Set value 3 62 SYSMAC CP1L Introduction Manual 4 5 Inputting Programs 6 Input contact T0000 I 0 04 Mar Area Light detecti 00 ik Area 1 00 4 Work Are a Timer Timer Timer number Set value 2 0 04 Light detecti Counter m mmm mm 2 4 Counter 1 Counter number 2 Set value suJeJ6oJd DuneoJ2 f Press the down arrow key 2 times When the cursor is positioned on the next rung counter instruction input is complete I 0 04 TOOO0 n amp Work Area Light detecti Timer Wwo0 00 Work Area 1 n n 4 Work Area TIM Timer 0000 Timer Timer number 50 Set value ndo m ummum ummummummummmmummmmmmumumuMNMMNMMNMNMNmNMNNMNMNMNmNMNmMNMNmNMumNMNM mNMmNM mNM ee m m m uu m eee eee ee eee TES I 0 04 1 Light detecti CNT Counter E L a TOOO0 0000 Counter L 2 Counter number us L Timer L E Set value E 1 L 1 H 3 m uu uuuuuuuuuuuuuuuuuuuuuuunuuuuuuuuuuuuuu uu 279777779779777777 2 Next input an auxiliary area SYSMAC CP1L Introduction Manual 63 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
114. ral Annotations Hung Timer 5 seconds SYSMAC CP1L Introduction Manual Delete 4 7 Editing Programs 3 Close the Rung Properties dialog box The entered rung comment will be displayed on the ladder program Mom Area Light detecti v n Wok Area Womb Are a TIM Timer 0000 Timer Timer number u 4 Fe 0 04 Light detecti CNT Counter T 0000 Counter Counter number Timer 0000 Set value Counter P First Cycle First Cycle Flag suJeJ6oJd DuneoJ2 4 3 Editing Rungs Created ladder programs can be edited M Deleting 69 Contacts Instructions 1 Place the cursor on a contact or on an instruction Press the IDeletel key The selected contact or instruction vvill be deleted Rungs 1 Click a rung header The whole rung will be selected Work Area Light detecti Timer Wo oo Work Area 177 wooo 5 41 0000 Timer Nj Timer number A 50 Set value ET I 0 04 B Light detecti CNT Counter 0000 0000 Counter Counter number Timer 0000 Set value Counter P First Cycle First Cycle Flag 2 Press the Delete key The selected rung will be deleted SYSMAC CP1L Introduction Manual 7 4 7 Editing Programs M Creating Vertical Horizontal Lines 1 2 O o 0 O Q o 3 o Note Vertical and horizontal connection lines can be created Vertical lines are created as follows Position the c
115. ramming Examples mM A 4 3 Using Interrupt Inputs to Accelerate Processes M Functions Used 6 Interrupt Inputs CP1L CPU Units normally repeat processes in the following order overseeing processes program execution refreshing peripheral servicing During the program execution stage cyclic tasks are executed The interrupt function on the other hand allows a specified condition to interrupt a cycle and execute the specified program Interrupt inputs direct mode execute interrupt tasks when the built in input of a CPU unit switches from OFF to ON or from ON to OFF Interrupt tasks 140 to 145 are allocated to the input contacts The allocation is fixed Use interrupt inputs to achieve faster processing that is unaffected by the scan time M 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 3 Sensor input interrupt Product Sensor input 1 Sensor input 2 Interrupt tasks will be executed when the sensor input interrupt changes from OFF to ON Sensor input interrupt input O Contact 0 04 Sensor input 1 Contact 0 00 Sensor input 2 Contact 0 01 Sensor input 3 Contact 0 02 RESET input Contact 0 05 PASS output Contact 100 00 NG output Contact 100 01 NG output sensor input 1 Contact 100 02 NG output sensor input 2 Contact 100 03 NG output s
116. rea that is not meant to be accessed Carry flag CY P CY 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 Turns 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 data2 Greater than or gt P GE Turns ON when data comparison returns equals flag data1 gt data2 Less than flag lt PLT Turns ON when data comparison returns data1 lt 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 Overflow flag ear T r Turns Turns ON when the calculation result overflows when the calculation result overflows Underflow flag P UF 7 55 ON vvhen 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 Always OFF flag P OFF Remains OFF at all times xipueddy gt O6 SYSMAC CP1L Introduction Manual A 1 Channel Relay Numbers 6 Clo
117. rnal dimension 20 F first task startup flag 64 force set force reset 86 TUN CHON DIOCK uon das 149 G E 76 H D I 48 high speed counter 130 22 98 VO Comment aa ad d 71 O comment bar 46 refreshing 106 information vvindovv 47 INPUTTING Contact d d CM 54 inputting output coil 57 esnan 49 99 instructions reference 49 WAVE TIOGK AREE ET m 42 interrupt function 119 L ladder backtracking 90 ladder program 42 44 loading program 70 M mal mehi iene eet b a 46 mani WIN GOW se Pad dl abi 46 Modbus RTU easy master function 141 mo nllolihi m rc rp 83 molnund C P ro 29 O online editing 91 operating mode 78 operation indicator 16 OPUN Dardin 15 OR CICO aa d 55 P peripheral service 108
118. rogramming Examples 3 4 9 Click the General tab Select Interrupt Task 140 from the Task type drop down list Program Properties dal General Protection Comments Name MewPrgam2 0 Task tupe Unassigned Interrupt Task 135 Interrupt Task 156 Interrupt Task 137 Interrupt Task 1 38 Interupt Task 159 Interrupt Task 140 Interrupt Task 141 Interrupt Task 142 Interupt Task 143 Interrupt Task 144 Close the Program Properties dialog box Select Section1 under NewProgramd2 Int 140 application 3 CX Programmer NewPLC1 NewProgram2 Section1 Diagram File Edit View Insert PLC Program Tools Window Help Bx D z E c SG amp Ba d 5598 Pras BA W A Si E l m Om m m R3 ki Dc Gb z IZ El zx NewProject fa NeviPLC CP L Offline 3 Symbols i 10 Table and Unit Setup Settings a Memory Programs 3 NewProgram1 00 3 Symbols section END F NewProgram2 Int 140 3 Symbols o END 1 F Function Blocks Q 100 00 Bit number Bit SET Set Q 100 02 Bit number Bit ensor input 2 SET Set Q 100 03 Bit number Bit SET Set Q 100 04 Bit number B A 2 2 vet attt zl Project x sl Name Address or Value Comment For Help press F1 NewPLC1 Net 0 Node 0 Offline rung 4 0 0 96 NUM VERRE C CCOQ wWC
119. rol System This section defines the operation and components of a shutter control system 2 2 2 1 Operation This section defines the operation of a shutter control system sulejs g Sulubis q A car approaches the shutter e When a sensor detects 3 headlight flashes within 5 seconds the shutter opens The shutter can also be opened closed and stopped with buttons 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 Introduction Manual 2 2 About the Shutter Control System 2 2 2 System Components This section defines components to be used in the shutter control system The follovving components are to be used PLC 6 Equipment and Software for Programming Inputs Outputs e CP1L 14 point I O unit with AC power supply CX Programmer Computer USB cable A B sulejis g BuiuBiseq 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 L S1 Limit switch turned ON when shutter is fully closed L52 Contact for activating the shutter escalation motor MO1 Contact for activating the shutter de escalation motor MO2 SYSMAC CP1L Introduction Manual 21 sulejis g Sulubis q 2 3 O Allocation for the Shutter Control
120. rt Address 33 Gn Jff Sety Ehanelirder ForceUn Force oo D00010 10000 0000 0021 o0 T T T J On Off T ChangeOrder Cti Forcetin Ctri K 1441 ForceCancel 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 displayed 3 Select the area and its region for the transfer Click Transfer to PLC The data will be transferred SYSMAC CP1L Introduction Manual 129 xipueddy B A 4 CP1L Programming Examples A 4 5 Using Rotary Encoders to Measure Positions M Functions Used 6 High Speed Counting by Built in Input High speed counter inputs can be enabled by connecting rotary encoders to the built in inputs CP1L units come with multiple high speed counter inputs making it possible to control multi axis devices with a single CP1L 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 M Operation Overview A sheet feeder will be regulated to feed constant lengths in a given direction i e for vacuum packing of
121. s can be used to add I O points up to a total of 60 I O points olElE E S E E aspe pes es es es es 2N C L omnon SYSMAC CP1L PERIPHERAL 12 SYSMAC CP1L Introduction Manual 1 1 CP1L Models E 30 point I O Units CP1L M30DD D 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 m I O points omron SYSMAC CP1L BATTERY PERIPHERAL M VM AQ 1142 SUSESEEEE PEE SREE EES E 40 point I O Units CP1L M40D0 D 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 T REERHEEREFEEEERE SYSMAC CPTL N BATTERY PERIPHERAL SYSMAC CP1L Introduction Manual 13 M LM AQ 11L dO 14 1 2 Part Names and Functions 1 2 Part Names and Functions This section describes the part names and functions using the 14 point I O unit as an example IM 14 point I O Unit 1 e 2 SISTI TIT 05 NC lela 1 00 DOG Memory cassette slot Used to attach a memory cassette 15 Memory cassettes can be used to stor
122. s in the background using internal logic ports O 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 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 496 of the preceding cycle time will be allocated If services take several cycles for execution and are delayed allocate a fixed amount of time as opposed to percentage to each service To do this use Set time to all events under PLC Settings 108 SYSMAC CP1L Introduction Manual A 3 Inner Workings of CP1L M Cycle Time CPU units process data in cycles starting with Overseeing processes and ending with Peripheral services 6 Calculating 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 0 4ms Checking of user program memory battery error etc Program execution Details Processing Time and Variation Factors Processes program execution execution of instructions The Sum of instruction processing time is the sum of individual instruction exec
123. s 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 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 Introduction Manual 103 xipueddy B s Inner Workings of CPTL 4 6 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 p
124. sion 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 Introduction Manual A 2 Instructions mM A 2 Instructions CP1L has a rich instruction set This section explains how to use the instructions and gives some basic instructions A 2 1 Using Instructions With previous PLCs from C series to micro PLCs instruction sets were designed with the primary focus on handing BCD data However as data size grow and exchange of data between computers becomes more commonplace however support for BIN data has become a necessity for control equipment as well In response to such needs and for greater convenience many of the instructions for handling BIN data have been added in the process of creating the CP series Note Foralist and explanation of the instructions refer to the CX Programmer Help For details on using the CX Programmer Help refer to 4 4 Using the Help M Notation for Instructions xipueddy Instructions and Function Numbers In this section special instructions which have a function number assigned are displayed as a mnemonic followed by a 3 digit function number in parenthesis E g MOV 021 SYSMAC CP1L Introduction Manual 99 B A 2 Instructions A 2 2 Basic I O Processing Instructions Basic l O processing in
125. sk years Compare highlighted data 15 9 7 0 A351 Second 4 9 S2 D100 A352 m m D101 m on condition flag when power is turned ON SYSMAC CP1L Introduction Manual xipueddy 127 xipueddy B A 4 CP1L Programming Examples DM Area Setup 1 2 The following values are set into the DM area as BCD 00 3000 simintteec om mm Open the CX Programmer main window Double click Memory in the project tree 7 Untitled CX Programmer MewPLC1 NewProgram1 Section1 Diagram File Edit View Insert PLC Program Tools Window Help D a Gok 8 amp BB D S MB c xd FT 10 Table and Unit Setup be Settings ER Progra E z NewProgram n E23 Symbols zi Section Es PLC Memory NewPLC1 File View Window Help X aje da Memory CP1L L Offline 128 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM 3 Double click D in the data area workspace The PLC data table will be displayed B PLC Memory NewPLC1 PEE File Edit View Grid Window Help alisi ul amp r sae isla se s ez ssil J On Off T Change rder Ctl4J Forcen Ctl K 2144 ForceCance DO CP1L L Offline MUM Z 4 Input the values for the DM addresses maok xipueddy Sta
126. ssettes 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 Introduction Manual A 3 Inner VVorkings of CP1L mM A 3 2 CPU Unit Behavior This section briefly explains operations that take place within a CP1L CPU unit I CPU Unit Operation Flow Program executions execution of instructions are first processed followed by I O refresh and execution of the peripheral servicing These processes are repeated in cyclic fashion Power ON Power ON Initialize hardware memory and system work initialization Detect connected units 2 Execute automatic start up transfer from memory cassette Clear memory Check user memory UM Force set force reset gt Overseeing Check for battery error processes Monitor DIP switches Check I O bus Check user program memory xipueddy 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 i CP series expansion units O refresh is performed in PROGRAM mode also Peripheral Services only execute
127. struction TIM 50 Press the Enter key TIM 0 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 T0000 New Instruction E TIM 0 50 Detail gt gt Cancel SYSMAC CP1L Introduction Manual suJeJ6oJd DuneoJ2 ES 59 4 5 Inputting Programs 4 Press the Enter key Edit Comment 1 2 TO I 0 04 Work Area 4 Light detecti n Wan Area QO a a 1 Yun 0 7 4 4 l 2 o Work Area TIM 2 Timer ct 259399599 585559 Be 5 0000 imer Q Timer number m LI U 50 Set value 1 mam mmm mmm mm M m nd o D Press the down arrow key 3 times When the cursor is positioned on the next rung timer instruction input is complete Work Area Light detecti YUDU n Work Area ee ee 7 m Wo 00 a L rj 4 Ti n Wan Area imer L Timer Timer number z u z Set value n a x L e SEB BB RBBB RBBB 2 mummummm mummum mummummumNmumNmumNumNumNumNmumNMNmNmu mNmu mNmumNmumNMmumu m mmmmummumm Next input a counter instruction 60 SYSMAC CP1L Introduction Manual 4 5 Inputting Programs 4 5 5 Inputting Counters 1 Press the C key Input contact 004 Then press the Enter key wh
128. structions are used for writing to contacts and coils Instruction Name Name instruction o0 Fiona m Used for contacts connected to the bus bar or to the ofa rung block LOAD NOT LD NOT Used for closed contacts connected to the bus bar or to the beginning of a rung block om on 7 Coil Turns relay coil ON when execution condition is 1 and OFF when Output execution condition is O OUT NOT OUT NOT Turns relay coil OFF when execution condition is 1 and ON when execution condition is O 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 Turns relay coil OFF when execution condition changes from OFF to ON The relay coil will remain OFF even when the execution condition changes back to OFF KEEP RELAY KEEP 01 1 Makes the specified relay function as a keep relay Note VVhen 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 W Writing Contacts LD LOAD LD NOT LOAD NOT Instructions Use at the bus bar or at the beginning of a rung block Bus bar 100 SYSMAC CP 1L Introduction Manual A 2 Instructions mM AND AND NOT Instructions Use for contacts connected in series pm oom 000000 000002 pe
129. the PLC service settings If a cycle time has not been specified service will be executed using 496 of the preceding cycle time calculated by cycle time calculation If a cycle time has been specified service will be executed for the specified time Execution will take at least 0 1ms regardless of whether a cycle time has been specified or not If the ports are not connected the servicing time will be Oms 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 0 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
130. the execution condition is ON Example ee ren On each cycle for which work area W00000 is H010 ON data in holding area HO10CH is transferred D00010 to DM DO0010 7 Differentiated nstructions 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 VVO0001 OMOV 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 Introduction Manual 95 A 1 Channel Relay Numbers 6 Condition Flags Condition flags are used to reflect the processing results during or after the execution of instructions VVhether a flag is used or not vvill 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 a
131. the thickest electrical wire possible 2 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 O or less 3 GR GR is a protective ground terminal To prevent electrical shocks use a dedicated ground line 2mm or thicker for a class D grounding ground resistance of 100 Q or less To prevent electrical shocks and noise always ground the terminal with class D grounding ground resistance of 100 Q or less If the power supply has a grounded phase connect the grounded phase to the L2 N terminal Do not share the ground line with other equipment or connect it to building structure beams The results may be unfavorable BuuiM pue Bununoyy m 4 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 IM 14 point I O Units CP1L has input terminals located at the top and output terminals located at the bottom TREES Es PERIPHERAL BATTERY NC Nc COM OU 1 Input terminal 2 Output terminal SYSMAC CP1L Introduction Man
132. ting the O parameters Device n Control Device 1 Control mmma Inputs An Bn Xn Outputs A1 B1 X1 An i Bn am s Program elements Processing algorithm n YN Z1 Zn Zn ot ILI 8 Take a ladder program for Device 1 Control Replace the program l Os with parameters Save the algorithm as a template The template is defined as a function block FB Device 1 Control Device Control Device Control EN A Device Control EN ENO Insert function block instance into ladder program m um um um Gm Gm Guo Guo Gu mmm mm n Gs eee eee eee m m Q The defined function block can be used in ladder programs as function block instances SYSMAC CP1L Introduction Manual xipueddy 149 xipueddy gt B A 4 CP1L Programming Examples M Operation Overview The example for A 4 7 Using Inverters for Speed Control 1 will be used again 60 00Hz 55 00 2 ae 50 00Hz Stopped Contact A Contact B Contact C Contact Z ON ON ON ON VV0 00 VV0 01 VV0 02 VV0 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 M System Configuration The system configuration for A 4 7 Using Inverters for Speed Control 1 will be used again CP1L and 3G3MV an OMRON inverter
133. tor Stop motor A531 00 for high speed counter 0 100 00 100 00 Motor run Motor run A b VVhen high speed P gt 325 o counter A270 reaches T 3000 OBB8 Hex 7 Motor slovv the motor decelerates ex 0BB8 a E When high speed gt 325 E counter A270 reaches A270 Stop motor 3500 ODAC Hex the motor is stopped ODAC After motor stops check the stop position W0 00 0 02 WO0 01 Stop motor Start motor Motor stopped W0 01 100 02 Stop position is normal if the H high speed counter A270 is 7 d between 3500 ODAC Hex Motor stopped A270 A270 Normal stop and 3550 0DDE Hex ODAC ODDE Position 17 Stop position is in error if 2 325 the high speed counter 270 A270 is greater than 3550 ANNO Error stop ODDE Hex HODDE position SYSMAC CP1L Introduction Manual 133 xipueddy B A 4 CP1L Programming Examples M 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 GL adder Program Use a CTBL instruction to execute interrupt tasks when the target position is reached 0 02 Reset motor stopped A Start motor A 02 m M W0 02 gt co o o ol ol o Softvvare reset for high speed counter CTBL 882 Specification for h
134. ual 3 3 Wiring Devices G Wiring Inputs 1 Wire the inputs as shown while referring to 2 3 O Allocation for the Shutter Control System PB2 SEN1 LS1 0 01 003 0 05 PB1 PB3 SEN2 LS2 0 00 0 02 0 04 0 06 lt o C 5 5 o 2 o z 5 Wiring Outputs 1 Wire the outputs as shown while referring to 2 3 O Allocation for the Shutter Control System For details on wiring refer to 3 5 4 I O Wiring for CPU Units with 14 I O Points of CP Series CP1L CPU Unit User s Manual W462 32 SYSMAC CP1L Introduction Manual 3 4 Power Testing CP1L 3 4 Power Testing CP1L After wiring CP1L perform a power test E Turning Power ON Supply power to CP1L and then check the status with the indicators 1 Turn the power OFF for all components escalation motor de escalation motor etc 2 Turn the power ON for CP1L 3 Wait 2 seconds for the CP1L to initialize 4 Check the indicators on CP1L If POWER and RUN are lit CP1L is operating normally a iscsi OUT WZ Note When CP1L is turned ON it will go into RUN mode automatically D Turn the power OFF for CP1L SYSMAC CP1L Introduction Manual BuuiM pue BununoJA m 33 34 BuuiM pue BununoJA 3 4 Power Testing CP1L Note Battery Using a battery The battery maintains the internal clock and retained regions of I O memory while the power supply
135. uctions 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 000103 000200 O 000000 m uu r 000001 E EE 000102 a Ignored In the above example relay coil 000103 is turned ON by the set condition and OFF by the reset condition While the reset input is ON the set input will be ignored 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 102 SYSMAC CP 1L Introduction Manual A 3 Inner VVorkings of CP1L mM 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 Us 0 Flash memory RAM er program Comment External analog memory o FB program 3 uy H p Parameters i e PLC settings Parameters i e PLC settings CPU unit Memory cassette xipueddy v v v v v v 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 i
136. unter 0 Use high speed counter 1 Counting mode C Counting mode fo Circular Max Count Circular Max Count Reset Reset Input Setting Input Setting High Speed Counter 2 High Speed Counter 3 El m Counting mode p Counting mode Circular Max Count Circular Max Count Reset Reset Input Setting Input Setting C nterrupt Input IND Quick IN1 Normal Y IN Normal IN3 Normal Y Normal CP1L L Offline 4 Close the PLC Settings dialog box 5 To apply changes made to the PLC settings turn the PLC power ON 120 SYSMAC CP1L Introduction Manual A 4 CP1L Programming Examples mM E Programming Example Ladder 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 Interrupt input O 110 Up specification for input Interrupt input O Allow interrupt 100 02 NG output sensor input 1 100 03 xipueddy NG output sensor input 2 100 04 NG output sensor input 3 0 05 RESET input SYSMAC CP1L Introduction Manual 121 xipueddy B 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
137. ursor 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 69 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 key The contact or instruction on the clipboard will be pasted Click the rung header of the rung you wish to copy The whole rung will be selected Hold down the Ctrl key and press the C key The selected rung will be copied to the clipboard Move the cursor to the rung where you wish to paste Hold down the Ctrl key and press the V key The rung on the clipboard will be pasted 74 SYSMAC CP1L Introduction Manual SECTION 5 Transferrin
138. usement 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 or property Please know and observe all prohibitions of use applicable to the products NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS 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 MPFOGRAMMABLE PRODUCTS OMRON shall not be responsible for the user s programming of a programmable product or any consequence thereof Disclaimers MCHANGE 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 MD MENS ONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufacturing purposes even when tolerances ar
139. ution execution times times 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 Factors Waits for the specified cycle time to When the cycle time has not been fixed the elapse when a minimum fixed cycle processing time is approximately 0 time is specified in PLC Settings Additional time for fixing the cycle time Calculates the cycle time Fixed cycle time Actual cycle time processing time for overseeing processes program execution I O refreshing peripheral services I O Refreshing Details Processing Time and Variation Factors CP series Expansion I O Units and Each unit is refreshed I O refresh time for Expansion Units Outputs from the CPU unit each unit is multiplied to the expansion units are by the number of refreshed first followed by units used 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 Introduction Manual xipueddy 109 xipueddy gt B s Inner Workings of CPTL Note Peripheral Services 1s 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
140. w TI What do you want the wizard to do J Click Next ta continue D Confirm that Include this location in the search is checked and that C Program Files OMRON CX Server USB Win2000_XP iInf 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 suJeJ6oJd DuneoJ2 Found New Hardware Wizard Please choose your zearch and installation options s Search for the best driver in these locations Use the check boxes below to limit ar expand the default search which includes local paths and removable media The best driver found will be installed Search removable media floppy CD ROM O Don t search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware EUN SYSMAC CP1L Introduction Manual 39 4 suJeJ60Jd DuneoJ2 40 4 1 Preparing for Programming If the Hardware Installation dialog box is displayed click Continue Anyway Hardware Installation The software you are installing for this hardware OMRON SY3MAL PLC Device has not passed Windows Logo testing to verify its compatibility with Windows P Tel me why this testing iz Important Continuing your installation of this software
141. wProject fm NewPLCI CP1L Offline 3 Symbols i 10 Table and Unit Setup Settings 4 Memory Programs S MewProgram1 00 3 symbols Gg Section1 amp END 4 F Function Blocks TF 1Nv002 Refresh RD DIO ORD ModelTypeMV gt INT pal WORD ArealD INT AreaNo WORD MSGArealD xipueddy 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 INewPLC1 NewProgram1 Section1 Diagram ae 2 d 55 SS NP ALBA Te S aba oZEBELK Z la x 2 55 z x 10 invertersetting 1 JN 002 Refresh BOOL EN Always ON Flag s New Parameter Detail gt gt Cancel Scanlist Error DWORD ModelTypeM UINT IntervalCount SYSMAC CP1L Introduction Manual 157 A xipueddy B A 4 CP1L Programming Examples A 4 9 Exchanging Data between CP1Ls M 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 CJ1M units without the aid of a program M Operation Overview Current temperature information is exchanged by boilers This setup may be used to adjust boiler temperatures according to the other boiler conditions
142. wie PAD yalansa 9 1 Intondeo udlenee ME PCM EE 10 2 General Precaution Sarai a m ati au BALL 10 Dalely Fl CCAUllONS La at iode mde nb 10 4 Application Precaullors s oor piso ada sc Da uu Sac da a ba dadan 10 SECTION 1 CP1L Overview 11 tr 1 p 12 1 2 Pant Names and 14 SECTION 2 Designing Systems 17 2 1 Organization of this Manual xke oce a 18 2 2 About the Shutter Control System 888 88388 8 333 20 2 3 MV O Allocation for the Shutter Control System 22 2 4 Example Ladder Progra arican a s 24 SECTION 3 MOUNTING and WINING erasoaren a apa Ad n 25 zl stalan TOTes c a aa a da aaa cess da uba DR REUS 26 3 2 MOUNTING onto DIN T CKS a a ted cu n I a tide arie ads eee also o 29 2 2 WNN DEVICES na 30 Oui OWEN TESNO CP ua esi od sb i d uic tea car 33 SECTION 4 Creating Programs 35 4 1 Preparing Tor Programming 5 muteisp curs n yi 36 4 2 Creating Ladder Programs secs n L e PR n ee a saad dcos 42 USNE CXA udrelel
143. 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 3G3MV Operation command t Star eer 08 NN 7 Mron naon input ean 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 Introduction Manual xipueddy 147 xipueddy B A 4 CP1L Programming Examples A 4 8 Using Inverters for Speed Control 2 M Functions Used Smart FB Library Note Smart FB Library smart function block library is a set of components provided by OMRON as an FB function block By using Smart FB Library OMRON PLC and FA component functions can be easily used in PLC programs When using serial ports for communication between an inverter and a PLC substantial knowledge of communication command specifications and communication procedures are generally required in creating the program In such
144. z Ric t T TEE 45 422 U GUR TE E UE 48 4 0 APUDO FOAMING aaa ao Gua trade a 51 4 0 sav ndLoad nd Proorams e nb aa 68 b b 71 SECTION 5 Transferring and Debugging Programs 75 STF GONT ONING een 76 5 2 Adjusting Debugging Online 8888 nennen nnns 83 ADU an en tee ee eco ene 93 A T Channel Relay NUITIDerS uoo eu ES pa eer a nian Al URP Dade 94 A lusifuciionsee ba eins entice wae und n 99 Az NNE Workings or CPIE x A aba 103 AZA CPTL Programming an a al un a ein 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 following 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

Download Pdf Manuals

image

Related Search

Related Contents

Ecosirtom 4  User manual - Pro Audio Centre  ミツビシ ランサーエボリューション5~7 ・・・・ BRPS-M01  pBApo-EF1α Neo DNA - Clontech Laboratories, Inc.  Service Manual - Frank`s Hospital Workshop  VSE-CL2  The Propeller System Module (PSM) User Manual  取扱説明書 - LEDIUS商品データベース  Supermicro SuperServer 7048R-C1R4+  添付文書 - 大日本住友製薬 医療情報サイト  

Copyright © All rights reserved.
Failed to retrieve file