Sie sind auf Seite 1von 6

Journal of Industrial Technology • Volume 20, Number 3 • June 2004 through August 2004 • www.nait.

org

Volume 20, Number 3 - June 2004 through August 2004

Controlling Robot Through


Internet Using Java
By Mr. Ravindra Thamma, Dr. Luke H. Huang, Dr. Shi-Jer Lou and Dr. C. Ray Diez

Peer-Refereed Article

KEYWORD SEARCH

CIM
Distance Learning
Internet
Manufacturing
Robotics
Teaching Methods

The Official Electronic Publication of the National Association of Industrial Technology • www.nait.org
© 2004

1
Journal of Industrial Technology • Volume 20, Number 3 • June 2004 through August 2004 • www.nait.org

Controlling Robot Through


Internet Using Java
By Mr. Ravindra Thamma, Dr. Luke H. Huang, Dr. Shi-Jer Lou and
Dr. C. Ray Diez

Mr. Ravindra Thamma. MSIT, is an Assistant pro- Background and Need on arbitrary remote computer platforms
fessor in the Department of Technology at Univer- An issue with people who want to interacting with a robotic control.
sity of North Dakota. He conducts research on ro-
botic, intelligent controls system, computer inter- pursue an education is how to enroll in
face and ultrasonic. He teaches electro mechani- courses while working full-time. While In a study conducted to access a remote
cal fundamentals, digital integrated circuits, PLCs,
micro controllers, and robotics. working everyday diminishes opportu- manufacturing system through internet,
nities for on campus study, distance Calkin and Parkin (1998) developed
education becomes a major option and simulation tools for remotely-con-
has been accepted widely. Though trolled robots. The simulation tools for
distance education works for many the robotic hardware were developed
fields of study, it is difficult for those using Java and VRML 97 to create a
fields that require laboratory activities, desktop virtual-reality environment. A
such as manufacturing. To be involved VRML browser was developed by the
in laboratory activities, one usually has researchers to enable a client computer
to travel to the lab. Investment of both to request transmission of web pages
time and expense on travel is a big from the host computer. However, a
Dr. Luke H. Huang, CIT, is an assistant professor concern for potential students in the drawback was that the client computer
and the coordinator of manufacturing in the De- field of manufacturing. had to have the VRML browser and V-
partment of Technology at the University of North
Dakota. Dr. Huang received his Ph.D. in Industrial collide’s libraries installed in order to
Education and Technology from Iowa State Uni- The advancement of Internet technol- communicate with the host computer.
versity. He loves to work for on improvements in
automation and manufacturing systems. ogy tools developed in 1990s made it Many users were inconvenienced
possible to access a lab at distance. The because of the installations. In addi-
Internet technology tools allowed tion, the VRML browser and V-
development of the idea of an Online collide’s library required a computer
Laboratory (OL). Obviously, an OL is with more complicated configurations
beneficial to distance education and a larger amount of memory.
because it provides students with
instant access to a remote lab without Rodrigues de Queiroz and Bergerman
investment in both travel time and (1998) attempted remote control
expense. The benefit of an OL is that operation at the Automation Institute in
enrollment of distance education in Brazil. Based on their research, the
Dr. Shi-Jer Lou is an associate professor in the in- manufacturing courses and degree Automation Institute proposed the first
stitute of vocational and technological education
at National Pingtung University of Science and programs will be expected to increase. Brazilian Robotics and Computer
Technology in Taiwan. His teaching and research Vision Virtual Laboratory (RCVVL).
interests are multimedia, computer-aided instruc-
tion, knowledge management, and intelligent An online laboratory would be maxi- In the RCVVL, communication
manufacturing system. He currently serves as the mized by remote control technology between the user and the remote
main researcher of the NSC project in Taiwan.
through Internet. A major step in the laboratory was accomplished through a
online control came with the experi- graphical interface which was devel-
ments using the Internet done by oped with Java and Hypertext Markup
Kuchlin (1997) with Highrobot Language (HTML). The use of such
Telerobotics. The experiments resulted programs made the RCVVL accessible
in the development of a software model worldwide via Internet. Users could
based on an object-oriented concept access the remote laboratory without
that could interact remotely with robot having to download executable source
programs. Kuchlin also explored the codes. The RCVVL utilized two
extensive capabilities of Java with cameras, one on top of the robot and
Dr. C. Ray Diez, DIT, is an Assistant Professor and
Transmission Control Protocol and the other on the ceiling of the labora-
Chair, coordinator of the Occupational Safety and Internet Protocol (TCP/IP). In the tory. Current images were updated at a
Environmental Health program and Director of
graduate programs in the Department of Technol-
experiments, a Java program could run rate of three frames per second. This
ogy, University of North Dakota.

2
Journal of Industrial Technology • Volume 20, Number 3 • June 2004 through August 2004 • www.nait.org

research demonstrated the ability to The relay board was connected to the images from the digital camera to
visibly control a robot through Internet computer via a parallel port. There were monitor the system, a text box to show
from a remote place. Nevertheless, the 12 relays on the board, which were the status of the system, and a window
researchers did not design the RCVVL controlled by the computer through a to browse and send a program to run
to run a program from the client site. In control program, to manipulate motions the system.
addition, the researchers did not make of a robot and a PLC program. In turn,
source codes available and the updating the PLC program activated or stopped Development of
rate of the image was too slow. Thus, the conveyor. The robot worked at the Controlling Programs
there was a clear need to develop a conveyor, loading and unloading. The Several computer programs were
workable web-based control system to process was monitored with a digital developed to accommodate the WCS.
promote distance education. camera, which sent image pixels to the Interactions of these programs are
computer to make the control process illustrated in Figure 3.
The objective of this study was to visible at the remote site.
develop a prototype Web-based 1. Programs for the Relay Board
Controlling System (WCS) that could This setup enabled a client computer to The manufacturer of the relay board,
serve as a remote control tool for an receive, via internet, a web page DIY Electronics, provided a program
unmanned manufacturing cell in an (Figure 2) that includes all control tools called Relay.exe in Borland Turbo C
educational laboratory. This system is such as buttons to control the motions 3.0 language. Relay.exe had a sub
designed to serve as an OL for distance of the robot and the conveyor, instant routine to identify parallel port one
education. The WCS was comprised of
hardware components interfaced with
Internet tools to control and program Figure 1. Setup of the Web-based Controlling System (WCS)
the unmanned cell through Internet
from a remote site. Students were able
to interact via Internet with the un- Camera
manned cell to carry out technological VQ
Client
activities. The WCS, which was Computer Sever Robot
programmable through the client’s CCRC Conveyor Belt
computer, was compatible with any PLC
operating system (OS) and provides
simultaneous text and visual feedback
at a visual frame rate of 1 frame/sec.

Hardware Setup Figure 2. A screen view of the webpage


The proposed WCS consisted of a
computer, a relay board, PLC devices,
robots, actuators such as a conveyor
belt, and cameras. The working configu-
ration is illustrated in Figure 1. The
computer, which connected all other
components together, was the control
center as well as the web server that
enables access from client computers
through internet for remote controlling.

The computer was equipped with


server software called VQ Server. The
VQ Server applied in this study was
version 1.9.55. It was specialized to
enable creation of host web pages in
HTML format for access from client’s
computers. The computer was also
equipped with Web Cam 123 to receive
images from a digital camera and an
author-written program for overall
control, including the relay board.

3
Journal of Industrial Technology • Volume 20, Number 3 • June 2004 through August 2004 • www.nait.org

(LPT1) and execute a 5-volt signal to naming the next action to take place at circuit was completed and the robotic
the requested relay. In this research, the server side. The network socket arm moved as commended. The appro-
the program was modified to be able to was used to transmit data from the priate relays would make contacts on
execute the requested relay on a client to the server. When a button was execution of the appropriate batch files.
specified parallel port. The manufac- depressed, a data string was sent
turer of the relay board also provided through the socket to the server. 4. Conveyor Belt Interface
another executable file, called A pre-designed conveyor belt was
Delay.exe, which enabled a specified The server program, upon receiving the employed to interface with the server
interval of time to pass before the data strings from the client, converted through the relay board. The conveyor
execution of the next command. Batch the string into integer values and belt was controlled through a PLC
files were written to run these execut- passed the integer values to next step. Controller (Allen Bradley SLC-500/3).
able programs. When the batch files In this step the switch structure was Ladder logic programs contain latch
were executed, they activated the reviewed and executed based on the and unlatch bits. Whenever a signal
output signals to the parallel port on appropriate batch file. After executing was given to an input bit the output
the server. These signals were transmit- the batch file, the server returned the circuit was completed and stays in a
ted through the parallel port to the integer value to the client indicating the latched condition. With the bit in the
relay board to make contacts on the successful execution of the command. latched condition the circuit remains
respective relays. Figure 2 depicts the client side screen. closed and the conveyor belt begins
rotating. Giving the second signal to
Two batch files were developed to 3. Robot Interface the input bit unlatched the circuit,
provide an emergency stop for the A robot, manufactured by Microbot, Inc., which in turn, stopped the conveyor
entire system. One batch file executed was interfaced with the Relay Board. The belt. Activating relays transmitted
the program that was developed and wired control panel of the robot had push signals to the input bit of the PLC.
transferred to the server side by the end buttons to move the robotic arm. A
user and the second batch file broke the modification was made to the wired 5. The Website
contacts in all relays. control panel by interfacing it with the A web site was developed with HTML
relays, which duplicated the wired to transfer files between the client
2. Client/Server Programs control of the robot. This provided a computer and the server computer. The
The client/server program was devel- second set of controls that was the same website can be accessed through any
oped with Java (version JDK 1.3 from as the first set of momentary switch WWW browser so that the robot and the
Sun Microsystems) using TCP and controls provided by the manufacturer. conveyor belt could be programmed and
Socket programming with a text Whenever a relay made a contact, the controlled via the website.
feedback to the client’s computer.
Since client programs were written in
Java, they could be accessed from any Figure 3. Interactions of system programs
WWW browser and ran locally on a
user’s computer. The client program
consisted of buttons, a textbox, and
network sockets, which were designed
to send and receive data from the
server. A total of 17 buttons and one
textbox were developed in the client
applet (Figure 2). These 17 buttons
were configured as:
• 12 buttons to control the robot,
• 2 buttons to control the con-
veyor belt,
• 1 button to activate a horn on the
server side,
• 1 button to deactivate the entire
system for emergency purposes,
and
• 1 button to initiate a program on
the server side.

The textbox displayed messages from


the server side as well as messages

4
Journal of Industrial Technology • Volume 20, Number 3 • June 2004 through August 2004 • www.nait.org

6. The program for visual feedback stream to the server. Before data were be watched on the small window on the
On-site visual feedback was enabled sent, a numeric variable was placed in a webpage as shown in Figure 2. The
through the use of a Web Camera via character string and transferred as a data robot could be controlled either with
internet. The software, WebCam 123 stream. Each button had a different manually pressing buttons on the
provided by the WebCam Corporation, numeric variable for communication. webpage or by sending a program. The
was employed to receive the on-site This port was then closed after all data conveyer belt could also be turned on
pixels. These pixels were integrated into were transferred. and off by pressing buttons on the
the Website HTML file and sent to the webpage. The whole system could be
client computer to enable the visual aid. During the process of data transfer, the shut off by pressing the “Stop the
text field displayed a message identify- System” button on the webpage when
WEBCIMS Software ing what action would take place at the needed. With all these evidences, it can
Description server side after the process was be concluded that the system works
The Java Web CIMS software had two complete. The server received the data and functions as it was designed.
main parts: the client/server program stream by opening port 2346, after
and the Relay program. The C lan- which the character string underwent a Conclusion
guage was used to write relay programs change. The character string was then A WCS was developed in this research
to activate the relays through the converted into an integer. The converted to remote control laboratory activities
parallel ports. Java language was used integer was passed to the switch control through Internet. Special features of the
to write client/server programs. structure. The switch control structure WCS allow end users to use a general-
evaluated the value of integer and purpose personal computer and any
The client /server involved TCP/IP triggered the appropriate case depending World Wide Web browser to carry out
communication using TCP/IP stream on the value of the integer. As the case the control activities remotely through
sockets. It was a reliable, two-way data was triggered, it executed a batch file. Internet. The system also provided
connection between two applications. feedback to the end users in terms of
TCP/IP stream sockets delivered When the batch files were executed, the visual and text format.
sequenced and unduplicated data (i.e., appropriate output signals were sent to
the data bytes were received in the the parallel port on the server. These Since the configuration of the system
same order that they were sent). Java signals were transmitted through the as shown in Figure 1 was able to serve
programming platforms provided parallel port to the relay board to make as a WCS, similar configuration can be
classes that create stream sockets. contacts on the relay. As the relay made applied for other lab setups. As de-
a contact, the robot controller received signed, the client/server program
In TCP/IP communication, the web the signal and instructed the robot to written in Java using TCP and Socket
server delivered the Graphical User move as specified by the signals. The programming made the server acces-
Interface (GUI) program to the client end user could observe the on-site sible through Internet by using a
and the client GUI communicated robot’s motion through a web camera. universal browser.
directly with the server program
through TCP/IP streaming ports. A After successfully executing the C However, due to the unexpected traffic
direct communication link was created program, the server sent the data in the Internet, delays of the communi-
between each client and the server. stream to the client program. This cation between the server and the end
When using this programming method, integer value was then placed in a user may happen. This causes delays
Java was the rational programming character string and returned as a data on executing commands and programs
platform for the client GUI. Java stream. The client program, upon and transmitting on-site images.
applets could be delivered via web receiving the string, displayed the
pages and executed in most popular returned data in a text field as a Recommendations For
web browsers, including Netscape conformation number. Figure 3 depicts Future Work
Communicator and Internet Explorer. the operation of the WCS. The following are a few recommenda-
tions that can be implemented to enhance
Upon request of data from the client Performance of the System this online control study in the future:
computer, the server sent out the The system as described in the Hard- 1. Use high-speed network to
appropriate information to the client. ware Setup section and Figure 1 was reduce the delay time between
The web page on the client computer built and configured with a Dell the transitions of streams from
displayed the Java buttons. The server computer (Pentium 333, 64 Mb RAM) client to server.
program sat and waited for user com- as the server. When the system was 2. Solid-state devices can be used
mands to be selected on the GUI (i.e., turned on, any other computers, either to replace the electromechanical
clicking the button or buttons). When a on campus or off campus, could access services.
button was selected, it opened port 2346 the server and execute commands or 3. Multiple Cameras can be used to
and sent commands in the form of a data programs. The working process could monitor the process from multiple

5
Journal of Industrial Technology • Volume 20, Number 3 • June 2004 through August 2004 • www.nait.org

angles to prevent blind spots. References Kuechlin, W., Gruhler, G., Lumpp, T,
4. Software that transfers a source Calkin D. W., & Parkin R. M. (1998). Speck, A., & Rupp, A. (1997.)
code from client computer to the Telerobot control via Internet, Highrobot: telerobotics in the
server, compiles it at the server Proceedings of the 1998 IEEE Internet. Proceedings of the 1997
side, and then executes the program International Symposium on IEEE 6th International Conference
safely needs to be developed. Industrial Electronics, Bled, on Emerging Technologies and
5. A proof reading method can be Slovenia, July 12-16 1999, Page Factory Automation, Los Angeles,
adapted to execute the transferred 298-303. September 9-12 1997, Page 825-
program safely within the Robot’s De Queiroz, I., & Bergerman, G. 832.
operating limits. It can be arranged (1998). A robotic and computer
by using Artificial Intelligence and vision virtual laboratory. Proceed-
neural networks. This research can ings of the 1998 International
be further enhanced by, controlling Workshop On Motion Control,
other devices, not merely Robots Campinas SP, Brazil, 1998, Page
and PLC. 694-699.

Das könnte Ihnen auch gefallen