The invention provides a
nail gun with reliable working. The main gun comprises a gun shell, a trigger, a motor, a first air cylinder, a second air cylinder, a
crank, a connecting rod, a nailing
assembly and a nail conveying
assembly. The second air cylinder is located in the first air cylinder. A first
piston is arranged in the first air cylinder. A second
piston is arranged in the second air cylinder. The connecting rod is connected with the first
piston in a transmission mode. The motor is connected with the
crank in a transmission mode through the transmission mechanism and drives the first piston to move in the first air cylinder in the axial direction through the connecting rod. The
nail gun comprises a triggering switch. A triggering ejecting rod is arranged on the trigger. The transmission mechanism comprises a decelerator, a transmission shaft and a sleeved
cam. A self-locking ejecting rod is arranged between the
cam and the triggering switch. When the
cam moves to a high point, the self-ejecting rod is pushed to trigger the triggering switch and separate the triggering ejecting rod from the triggering switch. When the cam moves to a low point, the self-locking ejecting rod separates from the triggering switch. Through the mechanical structure, the motor is controlled to complete a cyclic action, and working reliability of the main gun is well guaranteed.