What would be the purpose of this?
I would think artillery would already serve this purpose.
I would think a new defense, like mine fields would be better than this.
Why do you need weapons on fortifications when you can use more effective railguns or artillery instead?