Skip to main content

system.kanoa.tooling.getPartsPerCycle(paramsDict)

Returns parts per cycle by item: a row per item the positions are set to, and a row with no item for the positions set to no item, which make whatever item is running. partsPerCycle and positions count the unblocked positions (what a cycle makes); standardPartsPerCycle and standardPositions count blocked ones too (what the standard rate uses). Retired positions never count. By assetId, from what was mounted on it at the time; by toolingAssetId, from the tool's and its inserts' positions now.


Parameters​

paramsDict Dictionary

- assetIdIntegeror toolingAssetId (Integer): One is required
- atDateWith assetId. Defaults to now

Returns​

partsPerCycle pyDataset: itemId, itemName, partsPerCycle, positions, standardPartsPerCycle, standardPositions


Example​

paramsDict = {'assetId': 1, 'at': system.date.now()}
partsPerCycle = system.kanoa.tooling.getPartsPerCycle(paramsDict)