The motion device described in the patent relates to a mechanism for securing a container to a compactor. The mechanism is based on a slider crank mechanism with 6 links and 7 joints, which is driven by a cylinder. The degree of freedom of the mechanism is F = 1.