The blue gear with external and internal teeth is driving. The orange gear oscillates with dwell. The dwell period is varied depending the tooth numbers of the blue gear.
The oscillation forward and backward angles may be different depending on numbers of external and internal teeth and stop positions of the orange gear.