Вы находитесь на странице: 1из 19

GUI DEVELOPMENT FOR

GENSET MONITORING
SPONSORED BY : VARSHA ELECTRONICS

PROJECT GUIDE : MR. VASANT MAHISHI

INTERNAL GUIDE : MRS. PREETI SALUNKHE

DONE BY : PRIYANKA BAGADE


DEBOLINA CHAKRABORTY
TEJASWINI PATIL
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.
SPECIFICATIONS:
SOFTWARE

 OPERATING SYSTEM : Windows XP


 GUI FORMAT :
– Engine Parameters: Temperature, oil pressure,
engine speed, battery voltage.

HARDWARE

 Engine Control Protocol (ECP) Meter


 Modbus Converter
 RS-232, RS-485 Communication
BLOCK DIAGRAM
GRPHICAL
USER
INTERFACE

Send Send
MODBUS
ECP METER
CONVERTER
Receive

RS 485 RS 232
ECP METER MODBUS CONVERTER
MODBUS HARDWARE
FEATURES OF MODBUS
PROTOCOL
 Standard Modbus ports on Modicon controllers
use an RS–232 compatible serial interface
 Communication is done using a master–slave
technique.
 The master can initiate transactions (called
‘queries’).
 Other devices (the slaves) respond by supplying
the requested data to the master.
QUERY-RESPONSE CYCLE
 Two serial transmission modes

1) ASCII
2) RTU

 Error Checking
3) LRC
4) CRC
RTU Mode
 RTU (Remote Terminal Unit) mode, each 8–bit byte in a
message contains two 4–bit hexadecimal characters.
 Each message must be transmitted in a continuous stream.
 Coding System: 8–bit binary, hexadecimal 0–9, A–F
 Bits per Byte :
1) 1 start bit
2) 8 data bits, least significant bit sent first.
3) 1 bit for even/odd parity; no bit for no parity
4) 1 stop bit if parity is used; 2 bits if no parity
 Error Check Field: Cyclic Redundancy Check (CRC)
FRAME FORMAT
FLOWCHART Start

Request
Parameters

Serial
Communication

ECP Response

Send data over RS232

Display data

Stop
FLOWCHART FOR GUI

Start
Is CRC NO Detect
OK ?
Enter username Fault
& password YES
Extract String
Select ECP

Send query Display data

Place data in
receive Stop
buffer
Send data
COMMUNICATION OVER MODBUS
PROTOCOL

Start

Accept string
from PC

Convert to RS485 comm


and send to slave
Send to PC

Store parameters
Stop
In holding registers
FLOWCHART FOR ECP

Start

Accept host request

Send parameters

Stop
ADVANTAGES
 Easy to use
 Portable
 Does not require human intervention.
 Easily upgradable.

APPLICATIONS
 Used in shopping malls and at industrial sites.
 Used for security purposes

FUTURE SCOPE

 Fault can be detected if a failure occurs in any of the


ECPs.
 Different machines can be connected such as ECPG and
TOOLS USED

 Visual Basic 6.0 software


 Modbus converter hardware
 ECP Meter Unit

REFERENCES

 VB 6.0 Programming Black Book


 Modicon Modbus Protocol Reference Guide
 RS485 & Modbus Protocol Guide
 Serial communication in VB manual

Вам также может понравиться