F=ma applied to slider crank piston motion

I'm struggling to apply F=ma to the motion of a slider crank, more specifically the piston. I want to find out how much force is nessesary to keep the piston in motion. Essentially, in the mechanism there is acceleration and deceleration, does that mean only at some points in the cycle there is force needed to move the piston?