background image

CP1L CPU Unit

Cat. No. W07E-EN-02

CP1L-J14D@-@
CP1L-J20D@-@
CP1L-L10D@-@
CP1L-L14D@-@
CP1L-L20D@-@
CP1L-M30D@-@
CP1L-M40D@-@
CP1L-M60D@-@

GETTING STARTED GUIDE

Summary of Contents for CP1L-J14D Series

Page 1: ...CP1L CPU Unit Cat No W07E EN 02 CP1L J14D CP1L J20D CP1L L10D CP1L L14D CP1L L20D CP1L M30D CP1L M40D CP1L M60D GETTING STARTED GUIDE...

Page 2: ...CP1L J14D CP1L J20D CP1L L10D CP1L L14D CP1L L20D CP1L M30D CP1L M40D CP1L M60D CP1L CPU Unit Getting Started Guide...

Page 3: ...oller PC is used however in some CX Pro grammer displays to mean Programmable Controller Visual Aids The following headings appear in the left column of the manual to help you locate different types o...

Page 4: ...26 SECTION 3Mounting and Wiring 27 3 1 Installation Notes 28 3 2 Mounting onto DIN Tracks 31 3 3 Wiring Devices 32 3 4 Power Testing CP1L 35 SECTION 4Creating Programs 37 4 1 Preparing for Programmin...

Page 5: ...ples When constructing an actual system check the specifications performance and safety of each component by referring to the respective manuals Ladder programs in this manual are provided strictly as...

Page 6: ...in details Also provides information on errors troubleshooting mainte nance and inspection W451 SYSMAC CP Series CP1H CP1L CPU Unit Pro gramming Manual Provides the following information on the CP Ser...

Page 7: ...DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE OMRON DISCLAIMS ALL OTHER WARRANTIES EXPRESS OR IMPLIED LIMITATIONS OF LIABILITY OMRON SHALL NOT BE RESPONSIBLE...

Page 8: ...hat the uses listed may be suitable for the products Outdoor use uses involving potential chemical contamination or electrical interference or conditions or uses not described in this manual Nuclear e...

Page 9: ...nfirm actual specifications of purchased products DIMENSIONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufacturing purposes even when tolerances are shown PERFORMANCE...

Page 10: ...formation 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...

Page 11: ...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 c...

Page 12: ...SECTION 1 CP1L Overview This section introduces the types of CP1L as well the part names used during operation 1 1 CP1L Models 12 1 2 Part Names and Functions 15...

Page 13: ...that use CP1L refer to appendix A 4 CP1L Programming Examples 10 point I O Units CP1L L10D The CPU Unit has 6 inputs and 4 outputs built in The PLC cannot use CP series Expansion I O Units to expand t...

Page 14: ...CPU unit has 12 input points and 8 output points CP series expansion I O units can be used to add I O points up to a total of 60 I O points 30 point I O Units CP1L M30D CPU unit has 18 input points an...

Page 15: ...PU unit has 24 input points and 16 output points CP series expansion I O units can be used to add I O points up to a total of 160 I O points 60 point I O Units CP1L M60D CPU unit has 36 input points a...

Page 16: ...ers can be used for programming and monitoring 3 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 usin...

Page 17: ...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 60 point I O units may have up to 3 expan...

Page 18: ...on fatal error including FAL execution has occurred CP1L operation will continue Not lit Operation normal INH Yellow Lit The output OFF bit A500 15 has turned ON All outputs will be turned OFF Not lit...

Page 19: ...1 2 Part Names and Functions 1 1 18 SYSMAC CP1L Getting Started Guide CP1L Overview...

Page 20: ...stem as an example All subsequent sections are written based on the sample program used in this section 2 1 Organization of this Manual 20 2 2 About the Shutter Control System 22 2 2 1 Operation 22 2...

Page 21: ...stem specifications components and I O allocation Section 3 CP1L installation component wiring and power testing Section 4 Connecting CP1L to a computer and creating ladder programs Section 5 Setting...

Page 22: ...nputting Programs 4 6 Saving Loading Programs and 4 7 Editing Programs Refer to 5 1 Going Online Refer to 5 2 Adjusting Debugging Online Refer to 5 1 Going Online Preparing the equipment Equipment pre...

Page 23: ...stem 2 2 1 Operation This section defines the operation of a shutter control system A car approaches the shutter When a sensor detects 3 headlight flashes within 5 seconds the shutter opens The shutte...

Page 24: ...AC power supply zEquipment and Software for Programming CX Programmer Computer USB cable A B zInputs Shutter OPEN button PB1 Shutter STOP button PB2 Shutter CLOSE button PB3 Car detection sensor SEN1...

Page 25: ...relays on CP1L are allocated to contacts as defined by following zInputs zOutputs Device Contact Address OPEN button PB1 0 00 STOP button PB2 0 01 CLOSE button PB3 0 02 Car detection sensor SEN1 0 03...

Page 26: ...lays 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...

Page 27: ...ight detection sensor W0 00 Work area W0 00 Work area 0 04 Light detection sensor T0000 Timer C0000 Counter A200 11 P_First_Cycle First cycle flag C0000 Counter 0 01 STOP button 0 05 Upper limit LS 10...

Page 28: ...L onto a DIN track how to wire power supply and I O lines and how to test operation 3 1 Installation Notes 28 3 2 Mounting onto DIN Tracks 31 3 3 Wiring Devices 32 3 3 1 Connecting Power Supply and Gr...

Page 29: ...light 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 n...

Page 30: ...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...

Page 31: ...rack 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 In...

Page 32: ...ks 3 Mounting and Wiring 3 2 Mounting onto DIN Tracks This section explains how to mount CP1L onto a DIN track 1 Pull out the DIN track mounting pin 1 2 Hook the rear panel of CP1L onto the DIN track...

Page 33: ...and Ground Lines This section explains how to wire the power and ground lines Units with AC Power Supply Power and ground terminals A are located near the top of CP1L Terminal block layout at A 1 Powe...

Page 34: ...prevent electrical shocks and noise always ground the terminal with class D grounding ground resistance of 100 or less If the power supply has a grounded phase connect the grounded phase to the L2 N t...

Page 35: ...shown while referring to 2 3 I O Allocation for the Shutter Control System zWiring Outputs 1 Wire the outputs as shown while referring to 2 3 I O Allocation for the Shutter Control System For details...

Page 36: ...L 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 initializ...

Page 37: ...the retained regions of I O memory will be lost Data such as user programs and PLC system settings are not lost even when the power is OFF and no battery is installed For details on replacing the batt...

Page 38: ...on 44 4 2 2 Ladder Program 46 4 3 Using CX Programmer 47 4 3 1 Starting CX Programmer 47 4 3 2 Operation Screens 48 4 4 Using the Help 50 4 5 Inputting Programs 53 4 5 1 Creating New Projects 53 4 5 2...

Page 39: ...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...

Page 40: ...cting 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...

Page 41: ...Turn the power ON for CP1L and the computer 2 Using a USB cable 2 connect the peripheral USB port 3 on CP1L to a USB port on the computer 1 When the computer detects CP1L the following message will b...

Page 42: ...tion Advanced and click Next 5 Confirm that Include this location in the search is checked and that C Program Files OMRON CX Server USB Win2000_XP Inf is displayed in the location field Click Next Dri...

Page 43: ...ing for Programming 4 4 42 SYSMAC CP1L Getting Started Guide Creating Programs If the Hardware Installation dialog box is displayed click Continue Anyway 6 Click Finish USB driver installation is now...

Page 44: ...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...

Page 45: ...ating the shutter even when they are not held down A self maintaining bit is used to achieve this 2 Limit switches When the shutter is fully opened or fully closed it will be stopped by a limit switch...

Page 46: ...e into the garage and activate the shutter de escalation motor 2 Push buttons When pulling the car out of the garage use the buttons to operate the shutter When pulling the car out of the garage a dif...

Page 47: ...pper limit LS 100 01 De escalation motor 100 00 Escalation motor 0 00 OPEN button 100 00 Escalation motor 0 01 STOP button 0 06 Lower limit LS 100 00 Escalation motor 100 01 De escalation motor 0 03 C...

Page 48: ...d operation screens 4 3 1 Starting CX Programmer 1 On the desktop select Start All Programs OMRON CX One CX Programmer CX Programmer CX Programmer will start The title screen will be displayed followe...

Page 49: ...ed 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 P...

Page 50: ...mation such as PLC name offline online status and active cell position If an online connection error or other errors occur and are recorded by the error log while online a blinking red error message w...

Page 51: ...gram creation and monitoring Instructions as well as formats and operand functions are also explained Referencing CX Programmer Help 1 While using CX Programmer press the F1 key The help window will b...

Page 52: ...ed Guide 51 Creating Programs zFrom CX Programmer 1 Select Help Help Contents from the main menu CX Programmer Help will be displayed Referencing PLC Instruction Sets For details on instructions used...

Page 53: ...s and CP Series from the main menu CP Series PLC Instruction Sets will be displayed zWhile Creating Ladder Programs 1 While creating a ladder program instruction click Instruction Help on the New Inst...

Page 54: ...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 CP...

Page 55: ...YSMAC CP1L Getting Started Guide Creating Programs 3 Click Settings The Device Type Settings dialog box will be displayed 4 Select the CPU from the CPU Type drop down list Click OK The Device Type Set...

Page 56: ...is displayed for Network Type Click OK The Change PLC dialog box will be closed Main window for the new project will be displayed If USB is not displayed for Network Type refer to 4 1 2 Connecting to...

Page 57: ...gram Inputting Contacts 1 Press the C key The New Contact dialog box will be displayed 2 Input address 4 Press the Enter key 4 is entered The Edit Comment dialog box will be displayed 3 Input Light de...

Page 58: ...ce for inserting an OR circuit will be created 2 Press the W key The New Contact OR dialog box will be displayed 3 Input address W0 Press the Enter key W0 is entered The Edit Comment dialog box will b...

Page 59: ...d 2 With the cursor in the up position press the key The New Closed Contact dialog box will be displayed 3 Input address T0 Press the Enter key T0 is entered The Edit Comment dialog box will be displa...

Page 60: ...n output coil for the work area 1 Press the O key The New Coil dialog box will be displayed 2 Input address W0 Press the Enter key W0 is entered The Edit Comment dialog box is displayed with the I O c...

Page 61: ...uction 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 execute...

Page 62: ...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 3 Input timer instruction TIM 0 50 Press the E...

Page 63: ...Guide Creating Programs 4 Press the Enter key A timer instruction will be displayed on the ladder program 5 Press the down arrow key 3 times When the cursor is positioned on the next rung timer instr...

Page 64: ...ox 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 3 Input counter instruction CNT 0 3 Press the Enter key...

Page 65: ...Input Counter as the I O comment Press the Enter key A counter instruction will be displayed on the ladder program Next input a reset input for the counter instruction The timer contact TIM 0000 will...

Page 66: ...SYSMAC CP1L Getting Started Guide 65 Creating Programs 6 Input contact T0000 7 Press the down arrow key 2 times When the cursor is positioned on the next rung counter instruction input is complete Ne...

Page 67: ...ill be ON for only 1 cycle after the PLC has been powered ON Here it will be used to reset the counter when CP1L is powered ON 1 Press the W key Input an OR circuit contact C0000 Then press the Enter...

Page 68: ...Getting Started Guide 67 Creating 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 A first cycle flag w...

Page 69: ...e Enter key A space for inserting an OR circuit will 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...

Page 70: ...ion will be displayed on the contact 4 5 8 END Instruction Ladder programs must be terminated with an END instruction When a new program is created in CX Programmer a section inclusive of an END instr...

Page 71: ...ams 4 6 1 Compiling Programs By compiling you can check for errors in the program 1 Select PLC Compile All PLC Programs from the main menu The compilation is started When the compilation is complete p...

Page 72: ...ving 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 2 Specify...

Page 73: ...aved ladder program into CX Programmer Programs are loaded in groups for each project 1 Select File Open from the main menu The Open CX Programmer Project dialog box will be displayed 2 Specify the sa...

Page 74: ...ograms Created ladder programs can be edited in CX Programmer I O comments and rung comments can also be added or edited 4 7 1 Editing I O Comments I O comments can be added and edited via a list of a...

Page 75: ...comment The I O comment field will become editable Input or edit the I O comment 4 7 2 Inputting Rung Comments Comments can be added to each rung of a ladder program 1 Double click the rung header fo...

Page 76: ...ed on the ladder program 4 7 3 Editing Rungs Created ladder programs can be edited Deleting zContacts Instructions 1 Place the cursor on a contact or on an instruction Press the Delete key The selecte...

Page 77: ...y Creating a line from top to bottom Hold down the Ctrl key and press the down arrow key Note Repeating the process over an existing connection line will delete it Copying Pasting Contacts Instruction...

Page 78: ...rformed with the computer and CP1L online 5 1 Going Online 78 5 1 1 Setting the CP1L Clock 79 5 1 2 Changing the Operating Mode 80 5 1 3 Transferring Programs 82 5 1 4 Executing Operations 84 5 2 Adju...

Page 79: ...m to be transferred 2 Select PLC Work Online from the main menu A dialog box will be displayed to confirm going online 3 Click Yes The dialog box will be closed When the system goes online the ladder...

Page 80: ...4 5 1 Creating New Projects 5 1 1 Setting the CP1L Clock The CP1L clock should be set to match your time zone Use CX Programmer to set the time If the time on CP1L is not set properly the error log w...

Page 81: ...ck dialog box will be closed 5 Select File Exit from the menu The clock on CP1L is now set 5 1 2 Changing the Operating Mode Change to PROGRAM mode The procedure for changing to the PROGRAM operation...

Page 82: ...on mode affects the whole user program and is common to all tasks PROGRAM mode In this state the program is stopped This mode is used to prepare for program execution by performing initial settings su...

Page 83: ...RUN MONITOR Program status Stopped Running Running I O refreshing Execute Execute Execute External I O status OFF Depends on program Depends on program I O memory Non holding memory Cleared Depends o...

Page 84: ...box will be displayed to confirm the transfer Note For details on the transfer options refer to SECTION 9 Transferring Monitoring Debugging Programs of CX Programmer Operation Manual W446 3 Click Yes...

Page 85: ...perating mode The procedure for changing to RUN mode is described below To perform a trial run for adjustments and debugging change to MONITOR mode Caution Confirm that the facility will not be affect...

Page 86: ...nctions used for debugging and for adjustments during test runs 5 2 1 Monitoring Displaying Conduction Status The conduction status of the program rungs will be displayed This will allow you to confir...

Page 87: ...Debugging Programs Displaying Conduction Status at Multiple Sections The diagram workspace can be split Multiple sections of the program can be viewed simultaneously 1 Window divider Drag the window d...

Page 88: ...the main menu 2 Select View Windows Watch from the main menu 3 Input an address The I O value will be displayed For Boolean values 0 indicates OFF Note Input the address as the channel followed by a...

Page 89: ...pendent 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 t...

Page 90: ...contact will be marked with the force set symbol Note Select On to force the contact ON and Off to force the contact OFF To undo the force set force reset select Cancel The following areas can be for...

Page 91: ...r Counter Value dialog box will be displayed 3 Input the new value Click OK The timer setting will be updated 5 2 4 Searching Address Reference Tool The address reference tool displays which instructi...

Page 92: ...5 SYSMAC CP1L Getting Started Guide 91 5 Transferring and Debugging Programs 1 Select View Windows Address Reference Tool from the main menu The address reference tool will be displayed 2 Input the a...

Page 93: ...es will be displayed Click an address to display the program being used Ladder Backtracking This function is used to backtrack the ladder to determine why a contact does not turn ON for example 1 Plac...

Page 94: ...ing in MONITOR mode changing the program via editing online may cause the cycle time to become longer and or failure to read input signals When making large changes when moving or copying rungs or whe...

Page 95: ...Program Online Edit Send Changes from the main menu The edited rungs will be transferred to CP1L 5 2 6 Confirming Cycle Time 1 Change CP1L to the MONITOR or RUN operating mode 2 Click the diagram work...

Page 96: ...Processing Instructions 102 A 3 Inner Workings of CP1L 105 A 3 1 Inner Structure of CPU Units 105 A 3 2 CPU Unit Behavior 107 A 4 CP1L Programming Examples 114 A 4 1 Using Adjusters to Set Timers 114...

Page 97: ...0 point I O units D0 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 firs...

Page 98: ...ample 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 instr...

Page 99: ...ructions 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 Turns ON when data becomes 0 as a result of...

Page 100: ...ock pulse or condition flag into CX Programmer first enter a contact then press the P key to select from the drop down list Name Label In CX P Function 0 02s clock pulse 0 02s P_0 02s 0 1s clock pulse...

Page 101: ...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...

Page 102: ...lace 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 ad...

Page 103: ...r or to the beginning of a rung block AND AND Used for contacts connected in series AND NOT AND NOT Used for closed contacts connected in series OR OR Used for contacts connected in parallel OR NOT OR...

Page 104: ...number of contacts that can be connected by OR OR NOT instructions Writing Relay Coils zOUT OUT NOT Instructions OUT instructions turn a relay coil ON when the execution condition is ON OUT NOT instru...

Page 105: ...or when operation is stopped zKEEP 011 KEEP RELAY Instructions KEEP instructions make relay coils function as keep relays This allows for easy construction of self maintaining bits In the above exampl...

Page 106: ...mer 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...

Page 107: ...g PLC setup refer to CX Programmer Operation Manual W446 7 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 writ...

Page 108: ...sette Clear I O memory Check user memory UM Force set force reset Overseeing processes Check for battery error Monitor DIP switches Check I O bus Check user program memory Program execution During exe...

Page 109: ...or CP1L s built in normal I O and CP series expansion I O units at one of the following 3 timings Cyclic refreshing Execution by instructions with immediate refresh variation Execution by an IORF inst...

Page 110: ...Outputs and D destination operands The output is refreshed immediately after executing the instruction z Executing IORF I O REFRESH Instructions IORF I O REFRESH instructions can be used to refresh a...

Page 111: ...l 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 Service Type Content Peripheral...

Page 112: ...r program memory battery error etc 0 4ms Details Processing Time and Variation Factors Processes program execution execution of instructions The processing time is the sum of individual instruction ex...

Page 113: ...e has not been specified service will be executed using 4 of the preceding cycle time calculated by cycle time calculation If a cycle time has been specified service will be executed for the specified...

Page 114: ...eing processes 0 4ms Program execution Sequential input instructions LD 0 55 s x 6 instructions OR 0 68 s x 6 instructions AND NOT 0 65 s x 7 instructions Sequential input instructions differentiated...

Page 115: ...t 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...

Page 116: ...input value A643 to a BCD value of D0 increment it by 20BCD 2sec and then store it as D1 B TIM will act as a decrementing ON timer with 0 1sec intervals 0 00 External analog setting input connector Se...

Page 117: ...t apply voltages any greater zUsing 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...

Page 118: ...t By setting the built in input to use quick response inputs inputs having a signal width as small as 30 s can be captured regardless of the cycle time 14 point I O units can use up to 4 quick respons...

Page 119: ...r ladder processing For accelerated processing unaffected by the scan time use interrupt inputs The input can only be counted once during each cycle time regardless of how many times the input occurs...

Page 120: ...ted Guide 119 Appendix PLC Setup On the PLC Settings dialog box set the sensor input 0 04 to Quick 1 Open the CX Programmer main window 2 Double click Settings in the project tree The PLC Settings dia...

Page 121: ...or input contact is 0 04 setup is performed for IN0 since the interrupt input quick response input setting is set to 0 5 Close the PLC Settings dialog box 6 To apply changes made to the PLC settings t...

Page 122: ...to the input contacts The allocation is fixed Use interrupt inputs to achieve faster processing that is unaffected by the scan time Operation Overview Moving product i e IC chips will be inspected for...

Page 123: ...Settings dialog box 2 Click the Built in Input tab 3 On the IN0 drop down list for Interrupt Input select Interrupt While the sensor input contact is 0 04 setup is performed for IN0 since the interru...

Page 124: ...on to the interrupt input and to set the interrupt permission for enabling the interrupt inputs MSKS 690 0 110 MSKS 690 0 100 SET 100 01 RSET 100 00 P_On 100 02 NG output sensor input 1 0 05 RESET inp...

Page 125: ...ignment of interrupt tasks to interrupt inputs is fixed Interrupt input 0 will always execute interrupt task 140 SET NG output sensor input 1 NG output sensor input 2 NG output sensor input 3 Sensor i...

Page 126: ...k 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 2 Right click NewPro...

Page 127: ...l tab Select Interrupt Task 140 from the Task type drop down list o 4 Close the Program Properties dialog box 5 Select Section1 under NewProgram2 Int 140 6 Input the ladder program for the interrupt T...

Page 128: ...in clock The clock cannot be used if a battery is not installed or the battery voltage is low Operation Overview In this example a fountain will be controlled The fountain is to be activated accordin...

Page 129: ...until 21 15 when A351 hh mm ss becomes equal to the value set in D30 21 15 00 DT and DT are time comparison instructions INFO zTime Data on CP1L The clock s PV is output to the following auxiliary ar...

Page 130: ...ond of the current time in the CPU unit s built in clock A351 to A352 and set time D100 to D102 will be compared 1 1 1 0 0 0 D100 DT D0 A351 100 00 0 00 S2 C S1 Set D0 0038Hex 7 6 5 4 3 2 1 0 D0 Compa...

Page 131: ...the DM area as BCD 1 Open the CX Programmer main window 2 Double click Memory in the project tree The Memory window will be displayed Channel Value Content D0 3000 30min 00sec D1 0017 17hr D2 0000 D10...

Page 132: ...e values for the DM addresses 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...

Page 133: ...son interrupts Interrupt tasks can be triggered when the counter value reaches a specific value or value range Operation Overview A sheet feeder will be regulated to feed constant lengths in a given d...

Page 134: ...pply for input devices only It cannot be used to power output devices PhaseA PhaseB PhaseC Vcc 0V COM Encoder power supply 24VDC E g Model E6B2 CWZ6C NPN open collector output 24VDC AC100 240V CP1L L1...

Page 135: ...the Built in Input tab 3 Check the Use high speed counter 0 checkbox for High Speed Counter 0 4 Select Linear mode for Counting mode 5 Select Software reset comparing from the Reset drop down list 6 S...

Page 136: ...Motor slow W0 00 Stop motor Software reset for high speed counter 0 0 02 W0 00 Stop motor W0 01 Motor stopped Start motor 100 02 Normal stop position 100 03 Error stop position W0 01 Motor stopped Cou...

Page 137: ...tches target value 1 3000 interrupt task 04 will be executed RSET W0 02 SET 100 00 D600 0 0 0DDE 325 A270 0DAC 325 A270 0DDE 310 A270 CTBL 882 A531 00 Reset motor stopped 0 02 Start motor Software res...

Page 138: ...can be used for positioning and speed control of a servo motor driver with up to 2 axes Operation Overview The following example is for a single axis handling machine that is used to transfer product...

Page 139: ...e 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 Origin Sea...

Page 140: ...CCW limit sensor 0 00 Origin proximity sensor 0 02 Start origin search 0 03 24VDC Positioning to point A 0 04 0 05 1 6k CW output 100 00 CCW outpput 100 01 Error counter reset output 100 04 NO contact...

Page 141: ...ttings Origin Search Item Setting Item Setting Undefined Origin Hold Use define origin operation Use Limit Input Signal Operation Always Search Direction CW Limit Input Signal NO Detection Method Meth...

Page 142: ...t B PLS2 887 1 0 Positioning PLS2 instruction Pulse output 0 Absolute pulse specification D10 D6 Position data setup table Initial frequency setting 0 03 Start origin search 0 04 Positioning to point...

Page 143: ...Deceleration ratio 2000 Hz 4ms D0002 C350 Target frequency 50000 Hz D0003 0000 D0004 FC18 Pulse output volume 1000 Hz D0005 FFFF Initial frequency D0006 0000 Initial frequency 0 Hz D0007 0000 Point B...

Page 144: ...odbus 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 N...

Page 145: ...Acceleration and deceleration is modified by the acceleration and deceleration of an inverter System Configuration CP1L and CIMR V7 an OMRON inverter are connected by RS485 for frequency and start sto...

Page 146: ...equency commands from RS 422 485 communication enabled n019 Acceleration time 1 5 0 Acceleration time sec n020 Deceleration time 1 5 0 Deceleration time sec n151 RS 422 485 communication Timeout detec...

Page 147: ...C Setup Configure serial port 1 1 Open the PLC Settings dialog box 2 Click the Serial Port 1 tab 3 Set the following settings 4 Close the PLC Settings dialog box Item Setting Communication Settings Cu...

Page 148: ...unction execution bit Operation command 1 Start Frequency command 55 00Hz 157C Hex Operation command 1 Start Frequency command 50 00Hz 1388 Hex Operation command 0 Stop Frequency command 00 00Hz P_Fir...

Page 149: ...A640 02 A640 00 Execution normal flag Execution error flag Execution bit A B C Channel Bits Setting Serial Port 1 D32300 07 to 00 Command Slave address 00 to F7 Hex 15 to 08 Reserved must be 00 Hex D3...

Page 150: ...Max D32349 FUNCTION code Address 00 00 Number of registers data is written to 2 2 data No 0001 and No 0002 on register 2 Communication data bytes Slave address Setting Value Inverter slave address 1 H...

Page 151: ...can be found in the FBL omronlib Inverter INVRT Serial folder For details on the Smart FB Library refer to this file FB Name Function Name Function Summary _INV002_Refresh Status refresh Refreshes the...

Page 152: ...O parameters Take a ladder program for Device 1 Control Replace the program I Os with parameters Save the algorithm as a template The template is defined as a function block FB The defined function bl...

Page 153: ...ON inverter are connected by RS485 for frequency and start stop control In this FB library example capacity of the user memory may exceed 5K steps For this reason since a memory capacity error may occ...

Page 154: ...op _INV002_Refresh BOOL EN BOOL Error WORD ErrorID INT NodeAddr BOOL BUSY BOOL ENO DWORD ModelTypeMV WORD AreaID DWORD Scanlist INT PortNo INT UnitSelect INT AreaNo UINT IntervalCount WORD MSGAreaID I...

Page 155: ...MOV 021 D2 0 MOV 021 D100 157C D2 0 MOV 021 D100 1388 MOV 021 D2 0 W0 00 Contact A W0 01 Contact B W0 02 Contact C Frequency command 60 00Hz 1770 Hex Rotation direction Normal 0 Frequency command 55...

Page 156: ...tings Data to transfer convert Lower CH No Upper CH No Reset data interface work area between FBs when operation is started Convert frequency command D100 from BIN to floating point Convert constant 1...

Page 157: ...e W10 04 StopFB error 1 Inverter slave unit 1 W1 01Stopped P_DM DM area specification 9000 1 1 Set the same area to use as FB data interface _INV002_Refresh BOOL EN BOOL Error WORD ErrorID INT NodeAdd...

Page 158: ..._INV002_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 2 Select the FBL omro...

Page 159: ...efresh12 cxf Click Open _INV002_Refresh is added under Function Blocks in the project tree 4 Place the cursor at the position where the _INV002_Refresh FB is to be inserted 5 Select Insert Function Bl...

Page 160: ...FB Instance Press the Enter key The named FB instance will be displayed 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 E...

Page 161: ...the boilers from a single location System Configuration zWiring Example Boiler A Boiler B Boiler C 1CH 2CH Temperature sensor unit CP1W TS101 2 Pt100 sensor inputs CP1W CIF11 RS422 485 option board 1...

Page 162: ...1 tab 3 Set the following settings No Setting Master Slave No 0 Slave No 1 Content 1 Presence of terminating resistance ON OFF ON Terminating resistance present for PLCs at the ends 2 2 4 wire select...

Page 163: ...0 1 Boiler A CP1L Master A_Temperature data 0 3100CH 3101CH 3109CH 3110CH 3111CH 3119CH 3120CH 3121CH 3129CH Serial PLC link area Input area 3189CH 0CH 1CH 2CH 100CH A_Temperature data 1 Output area...

Page 164: ...FER 70 2 1 3110 P_On XFER 70 2 1 3120 P_On Use block transfer instruction to transfer 1CH 2CH to 3100CH 3101CH Use block transfer instruction to transfer 1CH 2CH to 3110CH 3111CH Use block transfer in...

Page 165: ...A 164 SYSMAC CP1L Getting Started Guide Appendix...

Page 166: ...s and coils 75 device type 53 diagram workspace 48 49 differentiated up contact 68 DIN track 30 DIP switch 15 E editing rung 75 END instruction 69 error 17 expansion unit 16 external analog settings i...

Page 167: ...ng comment 74 rung header 49 S saving program 71 scan time 118 121 search 90 section 48 serial communication 143 setting the clock 79 Smart FB Library 150 special instruction 101 starting CX Programme...

Reviews: