'========================================== ' This program uses a trip on position to ' reset the position counter every 100000 ' encoder counts. '========================================== Ee=1 'enable encoder P=0 'init pos counter S1=6,0,0 'configure as pause/resume S4=18,0,0 'configure as fault output PG 1 LB su Tp 100000,fj 'on position trip call fj Te=2 'enable trip SL 3000 'continuous slew H E 'program end LB fj P=0 'reset postion counter PR "reset" 'just here to show it's been called Te=2 'reenable position trip RT 'return PG S