A Damaged Cavity
Back on EC-25, the operator notices that cavity 3 of M-EC25-4 is making short shots: its caps come out incomplete.
In this lesson you'll take the cavity out of service two ways: blocked for now, and retired for good.
Change Back to EC-25
- Tap the info panel's Tooling card and unmount
M-EC32-2, clicking Changeover when Kanoa asks. - Mount
M-EC25-4and close the popup. - Tap the mode card, and on Run Control's Product tab select
EC-25and click Start Run.
Block the Cavity
The operator blocks cavity 3 so the mold keeps running on its other three cavities until the toolroom can look at it.
- Tap the Tooling card and select
M-EC25-4. - In Positions of the selected tool, tick cavity
3to block it, and pick a Block reason if asked. - Close the popup. The Tooling card shows Tooling Installed - M-EC25-4 - 3 parts/cycle.
- Watch the info panel. Injection Press 1 now makes about 18 caps a minute instead of 24, and within about 5 minutes a speed loss card appears under the state card, such as Below standard: 73% of the standard rate · Positions blocked. The percentage moves around a little, because the simulator's speed does.
A blocked cavity still counts toward the standard rate. The mold should be making 24 caps a minute; while a cavity is blocked it can't, and the missing caps show as a speed loss with the reason Positions blocked, so the loss is explained without anyone coding it. Blocking doesn't change the rate, so it never starts a new run.
Retire the Cavity
The toolroom finds a crack in cavity 3 that can't be repaired, so it's welded shut and taken out of service for good. A retired cavity leaves the standard rate. A mold's cavities can only be changed while it's off the machine.
- Tap the Tooling card and Unmount
M-EC25-4, clicking Changeover when Kanoa asks. - In Configuration → Ops → Tooling, double-click
M-EC25-4and open the Positions tab. - Untick Blocked and tick Retired on cavity
3, then click Save positions. A cavity can't be blocked and retired at once. - Mount
M-EC25-4onInjection Press 1again from the Tooling card, and start anEC-25run from the mode card's Product tab. - Run the Read the standard rate script from Run and Change Over for
EC-25.partsPerCycleis now 3 andstandardRateis 18.
At 18 caps a minute, Injection Press 1 is back on its standard, and the speed loss card is gone: the new run closed the speed-loss event. Cavity 3 keeps its history: it can't be removed, because earlier mounts recorded it.
| Blocked | Retired | |
|---|---|---|
| Meaning | Out of service for now | Out of service for good |
| Standard rate | Unchanged: the missing parts are a speed loss | Drops from the moment it's retired |
| New run | Never | When it changes the rate |
| Change it while mounted | Yes, from the mount panel | No, unmount first |
Copy this script into the Ignition Designer Script Console (Tools → Script Console) and run it. It checks that
M-EC25-4 is mounted on Injection Press 1, that cavity 3 is retired and not blocked while cavities 1, 2 and 4 are in
service, and that EC-25's standard rate on Injection Press 1 comes from the mold's cycle rate at 18 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 Damaged Cavity" (Tooling, lesson 5)
#
# 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 Damaged Cavity 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.')
print '\n-- M-EC25-4 on Injection Press 1'
check(key('M-EC25-4') in mountedNames(pressId), 'M-EC25-4 is mounted on Injection Press 1',
'Mount M-EC25-4 on Injection Press 1 from the mount panel.')
byNumber = positionsOf(findTool('M-EC25-4'))
p3 = byNumber.get(3)
check(p3 is not None and truthy(p3.get('isRetired')), 'Cavity 3 is retired',
'Unmount M-EC25-4, tick Retired on cavity 3 on the Positions tab, save, and mount it again.')
check(p3 is not None and not truthy(p3.get('isBlocked')), 'Cavity 3 is not blocked', 'Untick Blocked on cavity 3 and save.')
for n in (1, 2, 4):
p = byNumber.get(n)
check(p is not None and not truthy(p.get('isRetired')) and not truthy(p.get('isBlocked')),
'Cavity %d is in service' % n, 'Untick Blocked and Retired on cavity %d.' % n)
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-EC25-4 and check its cycle rate on Injection Press 1." % text(r.get('rateSource')))
check(key(r.get('toolingName')) == key('M-EC25-4'), "EC-25's rate comes from M-EC25-4", "It comes from '%s'." % text(r.get('toolingName')))
check(near(r.get('partsPerCycle'), 3), "EC-25's parts per cycle is 3", "It's %s." % text(r.get('partsPerCycle')))
check(near(r.get('standardRate'), 18), "EC-25's standard rate is 18 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-EC25-4 is running on its three good cavities."
else:
print 'Fix the FAIL items above, then run this again.'
print '=' * 70
