Formulas
This section details the various formulas used to calculate statistics displayed in the console.
Overall Equipment Effectiveness (OEE)
Calculates the overall equipment effectiveness as a percentage, measuring how efficiently the machine is operating compared to its theoretical maximum capacity.
Components:
- Reported Bales: Total number of bales produced during the shift
- Ideal Cycle Time: The theoretical minimum time to produce one bale under perfect conditions
- Planned Production Time: Total shift time minus scheduled breaks
Total Time
Calculates the total duration of a shift by finding the time difference between the shift's start and end messages.
Planned Production Time
Calculates the time planned for production by subtracting operator break time from the total shift time.
Downtime
Calculates the total duration of non-operator-related downtime events during a shift.
Operator Stoppage Time
Calculates the total duration of operator-initiated stoppages during a shift.
Runtime
Calculates the actual running time of the machine by subtracting all downtime and operator stoppages from the total shift time.
Cycle Performance
Measures the average time taken to produce each bale during the runtime period.
Metric Tonnes Per Hour
Calculates the production rate in metric tonnes per hour by converting the total runtime to hours and dividing the total production by this value.
Total Weight
If total weight reported by press:
Total Weight = Reported Weight
Otherwise:
Total Weight = (Total Reported Bales) × (Average Bale Weight)
Calculates the total weight processed during a shift, either using the directly reported weight or calculating it from the number of bales and average weight.
Total Production
Converts the total weight into the appropriate unit of production based on the press's configured ton type.
Average Output Weight
Calculates the average weight of output bales, adjusted by the press's bale counter type multiplier.
Total Output Production
Calculates the total output production based on the number of bales, their average weight, and the press's ton type conversion.
Stack
Stack = Read values from one of the following message types:
- Message Type 1040: Read items with type ID between 23 and 70
- Message Types 1048/1049: Read items with type ID between 23 and 70
- Message Type 2506: Read items with type ID between 23 and 70
Components
- Message Type 1040:
- Primary message type for stack data
- Items with type IDs 23-70 contain stack values
- Message Types 1048/1049:
- Alternative message types for stack data
- Used when type 1040 is not available
- Items with type IDs 23-70 contain stack values
- Message Type 2506:
- Fallback message type for stack data
- Used when neither 1040 nor 1048/1049 are available
- Items with type IDs 23-70 contain stack values
Description
This formula retrieves stack data by checking for specific message types in order of priority. It first looks for message type 1040, then 1048/1049, and finally 2506. For each message type found, it extracts values from items whose type IDs fall between 23 and 70, which represent various stack measurements and parameters.
Sales
Sales calculation:
- If message type 1041 exists:
- Read values from items with type ID between 23 and 70
- If no messages of type 2501 exist in the shift:
- Return 0
- If the last 2501 message does not have an item type of 17:
- Return 0
- Otherwise:
- Return the value of item type 17
Components
- Message Type 1041:
- Primary message type for sales data
- Items with type IDs 23-70 contain relevant values
- Message Type 2501:
- Required for sales calculation
- Must contain item type 17
- Last occurrence in shift is used
Description
This formula calculates sales data by first checking for message type 1041 and reading specific item values. The calculation depends on the presence of type 2501 messages and specifically requires item type 17 from the last 2501 message in the shift. If any of these conditions are not met, the sales value defaults to 0.
Product
Product calculation:
- If message type 1042 exists:
- Read values from items with type ID between 23 and 70
Components
- Message Type 1042:
- Primary message type for product data
- Items with type IDs 23-70 contain relevant values
Description
This formula retrieves product data by checking for message type 1042 and reading values from items whose type IDs fall between 23 and 70. These items contain various product measurements and parameters.
Kickouts
Kickouts calculation:
- If message type 2508 exists AND has item type 22:
- Return the value of item type 22
- Otherwise:
- Return the total count of messages with type 2505
Components
- Message Type 2508:
- Primary message type for kickout data
- Item type 22 contains the kickout count
- Message Type 2505:
- Fallback message type for kickout data
- Each message represents one kickout event
Description
This formula determines the number of kickouts by first checking for a type 2508 message with item type 22. If found, it uses that value. Otherwise, it falls back to counting the total number of type 2505 messages as each represents a kickout event.