Electronic – Error in third-party SPICE subckt of a MOSFET

ltspicemosfetspice

I am simulating my circuit having a DMG1012T N-Channel MOSFET in LTSPICE XVII. My Circuit is given below:

enter image description here

However, after downloading the spice model of the MOSFET from this link and putting it in my schematics, the SPICE Software (LTSPICE XVII) shows this error

enter image description here

I tried to open symbol of mosfet included in standard library and found it's pins have been named D, G and S. I am not sure where is the problem and couldn't resolve it now. Please help.

Best Answer

Change line

.SUBCKT DMG1012T   D=10 G=20 S=30

to

.SUBCKT DMG1012T   10 20 30

Worked for me:

enter image description here