Users have complained about not being able to scan documents when the Canon Pixma MG5220 is out of ink. However, there is a way around this issue. All you have to do is reset the ink detection and the scanner will work again.
To reset the ink detection, simple press and hold the Stop button for 5 seconds. The Alarm should clear and allow you to scan once again.