A Family Mold
Orders for the two caps often come together, so CoreForge has bought a family mold, M-ECF-4: four cavities, two
shaped for EC-25 and two for EC-32, filled by the same shot. It runs a little slower than M-EC25-4, at 5 shots a
minute, because the bigger cavities take longer to cool.
On a family mold, each cavity is set to the item it makes. A cavity counts toward an item's parts per cycle only when that item runs, so each cap's standard rate comes from its own cavities.
Add the Family Mold
-
In Configuration → Ops → Tooling, click Add a tool (+) and enter:
Field Value Name M-ECF-4Tooling type MoldLocation CoreForge\Philadelphia\MoldingLife measured in CyclesPM interval 20000Warn at % 90 -
Click Save.
-
On the Positions tab, add four
Cavitypositions numbered1to4, each with Parts per cycle1. Set Item (family tools) toEC-25on cavities 1 and 2, and toEC-32on cavities 3 and 4. Click Save positions. -
On the Cycle Rates tab, pick
Injection Press 1, enter5perMinute, and click Save rate.
If you want to check your work, or skip ahead, you can import M-ECF-4 instead of adding it by hand.
coreforge-mold-m-ecf-4-tooling.jsonThis file is a tooling export with the mold's details, its four cavities and its cycle rate on Injection Press 1.
Import it with the Import button on the tools list (Configuration → Ops → Tooling), check the preview, and click
Import. If you've already added M-ECF-4, choose Overwrite it to replace yours with this one. See Exporting
and importing tools.
Run It
-
Tap the Tooling card, unmount
M-EC25-4(clicking Changeover when Kanoa asks) and mountM-ECF-4. -
Tap the mode card and start an
EC-25run from the Product tab.EC-25's required tooling (from Build the Molds) namesM-EC25-4, but Run Control doesn't warn:M-ECF-4has cavities set toEC-25, so it stands in for it (see Required Tooling for a Family Mold). The run starts in the family mold. Injection Press 1's outfeed counts theEC-25caps, about 10 a minute (2 a shot). TheEC-32caps from cavities 3 and 4 are counted too, as co-products; see What the run counts below. -
Look at the info panel. On the Current Run tab, the Output box lists
EC-25andEC-32 (co-product), each with its outfeed, rate and waste, and both go up with every shot. Select the Current Shift tab to see the same for the shift so far. -
Run this in the Script Console to read
EC-25's standard rate:asset = system.kanoa.asset.getAssets({'assetPath': 'CoreForge\\Philadelphia\\Molding\\Injection Press 1'})item = system.kanoa.item.getItems({'itemName': 'EC-25'})rate = system.kanoa.tooling.getStandardRate({'assetId': asset.getValueAt(0, 'assetId'),'itemId': item.getValueAt(0, 'itemId'),})rateList = system.kanoa.utilities.convertDatasetToJSON(rate)for row in rateList:for k,v in row.items():print k,vtoolingNameisM-ECF-4,partsPerCycleis 2 andstandardRateis 10: 5 shots × the 2EC-25cavities. -
Change
'EC-25'to'EC-32'in the script and run it again. It's 10 a minute too, from the other two cavities.
You can see how a mold's cavities split between items with getPartsPerCycle:
tool = system.kanoa.asset.getAssets({'assetPath': 'CoreForge\\Philadelphia\\Molding\\M-ECF-4'})
parts = system.kanoa.tooling.getPartsPerCycle({'toolingAssetId': tool.getValueAt(0, 'assetId')})
print system.kanoa.utilities.convertDatasetToJSON(parts)
It returns a row for each item, with partsPerCycle (the cavities making it now) and standardPartsPerCycle (the ones
that count toward its standard, blocked ones included). Each has 2.
What the Run Counts
A run is for one item: the one you started. Each shot of M-ECF-4 makes 2 EC-25 caps and 2 EC-32 caps. The
EC-25 caps are the run's outfeed, measured against EC-25's 10 a minute. The EC-32 caps are recorded as
co-products: production of EC-32, but not part of the run, its OEE or its work order.
- Navigate to Ops → Operations → Run Review, select
Injection Press 1, and click Get data (the refresh button). - Turn the Table toggle off, so the runs show as cards. The Co-products box only appears on the cards.
- Find the
EC-25run. Under Outfeed it shows theEC-25caps, and under Co-products theEC-32caps: about the same number, from the other two cavities.
Required Tooling for a Family Mold
A required mold is met by the mold itself, or by any mounted mold with a cavity set to the item that isn't blocked. So
M-EC25-4 stays EC-25's required mold, and a run in M-ECF-4 starts without a warning because two of its cavities are
set to EC-25. Block both of them and the warning comes back: the family mold can't make EC-25 any more.
Don't add M-ECF-4 as a second required mold for EC-25. Each required tool is checked on its own, and M-EC25-4
can't stand in for the family mold (its cavities aren't set to an item), so every run in M-EC25-4 would warn.
If one of the caps runs at a different speed in a family mold than the cycle rate gives it, set its own rate for the mold in Production Rates, as in Cycle Rates and Item Rates. An item's own rate for the mounted mold comes first, ahead of the cycle rate.
Copy this script into the Ignition Designer Script Console (Tools → Script Console) and run it. It checks that
M-ECF-4 is a Mold with cavities 1 and 2 set to EC-25 and 3 and 4 set to EC-32, that its cycle rate on
Injection Press 1 is 5 a minute, that it's mounted on Injection Press 1, and that both caps' standard rates come
from its cycle rate at 10 a minute. Each check prints PASS or FAIL with what to fix. It doesn't change anything.
Show the check script
# Kanoa Ops Training - check "A Family Mold" (Tooling, lesson 6)
#
# Run in the Ignition Designer Script Console (Tools > Script Console). It only
# reads; it changes nothing. Every check prints PASS or FAIL with what to fix.
PRESS = 'CoreForge\\Philadelphia\\Molding\\Injection Press 1'
MOLDING = 'CoreForge\\Philadelphia\\Molding'
tl = system.kanoa.tooling
results = []
def check(ok, what, fix=None):
results.append(bool(ok))
if ok:
print 'PASS %s' % what
else:
print 'FAIL %s' % what
if fix:
print ' -> %s' % fix
def text(v):
return '' if v is None else unicode(v).strip()
def key(v):
return ' '.join(text(v).lower().split())
def truthy(v):
return str(v).lower() in ('true', '1')
def num(v):
try:
return float(v)
except (TypeError, ValueError):
return None
def near(v, target):
v = num(v)
return v is not None and abs(v - target) < 0.001
def rows(data):
return system.kanoa.utilities.convertDatasetToJSON(data) if data is not None else []
def findTool(name):
for t in rows(tl.getTools({})):
if key(t.get('assetName')) == key(name):
return t
return None
def positionsOf(tool):
byNumber = {}
if tool is not None:
for p in rows(tl.getPositions({'toolingAssetId': tool['toolingAssetId']})):
byNumber[int(num(p.get('positionNumber')) or 0)] = p
return byNumber
def itemId(name):
items = rows(system.kanoa.item.getItems({'itemName': name}))
return items[0].get('itemId') if items else None
def standardRate(assetId, itemName):
item = itemId(itemName)
if assetId is None or item is None:
return None
rate = rows(tl.getStandardRate({'assetId': assetId, 'itemId': item}))
return rate[0] if rate else None
def mountedNames(assetId):
return [key(m.get('toolingName')) for m in rows(tl.getMounted({'assetId': assetId}))] if assetId is not None else []
print '=' * 70
print 'Kanoa Ops Training - A Family Mold check'
print '=' * 70
assets = rows(system.kanoa.asset.getAssets({'assetPath': PRESS}))
pressId = assets[0].get('assetId') if assets else None
check(pressId is not None, 'Injection Press 1 exists', 'Import coreforge-press-1-asset-model.json, as in A New Press.')
# M-ECF-4
print '\n-- M-ECF-4'
tool = findTool('M-ECF-4')
check(tool is not None, 'M-ECF-4 exists', 'In Configuration > Ops > Tooling, add a tool named M-ECF-4.')
if tool is not None:
check(key(tool.get('assetTypeName')) == 'mold', 'Tooling type is Mold', "It's '%s'. Set Tooling type to Mold." % text(tool.get('assetTypeName')))
check(key(tool.get('assetPath')).startswith(key(MOLDING)), 'Located in %s' % MOLDING,
"It's at '%s'. Set Location to %s." % (text(tool.get('assetPath')), MOLDING))
check(truthy(tool.get('enabled')), 'Enabled', 'Open the tool and tick Enabled.')
check(key(tool.get('lifeUnit')) == 'cycles', 'Life measured in cycles', "It's '%s'. Set Life measured in to Cycles." % text(tool.get('lifeUnit')))
check(near(tool.get('pmInterval'), 20000), 'PM interval is 20000', "It's %s. Set PM interval to 20000." % text(tool.get('pmInterval')))
check(near(tool.get('warnPct'), 90), 'Warn at % is 90', "It's %s. Set Warn at %% to 90." % text(tool.get('warnPct')))
byNumber = positionsOf(tool)
check(sorted(byNumber.keys()) == range(1, 5), 'Has cavities 1 to 4',
'Has %s. On the Positions tab, number 4 cavities 1 to 4.' % (sorted(byNumber.keys()) or 'none'))
expectItems = {1: 'EC-25', 2: 'EC-25', 3: 'EC-32', 4: 'EC-32'}
for n in sorted(byNumber.keys()):
p = byNumber[n]
check(key(p.get('positionType')) == 'cavity', 'Cavity %d is a Cavity' % n, 'Set its Type to Cavity.')
check(near(p.get('outputQty'), 1), 'Cavity %d makes 1 part a shot' % n, 'Set its Parts per cycle to 1.')
want = expectItems.get(n) if expectItems else None
if want:
check(key(p.get('itemName')) == key(want), 'Cavity %d makes %s' % (n, want), "It's set to '%s'. Set its Item to %s." % (text(p.get('itemName')), want))
else:
check(p.get('itemId') is None, 'Cavity %d has no item' % n, 'Clear its Item: only a family mold sets items on cavities.')
if pressId is not None:
rates = rows(tl.getCycleRates({'toolingAssetId': tool['toolingAssetId'], 'assetId': pressId}))
check(len(rates) > 0, 'M-ECF-4 has a cycle rate on Injection Press 1', 'On the Cycle Rates tab, pick Injection Press 1, enter 5 per Minute and click Save rate.')
if rates:
r = rates[0]
check(near(r.get('cycleRate'), 5), 'Cycle rate is 5', "It's %s. Set it to 5." % text(r.get('cycleRate')))
check(key(r.get('itemPeriodName')).startswith('min'), 'Per Minute', "It's per '%s'. Set Per to Minute." % text(r.get('itemPeriodName')))
check(truthy(r.get('enabled')), 'The cycle rate is enabled', 'Tick Enabled on the rate and save it.')
print '\n-- M-ECF-4 on Injection Press 1'
check(key('M-ECF-4') in mountedNames(pressId), 'M-ECF-4 is mounted on Injection Press 1', 'Mount M-ECF-4 on Injection Press 1 from the mount panel.')
r = standardRate(pressId, 'EC-25')
if r is None:
check(False, 'EC-25 has a standard rate on Injection Press 1', 'Re-import coreforge-press-1-asset-model.json.')
else:
check(key(r.get('rateSource')) == 'cycle', "EC-25's rate comes from a mold's cycle rate",
"rateSource is '%s'. Mount M-ECF-4 and check its cycle rate on Injection Press 1." % text(r.get('rateSource')))
check(key(r.get('toolingName')) == key('M-ECF-4'), "EC-25's rate comes from M-ECF-4", "It comes from '%s'." % text(r.get('toolingName')))
check(near(r.get('partsPerCycle'), 2), "EC-25's parts per cycle is 2", "It's %s." % text(r.get('partsPerCycle')))
check(near(r.get('standardRate'), 10), "EC-25's standard rate is 10 a minute", "It's %s." % text(r.get('standardRate')))
r = standardRate(pressId, 'EC-32')
if r is None:
check(False, 'EC-32 has a standard rate on Injection Press 1', 'Re-import coreforge-press-1-asset-model.json.')
else:
check(key(r.get('rateSource')) == 'cycle', "EC-32's rate comes from a mold's cycle rate",
"rateSource is '%s'. Mount M-ECF-4 and check its cycle rate on Injection Press 1." % text(r.get('rateSource')))
check(key(r.get('toolingName')) == key('M-ECF-4'), "EC-32's rate comes from M-ECF-4", "It comes from '%s'." % text(r.get('toolingName')))
check(near(r.get('partsPerCycle'), 2), "EC-32's parts per cycle is 2", "It's %s." % text(r.get('partsPerCycle')))
check(near(r.get('standardRate'), 10), "EC-32's standard rate is 10 a minute", "It's %s." % text(r.get('standardRate')))
passed = results.count(True)
print '\n' + '=' * 70
print 'Result: %d of %d checks passed' % (passed, len(results))
if passed == len(results):
print "All good. M-ECF-4 is running on Injection Press 1."
else:
print 'Fix the FAIL items above, then run this again.'
print '=' * 70