What is the limit in terms of range for custom weapons

I’m trying to get my custom unit to fire extremely long distances however they end up only aiming at the targets past a certain distance. Is there a way to extend this range further? If not what is the set attacking limit? Here is what I have so far:

Screenshot (1376)
Unit settings

Screenshot (1377)
Weapon settings