
TXT
Smart Home
ROBOTICS
38
Robotics Sensor Station IoT
Then drag the camera display into the control field. It is
displayed with a certain size. if you want a larger image, click
on the display with the mouse. It is then framed in red. Select
“Draw” and “Edit”. A crayon appears. Click on the display again.
It now has blue markings You can increase or decrease the size
of the frame by clicking on the bottom right mark and holding
down the mouse button.
Next add “Text Display” from the “Displays” block twice
ROBO Pro Help 9.1.2
. For the first display enter “M1” for ID/
Name and “M1=0” for Text in the context menu. In the second display
the ID/Name is “M2” and the Text is “M2=0“.
Under both displays insert 5 “Buttons” from the “Controls” block
ROBO Pro Help 9.2.1
.
Arrange the buttons as shown in the figure.
Assign each proper designations in the
context menu.
When you open the example program, it first runs through the
subroutine PTU_Ini. This subroutine moves the camera to a zero point
for the x and y axes. Then the programs waits for you to actuate a button
in the control field. If you press the L button, for example, the program
goes to the subroutine Pan_L. The motor continues to rotate until the L
button is pressed.
After completing the program, you can test it and save it on your
computer.
Finished Program: Sensor_station_1.rpp