Depends on the map size (the greater the distance you can shoot at the less likely the gun will be spotted) and the time duration of the scenario (it takes a long time to limber and unlimber a gun).
In most CM scenarios a gun is not that useful in attack, unless you have a nice protected keyhole position from which to fire at a particular target (like a building) which ideally can't shoot back effectively.
Hello
I was wondering about the usefulness of canons during an attack.
As far as I know canons are good in defense, you put them concealed here and there and they can be a nasty surprise for your opponent's armor. However I do prefer self propelled canons even in defense in spite of their cost since when a canon is spotted, when it shoots basically, it become a priority target for the ennemy's artillery and your canon is probably going to be destroyed really easily because of it's lack of armor whereas a tank or SPG will survive (generally) and can retreat pretty fast.
My question is about the usefulness of canons in an attack situation, imagine you've got yourself in a situation when you've only access to infantry to attack an ennemy that probably has some armor at his disposal. In this case do you rely solely on your panzerfaust/schreck or do you bring a pak 40 or a pak 40 with a truck ? I guess it would be too slow to bring a canon without a truck and even then you'd better drop the gun not too close to the ennemy and it would take some time to position the gun so... Is there a point to bring a canon as an attacker or even in a meeting engagement ?