The invention relates to the technical field of
coal quality analysis equipment, and discloses a cover opening and closing device and method. The cover opening and closing device comprises a non-
metal clamping block, a clamping driving part and a cover screwing part. Wherein the non-
metal clamping block is used for clamping a
bottle body. The clamping driving part is connected with the non-
metal clamping block and used for driving the non-metal clamping block to tightly hold or loosen the
bottle body. And the cap screwing part is used for clamping the
bottle cap so as to open or close the
bottle cap. The method comprises the following steps: determining a working stage, wherein the working stage comprises a cover opening stage and a cover closing stage; and according to the
pressure control strategy corresponding to the working stage, a corresponding control instruction is output, so that the bottle body is not damaged while the
bottle cap is screwed. According to the cap opening and closing method, different
pressure control strategies are adopted for the
coal bottle according to different working stages, it is guaranteed that the
bottle cap is effectively screwed, and the
coal bottle is prevented from being damaged by too large applied force.