1 / 77

LOGO Programming Part 4

LOGO Programming Part 4. LOGO Programming Part 4. What’s on your diskette?. LOGO Programming Part 4. Use the F ile selection on the main menu bar along the top of the LOGO screen. The LOGO Screen. LOGO Programming Part 4.

homer
Download Presentation

LOGO Programming Part 4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LOGOProgrammingPart 4 Industrial Computer Awareness

  2. LOGO Programming Part 4 • What’s • on • your • diskette? Industrial Computer Awareness

  3. LOGO Programming Part 4 • Use the File selection on the main menu bar along the top of the LOGO screen. Industrial Computer Awareness

  4. The LOGO Screen Industrial Computer Awareness

  5. LOGO Programming Part 4 • Use your mouse to click on the File selection and a pull-down menu will appear. Industrial Computer Awareness

  6. LOGO Programming 4 Industrial Computer Awareness

  7. LOGO Programming Part 4 • Use your mouse to click on the Open... selection and a “Load PC LOGO file” dialogue box will appear on the screen. Industrial Computer Awareness

  8. LOGO Programming Part 4 Industrial Computer Awareness

  9. LOGO Programming Part 4 • Use your mouse to click on the down arrow under the Drives selection and another pull-down menu will appear. Industrial Computer Awareness

  10. LOGO Programming Part 4 Industrial Computer Awareness

  11. LOGO Programming Part 4 Industrial Computer Awareness

  12. LOGO Programming Part 4 Industrial Computer Awareness

  13. LOGO Programming Part 4 Industrial Computer Awareness

  14. LOGO Programming Part 4 • Clear your screen and use this process to load each of the programs you created last session. Industrial Computer Awareness

  15. LOGO Programming Part 4 • See what’s • stored • in • RAM Industrial Computer Awareness

  16. LOGO Programming Part 4 Industrial Computer Awareness

  17. LOGO Programming Part 4 • Create a • program to • draw a • hexagon Industrial Computer Awareness

  18. LOGO Programming Part 4 • Initially, • you write the • program the • LONG way. Industrial Computer Awareness

  19. LOGO Programming Part 4 • TO HEXAGON • FD 25 • RT 60 • FD 25 • RT 60 • FD 25 • RT 60 • FD 25 • RT 60 • FD 25 • RT 60 • FD 25 • RT 60 • END Industrial Computer Awareness

  20. LOGO Programming Part 4 • TO HEXAGON • FD 25 RT 60 • FD 25 RT 60 • FD 25 RT 60 • FD 25 RT 60 • FD 25 RT 60 • FD 25 RT 60 • END Industrial Computer Awareness

  21. LOGO Programming Part 4 • There are • six • FD 25 RT 60 • instructions. Industrial Computer Awareness

  22. LOGO Programming Part 4 • You could replace the • FD 25 RT 60 • with a single • word. Industrial Computer Awareness

  23. LOGO Programming Part 4 • Define a repetitive motion • TO REPMOT • FD 25 RT 60 • END Industrial Computer Awareness

  24. LOGO Programming Part 4 • TO HEXAGON • REPMOT • REPMOT • REPMOT • REPMOT • REPMOT • REPMOT • END Industrial Computer Awareness

  25. LOGO Programming Part 4 • What • about • LOOPS? Industrial Computer Awareness

  26. LOGO Programming Part 4 • Creating LOOPS • REPEAT X [Y] • Repeats X times the instructions in Y Industrial Computer Awareness

  27. LOGO Programming Part 4 • Brackets [ ] are used • not • ( ) • { } • < > Industrial Computer Awareness

  28. LOGO Programming Part 4 • Try this! • Type in • REPEAT 360 [RT 1 FD 120 BK 120] • then press Enter Industrial Computer Awareness

  29. LOGO Programming Part 4 • Now type in • CS then press Enter • then type in • REPEAT 3 [FD 50 RT 120] • then press Enter Industrial Computer Awareness

  30. LOGO Programming Part 4 • Now type in: • REPEAT 4 [FD 50 RT 90] Industrial Computer Awareness

  31. LOGO Programming Part 4 • Try • REPEAT 5 [FD 100 RT 144] • Remember to press Enter Industrial Computer Awareness

  32. LOGO Programming Part 4 • Back to the Hexagon • TO HEXAGON • REPEAT 6 [REPMOT] • END Industrial Computer Awareness

  33. LOGO Programming Part 4 • Or, • TO HEXAGON • REPEAT 6 [FD 25 RT 60] • END Industrial Computer Awareness

  34. LOGO Programming Part 4 • PRACTICAL • PROGRAMMING • 3 simple steps Industrial Computer Awareness

  35. LOGO Programming Part 4 STEP 1 • Determine the goals • What do you have to do? Industrial Computer Awareness

  36. LOGO Programming Part 4 • STEP 2 • Determine the steps How are you going to do it? Industrial Computer Awareness

  37. LOGO Programming Part 4 • STEP 3 • Write the program and run it. Refine the program as needed to make it work Industrial Computer Awareness

  38. LOGO Programming Part 4 • 3 Steps • 1. Determine the goals • 2. Determine the steps • 3. Write, run, and refine Industrial Computer Awareness

  39. LOGO Programming Part 4 • Draw three squares. • One 90 units square with left edge 120 units left of origin. One 60 units square with left edge at the origin. One 30 units square with left edge 120 units right of origin. Industrial Computer Awareness

  40. LOGO Programming Part 4 Industrial Computer Awareness

  41. LOGO Programming Part 4 • Steps • 1. Move TURTLE to start point. • 2. Draw large square. • 3. Move TURTLE. • 4. Draw medium square. • 5. Move TURTLE. • 6. Draw small square. • 7. Hide TURTLE. Industrial Computer Awareness

  42. LOGO Programming Part 4 • Step 1 - Move to start point • 1. Lift pen up • 2. Move to start point • 3. Put pen back down Industrial Computer Awareness

  43. LOGO Programming Part 4 • TO FIRSTMOVE • PU LT 90 FD 120 • RT 90 PD • END Industrial Computer Awareness

  44. LOGO Programming Part 4 • TURTLE is now in position to draw the large square. Industrial Computer Awareness

  45. LOGO Programming Part 4 • TO BSQUARE • REPEAT 4 [FD 90 RT 90] • END Industrial Computer Awareness

  46. LOGO Programming Part 4 • Big square is now done. Time to move to do the medium square. Industrial Computer Awareness

  47. LOGO Programming Part 4 • TO SCNDMOVE • PU RT 90 FD 120 • LT 90 PD • END Industrial Computer Awareness

  48. LOGO Programming Part 4 • TURTLE is now in position to draw the medium square. Industrial Computer Awareness

  49. LOGO Programming Part 4 • TO MSQUARE • REPEAT 4 [FD 60 RT 90] • END Industrial Computer Awareness

  50. LOGO Programming Part 4 • The medium square is now done. Time to move to do the small square. Industrial Computer Awareness

More Related