Coded preliminary hammer drive