I imported all sorts of models into Micro-Cap 12.2.0.5 with more or less no issues by using Component Editor/Add Part Wizard.
However, IL300 linear opto model from Vishay (which is quite simple) is throwing back at me the following error: "Name 'IL300' not found in library 'C:\MC12\Library\IL300.lib'." although the name of .subckt in IL300.lib is indeed IL300.
I also tried using Component Editor/Import Wizard and sure enough Micro-Cap simply states that library IL300.lib contains 0 Subckts and 0 Models.
The original Vishay IL300 model:
* Library of Linear Optocoupler IL300
* Copyright VISHAY, Inc. 2019 All Rights Reserved.
** Default K1 = 0.012, K3 = 1, K2 = K3* K1 = 0.012
* Node SYMBOL
* 1 LEDC
* 2 LEDA
* 3 PD1 cathode
* 4 PD1 anode
* 5 PD2 anode
* 6 PD2 cathode
**--------------------------------------------------**
.SUBCKT IL300 LEDC LEDA PD1_C PD1_A NC_1 NC_2 PD2_C PD2_A PARAMS: K1=0.012 K3=1
DLED LEDA 10 DEMIT
VV1 10 LEDC 0
FPD1 PD1_C PD1_A VALUE {K1*I(VV1)}
CPD1 PD1_A PD1_C 12P
RD1 PD1_A PD1_C 15G
FPD2 PD2_C PD2_A VALUE {K3*K1*I(VV1)} ;K2=K3*K1
CPD2 PD2_A PD2_C 12P
RD2 PD2_A PD2_C 15G
Rdummy1 NC_1 0 4G
Rdummy2 NC_2 0 4G
.model DEMIT D IS=1.51E-16 N=1.495822 RS=2.624361 BV=5 IBV=1U
+ CJO=15P VJ=1 M=0.5 EG=1.424 TT=500N
.ENDS
While Micro-Cap usually recognizes appropriate .subckt name, in this case it simply ignores it although the syntax in model appear to be correct.
Does anyone has some idea what could be the reason for Micro-Cap importer to ignore the name of .subckt IL300?