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 GUI FORMAT :
–
: Windows XP
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 ECP METER
Send
MODBUS CONVERTER
RS 485
Receive
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 Enter username & password Select ECP Send query Place data in receive buffer Send data
NO Detect Fault YES Extract String Is CRC OK ?
Display data Stop
COMMUNICATION OVER MODBUS PROTOCOL Start Accept string from PC Convert to RS485 comm and send to slave Store parameters In holding registers
Send to PC Stop
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