1985 I believe.
Google JD318, go to the Tractordata.com and see the serial numbers listed there.
:welcome: to TBN
Some members' have the service tech manuals that maybe can get you the wiring diagrams.
Having to re-wire, or track down a problem?
How do I adjust and clean the points on my 318 with LX 790 Linamar Motor In It