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 Macro, ~RF 100~400, ~RF 100~500, +RF 1.4x TC, +Canon Control Ring, BG-R10

~DxO PhotoLab Elite ~DaVinci Resolve ~Windows11 Pro ~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.


08/18/2023: Canon EOS R5 C training series is released.

07/31/2023: New firmware updates are available.

CR-N700 - Version 1.2.0

CR-N500 - Version 1.3.0

CR-N300 - Version 1.3.0

CR-X300 - Version 1.1.0

06/30/2023: New firmware version is available for EOS-R5 C

05/31/2023: New firmware updates are available.

EOS R6 Mark II - Version 1.1.2

EOS R6 - Version 1.8.2

EOS R7 - Version 1.3.1

05/18/2023: New firmware updates are available.

EOS Rebel T100 - Version 1.1.0

EOS Rebel T7 - Version 1.2.0

EOS 5D Mark IV - Version 1.4.0

EOS 6D Mark II - Version 1.2.0

PowerShot Elph 360HS - Version

PowerShot SX420 IS - Version

PowerShot 620 HS - Version

PowerShot SX720 HS - Version

PowerShot G1X Mark III - Version

PowerShot G7X Mark II - Version

PowerShot G9X Mark II - Version


04/20/2023: New firmware version 1.4.1 is available for EOS R3

03/30/2023: New firmware updates are available.

EOS R5 - Version 1.8.1

EOS 1DX Mark III- Version 1.7.1

Speedlite EL-1 - Version 1.0.2

03/30/2023: Product Advisory for EF50 F1.2 L USM

03/30/2023: Product Advisory for EOS R10

02/24/2023: We've updated Share Your Photos

2/07/2023: New product announcements!

EOS R8 EOS R50RF-S55-210mm F5-7.1 IS STMRF24-50mm F4.5-6.3 IS STMRF15-30mm F4.5-6.3 IS STM
01/09/2023: Help ensure your autofocus is properly aligned with a Canon Precision Alignment
01/03/2023: Welcome to CES 2023!
12/08/2022: New firmware version is available for EOS C70
12/07/2022: New firmware version 1.7.0 is available for EOS R5