background image

ROBO TX ElectroPneumatic

COMPUTING

16

Task 1 - Pinball control program - ROBO Pro Level 3 

A ball is shot into the game field from a launching pad. The ball then runs through 
the obstacle course set up. When it passes the light barrier or comes close to the 
color sensor, points are given. The points are shown on the TX display. Every 
player has three balls. The round is completed when all balls have been 
played. The game can be started again by pressing the red button on the 
left (OK button). 

You already know all the commands required for this task. New is the fact that the data 
is shown on the ROBO TX Controller display. 

You can call a finished example program for this task with the symbol.

Information on the commands and how they can be used is given in the  
 

ROBO Pro help

 in Chapters 9 and 11.

Tip: 

For programming consider the game sequence. Here is a little help:

Switch on compressor 03 - light outputs O6 and O7 (for light barriers)

 

Shoot in ball - manually

 

Check flipper buttons I1 left and I2 right, actuate valves at 04 and 05

 

Check and evaluate color sensor at I8

 

Check and evaluate light barriers at I3 and I4

 

Output points earned and balls played on display

 

End of game, reset outputs 03, 06, and 07 to zero

 

Start new game with OK button (right display button)

 

The "Count balls" subprogram illustrated is intended to show you the interrelationship 
between the program and the TX display. 

At the start of the game the value 3 appears on the display 
indicating that 3 balls are available. When the light barrier at I4 
detects a ball, the value shown on the display is reduced by 1. 

After all balls have been played, the display indicates zero. The 
game is finished.

If you want to stop the program loaded on the TX controller 
completely, it is necessary to press both display buttons simulta-
neously.

pinball machine.rpp

TX display program call

Defined TX display

TX display element group

Control panel input

Summary of Contents for COMPUTING ROBO TX ElectroPneumatic

Page 1: ......

Page 2: ... storing compressed air diaphragm pump as compressor 5 Switching compressed air solenoid valves 6 Interaction of electrical and pneumatic circuits 6 ROBO Pro control software 7 ROBO TX Controller 7 Compressed air motor 8 Programming 9 Color sorting robot 10 Sensors 10 Sensors and actuators 11 Color recognition subprogram 12 Ball obstacle course with vacuum picker arm 13 Variables 14 Pinball machin...

Page 3: ...et the challenge of the next task and so forth step for step So don t be timid we will plunge into the fischertechnik Computing World together and then go on to more complex tasks Now we wish you a great deal of fun and success experimenting with the ROBO TX ElectroPneumatic set Your team from About this Activity Booklet This PDF Activity booklet has a few features not present in the printed bookl...

Page 4: ... everywhere For example on assem bly lines various parts are put together to form assemblies and the function is checked goods are sorted and packed Principles of pneumatics Air can be used for different purposes in technology For example wind drives gigantic windmills to generate electrical power Pneumatics uses air to generate motion and transfer forces You are certainly familiar with at least o...

Page 5: ...pressure is bars or Pascals You can remember the following equation for this Pressure force area or p F A From this equation you can see that the pressure depends on the force exerted on a round surface in the cylinder Generating and storing compressed air diaphragm pump as compressor The diaphragm pump included in the construction set supplies the compressed air required for you to control the in...

Page 6: ...gh connection A to the cylinder When voltage is not applied the core is pressed upward by the spring 3 and the valve is closed When the valve is closed connection A is connected to the vent R This is important to allow the air to escape from the cylinder The connections are always designated as follows in pneumatics P Compressed air connection A Connection to cylinder R Vent Interaction of electri...

Page 7: ...ut having to learn a programming language For the ROBO TX ElectroPneumatic construction set you need ROBO Pro version 3 1 3 or higher If you have an older version of the software it will be automatically updated when you install the ROBO TX ElectroPneumatic CD ROBO TX Controller The ROBO TX Controller is the most important component in the model It controls the actuators motors lights valves and e...

Page 8: ...d in the assembly instructions in circuit diagram A Task 1 Manual control with pushbutton Press the button and observe the model What makes the wheel turn and how As you can see each time you press the button the solenoid valve switches and the cylinder extends This causes the wheel to rotate half a turn When you release the button the wheel rotates another half turn This is accomplished by the re...

Page 9: ... the information closed open used to control the valve and cylinder The operating display can be cleared with the New button In the Level selection window switch to level 1 All the commands required for this task are present in the Element group selection window However the ROBO Pro help is also very valuable here Each program always starts with the Little green traffic light man Then the individu...

Page 10: ...nents according to the circuit diagram During assembly pay attention to accuracy when installing the parts connecting the hoses and wiring the electri cal components This eliminates the need for trouble shooting when you put the model into operation Sensors With this model you become familiar with new components such as those used in industrial equipment This includes the vacuum picker arm with su...

Page 11: ...tion Pay attention to the polarity when connecting the phototransistor to the power supply Red positive Lens tip lamp This is an incandescent bulb with built in lens to focus the light It is required to build a light barrier The lens tip lamp can be recognized by its gray base Electric motor The direct current motor converts electrical energy into mechanical energy This results in the rotational m...

Page 12: ...m for this task with this symbol Color recognition subprogram In addition to the main program you can also create subprograms in ROBO Pro These serve to keep your program structure clear once written subprograms can also be copied into other applications Information on what subprograms are and how they can be used is given in the ROBO Pro help in Chapter 4 It is important that you switch to level ...

Page 13: ...continuous loop Tips As with the previous programming tasks it is necessary to consider the sequence you want Also con sider which parts of the program will need to be written in a subprogram Switch on the compressor and lens tip lamps for the light barriers 2 sec time delay Start the model and position the robot arm at the start position Check sensor I1 motor direction of rotation Counterclockwis...

Page 14: ... they should also be picked up alternately You can meet these requirements by supplementing the program Tips So called variables help to solve this problem Information on what variables are and how they can be used is given in the ROBO Pro help in Chapter 5 It is important that you switch to level 3 in ROBO Pro Here is the solution Define a variable Pos1 Pos4 for each of the 4 positions P1 P2 P3 a...

Page 15: ...ght side of the model This works according to the same principle as a real pinball machine l The two buttons at the left and right lower edges serve for electrical control of the two valves for the built in cylinders These control the two flipper arms A light barrier detects when a ball drops through the middle gap or runs past an incorrectly positioned flipper arm This light barrier also serves l...

Page 16: ... a little help Switch on compressor 03 light outputs O6 and O7 for light barriers Shoot in ball manually Check flipper buttons I1 left and I2 right actuate valves at 04 and 05 Check and evaluate color sensor at I8 Check and evaluate light barriers at I3 and I4 Output points earned and balls played on display End of game reset outputs 03 06 and 07 to zero Start new game with OK button right display...

Page 17: ... and simultaneously counts how many times the light barrier is interrupted during this time The more times you quickly shoot the ball through the light barrier the more points you get Light barrier subprogram The color sensor allows you to get more points when the ball passes closer to the sensor Do you have any other ideas Use your imagination Enjoy programming and playing with your pinball machi...

Page 18: ...ElectroPneumatic ElectroPneumatic ...

Reviews: