Input carrier of planetary drive is orange crank rotating regularly.
Yellow satellite gear of tooth number Z2 and yellow slotted bar are fixed together. Pink slider oscilates around fixed axis.
Blue internal gear of tooth number Z1 rotates irregularly.
If Z1 = n.Z2, the blue gear turns 1 revolution during n revolutions of the input crank. For this case n = 2.