OK, yes - I looked up a manual on your Yanmar, and it does seem there is a tach sensor in the wiring diagram. Typically these are about 1" around and bolted into the flywheel housing - it picks up the teeth on the flywheel.
Here is one from a smaller yanmar, to perhaps give a hint?
Good luck, and let us know what you end up figuring out!
-al-