def swait_setup_incrementer(swait, scan=None, limit=100000):
    """setup swait record as an incrementer"""
    scan = scan or '.1 second'
    swait.reset()
    swait.scan.put('Passive')
    pvname = swait.val.pvname.split('.')[0]
    swait.channels.A.input_pv.put(pvname)
    swait.channels.B.value.put(limit)
    swait.calc.put('(A+1) % B')
    swait.scan.put(scan)
    swait.desc.put('incrementer')
    swait.hints = {'fields': ['val']}
    swait.read_attrs = ['val']
