First go into the Foscam admin tool and set position presets for the various positions you'd like to scan to. Also set them in the order you'd like to scan... preset 1 then preset 2, etc. Next go into
Blue Iris, select the camera that you'd like to pan, go into the camera setup screen, select the PTZ control tab and check the auto cycle patrol and auto reverse boxes. Be sure to set the travel time to allow enough time for the camera to reach each position. Press ok and your camera should begin panning around.