Académique Documents
Professionnel Documents
Culture Documents
Conference
25th Computers and Information in Engineering
Proceedings(CIE)
of IDETC/CIE
2005
September
24-28, 2005;
Long Beach,
CA
ASME 2005 International Design
Engineering
Technical
Conferences
& Computers and Information in Engineering Conference
September 24-28, 2005, Long Beach, California USA
DETC2005-84689
DETC2005-84689
VIRTUAL TRAINING ENVIRONMENT FOR A 3-AXIS CNC MILLING MACHINE
Tamer M. Wasfy
Ayman M. Wasfy
Advanced Science and Automation Corp., Indianapolis, IN
Hazim El-Mounayri
Daniel Aw
Mechanical Engineering Department
Purdue School of Eng. & Tech., IUPUI, Indianapolis, IN
ABSTRACT
A virtual training environment for a 3-axis CNC milling
machine is presented. The key elements of the environment are:
(a) textured 3D photo-realistic virtual models of the machines
and lab; (b) machine simulator for the machines' controls and
moving parts; (c) semi-empirical model of the machining
operation; (d) hierarchical knowledge-base for process training;
(e) unstructured knowledge-base for lecture delivery; (f)
natural-language human-like intelligent virtual tutors.
Applications of the AVML include: training students to operate
manufacturing machines in a safe environment, allowing
students and researchers to view and interact with highly
accurate physical simulation of manufacturing machines, and
optimization of the manufacturing process plan by testing
various plans on the virtual machine before actual machining.
The virtual training environment will significantly reduce the
cost and increase the accessibility and safety of advanced
manufacturing training.
1. INTRODUCTION
Virtual environments (VEs) provide safe and cost-effective
environments for learning and hands-on training. Recent
strides in computers and graphics cards speeds are making VEs
increasingly more realistic (i.e. closer to physical
environments) especially from the visual and auditory
perspectives. Accordingly, VEs are becoming increasingly
attractive in education and training applications. In this paper
we will describe a software system called AVML ( Advanced
Virtual Manufacturing Lab). The AVML is a virtual training
environment (VTE) which includes a 3-axis CNC milling
machine. The AVML software will eventually include other
types of manufacturing machines such as lathes and 5-axis
milling machines. The AVML can be used to provide hands-on
training on the operation of CNC machines. The students can
also experiment with the virtual machines and test operating
procedures and CNC programs. Hands-on training and
experimentation enhance students learning and retention and
2. AVML FRAMEWORK
Figure 2 shows the AVML object-oriented framework. The
framework integrates the visualization, process modeling, and
control of the virtual CNC machines. It consists of three
software modules, which communicate with each other using a
TCP/IP network socket interface: (1) a CNC milling machine
simulator, (2) a virtual-environment display engine, and (3) an
intelligent-agent engine. The three modules run on a single
computer in a web-browser (Figure 1).
CNC Machine Simulator
Machining Process Simulator
Geometric simulator
Physical simulator
Intelligent Agent
Engine
Speech Input
Hierarchical
Rules
Vocabulary
Speech
Recognition
Speech
Synthesis
NLI
Tracked Wand
Head Tracking
Mouse
Machine Geometric
Model
Keyboard
Joystick
Command
History
(Geometric Simulator)
Lecture
Knowledge-base
Unstructured
knowledge Engine
Process
Knowledge-base
Process knowledge
Engine
Sounds Engine
Humanoid Engine
The CNC machine simulator consists of two subcomponents: 1) A machining process simulator and 2) a
machine logic engine.
Virtual
Environment Engine
Hand-held PDA
Stereo Speakers
Immersive or
Non-immersive
Displays
driving edges of the cutting tool are swept through the linesegment. The resulting volume and the tool volume are
subtracted from the workpiece in order to generate the new
workpiece geometry and a solid model of the removed material.
The solid model of the removed material is used to calculate the
radial depth of cut using the following formula:
r = V& ( f a)
where V& is the rate of volume removed which can be
calculated by dividing the volume of the removed material by
the time required to move the small linear-segment, f is the
feed-rate, and a is the axial depth of cut which can be
calculated using the maximum length of the removed material
along the direction parallel to the tool-axis. Figure 3 shows an
example of workpiece updating using this algorithm.
0.3
0.2
0.1
0
Fx
-0.1
-0.2
-0.3
Fy
-0.4
-0.5
Fz
-0.6
-0.7
-0.8
-0.9
0
0.1
0.2
Time (s)
0.3
0.4
0.5
Description
machinePowerSwitch
machinePowerState
spindleState
spindleSpeedProgrammed
spindelSpeedActual
spindelSpeedMultiplier
xAxisPosition
yAxisPosition
zAxisPosition
aAxisPosition
bAxisPosition
cAxisPosition
Coolant
coolantFlow
feedRateProgrammed
feedRateActual
feedRateMultiplier
toolNumber
toolOffsetNumber
toolOffset
motionType
Unit
coordinateSystem
machineDoor
(a)
DEF Com_v3016_startButton ButtonWidget {
buttonObject USE vmc3016_startButton
buttonProperty yTranslation
offPosition 0
#off
onPosition -0.01 #press
animationTime 0.15
toggle 0
arrowObject USE vmc3016_startButton_arrow
}
(c)
(b)
DEF Combo_v3016_axisKnob ButtonWidget {
buttonObject USE vmc3016_cont_AxisKnob
buttonProperty rotationAngle
numPositions 7
position0 2.5 #X
position1 3.0 #Y
position2 3.5 #Z
position3 4.0 #A
position4 4.5 #B
position5 5.0 #C
position6 5.5 #Remote
animationTime 0.1
toggle 1
value 0
}
(a)
(b)
The two agents are controlled using the LEA engine and
collaborate to assist the student. For example, when the student
asks the screen agent a question, the screen agent will answer
and display any visuals which support the answer (See Section
5.1). The screen agent will also command the assistant in the
VE to do a demonstration if necessary. Visual cues such as 3D
flashing arrows are used during the demonstration (Section 5).
5. INTELLIGENT AGENT ENGINE
LEA [20] is an intelligent-agent engine which includes
facilities for speech recognition and synthesis, a rule-based
expert system natural-language interface (NLI) for recognizing
the users natural-language commands [19, 20], a hierarchical
process knowledge base engine [20], and an unstructured
knowledge base engine. LEA is the engine behind the AVML
web-based framework. LEA is encapsulated in an ActiveX
control which can run in a web-page and can display various
user defined, sizable and movable mini-web browsers subwindows (that can display any web content such as HTML,
Flash, etc.)
5.1 Multimedia Lectures
One of the capabilities of LEA is the unstructured
knowledge base engine. The unstructured knowledge consists
of knowledge items that can be arranged in any order to form
8
6. CONCLUDING REMARKS
Figure 14 Partial exploded view of the introductory lectures
outlines (a) CNC milling; (b) CNC machine components.
ACKNOWLEDGMENTS
Support for the AVML project was provided by NSF under
STTR grant number DMI-0339024 and Indiana 21st Century
Research and Technology Fund under STTR matching grant
number 0043. The authors would like to thank Haptek Inc. for
providing the human-like avatars display engine and Spatial
Corp. for providing ACIS solid modeling kernel. IVRESS and
LEA were provided by Advanced Science and Automation
Corp.
REFERENCES
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
10
Suh, S-H., Seo, Y., Lee, S-M., Choi, T-H., Jeong, G-S., Kim, D.-Y.,
Modeling and implementation of internet-based virtual machine,
International Journal of Manufacturing Technology, Vol. 21, pp. 516522, 2003.
Lin, F., Ye, L., Duffy, V.G., Su, C-J., Developing virtual environments
for industrial training, Information Sciences, Vol. 140, pp. 153-170,
2002.
Ong, S.K. and Mannan, M.A., Virtual reality simulations and animations
in a web-based interactive manufacturing engineering module,
Computers and Education, Vol. xx, 2004.
Ong, S.K., Jiang, L. and Nee, Y.C., An internet-based virtual CNC
milling system, International Journal of Manufacturing Technology,
Vol. 20, pp. 20-30, 2002.
Luo, Y.B., Ong, S.K., Chen, D.F. and Nee, A.Y.C., An internet-enabled
image- and model-based virtual machining system, International Journal
of Production Research, Vol. 40(10), pp. 2269-2288, 2002.
Kong, S-H., Park, J., Han, Y-G., Kim, G. and Lee, K-I., The internetbased virtual machining system using CORBA, Integrated
Manufacturing Systems, Vol. 13(5), pp. 340-344, 2002.
Chang, C-F., Varshmey, A., and Ge, Q.J., Haptic and aural rendering of
a virtual milling process, ASME 2001 Design Engineering Technical
Conference and Computers and Information in Engineering Conference,
Pittsburgh, PA, pp. 105-113, 2001.
Abari, F. and Elbestawi, M.A., Closed form formulation of cutting forces
for ball and flat end mills, International Journal of Machine Tools and
Manufacture, Vol. 37(1), 1997.
Ustarroz, A., Lozano, A., Matey, L., Siemon, J., Klockmann, D., and
Berasategi, M.I., VIRTOOL virtual reality for machine-tool training,
Mecanique & Industries, Vol. 5, pp. 207-212, 2004.
http://www.denford.co.uk/vrmilling.htm
http://www.delmia.com/gallery/pdf/DELMIA_VirtualNC.pdf
http://www.spatial.com
Snow, M.P. and Williges, R.C., Emperical models based on freemodulus magnitude estimation of perceived presence in virtual
environments, Human factors, Vol. 40(3), pp. 386-402, 1998.
IVRESS (Integrated Virtual Reality Environment for Synthesis and
Simulation), http://www.ascience.com/Science/ScProducts.htm, Advanced
Science and Automation Corp., 2004.
LEA
(Learning
Environments
Agent),
http://www.ascience.com/Science/ScProducts.htm, Advanced Science and
Automation Corp., 2004.
www.haptek.com
Tandon, V. and El-Mounayri, H. A Novel Artificial Neural Networks
Force Model for End Milling, International Journal of Advanced
Manufacturing Technology, Vol. 18, pp. 693-700, 2001.
Briceno, J., El-Mounayri, H. and Mukhopadhyay, S. Selecting an
Artificial Neural Network for Efficient Modeling and Accurate
Simulation of the Milling Process, International Journal of Machine
Tools and Manufacture, Vol. 42, pp. 663-674, 2002.
Wasfy, T.M. and Noor, A.K., Rule-based natural-language interface for
virtual environments, Advances in Engineering Software, Vol. 33(3), pp.
155-168, 2002.
Wasfy, H.M, Wasfy, T.M. and Noor, A.K., An interrogative
visualization environment for large-scale engineering simulations,
Advances in Engineering Software, Vol. 35(12), pp. 805-813, 2004.
Wasfy, A.M., Wasfy, T.M. and Noor, A.K., Intelligent virtual
environment for process training, Advances in Engineering Software,
Vol. 35(6), pp. 337-355, 2004.