Professional Documents
Culture Documents
We would like to thank our external guide, Mr.Vasant Mahishi for giving us
an opportunity to work on this project. We express our utmost gratitude for his
scholarly guidance and extensive help at every step of our project.
We profusely thank our Director Dr. Pramod Kale and our University
co-ordinator Dr. A. D Shaligram for their inspiration in the making f the project.
We would also like to thank our internal project guide Mrs.Preeti Salunke,
Ms. Charuta Sumant and Mr. Zambre and for their constant support and
encouragement towards the completion of the project.
Lastly we would like to thank the ICIT staff for their timely help.
Priyanka Bagade
Debolina Chakraborty
Tejaswini Patil
CONTENTS PAGE NO.
1. INTRODUCTION
1.1 Relevance to Preset Industrial Scenario
1.1.1 Domain filed of project
1.1.2 Reasons to select this project
1.1.3 Aim and objectives
2. PROJECT PLANNING
2.1 Target specifications
2.2 Block diagram
2.3 Description
3. PROJECT DETAILS
3.1 Introduction to VB
3.2 What is RS 485
3.3 Query-Response Cycle
3.3.1 Modbus messages
3.3.2 Serial Transmission modes
3.3.3 Flowcharts
4. EXECUTION EFFORTS
4.1 Recourses utilized
4.2 Testing and Debugging
4.3 Results and Discussion
5. ADVANTAGES
6. APPLICATIONS
7. FUTURE SCOPE
8. REFERENCES
1. INTRODUCTION
1.1.3 AIM:
To monitor gensets using GUI development in Visual Basic 6.0
OBJECTIVE:
To create portable software for monitoring gensets and detect faults if any.
2 .PROJECT PLANNING
• GUI FORMAT:
• HARDWARE SPECIFICATIONS
Send
MODBUS GRAPHICAL
ECP CONVERTER USER
METER INTERFACE
(GUI)
RS-485
RS-232
2.3 DESCRIPTION:
2. MODBUS CONVERTER:
MODBUS is a serial communication protocol published by Modicon.
Variety of industrial electronic devices can be interfaced. It is often used to
connect supervisory computer with a remote terminal unit (RTU) in supervisory
control and data acquisition (SCADA) systems.
3.1 RS 232 COMMUNICATION:
• RS232 ports on the PC are assigned to a single device.
• Serial communication is established with the COM1 port.
• Maximum cable length 50 ft
• Maximum data rate 10 Kbps-20 Kbps.
• This is an example of point to point communication (one port
communicates with one device).
The ECP has capacity to respond to the queries from the host computer. Host
sends customer data request commands (CDR) to request engine at address to
respond.
The 4 character message is detected by all the ECP’s connected on the 2 wire
bus. The ECP which has been, assigned the address responds by transmitting
specific 30 byte message. The ECP first echoes address by sending back the
characters ENGn followed by the 4 bytes each from the internal display buffer in
the same order as they appear on the digital display. The ECP then transfers its
one status flag byte, followed by one checksum byte.
This unit provides engine control parameters like Water Temperature, Lube Oil
pressure, Battery Voltage, Engine Hours, RPM in our application.
3. PROJECT DETAILS
1. RTU Mode
In RTU (Remote Terminal Unit) mode, each 8-bit byte in a message contains two
4-bit hexadecimal characters. The main advantage of this mode is that its greater
character density allows better data throughput than ASCII for the same baud
rate, however each message must be transmitted in a continuous stream.
Note: RS232C has been abbreviated to RS232. The RS232 standard allows a
single instrument to be connected to a PC, a Programmable Logic Controller, or
similar devices using a cable length of less than 15M.
The RS485 standard allows one or more instruments to be connected (multi-
dropped) using a two wire connection, with cable length of less than 1200M. 31
Instruments and one ‘master’ may be connected in this way. The balanced
differential signal transmission is less prone to interference and should be used
in preference to RS232 in noisy environments.
RS422/RS485 is recommended for plant installation. Although RS485 is
commonly referred to as a ‘two wire’ connection, a ground return/shield
connection is provided as a ‘common’ connection for Series 2000 Instruments,
and in general this should be used in installations to provide additional protection
against noise.
Strictly speaking, RS422 is a standard permitting ‘point to point’ connection of
two pieces of equipment using a full duplex, differential signal on two pairs of
wires. In principle, therefore, an RS422 link only allows a single instrument to be
connected to a PC. However, Series 2000 instruments provide an enhanced
version of RS422 that also meets the full electrical requirements of RS485
described above. This allows up to 31 instruments to be connected on the same
network, but only with a 5 wire electrical connection. The transmission and
reception of data use two pairs of twisted cable, with a separate cable
provided for common. The optional screen will provide additional noise immunity.
SERIAL COMMUNICATION:
Serial communication is a popular means of transmitting data between
a computer and a peripheral device such as a programmable instrument or even
another computer. Serial communication uses a transmitter to send data, one bit
at a time, over a single communication line to a receiver. You can use this
method when data transfer rates are low or you must transfer data over long
distances. Serial communication is popular because most computers have one or
more serial ports, so no extra hardware is needed other than a cable to connect
the instrument to the computer or two computers together.
Serial communication requires that you specify the following four
parameters: the baud rate of the transmission, the number of data bits encoding
a character, the sense of the optional parity bit, and the number of stop bits.
. The figure shows a typical character frame encoding the letter m.
A byte is sent as a package including a start bit, data bits, sometimes a parity bit,
and stop bits.
Baud rate is a measure of how fast data are moving between
instruments that use serial communication. RS-232 uses only two voltage states,
called MARK and SPACE. In such a two-state coding scheme, the baud rate is
identical to the maximum number of bits of information, including control bits that
are transmitted per second.
MARK is a negative voltage, and SPACE is positive. The previous
illustration shows how the idealized signal looks on an oscilloscope.
The following is the truth table for RS-232:
Signal > +3 V = 0
Signal < –3 V = 1
The output signal level usually swings between +12 V and –12 V. The
dead area between +3 V and –3 V is designed to absorb line noise.
A start bit signals the beginning of each character frame. It is a
transition from negative (MARK) to positive (SPACE) voltage. Its duration in
seconds is the reciprocal of the baud rate. If the instrument is transmitting at
9600 baud, the duration of the start bit and each subsequent bit is about 0.104
ms. The entire character frame of eleven bits would be transmitted in about 1.146
ms. Data bits are transmitted upside down and backwards.
An optional parity bit follows the data bits in the character frame. The
parity bit, if present, also follows inverted logic, 1 for negative voltage and 0 for
positive voltage. This bit is included as a simple means of error handling. You
specify ahead of time whether the parity of the transmission is to be even or odd.
RS-232 STANDARD:
This standard has been adopted for use in serial communications between
computers and printers, modems, and other equipment. The serial ports on
standard IBM-compatible personal computers follow RS-232.
The serial ports on standard IBM PC
5. ADVANTAGES:
• Easy to use
• Portable
• Easily upgradable.
6. APPLICATIONS:
• Used in shopping malls and at industrial sites.
• Can be used at different sites.
• Used for security purposes
7. FUTURE SCOPE:
• Fault can be detected if a failure occurs in any of the ECPs.
• Different machines can be connected such as ECPG and
PowerComms.
8. REFERNCES