Skip to main content

system.kanoa.shift.updateShiftEvents

This function requires KanoaOps module

Description

Called by the [Kanoa]kanoa/timers/shiftEventTimer tag script. This function adds shift events for all OEE-enabled assets to the shiftEvent table. The shiftEvent table is used in SQL JOINS for shift analysis (kanoaOps).

Syntax

updateShiftEvents(paramsDict)
  • Parameters
      paramsDict (dict)
      - assetPath (string)
      - startDate (datetime)
      - endDate (datetime)
  • Returns
      None
  • Code Example

    # Example Usage:
    startDate = system.date.parse("2024-11-01 00:00:00")
    endDate = system.date.parse("2024-11-10 00:00:00")
    system.kanoa.shift.updateShiftEvents({'assetPath': 'Kanoa Box Co\Box Plant\Packaging\Box Line 1', 'startDate': startDate, 'endDate': endDate})
    >