SlideShare a Scribd company logo
1 of 4
Download to read offline
Prof.Mrs.S.S.Bidwai, Prof.Mr.V.B. Kumbhar, Prof.Mr. A.R.Nichal / International Journal of
Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 3, Issue 3, May-Jun 2013, pp.658-661
658 | P a g e
“Real Time Automated Control using PLC-VB Communication”
Prof.Mrs.S.S.Bidwai1
, Prof.Mr.V.B. Kumbhar2
, Prof.Mr. A.R.Nichal3
1
ADCET Ashta Electonics and Telecommunication Dept, Ashta, Dist-Sangli. , India.
23
AITRC Electonics and Telecommunication Dept, Vita, Dist-Sangli. , India.
Abstract
This paper is to enable the Delta PLC
(Programmable Logic Control) DVP14SS to
communicate with the Visual Basic 6.0. The
communication between DVP14SS and Visual
Basic 6.0 is via Modbus Serial Protocol.
Computers are used as a link between humans
and PLC systems as they have more graphics and
visual capabilities. These are nothing but SCADA
systems widely used for determining plant set-
ups and displaying plant status on high quality
screens. They also record/log the system data for
long period .The SCADA software’s are the
software packages needs to be purchased from
vendors and the cost depends on tag count.
Visual Basic 6.0 platform can be used develop the
SCADA application effectively. Using VB 6.0 we
integrate software and hardware across
spectrum of vendors easily. Here we show simple
approach to communicate Delta PLC with visual
Basic using MSComm control in visual basic. By
means of Visual Basic cost effective solution is
possible as Visual Basic we do not need to
purchase licenses and is cheaper than SCADA
packages. It also has the advantages like
flexibility.
Keywords—MSComm control and PLC, plc,
communication between PLC and VB 6.0, DVP14SS.
I. INTRODUCTION
Communication has become a major part
of any process control automation system. Today
PLC communication is as much for data acquisition
as plant control. The objective of communication is
to collect or transfer large / small amount of data.
Over the course of time certain interfacing standards
have been generated by industry in order to make
communication between systems from two different
manufacturers more simple. These standards
typically defined the communications medium,
transmission voltages, speed of communication,
(baud rate). The first such real standard was RS232.
This was written by the Electronic Industries
Association (EIA). The main advantage of this
being cost as RS232 interfaces are very simple and
thus cheap, plus of course the fact that most PCs,
which are used more and more in automation
systems today, have at least one RS232 (serial)
interface as a standard.
Programmable Logic Controllers (PLC’s)
are solid state devices using integrated circuits to
control process or machines. They can store
instructions like sequencing counting, timing,
arithmetic, data manipulation and communication
[2]. A PLC is an example of a hard real time system
since output results must be produced in response to
input conditions within a bounded time, otherwise
unintended operation will result.PLC reads the
status of the external input devices, e.g. keypad,
sensor, switch and pulses, and execute by the
microprocessor logic, sequential, timing, counting
and arithmetic operations according the status of the
input signals as well as the pre-written program
stored in the PLC [5]. The generated output signals
are sent to output devices as the switch of a relay,
electromagnetic valve, motor drive, control of a
machine or operation of a procedure for the purpose
of machine automation or processing procedure.
Visual Basic (VB) is developed by
Microsoft Corporation and is most widely used
development environment in the world. Visual
Basic is tool provides platform to develop new
optimum Windows/SCADA applications. Visual
Basic can communicate with PLC with various ways.
Visual Basic does not have code for communication
protocol inbuilt. User need to write code for
communication protocol or need to purchase
ActiveX controls which are used to develop
applications. ActiveX control with Libraries can be
purchased to develop application. Here we are using
MSComm ActiveX control freely available in VB to
establish communication with delta PLC.
II.Method of Interfacing
Delta DVP14SS comes with serial port and
the communication protocol is serial Modbus
protocol which is a open protocol. Visual Basic acts
as a Modbus Master device which issues request or
commands (Query) on serial bus which is received
by slave. PLC acts as a Modbus slave device and
responds to the Master by sending massage called
response. Modbus Query and Response contains
fields like device address, function code, data, and
error check [1]. Figure 1 shows the system block
diagram.
Prof.Mrs.S.S.Bidwai, Prof.Mr.V.B. Kumbhar, Prof.Mr. A.R.Nichal / International Journal of
Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 3, Issue 3, May-Jun 2013, pp.658-661
659 | P a g e
Fig 1 Block Diagram
Table 1 shows the function codes
supported by the DVP14SS PLC. By using function
code Master device can request data such as, Read
coil status, Read input status, Read Holding Register,
Force Single coils, etc.Slave device will repeat this
function code in its reply to indicate that slave has
received the function code and acted upon it [3].
Default protocol used by the delta plc is ASCII
mode, 9600baud rate, 7 bit data length, even parity
and 1 stop bit [4].
TABLE I
FUNCTION CODE FOR DELTA PLC
Code Name Description
01 Read Coil Status S, Y, M, T, C
02 Read Input Status
S, X, Y, M,T,
C
03
Read Holding
Registers
T, C, D
05 Force Single Coil S, Y, M, T, C
06 Preset Single Register T, C, D
15 Force Multiple Coils S, Y, M, T, C
16
Preset Multiple
Register
T, C, D
17 Report Slave ID None
Table 2 shows the Query format to read Input Status
of contacts Y20 to Y47from slave device address 01
TABLE II QUERY TO READ INPUT STATUS Y20 - Y47
Field Name Example (Hex)
Heading 3A
Slave Address 01
Command code 02
Starting Address Hi 05
Starting Address Lo 14
Number of Points Hi 00
Number of Points Lo 25
Error Check ( LRC ) BF
Table 3 shows the response from slave device to
Query shown above.
TABLE III RESPONSE FROM SLAVE
Field Name
Example
(Hex)
Slave Address 01
Command code 02
Bytes Count 05
Data ( Coils
Y033…Y024)
CD
Data ( Coils
Y043…Y034)
6B
Data ( Coils
Y053…Y044)
B2
Data ( Coils
Y063…Y054)
0E
Data ( Coils
Y070…Y064)
1B
Error Check(LRC) E5
The PLC receives the messages without a
communication error, but cannot handle it, an
exception response willreturn to the master device.
In the exception response, the most significant bit of
the original command code is set to 1, and an
exception code explains the condition that caused
the exception is returned. Table 4 shows message
response with exception code. [3] [4]
TABLE IIV EXCEPTION RESPONSE FROM SLAVE
Field Name Example (Hex)
Heading 3A
Slave Address 01
Function 81
Exception Code 02
Error Check ( LRC ) 7C
Table 5 shows different exception codes available in
DVP14SS PLC [3] [4].
TABLE IIIV EXCEPTION CODES
Code Meaning
01
Illegal command code:
The command code received in the
command message is not available
for the PLC.
02
Illegal device address:
The device address received in the
command message is not available
for the PLC.
03
Illegal device value:
The device value received in the
command message is not available
for the PLC.
Prof.Mrs.S.S.Bidwai, Prof.Mr.V.B. Kumbhar, Prof.Mr. A.R.Nichal / International Journal of
Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 3, Issue 3, May-Jun 2013, pp.658-661
660 | P a g e
07
Check Sum Error
Check if the check Sum is correct
Illegal command messages
The command message is too short.
Command message length is out of
range.
Visual Basic has ActiveX MSComm control
6.0 to send andreceive ASCII characters on
communication port. MSCommcontrol added
through the project component menu as shown in fig
2.
MSComm control is a drag and drop tool and can
be accessed, handled with its properties and event
handler.
Fig 2 MSComm Control
Fig 3shows the various properties of MSComm
control.
Fig 3 MSComm Control Property
III.IMPLEMENTATION
Following steps are implemented to obtain
desired objective.
A. Knowing the Modbus Protocol for Delta PLC
DVP14SS series MPU support Modbus
ASCII/RTU communication format with speed of
up to 115,200bps. and modification on data length
(data bits, parity bits, stop bits).Modbus
communication format ,CRC calculation ,Modbus
addressing for various internal devices of PLC are
the key factor in the interface. Communication
parameters for COMcan be manipulated by writing
ladder program. Here we use default protocol
settings hence we do not alter PLC program. [4]
B. Writing Visual Basic code for MSComm Control
Designing windows form in visual basic as
shown in fig 4. Form contains controls like Timer,
MSComm Control, Button, textbox etc.
Fig 4 Form
OnComm () event in MSComm control is used to
receive response from slave PLC.
Dim strRx As String
Select Case MSComm1.CommEvent
Case comEvReceive
Case comEvEOF
strRx = MSComm1.Input
Similarly MSComm.output property is used to
send ASCII characters through serial port.
For Index = 0 To Len(txtWrite.Text) – 1
sendArr(Index) = Asc(Mid(txtWrite.Text, Index
+ 1, 1))
Next
sendArr(Index) = &HD
sendArr(Index + 1) = &HA
strRx = ""
MSComm1.Output = sendArr
Do While True
If MSComm1.InBufferCount > 0 Then
strRx = strRx + MSComm1.Input
If Len(strRx) > 2 Then
If Asc(Mid(strRx, Len(strRx) - 1, 1)) = &HD
And Asc(Mid(strRx, Len(strRx), 1)) = &HA Then
Text1.Text = Mid(strRx, 1,
Len(strRx) - 2)
Exit Do
End If
End If
Prof.Mrs.S.S.Bidwai, Prof.Mr.V.B. Kumbhar, Prof.Mr. A.R.Nichal / International Journal of
Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 3, Issue 3, May-Jun 2013, pp.658-661
661 | P a g e
IV. RESULTS
Fig 5 shows GUI developed using VB and results
of serial communication between DVP14SS PLC
and PC.
Fig 5 Result
V.CONCLUSION
The main idea was to interface Visual
Basic 6.0 and Delta PLC DVP14SS for
moreeffective and efficient process control. This
project ofinterfacing establishes communication
between two powerful technologies used in
industries. Visual Basic provides a platform where
new solutions or highly customized SCADA's can
be created with a richer experience than those that
may be provided by standard SCADA offerings. By
using Visual Basic it offers many advantages over
SCADA packages as it comes free and not
expensive. Also SCADA packages cost depend on
the tag count and runtime licenses needs to be
purchased. Thus for OEM Visual Basic offers the
optimum solution.
Thus the PLC has been interfaced with Visual
Basic 6.0 and several real time processes have been
controlled.
REFERENCES
[1] “Modbus communication Manual,” MTL
8000 process control for process I/O ,The
MTL Instruments Group PLC, England
[2] NaregalkarAkshay.,Real Time Automated
Control of Industrial Pocesses with PLC –
LABVIEW Communication,.Ibrahimpatnam,
Hyderabad, India, Issue-1, Volume-1 ,035-
038
[3] “DVP PLC communication Protocol,”
Delta Electronics
Inc,www.delta.com.tw/industrialautomatio
n.
[4] “DVP PLC Application Manual,” Delta
Electronics
Inc,www.delta.com.tw/industrialautomatio
n.
[5] T.Kalaiselvi, R.Praveena ,Aakanksha.R,,
Dhanya.S, “PLC Based Automatic Bottle
Filling and Capping System With User
Defined Volume Selection,” IJETAE.,
Volume 2, Issue 8, August 2012.
Prof.Mrs.S.S.Bidwai. received his
M.E. degree in Electronics and
telecommunication from Shivaji
University at RIT Islampur in 2010
and currently working as Assit
Professor in ADCET Ashta. Her
area of interest is VLSI .
Prof.Mr.V.B.Kumbhar received
his B.E. degree in Electronics from
Shivaji University at PVPIT
Budhgaom in 2005 and is pursuing
M.E in electronics from Shivaji
University. His area of interest is Industrial power
electronics and Industrial Automation.
Prof.Mr.A.R.Nichal received his
B.E. degree in Electronics and
telecommunication from Shivaji
University at Ashta in 2010 and
received M.Tech in electronics
from Walchand College of engineering, Sangli. His
area of interest is Digital Image Processing and
embedded system.

More Related Content

What's hot

High speed customized serial protocol for IP integration on FPGA based SOC ap...
High speed customized serial protocol for IP integration on FPGA based SOC ap...High speed customized serial protocol for IP integration on FPGA based SOC ap...
High speed customized serial protocol for IP integration on FPGA based SOC ap...IJMER
 
Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...iosrjce
 
Advertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDAdvertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDijsrd.com
 
REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N
REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N
REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N VLSICS Design
 
Design and Implementation of HDLC Controller by Using Crc-16
Design and Implementation of HDLC Controller by Using Crc-16Design and Implementation of HDLC Controller by Using Crc-16
Design and Implementation of HDLC Controller by Using Crc-16IJMER
 
Implementation of sign board dot matrix display with 8051
Implementation of sign board dot matrix display with 8051Implementation of sign board dot matrix display with 8051
Implementation of sign board dot matrix display with 8051Aminu Bugaje
 
AN EFFICIENT VITERBI DECODER
AN EFFICIENT VITERBI DECODERAN EFFICIENT VITERBI DECODER
AN EFFICIENT VITERBI DECODERIJCSEA Journal
 
Iaetsd vlsi implementation of efficient convolutional
Iaetsd vlsi implementation of efficient convolutionalIaetsd vlsi implementation of efficient convolutional
Iaetsd vlsi implementation of efficient convolutionalIaetsd Iaetsd
 
IJCER (www.ijceronline.com) International Journal of computational Engineeri...
 IJCER (www.ijceronline.com) International Journal of computational Engineeri... IJCER (www.ijceronline.com) International Journal of computational Engineeri...
IJCER (www.ijceronline.com) International Journal of computational Engineeri...ijceronline
 
Training Report BHARAT ELECTRONICS LIMITED
Training Report BHARAT ELECTRONICS LIMITEDTraining Report BHARAT ELECTRONICS LIMITED
Training Report BHARAT ELECTRONICS LIMITEDHimanshiSingh71
 
8086 MICROPROCESSOR
8086 MICROPROCESSOR8086 MICROPROCESSOR
8086 MICROPROCESSORAlxus Shuvo
 
Module 2 network and computer security
Module 2 network and computer securityModule 2 network and computer security
Module 2 network and computer securityDeepak John
 
Monitoring AC Drive by using RS485 & GSM Module
Monitoring AC Drive by using RS485 & GSM ModuleMonitoring AC Drive by using RS485 & GSM Module
Monitoring AC Drive by using RS485 & GSM ModuleRSIS International
 
Interfacing omni flow computer to remote operation controller (roc) remote te...
Interfacing omni flow computer to remote operation controller (roc) remote te...Interfacing omni flow computer to remote operation controller (roc) remote te...
Interfacing omni flow computer to remote operation controller (roc) remote te...eSAT Journals
 
introduction to computers
 introduction to computers introduction to computers
introduction to computersDeepak John
 
Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detectioniosrjce
 
5x7 matrix led display
5x7 matrix led display 5x7 matrix led display
5x7 matrix led display Vatsal N Shah
 

What's hot (20)

High speed customized serial protocol for IP integration on FPGA based SOC ap...
High speed customized serial protocol for IP integration on FPGA based SOC ap...High speed customized serial protocol for IP integration on FPGA based SOC ap...
High speed customized serial protocol for IP integration on FPGA based SOC ap...
 
Bm36382385
Bm36382385Bm36382385
Bm36382385
 
Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...
 
I010315760
I010315760I010315760
I010315760
 
Advertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDAdvertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LED
 
Jy3717961800
Jy3717961800Jy3717961800
Jy3717961800
 
REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N
REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N
REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N
 
Design and Implementation of HDLC Controller by Using Crc-16
Design and Implementation of HDLC Controller by Using Crc-16Design and Implementation of HDLC Controller by Using Crc-16
Design and Implementation of HDLC Controller by Using Crc-16
 
Implementation of sign board dot matrix display with 8051
Implementation of sign board dot matrix display with 8051Implementation of sign board dot matrix display with 8051
Implementation of sign board dot matrix display with 8051
 
AN EFFICIENT VITERBI DECODER
AN EFFICIENT VITERBI DECODERAN EFFICIENT VITERBI DECODER
AN EFFICIENT VITERBI DECODER
 
Iaetsd vlsi implementation of efficient convolutional
Iaetsd vlsi implementation of efficient convolutionalIaetsd vlsi implementation of efficient convolutional
Iaetsd vlsi implementation of efficient convolutional
 
IJCER (www.ijceronline.com) International Journal of computational Engineeri...
 IJCER (www.ijceronline.com) International Journal of computational Engineeri... IJCER (www.ijceronline.com) International Journal of computational Engineeri...
IJCER (www.ijceronline.com) International Journal of computational Engineeri...
 
Training Report BHARAT ELECTRONICS LIMITED
Training Report BHARAT ELECTRONICS LIMITEDTraining Report BHARAT ELECTRONICS LIMITED
Training Report BHARAT ELECTRONICS LIMITED
 
8086 MICROPROCESSOR
8086 MICROPROCESSOR8086 MICROPROCESSOR
8086 MICROPROCESSOR
 
Module 2 network and computer security
Module 2 network and computer securityModule 2 network and computer security
Module 2 network and computer security
 
Monitoring AC Drive by using RS485 & GSM Module
Monitoring AC Drive by using RS485 & GSM ModuleMonitoring AC Drive by using RS485 & GSM Module
Monitoring AC Drive by using RS485 & GSM Module
 
Interfacing omni flow computer to remote operation controller (roc) remote te...
Interfacing omni flow computer to remote operation controller (roc) remote te...Interfacing omni flow computer to remote operation controller (roc) remote te...
Interfacing omni flow computer to remote operation controller (roc) remote te...
 
introduction to computers
 introduction to computers introduction to computers
introduction to computers
 
Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detection
 
5x7 matrix led display
5x7 matrix led display 5x7 matrix led display
5x7 matrix led display
 

Viewers also liked (19)

Dh33653657
Dh33653657Dh33653657
Dh33653657
 
Du33731735
Du33731735Du33731735
Du33731735
 
Dq33705710
Dq33705710Dq33705710
Dq33705710
 
Af32216223
Af32216223Af32216223
Af32216223
 
J33047049
J33047049J33047049
J33047049
 
Gx3113351337
Gx3113351337Gx3113351337
Gx3113351337
 
Q34108113
Q34108113Q34108113
Q34108113
 
S34119122
S34119122S34119122
S34119122
 
Ct35535539
Ct35535539Ct35535539
Ct35535539
 
Cp35508515
Cp35508515Cp35508515
Cp35508515
 
Ar33252258
Ar33252258Ar33252258
Ar33252258
 
Aq33247251
Aq33247251Aq33247251
Aq33247251
 
Cw32611616
Cw32611616Cw32611616
Cw32611616
 
Co32559562
Co32559562Co32559562
Co32559562
 
Cd33488492
Cd33488492Cd33488492
Cd33488492
 
Gk3311301136
Gk3311301136Gk3311301136
Gk3311301136
 
Br33421423
Br33421423Br33421423
Br33421423
 
Cu33582587
Cu33582587Cu33582587
Cu33582587
 
Gs3311771183
Gs3311771183Gs3311771183
Gs3311771183
 

Similar to Real Time PLC-VB Communication

COVERAGE DRIVEN VERIFICATION OF I2C PROTOCOL USING SYSTEM VERILOG
COVERAGE DRIVEN VERIFICATION OF I2C PROTOCOL USING SYSTEM VERILOGCOVERAGE DRIVEN VERIFICATION OF I2C PROTOCOL USING SYSTEM VERILOG
COVERAGE DRIVEN VERIFICATION OF I2C PROTOCOL USING SYSTEM VERILOGIAEME Publication
 
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER cscpconf
 
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLDesign &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLIJERA Editor
 
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...SANTIAGO PABLO ALBERTO
 
PERFORMANCE EVALUATION OF CDMAROUTER FOR NETWORK - ON - CHIP
PERFORMANCE EVALUATION OF CDMAROUTER FOR NETWORK - ON - CHIPPERFORMANCE EVALUATION OF CDMAROUTER FOR NETWORK - ON - CHIP
PERFORMANCE EVALUATION OF CDMAROUTER FOR NETWORK - ON - CHIPVLSICS Design
 
An Implementation of I2C Slave Interface using Verilog HDL
An Implementation of I2C Slave Interface using Verilog HDLAn Implementation of I2C Slave Interface using Verilog HDL
An Implementation of I2C Slave Interface using Verilog HDLIJMER
 
DESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOC
DESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOCDESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOC
DESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOCIRJET Journal
 
Low power reduced instruction set architecture using clock gating technique
Low power reduced instruction set architecture using clock gating techniqueLow power reduced instruction set architecture using clock gating technique
Low power reduced instruction set architecture using clock gating techniqueVLSICS Design
 
Inception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMInception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMATHAL Public Relations & Marketing
 
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Editor IJCATR
 
Simulation model of dc servo motor control
Simulation model of dc servo motor controlSimulation model of dc servo motor control
Simulation model of dc servo motor controlEvans Marshall
 
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolInterfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolIJERA Editor
 
PLC and SCADA communication
PLC and SCADA communicationPLC and SCADA communication
PLC and SCADA communicationTalha Shaikh
 
Vlsi Summer training report pdf
Vlsi Summer training report pdfVlsi Summer training report pdf
Vlsi Summer training report pdfGirjeshVerma2
 

Similar to Real Time PLC-VB Communication (20)

A010610109
A010610109A010610109
A010610109
 
40120140505003
4012014050500340120140505003
40120140505003
 
COVERAGE DRIVEN VERIFICATION OF I2C PROTOCOL USING SYSTEM VERILOG
COVERAGE DRIVEN VERIFICATION OF I2C PROTOCOL USING SYSTEM VERILOGCOVERAGE DRIVEN VERIFICATION OF I2C PROTOCOL USING SYSTEM VERILOG
COVERAGE DRIVEN VERIFICATION OF I2C PROTOCOL USING SYSTEM VERILOG
 
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLDesign &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
 
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
 
PERFORMANCE EVALUATION OF CDMAROUTER FOR NETWORK - ON - CHIP
PERFORMANCE EVALUATION OF CDMAROUTER FOR NETWORK - ON - CHIPPERFORMANCE EVALUATION OF CDMAROUTER FOR NETWORK - ON - CHIP
PERFORMANCE EVALUATION OF CDMAROUTER FOR NETWORK - ON - CHIP
 
An Implementation of I2C Slave Interface using Verilog HDL
An Implementation of I2C Slave Interface using Verilog HDLAn Implementation of I2C Slave Interface using Verilog HDL
An Implementation of I2C Slave Interface using Verilog HDL
 
Am044253258
Am044253258Am044253258
Am044253258
 
[IJET-V1I3P17] Authors :Prof. U. R. More. S. R. Adhav
[IJET-V1I3P17] Authors :Prof. U. R. More. S. R. Adhav[IJET-V1I3P17] Authors :Prof. U. R. More. S. R. Adhav
[IJET-V1I3P17] Authors :Prof. U. R. More. S. R. Adhav
 
DESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOC
DESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOCDESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOC
DESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOC
 
Low power reduced instruction set architecture using clock gating technique
Low power reduced instruction set architecture using clock gating techniqueLow power reduced instruction set architecture using clock gating technique
Low power reduced instruction set architecture using clock gating technique
 
Inception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMInception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRM
 
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
 
Simulation model of dc servo motor control
Simulation model of dc servo motor controlSimulation model of dc servo motor control
Simulation model of dc servo motor control
 
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolInterfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
 
Isa bus nptel
Isa bus nptelIsa bus nptel
Isa bus nptel
 
PLC and SCADA communication
PLC and SCADA communicationPLC and SCADA communication
PLC and SCADA communication
 
Vlsi Summer training report pdf
Vlsi Summer training report pdfVlsi Summer training report pdf
Vlsi Summer training report pdf
 

Recently uploaded

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 

Recently uploaded (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 

Real Time PLC-VB Communication

  • 1. Prof.Mrs.S.S.Bidwai, Prof.Mr.V.B. Kumbhar, Prof.Mr. A.R.Nichal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 3, May-Jun 2013, pp.658-661 658 | P a g e “Real Time Automated Control using PLC-VB Communication” Prof.Mrs.S.S.Bidwai1 , Prof.Mr.V.B. Kumbhar2 , Prof.Mr. A.R.Nichal3 1 ADCET Ashta Electonics and Telecommunication Dept, Ashta, Dist-Sangli. , India. 23 AITRC Electonics and Telecommunication Dept, Vita, Dist-Sangli. , India. Abstract This paper is to enable the Delta PLC (Programmable Logic Control) DVP14SS to communicate with the Visual Basic 6.0. The communication between DVP14SS and Visual Basic 6.0 is via Modbus Serial Protocol. Computers are used as a link between humans and PLC systems as they have more graphics and visual capabilities. These are nothing but SCADA systems widely used for determining plant set- ups and displaying plant status on high quality screens. They also record/log the system data for long period .The SCADA software’s are the software packages needs to be purchased from vendors and the cost depends on tag count. Visual Basic 6.0 platform can be used develop the SCADA application effectively. Using VB 6.0 we integrate software and hardware across spectrum of vendors easily. Here we show simple approach to communicate Delta PLC with visual Basic using MSComm control in visual basic. By means of Visual Basic cost effective solution is possible as Visual Basic we do not need to purchase licenses and is cheaper than SCADA packages. It also has the advantages like flexibility. Keywords—MSComm control and PLC, plc, communication between PLC and VB 6.0, DVP14SS. I. INTRODUCTION Communication has become a major part of any process control automation system. Today PLC communication is as much for data acquisition as plant control. The objective of communication is to collect or transfer large / small amount of data. Over the course of time certain interfacing standards have been generated by industry in order to make communication between systems from two different manufacturers more simple. These standards typically defined the communications medium, transmission voltages, speed of communication, (baud rate). The first such real standard was RS232. This was written by the Electronic Industries Association (EIA). The main advantage of this being cost as RS232 interfaces are very simple and thus cheap, plus of course the fact that most PCs, which are used more and more in automation systems today, have at least one RS232 (serial) interface as a standard. Programmable Logic Controllers (PLC’s) are solid state devices using integrated circuits to control process or machines. They can store instructions like sequencing counting, timing, arithmetic, data manipulation and communication [2]. A PLC is an example of a hard real time system since output results must be produced in response to input conditions within a bounded time, otherwise unintended operation will result.PLC reads the status of the external input devices, e.g. keypad, sensor, switch and pulses, and execute by the microprocessor logic, sequential, timing, counting and arithmetic operations according the status of the input signals as well as the pre-written program stored in the PLC [5]. The generated output signals are sent to output devices as the switch of a relay, electromagnetic valve, motor drive, control of a machine or operation of a procedure for the purpose of machine automation or processing procedure. Visual Basic (VB) is developed by Microsoft Corporation and is most widely used development environment in the world. Visual Basic is tool provides platform to develop new optimum Windows/SCADA applications. Visual Basic can communicate with PLC with various ways. Visual Basic does not have code for communication protocol inbuilt. User need to write code for communication protocol or need to purchase ActiveX controls which are used to develop applications. ActiveX control with Libraries can be purchased to develop application. Here we are using MSComm ActiveX control freely available in VB to establish communication with delta PLC. II.Method of Interfacing Delta DVP14SS comes with serial port and the communication protocol is serial Modbus protocol which is a open protocol. Visual Basic acts as a Modbus Master device which issues request or commands (Query) on serial bus which is received by slave. PLC acts as a Modbus slave device and responds to the Master by sending massage called response. Modbus Query and Response contains fields like device address, function code, data, and error check [1]. Figure 1 shows the system block diagram.
  • 2. Prof.Mrs.S.S.Bidwai, Prof.Mr.V.B. Kumbhar, Prof.Mr. A.R.Nichal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 3, May-Jun 2013, pp.658-661 659 | P a g e Fig 1 Block Diagram Table 1 shows the function codes supported by the DVP14SS PLC. By using function code Master device can request data such as, Read coil status, Read input status, Read Holding Register, Force Single coils, etc.Slave device will repeat this function code in its reply to indicate that slave has received the function code and acted upon it [3]. Default protocol used by the delta plc is ASCII mode, 9600baud rate, 7 bit data length, even parity and 1 stop bit [4]. TABLE I FUNCTION CODE FOR DELTA PLC Code Name Description 01 Read Coil Status S, Y, M, T, C 02 Read Input Status S, X, Y, M,T, C 03 Read Holding Registers T, C, D 05 Force Single Coil S, Y, M, T, C 06 Preset Single Register T, C, D 15 Force Multiple Coils S, Y, M, T, C 16 Preset Multiple Register T, C, D 17 Report Slave ID None Table 2 shows the Query format to read Input Status of contacts Y20 to Y47from slave device address 01 TABLE II QUERY TO READ INPUT STATUS Y20 - Y47 Field Name Example (Hex) Heading 3A Slave Address 01 Command code 02 Starting Address Hi 05 Starting Address Lo 14 Number of Points Hi 00 Number of Points Lo 25 Error Check ( LRC ) BF Table 3 shows the response from slave device to Query shown above. TABLE III RESPONSE FROM SLAVE Field Name Example (Hex) Slave Address 01 Command code 02 Bytes Count 05 Data ( Coils Y033…Y024) CD Data ( Coils Y043…Y034) 6B Data ( Coils Y053…Y044) B2 Data ( Coils Y063…Y054) 0E Data ( Coils Y070…Y064) 1B Error Check(LRC) E5 The PLC receives the messages without a communication error, but cannot handle it, an exception response willreturn to the master device. In the exception response, the most significant bit of the original command code is set to 1, and an exception code explains the condition that caused the exception is returned. Table 4 shows message response with exception code. [3] [4] TABLE IIV EXCEPTION RESPONSE FROM SLAVE Field Name Example (Hex) Heading 3A Slave Address 01 Function 81 Exception Code 02 Error Check ( LRC ) 7C Table 5 shows different exception codes available in DVP14SS PLC [3] [4]. TABLE IIIV EXCEPTION CODES Code Meaning 01 Illegal command code: The command code received in the command message is not available for the PLC. 02 Illegal device address: The device address received in the command message is not available for the PLC. 03 Illegal device value: The device value received in the command message is not available for the PLC.
  • 3. Prof.Mrs.S.S.Bidwai, Prof.Mr.V.B. Kumbhar, Prof.Mr. A.R.Nichal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 3, May-Jun 2013, pp.658-661 660 | P a g e 07 Check Sum Error Check if the check Sum is correct Illegal command messages The command message is too short. Command message length is out of range. Visual Basic has ActiveX MSComm control 6.0 to send andreceive ASCII characters on communication port. MSCommcontrol added through the project component menu as shown in fig 2. MSComm control is a drag and drop tool and can be accessed, handled with its properties and event handler. Fig 2 MSComm Control Fig 3shows the various properties of MSComm control. Fig 3 MSComm Control Property III.IMPLEMENTATION Following steps are implemented to obtain desired objective. A. Knowing the Modbus Protocol for Delta PLC DVP14SS series MPU support Modbus ASCII/RTU communication format with speed of up to 115,200bps. and modification on data length (data bits, parity bits, stop bits).Modbus communication format ,CRC calculation ,Modbus addressing for various internal devices of PLC are the key factor in the interface. Communication parameters for COMcan be manipulated by writing ladder program. Here we use default protocol settings hence we do not alter PLC program. [4] B. Writing Visual Basic code for MSComm Control Designing windows form in visual basic as shown in fig 4. Form contains controls like Timer, MSComm Control, Button, textbox etc. Fig 4 Form OnComm () event in MSComm control is used to receive response from slave PLC. Dim strRx As String Select Case MSComm1.CommEvent Case comEvReceive Case comEvEOF strRx = MSComm1.Input Similarly MSComm.output property is used to send ASCII characters through serial port. For Index = 0 To Len(txtWrite.Text) – 1 sendArr(Index) = Asc(Mid(txtWrite.Text, Index + 1, 1)) Next sendArr(Index) = &HD sendArr(Index + 1) = &HA strRx = "" MSComm1.Output = sendArr Do While True If MSComm1.InBufferCount > 0 Then strRx = strRx + MSComm1.Input If Len(strRx) > 2 Then If Asc(Mid(strRx, Len(strRx) - 1, 1)) = &HD And Asc(Mid(strRx, Len(strRx), 1)) = &HA Then Text1.Text = Mid(strRx, 1, Len(strRx) - 2) Exit Do End If End If
  • 4. Prof.Mrs.S.S.Bidwai, Prof.Mr.V.B. Kumbhar, Prof.Mr. A.R.Nichal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 3, May-Jun 2013, pp.658-661 661 | P a g e IV. RESULTS Fig 5 shows GUI developed using VB and results of serial communication between DVP14SS PLC and PC. Fig 5 Result V.CONCLUSION The main idea was to interface Visual Basic 6.0 and Delta PLC DVP14SS for moreeffective and efficient process control. This project ofinterfacing establishes communication between two powerful technologies used in industries. Visual Basic provides a platform where new solutions or highly customized SCADA's can be created with a richer experience than those that may be provided by standard SCADA offerings. By using Visual Basic it offers many advantages over SCADA packages as it comes free and not expensive. Also SCADA packages cost depend on the tag count and runtime licenses needs to be purchased. Thus for OEM Visual Basic offers the optimum solution. Thus the PLC has been interfaced with Visual Basic 6.0 and several real time processes have been controlled. REFERENCES [1] “Modbus communication Manual,” MTL 8000 process control for process I/O ,The MTL Instruments Group PLC, England [2] NaregalkarAkshay.,Real Time Automated Control of Industrial Pocesses with PLC – LABVIEW Communication,.Ibrahimpatnam, Hyderabad, India, Issue-1, Volume-1 ,035- 038 [3] “DVP PLC communication Protocol,” Delta Electronics Inc,www.delta.com.tw/industrialautomatio n. [4] “DVP PLC Application Manual,” Delta Electronics Inc,www.delta.com.tw/industrialautomatio n. [5] T.Kalaiselvi, R.Praveena ,Aakanksha.R,, Dhanya.S, “PLC Based Automatic Bottle Filling and Capping System With User Defined Volume Selection,” IJETAE., Volume 2, Issue 8, August 2012. Prof.Mrs.S.S.Bidwai. received his M.E. degree in Electronics and telecommunication from Shivaji University at RIT Islampur in 2010 and currently working as Assit Professor in ADCET Ashta. Her area of interest is VLSI . Prof.Mr.V.B.Kumbhar received his B.E. degree in Electronics from Shivaji University at PVPIT Budhgaom in 2005 and is pursuing M.E in electronics from Shivaji University. His area of interest is Industrial power electronics and Industrial Automation. Prof.Mr.A.R.Nichal received his B.E. degree in Electronics and telecommunication from Shivaji University at Ashta in 2010 and received M.Tech in electronics from Walchand College of engineering, Sangli. His area of interest is Digital Image Processing and embedded system.