Showing results for 
Show  only  | Search instead for 
Did you mean: 

Two problems during scanning (Codes 2, 156, 50 and Codes  2, 140, 21) on Canon G7040


I have Canon G7040 attached to Windows 10 x64 via USB cable. Today I have scanned massive document, contained hundred od pages, via automated loader at the top of my device (they called it ATF, if I am right).


After each several pages (from 3 to 15, it depends) I got one of two errors - with codes Code 2, 156, 50 or with Codes  2, 140, 21. It seems it is connectivitu problem. Canon ScanGear software also is freezed during scanning, and I had to switch off/on the printer. 


Are there any ways how to solve it?





The "automatic loader" is actually the ADF (Automatic Document Feeder)


Your errors appear to indicate a communications issue between your PC and scanner.  It might be the cable, but is more likely a software issue.


You did not say if this is a new issue or something that has happened due to update or upgrade.  System changes, etc.


I would suggest downloading the latest version of the printer drivers from your product.  There are several builds of Windows 10 available, (we don't know what version or build you are running) yours may also be different since your product is intended for the EU.


PIXMA G7040 - Canon Europe (


Uninstalling and reinstaling the printer and its software with restart inbetween might help.  3rd party antivirus and firewall software can also cause communication issues.

Bay Area - CA

~R5 C ( ~RF Trinity, ~RF 100~400, +Canon Control Ring

~6D2 (v1.1.1) Retiring ~EF Trinity, others ~DxO PhotoLab Elite ~Windows10/11 Pro ~EVGA RTX 3080Ti FTW3 Ultra ~ImageClass MF644Cdw ~Pixel6 ~CarePaks Are Worth It



No system changes. I use Windows x10 20H2 OS Build 19042.685, it should be the latest one.


It is a new issue for me, but I scanned 3-5 pages previously. I had never scanned 500 pages before, and may be reason was buffer overfilling (it is my hypothesis, I do not know exactly).


My device is connected my USB cable desktop PC, and Wi-Fi is also activated, because I like possibility to send something from my IPHone for printing. So, my second hypothesis is two connection types (Wi-Fi and USB) can interfere and led to problems.


To tell the truth, I remember similar problem (2,157, 50), see the OLD screenshot. I obtained it when my printer was connected to another device (laptop) via Wi-Fi, but then I reconnected to Desktop via USB and the problem dissapered. Wi-Fi signal is not very strong, 70% usually (measured by the printer itself).



Thanks for the link to drivers, I will reinstall. It will take some time. Then I wiill check scanning it post a reply here.


12/07/2022: New firmware version 1.7.0 is available for EOS R5
11/22/2022: New firmware available for EOS R3, EOS R7 and EOS R10
11/16/2022: We're thrilled to be ranked among the Best Employers for Veterans in 2022 by Forbes.
10/14/2022: Help ensure your autofocus is properly aligned with a Canon Precision Alignment
09/19/2022: New firmware version is available for EOS C70
08/31/2022: New firmware version 1.1.1 is available for RF 70-200mm L IS USM
08/09/2022: New firmware version 1.2.0 is available for CR-N 300
08/09/2022: New firmware version 1.2.0 is available for CR-N 500
07/14/2022: New firmware version 1.0.1 is available for CR-X300
07/01/2022: New firmware version 1.3.0 is available for PowerShot PICK
06/10/2022: Service Notice:UPDATE: Canon Inkjet Printer continuous reboot loop or powering down
06/07/2022: New firmware version 1.3.2 is available for PowerShot G7 X Mark III
06/07/2022: New firmware version 1.0.3 is available for EOS M50 Mark II
05/31/2022: Did someone SAY Badges?
05/26/2022: New firmware version is available for EOS-C500 Mark II
05/26/2022: New firmware version is available for EOS-C300 Mark III
05/10/2022: Keep your Canon gear in optimal condition with a Canon Maintenance Service
05/05/2022: We are excited to announce that we have refreshed the ranking scale within the community!
04/26/2022: New firmware version is available for EOS R5 C
03/23/2022: New firmware version is available for EOS-C70
02/09/2022: Share Your Photos is back!
02/07/2022: New firmware version 1.6.1 is available for EOS-1DX Mark III
01/13/2022: Community Update. We will be retiring the legacy profile avatars on 01/20/2022. Click this link to read more.
01/05/2022: Welcome to CES 2022!