That's not precise enough, someone might think it's an ordinary cannon on a rail and it's simply too short for a German word."Schienenkanone" is correct, but even the german wikipedia article calls it a railgun.
Elektromagnetische Schienenkanone.