Skip to content

Commit 2f5585f

Browse files
Implement fault code interpretation function
Added a function to interpret fault codes with alerts. Signed-off-by: abdurhamanmohammeda-a11y <abdurhamanmohammeda@gmail.com>
1 parent 1d03662 commit 2f5585f

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,25 @@ <h2>👨‍🔧 Contact via WhatsApp</h2>
9393
else alert("✅ NORMAL: System stable.");
9494
}
9595
</script>
96+
<script>
97+
function interpretFault() {
98+
const faults = {
99+
"E01": "Phase Failure: Check electrical panel for loose wires.",
100+
"E02": "High Temp: Cooling system failure or grease is dry.",
101+
"E03": "Vibration Alert: Foundation bolts are loose or bearing damage.",
102+
"E04": "Oil Pressure Low: Check hydraulic oil level and pump.",
103+
"E05": "Motor Overload: Material inside is too hard or too much.",
104+
"E06": "Belt Slip: V-belts are loose, need tensioning.",
105+
"E10": "Toggle Plate Broken: Check for uncrushable material (iron).",
106+
"E15": "Bearing Noise: Lubrication needed or bearing life ending."
107+
};
108+
let code = prompt("Enter Error Code (E01-E15):").trim().toUpperCase();
109+
if (faults[code]) {
110+
alert("🔍 Diagnosis: " + faults[code]);
111+
} else {
112+
alert("❓ Code not found. Please contact Abdurhaman for manual support.");
113+
}
114+
}
115+
</script>
96116
</body>
97117
</html>

0 commit comments

Comments
 (0)