Machine Management and Maintenance using Microcontroller for Data Acquisition
Table of Contents:
- Machine Management and Maintenance using Microcontroller for Data Acquisition
- Process all Data using Visual Basic
The aim of this project, is the aid to management in production and in maintenance of 4 Machines, with the help of one Microcontroller for the acquisition of data from the Machines and a Software in Visual Basic .Net 2010 to process, show, and store the data obtained.
The data obtained come from 3 signals in each machine:
1 Signal ON / OFF . Indicates the state of the Machine 1 = ON or 0 = OFF.
2 Signal NEW PIECE. Indicates that a new piece have been fabricated in the Machine.
3 Signal ALARMA. Indicates that there is an ALARM in the Machine.
By processing all those data we can obtain Total Piece Counters, Partial Piece Counters, Total hours Counters, Warnings, of Machines which we will use in task of Production and Maintenance.
- When one counter reaches the number preselected show a warning “END OF PRODUCTION”
- When one hours counter reaches the hours preselected show a warning “CHANGE THE OIL”
The process would be:
- Data Acquisition of the signal’s machines
- Send all the data from the Microcontroller to the PC
- Process all the data with Visual Basic.Net
2.1 DATA ADQUISITION OF THE SIGNAL’S MACHINES
We have used one Microcontroller (PIC 16F628A) to get all the data of the machines and send it to the PC. Microcontroller is in a loop reading the Ports A and B and looking serial communications with PC.
The SIGNAL ON/OFF is picked up from the contact of one Relay, that is activated when the machine is Switched ON. For the Machine 1 this contact goes to input I0 (Port B0).
The SIGNAL NEW PIECE is picked up from the contact of one Proximity Sensor, that is activated when the machine eject the new piece. For the Machine1 this contact goes to Input I1 (Port_B1).
The SIGNAL ALARM is picked up from the contact of one Security Relay that is activated when the machine is in Alarm State. For the Machine1 this contact goes to Input I2 (Port_B2).
2.2 SEND ALL THE DATA TO THE PC
The Microcontroller sends all the data to the PC through Serial Port.
For to do this, the PC sends by serial port every second, the character “L” and the Microcontroller when receive this “L” sends the value of the Ports A and B.
The format followed is --> A=XXB=YY where XX is the byte value of the Port A and YY is the byte value of the Port B.