calculateoee

0.0.1-c • Public • Published

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.

Package Sidebar

Install

npm i calculateoee

Weekly Downloads

1

Version

0.0.1-c

License

MIT

Unpacked Size

2.85 kB

Total Files

3

Last publish

Collaborators

  • hj91