Skip to main content

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​

Change Injection Press 1 over to M-EC25-4
  1. Tap the info panel's Tooling card and unmount M-EC32-2, clicking Changeover when Kanoa asks.
  2. Mount M-EC25-4 and close the popup.
  3. Tap the mode card, and on Run Control's Product tab select EC-25 and 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.

Reference Materials: The speed-loss event - When it opens, ends, and which reason it gets.

The Speed-Loss Event​

When a machine turns slow, a performance event opens on its run:

  • It starts at the first of those 5 minutes and stays active (no end yet) while the machine is slow. Reports and widgets count an active event up to now.
  • Its value is the minutes of output lost so far: the minutes running, minus what was made divided by the standard rate per minute. It's updated every minute.
  • It ends when the rate has been back above 95% for 5 minutes (it ends where the recovery started), when a new run starts (it ends at the new run's start), or when the machine stops running. Downtime is an availability loss, not a speed loss.
  • Its reason starts as Unassigned (reason class Speed Loss), or Positions blocked (class Tooling) while a position of the mounted tool is blocked. These are chosen by the system and can change while the event is open.

The speed loss card with the reason Positions blocked

Block cavity 3
  1. Tap the Tooling card and select M-EC25-4.
  2. In Positions of the selected tool, tick cavity 3 to block it, and pick a Block reason if asked.
  3. Close the popup. The Tooling card shows Tooling Installed - M-EC25-4 - 3 parts/cycle.
  4. 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.

Retire cavity 3 and remount
  1. Tap the Tooling card and Unmount M-EC25-4, clicking Changeover when Kanoa asks.
  2. In Configuration → Ops → Tooling, double-click M-EC25-4 and open the Positions tab.
  3. Untick Blocked and tick Retired on cavity 3, then click Save positions. A cavity can't be blocked and retired at once.
  4. Mount M-EC25-4 on Injection Press 1 again from the Tooling card, and start an EC-25 run from the mode card's Product tab.
  5. Run the Read the standard rate script from Run and Change Over for EC-25. partsPerCycle is now 3 and standardRate is 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.

BlockedRetired
MeaningOut of service for nowOut of service for good
Standard rateUnchanged: the missing parts are a speed lossDrops from the moment it's retired
New runNeverWhen it changes the rate
Change it while mountedYes, from the mount panelNo, unmount first
Check your work

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
checkLesson-aDamagedCavity.py
# 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