system.kanoa.quality.schedule.assetChangeEvent(stateInfo)
This function can be called by a tag change event to check if any check sheets should become active. It should only be called whenever the mode, product or shift changes on an asset
Each check it creates waits In Delay for its trigger's delayMins (no screen shows it, and it counts as the sheet's open check, so the trigger doesn't create another), then is Coming Due for its comingDueMins, then Due. With no delayMins it starts Coming Due. A Shift or Product Change closes the sheet's open checks on the asset, In Delay ones included.
Parameters
stateInfo Dictionary
| - assetId | Integer | |
| - changeType | String | i.e 'Mode Change', 'Timed Interval', 'Product Change' |
| - itemId | Integer | |
| - modeId | Integer | |
| - shiftNameId | Integer | |
| - toolingId | Integer |
Returns
None
Example
stateInfo = {
'changeType': 'Mode Change',
'assetId': 123,
'modeCode': 'xyz',
'shiftNameId': 1,
'itemId': 456,
'toolingId': 789
}
system.kanoa.quality.schedule.assetChangeEvent(stateInfo)