This would probably only work in urban areas where you can justify the infrastructure cost. In low-traffic rural areas the gas tax is much more efficient.
Snark aside, it makes more sense just to add an additional tax to semis during the licensing process to go to road maintenance. There's already way too much tracking going on as it is, and then there's the fun of having your plates stolen or whatever getting you stuck with another bill to contest.