calculateoee
v0.0.1-c
Published
A simple OEE calculator module for Node.js
Downloads
8
Maintainers
Readme
calculateoee
A Node.js module to calculate Overall Equipment Effectiveness (OEE) based on runtime, total time, target speed, total produced, and good produced.
Installation Install the module using npm:
npm install calculateoee
Usage To use the calculateoee module, require it in your Node.js code and call the function with the necessary parameters:
const calculateOEE = require('calculateoee');
const runTime = 3600; // seconds const totalTime = 4000; // seconds const targetSpeed = 50; // units per minute const totalProduced = 500; // units const goodProduced = 480; // units
const oee = calculateOEE(runTime, totalTime, targetSpeed, totalProduced, goodProduced);
console.log(The OEE is: ${oee}
);
The output should be:
The OEE is: 0.864
API calculateOEE(runTime, totalTime, targetSpeed, totalProduced, goodProduced) Calculates the Overall Equipment Effectiveness (OEE) based on the following parameters:
runTime (number) - The amount of time the machine has been running, in seconds. totalTime (number) - The total time the machine should have been running, in seconds. targetSpeed (number) - The target speed of the machine, in units per minute. totalProduced (number) - The total number of units produced by the machine. goodProduced (number) - The number of units produced that meet quality standards. Returns the OEE as a number (float).
Error Handling The calculateOEE function performs error checking to ensure that all parameters passed in are numbers or floats. If any parameter is not a number or float, the function will return an error message.
License This module is licensed under the MIT License.