A unified dislocation equation from lattice statics