The man accused of trying to rob an armored Loomis truck last year accepted a plea deal in court Thursday.