Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. program
  2. array xs(10)
  3. array wart(5)
  4. granica1:=140
  5. granica2:=170
  6. i:=0
  7. x:=0
  8. y:=0
  9. glosnik(2,Choose_continuous_simulation))
  10. ir(nt)
  11. egzekucja
  12. glosnik(2,Waiting_for_the_workpiece_in_position_3)
  13. repeat
  14. kamera(1)
  15. until n=3
  16.  
  17. repeat
  18. if xs(1) > 203 .&. xs(1) < 229
  19. i:= 1
  20. endif
  21. if xs(2) > 203 .&. xs(2) < 229
  22. i:= 1
  23. endif
  24. if xs(3) > 203 .&. xs(3) < 229
  25. i:= 1
  26. endif
  27. if xs(4) > 203 .&. xs(4) < 229
  28. i:= 1
  29. endif
  30.  
  31.  
  32. if xs(1) > 77 .&. xs(1) < 105
  33. x:= 1
  34. endif
  35. if xs(2) > 77 .&. xs(2) < 105
  36. x:= 1
  37. endif
  38.  
  39. if xs(1) > 19 .&. xs(1) < 40
  40. y:= 1
  41. endif
  42.  
  43.  
  44. if i = 1 .&. x = 0
  45. ir(go)
  46. ir(mc_120,125)
  47. ir(gc)
  48. ir(mc_130,135)
  49. ir(mc_95,90)
  50. ir(go)
  51. ir(mc_85,80)
  52. else
  53. if i = 1 .&. x = 1 .&. y = 0
  54. ir(go)
  55. ir(mc_120,125)
  56. ir(gc)
  57. ir(mc_130,135)
  58. ir(mc_95,90)
  59. ir(go)
  60. ir(mc_85,80)
  61. endif
  62. endif
  63.  
  64.  
  65.  
  66.  
  67. until 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement