A Practical Applications of Virtual PLC Using LabVIEW Software
A Practical Applications of Virtual PLC Using LabVIEW Software
Mohammad K. Abuzalata
Department of Mechatronics Engineering, Faculty of Engineering Technology, Al-Balqa’ Applied
University, P.O. Box 425530, Amman-Jordan
Abstract: In this study thirteen different functions (VIs) are designed and tested .These include, single input single
output, single input two outputs, latch outputs, timer, counter, logic function, less, greater and equal functions, XOR
function, compound function and shift register. At the end of the study, for illustration purposes, the 7-day tea
maker, electro-pneumatic drive system and their simulation were developed and tested. Results of experiment show
complete coincidence between the PLC-based control and Virtual PLC-based program results.
5677
Res. J. App. Sci. Eng. Technol., 5(24): 5677-5682, 2013
4- Latch output
5- Timer
6- Counter
7- Shift register
9- Less function
5678
Res. J. App. Sci. Eng. Technol., 5(24): 5677-5682, 2013
Output devices: The diagram for the 7-day tea maker • The PLC ladder diagram: As shown in Fig. 2, the
in Fig. 1 illustrates the operation of the system. ladder diagram of the 7-day tea maker program
Referring to the tea maker system to identify each using PLC Siemens (S7-200) software is shown in
element as input or an output device and give it a unique Fig. 2.
identification as shown in Table 2. • The LabVIEW ladder diagram: As shown in
Fig. 3 the ladder diagram of the 7-day Tea maker
The 7-day tea maker program: Since LabVIEW is to program using is LabVIEW.
be used instead of PLC to control this system and then • The 7-day tea maker simulation using Lab-
design the program by the PLC, which is PLC Siemens VIEW: As shown in Fig. 4 the simulation of the 7-
(S7-200) software, then by LabVIEW software. day tea maker using LabVIEW software.
5679
Res. J. App. Sci. Eng. Technol., 5(24): 5677-5682, 2013
Operation of the pneumatic cylinder: The operation Fig. 7: LabVIEW simulation of the pneumatic cylinder
of the pneumatic cylinder valve Alia et al. (2011)
requires the following steps: Initialize the operation by
the external ON push button or the internal one in the
software, the solenoid valve SV is works and moves the
cylinder to forward direction. When the cylinder touches
the limit switch LS, timer one T1 will be activated. After
the time value of T1 is ended, the SV is returns to off
state and the solenoid returns to the backward direction.
This makes the timer two T2 to turn on, T1 off and the Fig. 8: Optocoupler with phototransistor output
counter C1 increases by one.
After the time value of the T2 ends, the SV is
activated and the cylinder moves to forward direction Inputs and outputs of the pneumatic cylinder:
again. The sequence is continued until the counter LabVIEW will be used instead of PLC to control this
reaches its value, then the operation will be off system. As known, the inputs and outputs for the PLC
automatically. The user can switch off the operation at have to be identified prior to the design of a program.
any time by the external off push button or the internal Referring to the pneumatic cylinder system we can
one in the software, also the user can switch on the identify each element as input or output device and give
operation from the external on push button. it a unique identification as shown in Table 3.
5680
Res. J. App. Sci. Eng. Technol., 5(24): 5677-5682, 2013
5681
Res. J. App. Sci. Eng. Technol., 5(24): 5677-5682, 2013
Morris, M.M., 1982. Computer System Architecture. Travis, J. and J. Kring, 2006. LabVIEW for Everyone:
Prentice-Hall, New Jersey. Graphical Programming Made Easy and Fun. 3rd
Thomas, L.F., 2002. Digital Fundamental. 6th Edn., Edn., Prentice Hall, New Jersey.
Prentice Hall, New Jersey.
5682