# system.kanoa.tooling.recordProduction(assetId, cycles, tStamp)

Called by the assetTooling Inputs/Cycle Count tag: records machine cycles of an asset that uses tooling as its outfeed, and counts them on its tools, as recordCycles does. The running item gets its parts per cycle on the asset's outfeed counter. Each other item a family tool makes gets its own positions' parts as a co-product (isCoProduct): production of that item, left out of the run, OEE and work order counts. With no tool mounted, the running item gets one part a cycle. Leave the asset's own Inputs/Outfeed Count unbound, or its outfeed is counted twice.

---

### Parameters

**assetId** `Integer`: The asset the cycles ran on<br />

**cycles** `Integer`: Cycles since the last call (0 or more)<br />

**tStamp** `Date`: When they ran. None = now<br />

---

### Returns

**(countEventsWritten, message)**<br />

---

### Example

```python
assetId = 1
cycles = 1
tStamp = system.date.now()
countEventsWritten, message = system.kanoa.tooling.recordProduction(assetId, cycles, tStamp)
```
