system.kanoa.tooling.recordShotCounter(assetId, reading, tStamp)
Called by the assetTooling Inputs/Tool Shot Counter tag: passes the reading to recordToolReading for the asset's output tool. Nothing happens when no tool is mounted.
Parameters
assetId Integer: The asset (the tag's Configuration/assetId)
reading Integer: The tool counter's value
tStamp Date: When it was read. None = now
Returns
(cyclesAdded, message)
Example
assetId = 1
reading = 1
tStamp = system.date.now()
cyclesAdded, message = system.kanoa.tooling.recordShotCounter(assetId, reading, tStamp)