Palletizer had a fault. EE went to see what fault was. Bags jammed in layer forming area. EE entered palletizer to clear jam. Didn't lock out palletizer. Load plates in open position. EE stood on top of pallet being loaded. Load plates closed on EE's legs. EE was taken to ER, given first aid treatment/diagnostic procedure. Diagnosed contusion to legs. Put on restrictions