Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May...

8
Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun 1 Assumption University Faculty of Mechatronics Engineering Introduction to IndraWorks (PLC by Bosch) 1. File/New/Project: Name your project “Class_Test”. 2. Add IndraLogic L20 DP to your project. www.infoPLC.net

Transcript of Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May...

Page 1: Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon

Introduction to PLC-BOSCH Assumption UniversityV1.1 (May 2010) Faculty of Mechatronics Engineering

Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun1

Assumption UniversityFaculty of Mechatronics Engineering

Introduction to IndraWorks (PLC by Bosch)

1. File/New/Project: Name your project “Class_Test”.

2. Add IndraLogic L20 DP to your project.

www.infoPLC.net

Page 2: Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon

Introduction to PLC-BOSCH Assumption UniversityV1.1 (May 2010) Faculty of Mechatronics Engineering

Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun2

3. Use Target and Firmware as follow:

4. Set Communication channel as Tcp/IP.

www.infoPLC.net

Page 3: Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon

Introduction to PLC-BOSCH Assumption UniversityV1.1 (May 2010) Faculty of Mechatronics Engineering

Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun3

5. Obtained IP of PLC from your PLC device eg. 192.168.33.10, and set it as follow:

6. Add inline modules to your project from “Periphery”.

7. Add inline modules in the following order: Check IO address of the following inline modules.

www.infoPLC.net

Page 4: Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon

Introduction to PLC-BOSCH Assumption UniversityV1.1 (May 2010) Faculty of Mechatronics Engineering

Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun4

8. Go to “Logic” to start on PLC programming.

9. After double clicks on “Logic”, the screen will appear as follow:

10. First try on Ladder (LD) programming language. Click on “POUs” and click left on your mouse and “Add object”, screen will be as follow.

www.infoPLC.net

Page 5: Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon

Introduction to PLC-BOSCH Assumption UniversityV1.1 (May 2010) Faculty of Mechatronics Engineering

Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun5

11. Declare on digital inputs from “Resources” menu.

12. Declare on digital outputs from “Resources” menu.

13. Start on Ladder program. Adding inputs and output as follow:

www.infoPLC.net

Page 6: Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon

Introduction to PLC-BOSCH Assumption UniversityV1.1 (May 2010) Faculty of Mechatronics Engineering

Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun6

14. After finished writing, add your program to PLC_PRG.

15. After finished writing, compile your program by click on Project and “Rebuild all”.

16. Check on session log to see if your codes contain any errors.

17. Simulation test. In “Online” menu, click on ‘Simulation Mode’.

www.infoPLC.net

Page 7: Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon

Introduction to PLC-BOSCH Assumption UniversityV1.1 (May 2010) Faculty of Mechatronics Engineering

Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun7

18. ‘Login’ and ‘Run’ to test on your codes.

19. Forcing inputs S01 and S03 to be ‘True’.

20. Observe your result on the Ladder diagram. Blue line indication of True value.

21. Check on your output data.

www.infoPLC.net

Page 8: Faculty of Mechatronics Engineering...Introduction to PLC-BOSCH Assumption University V1.1 (May 2010) Faculty of Mechatronics Engineering Kittiphan Techakittiroj, Virach Wongpaiboon

Introduction to PLC-BOSCH Assumption UniversityV1.1 (May 2010) Faculty of Mechatronics Engineering

Kittiphan Techakittiroj, Virach Wongpaiboon and Narong Aphiratsakun8

22. After completing your test, press ‘Stop’ and ‘Logout’ from “Online” menu.

23. To test with PLC hardware, unchecked on ‘Simulation Mode’, connect LAN to PLC and click on ‘Login’ and ‘Run’. Observe output from PLC station.

24. You can add other program (in other languages) to POUs.

www.infoPLC.net