Two cannons on one file: when the front one is blocked the rear one still fires.
The battery
Red's cannon on f4 already looks up the f-file. The second cannon is on c6 and can slide to the same file. Black's general stands on f8 behind its own advisors.
Movesc6f6
c6f6 The rear cannon on f4 fires over the front cannon. The general cannot go to f7 (still on the file) and its advisors fill e8 and f9. If the advisor blocks on f7, the front cannon on f6 simply fires over it. Checkmate.
Two cannons on the same file form a battery. The rear cannon uses the front one as its screen. If the defender interposes a piece, the front cannon uses that piece as a screen instead, so the check cannot be blocked.
The pattern
One cannon stands behind the other on the file of the enemy general.
A square between the front cannon and the general is empty. Putting a piece there only gives the front cannon a screen.