Employee was entering the excavator & had his left and right hands on the handrails, his right foot on the track and his left foot on the bottom step. He removed his left foot to place it on the track; his right foot slipped in the process and he was hanging from his arms. Dislocated shoulder pulling himself into machine.