After the empty pallets are stacked, they are conveyed by a roller conveyor to the pallets stacks turning mechanism. The turning mechanism can turn the stacked blocks 90 degrees to ensure that the openings on the blocks can be removed by a forklift, thus replacing manual turning, saving labor, avoiding safety accidents, and protecting the blocks from damage.