The high-level software of the beam position limits detector system for the Advanced Photon Source upgrade storage ring