Machines propelled by thrust or pull against a part alternately anchored to and released from a cable or chain