Complex sentence: In this role their targets would have been personnel entering ditches, and the guns were designed to fire case shot only, with ranges of up to about 500 yards.
Split into simpler sentences: In this role their targets would have been personnel entering ditches. As such the guns were designed to fire case shot only with ranges of up to about 500 yards.