KI00308 2013-04 1 Function and area of use This document describes how to create a simple PLC program in WindLDR for the "SmartAxis". Make a PLC program Simulate PLC program Download and upload PLC program Monitor PLC program 2 About this Start Up document This Start Up document should not be considered as a complete manual. It is an aid to be able to start up a normal application quickly and easily. For further information we refer to the manual for the PLC. FT1A Series Pro/Lite User's Manual - FC9Y-B1378 FT1A Touch User's manual - FT9Y-B1390 FT1A Series Ladder Programming Manual - FC9Y-B1382 3 Hardware The following hardware is needed to follow the instructions in this Start Up document: Page 1 (12) Beijer Electronics Automation AB a company in the Beijer Electronics Group Parent Company (Reg. office) Subsidiaries Beijer Electronics Automation AB Norway, Drammen: Beijer Electronics AS, +47 32 24 30 00 P.O. Box 426 Finland, Helsinki: Beijer Electronics Oy, +358 207 46 35 40 SE-201 24 MALMÖ, SWEDEN Denmark, Copenhagen: Beijer Electronics A/S, +45 70 26 46 46 Telephone +46 40 35 86 00 Estonia, Tallin: Beijer Electronics Eesti Oü, +372 6 518140 Fax +46 40 93 23 01 Latvia, Riga: Beijer Electronics SIA, +371 7 842280 Visitor s address Krangatan 4A, Malmö Lithuania, Vilnius: Beijer Electronics UAB, +370 5 2323101 Reg no. 556701-3965 VAT no SE556701-3965-01, Internet www.beijer.net, e-mail info@beijer.se
4 Installation of Automation Organizer To install Automation Organizer "SW1A-W1C", follow the steps below. Insert Automation Organizer Application CD into your CD-ROM drive. Automation Organizer launcher will run automatically Select the language to install and click Install button. The setup program will run. Follow the step-by-step procedure prompted by the setup program. Notes It may take a while to start the setup program. Do not start the program more than once. If the setup program does not start, double click on Setup_English.exe located in fscommand folder in the CD-ROM. Remember to install and update the USB driver. "For more information look in the manual page A5" 5 Create Ladder program This section describes the procedure for creating a simple ladder program in WindLDR. Device Addresses: Input: Output: Internal Relay: Timer: Counter: Data Register: I0-I7, I10-I17... Q0-Q7, Q10-Q17... M0-M7,M10-M17... T0, T1, T2... C0, C1, C2... D0, D1, D2... Example User Program: Create a simple program using WindLDR. The sample program performs the following operation: When only input I0 is turned on, output Q0 is turned on. When only input I1 is turned on, output Q1 is turned on. When both inputs I0 and I1 are turned on, output Q2 flashes in 1-sec increments. When both inputs I0 and I1 are turned on, output Q3 flashes, OFF pulses Timer 0 = 10 sec. and ON pulses Timer 1 = 20 sec. Rung No. Input I0 Input I2 Output Operation 1 ON OFF Output Q0 is turned ON. 2 OFF ON Output Q1 is turned ON. 3 ON ON Output Q2 flashes in 1 sec increments. 4 and 5 ON ON Output Q3 flashes, OFF pulses 2 sec. ON pulses 4 sec. www.beijer.net 2 (12)
5.1 Start WindLDR From the Start menu of Windows, select All Programs > Automation Organizer V2 > WindLDR > WindLDR. WindLDR starts and a blank ladder editing screen appears with menus and tool bars shown on top of the screen. 5.2 PLC Selection Before programming a user program on WindLDR, select a PLC type. Select Configuration from the WindLDR menu bar, then select PLC Type. www.beijer.net 3 (12)
Press Use as Default button, then the same PLC will be selected as default when WindLDR is started next time. 6 Basis NO and NC User Program Rung by Rung Start the user program with the LOD instruction by inserting a NO contact of input I0. 1. From the WindLDR menu bar, select Home > Basic > A (Normally Open) www.beijer.net 4 (12)
2. Move the mouse pointer to the first column of the first line where you want to insert a NO contact, and click the left mouse button. Note: Another method to insert a NO (or NC) contact is to move the mouse pointer where you want to insert the contact, and type A (or B). The Normally Open dialog box appears. 3. Enter I0 in the Tag Name field, and click OK www.beijer.net 5 (12)
A NO contact of input I0 is programmed in the first column of the first ladder line. 4. Next, program the ANDN instruction by inserting a NC contact of input I1. From the WindLDR menu bar, select Home > Basic > B (Normally Closed). 5. Move the mouse pointer to the second column of the first ladder line where you want to insert a NC contact, and click the left mouse button. 6. The Normally Closed dialog box appears. Enter I1 in the Tag Name field, and click OK. A NC contact of input I1 is programmed in the second column of the first ladder line. 7. At the end of the first ladder line, program the OUT instruction by insert a output coil. From the WindLDR menu bar, select Home > Basic > OUT (Output) 8. Move the mouse pointer to the third column of the first ladder line where you want to insert an output coil, and click the left mouse button. Note: Another method to insert an instruction (either basic or advanced) is to type the instruction symbol, OUT, where you want to insert the instruction. 9. The Output dialog box appears. Enter Q0 in the Tag Name field, and click OK. A Output coil of output Q0 is programmed in the right-most column of the first ladder line. This completes programming for rung 1. www.beijer.net 6 (12)
Draw line: Erase line: <Shift> + <Up Arrow>; <Shift> + <Down Arrow>; <Shift> + <Left Arrow>; <Shift> + <Right Arrow>. <Control> + <Up Arrow>; <Control> + <Down Arrow>; <Control> + <Left Arrow>; <Control> + <Right Arrow>. 6.1 Continue programming with NO and NC Jump to point 7 if you will test the rung 1 or continue programming for rung 2 and 3 by repeating similar procedures. A new rung is inserted by pressing the Enter key while the curser is on the preceding rung. A new rung can also be inserted by selecting Home > Append > Append a Rung. The complete program for rung 1, 2 and 3. Special Internal Relay: M8121 generates clock pulses in 1 sec increments. 6.2 Continue programming with Timers Jump to point 7 if you will test the rung 1, 2 and 3 or Continue programming for rung 4, 5 and 6 by repeating similar procedures. 1. Make a LOD instruction by inserting a NO of input I0, a AND instruction by inserting a NO contact of input I1 and a AND instruction by inserting a NC contact of timer T1. 2. From the WindLDR menu bar, select Home > Basic > Timer (TML 1-sec Timer) www.beijer.net 7 (12)
3. It is a 1-sec Timer, but you can changes is under "Type". The Timer must have a number "T0" and a preset "2". "Number of Timers T0 - T99" 4. Make the out instruction after the Timer. 5. Continue programming for rungs 5 by repeating similar procedures. When completed, the ladder program looks like below. www.beijer.net 8 (12)
7.0 Save project Select the WindLDR application button at the upper-left corner of the WindLDR screen, followed by Save, and type Test01 in the file Name field. Change the Folder or Drive as necessary. 7.1 Check program The ladder program can be checked whether it contains any user program syntax error. From the menu bar, select Home > Convert. When the instruction symbols are connected correctly, conversion is completed successfully. If any error is found, the errors are listed on the screen. Then, make corrections as necessary. 7.2 Simulate Operation Before downloading the user program, you can simulate the operation on the WindLDR screen without connecting the SmartAxis. From the WindLDR menu bar, select Online > Simulation. The Simulation screen appears. www.beijer.net 9 (12)
To change an input status, place the mouse pointer on the input and right-click the mouse. In the pop-up menu, select Set or Reset to set or reset the input. To quit simulation, from the WindLDR menu bar, select Online > Simulation. 7.3 Download program You can download the user program from WindLDR running on a PC to the SmartAxis. Use programs can be downloaded to the SmartAxis from WindLDR using USB or Ethernet. This section describes the procedure from configuring communication settings to downloading a user program to the SmartAxis via USB. To use USB, the SmartAxis USB port must be connected to a PC using a USB cable. In order for WindLDR to communicate with the SmartAxis via USB, a dedicated USB driver must be installed on the PC. See section 4 in this document, User's Manual - FC9Y-B1378 page 5A or select All Programs > Automation Organizer V2 > WindLDR > How To Install USB Driver "PDF fil" 1. From the WindLDR menu bar, select Online > Set Up. www.beijer.net 10 (12)
2. The Communication Settings dialog box appears. Click the USB tab and then click ok. The communication method is now set to USB. Next, download a user program. 3. From the WindLDR menu bar, select Online > Download. The Download dialog box appears, then click ok. The user program is downloaded to the SmartAxis. The Download dialog box can also be opened by Home > Download. www.beijer.net 11 (12)
7.3 Monitor Operation Another powerful function of WindLDR is to monitor the PLC operation on the PC. The input and output statuses of the sample program can be monitored in the ladder diagram. From the WindLDR menu bar, select Online > Monitor > Monitor. When both input I0 and I1 are on, the ladder diagram on the monitor screen looks as follows: 7.4 Quit WindLDR When you have completed monitoring, you can quit WindLDR either directly from the monitor screen or from the editing screen. In both cases, from the WindLDR application button, click Exit WindLDR. www.beijer.net 12 (12)