Diode

Description: Draws three types of diodes starting at point Lib_S_Center_X, Lib_S_Center_Y. The basic "Diode", a "Zener" diode, and a "LED". The cathode direction is based on Lib_S_Rot. Zero (0) degrees will draw a diode with the cathode facing right. Angles of 45 | 90 | 135 | 180 | 225 | 270 | 315 will rotate the the cathode "Counter Clockwise".

ParameterDescriptionExample
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
D1
1N4148
Lib_S_RefDes Reference Designator in quotes. Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Type Diode Type in quotes. Select "Diode" || "Zener" || "LED" ⇒
Lib_S_Value Text Value in quotes. Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Label_Pos Position for RefDes/Value in quotes. Select "" || "Norm" || "Flip" ⇒
Lib_S_Rot Rotate Diode "Counter Clockwise",
in quotes.
Select 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315 ⇒
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: Returns the Anode (X,Y) coordinates and Cathode (X,Y) coordinates, in a array.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw D1
D1_Rtn = Diode( Dwg_Obj, "D1", "Diode", "1N4148", "Norm", 0, D1_Center_X, D1_Center_Y );
D1_A_X = D1_Rtn[0]; D1_A_Y = D1_Rtn[1]; D1_K_X = D1_Rtn[2]; D1_K_Y = D1_Rtn[3];


Zener Diode

Description: Draws three types of diodes starting at point Lib_S_Center_X, Lib_S_Center_Y. The basic "Diode", a "Zener" diode, and a "LED". The cathode direction is based on Lib_S_Rot. Zero (0) degrees will draw a diode with the cathode facing right. Angles of 90 | 180 | 270 will rotate the the cathode "Counter Clockwise".

ParameterDescriptionExample
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
ZD1
12VZ
Lib_S_RefDes Reference Designator in quotes. Select from the dropdown menu.
Lib_S_Value Text Value in quotes. Select from the dropdown menu.
Lib_S_Label_Pos Position for RefDes/Value in quotes. Select "" || "Norm" || "Flip" ⇒
Lib_S_Rot Rotate Diode "Counter Clockwise",
in quotes.
Select 0 | 90 | 180 | 270 ⇒
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: Returns the Anode (X,Y) coordinates and Cathode (X,Y) coordinates, in a array.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw ZD1
ZD1_Rtn = Zener( Dwg_Obj, "ZD1", "12VZ", "Norm", 0, ZD1_Center_X, ZD1_Center_Y );
ZD1_A_X = ZD1_Rtn[0]; ZD1_A_Y = ZD1_Rtn[1]; ZD1_K_X = ZD1_Rtn[2]; ZD1_K_Y = ZD1_Rtn[3];


Light Emitting Diode (LED)

Description: Draws three types of diodes starting at point Lib_S_Center_X, Lib_S_Center_Y. The basic "Diode", a "Zener" diode, and a "LED". The cathode direction is based on Lib_S_Rot. Zero (0) degrees will draw a diode with the cathode facing right. Angles of 90 | 180 | 270 will rotate the the cathode "Counter Clockwise".

ParameterDescriptionExample
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
D1
1N4148
Lib_S_RefDes Reference Designator in quotes. Select from the dropdown menu.
Lib_S_Value Text Value in quotes. Select from the dropdown menu.
Lib_S_Label_Pos Position for RefDes/Value in quotes. Select "" || "Norm" || "Flip" ⇒
Lib_S_Rot Rotate Diode "Counter Clockwise",
in quotes.
Select 0 | 90 | 180 | 270 ⇒
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: Returns the Anode (X,Y) coordinates and Cathode (X,Y) coordinates, in a array.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw D1
D1_Rtn = LED( Dwg_Obj, "D1", "1N4148", "Norm", 0, D1_Center_X, D1_Center_Y );
D1_A_X = D1_Rtn[0]; D1_A_Y = D1_Rtn[1]; D1_K_X = D1_Rtn[2]; D1_K_Y = D1_Rtn[3];


Variable Capacitance Diode (VCD)

Description: Draws a Variable Capacitance Diode starting at point Lib_S_Center_X, Lib_S_Center_Y. The cathode direction is based on Lib_S_Rot. Zero (0) degrees will draw a diode with the cathode facing right. Angles of 90 | 180 | 270 will rotate the the cathode "Counter Clockwise".

ParameterDescriptionExample
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
VCD1
BB105A
Lib_S_RefDes Reference Designator in quotes. Select from the dropdown menu.
Lib_S_Value Text Value in quotes. Select from the dropdown menu.
Lib_S_Label_Pos Position for RefDes/Value in quotes. Select "" || "Norm" || "Flip" ⇒
Lib_S_Rot Rotate Diode "Counter Clockwise",
in quotes.
Select 0 | 90 | 180 | 270 ⇒
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: Returns the Anode (X,Y) coordinates and Cathode (X,Y) coordinates, in a array.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw VCD1
VCD1_Rtn = VCD( Dwg_Obj, "VCD1", "BB105A", "Norm", 0, VCD1_Center_X, VCD1_Center_Y );
VCD1_A_X = VCD1_Rtn[0]; VCD1_A_Y = VCD1_Rtn[1]; VCD1_K_X = VCD1_Rtn[2]; VCD1_K_Y = VCD1_Rtn[3];


Silicon Controlled Rectifier (SCR)

Description: Draws three types of diodes starting at point Lib_S_Center_X, Lib_S_Center_Y. The basic "Diode", a "SCR", and a "LED". The cathode direction is based on Lib_S_Rot. Zero (0) degrees will draw a diode with the cathode facing right. Angles of 90 | 180 | 270 will rotate the the cathode "Counter Clockwise".

ParameterDescriptionExample
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
SCR1
BRY55
Lib_S_RefDes Reference Designator in quotes. Select from the dropdown menu.
Lib_S_Value Text Value in quotes. Select from the dropdown menu.
Lib_S_Label_Pos Position for RefDes/Value in quotes. Select "" || "Norm" || "Flip" ⇒
Lib_S_Rot Rotate Diode "Counter Clockwise",
in quotes.
Select 0 | 90 | 180 | 270 ⇒
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: Returns the Anode (X,Y) coordinates and Cathode (X,Y) coordinates, in a array.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw SCR1
SCR1_Rtn = SCR( Dwg_Obj, "SCR1", "BRY55", "Norm", 0, SCR1_Center_X, SCR1_Center_Y );
SCR1_A_X = SCR1_Rtn[0]; SCR1_A_Y = SCR1_Rtn[1]; SCR1_K_X = SCR1_Rtn[2]; SCR1_K_Y = SCR1_Rtn[3]; SCR1_G_X = SCR1_Rtn[4]; SCR1_G_Y = SCR1_Rtn[5];


Unijunction Tranaistor (UJT)

Description: Draws three types of diodes starting at point Lib_S_Center_X, Lib_S_Center_Y. The basic "Diode", a "SCR", and a "LED". The cathode direction is based on Lib_S_Rot. Zero (0) degrees will draw a diode with the cathode facing right. Angles of 90 | 180 | 270 will rotate the the cathode "Counter Clockwise".

ParameterDescriptionExample
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
Q1
1N2646
Lib_S_RefDes Reference Designator in quotes. Select from the dropdown menu.
Lib_S_Value Text Value in quotes. Select from the dropdown menu.
Lib_S_Label_Pos Position for RefDes/Value in quotes. Select "" || "Norm" || "Flip" ⇒
Lib_S_Rot Rotate Diode "Counter Clockwise",
in quotes.
Select 0 | 90 | 180 | 270 ⇒
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: Returns the Anode (X,Y) coordinates and Cathode (X,Y) coordinates, in a array.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw Q1
Q1_Rtn = UJT( Dwg_Obj, "Q1", "1N2646", "Norm", 0, Q1_Center_X, Q1_Center_Y );
Q1_E_X = Q1_Rtn[0]; Q1_E_Y = Q1_Rtn[1]; Q1_B1_X = Q1_Rtn[2]; Q1_B1_Y = Q1_Rtn[3]; Q1_B2_X = Q1_Rtn[4]; Q1_B2_Y = Q1_Rtn[5];


Bridge Rectifier

Description: Draws three types of diodes starting at point Lib_S_Center_X, Lib_S_Center_Y. The basic "Diode", a "SCR", and a "LED". The cathode direction is based on Lib_S_Rot. Zero (0) degrees will draw a diode with the cathode facing right. Angles of 90 | 180 | 270 will rotate the the cathode "Counter Clockwise".

ParameterDescriptionExample
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
DB1
1N4001x4
AC
AC
Lib_S_RefDes Reference Designator in quotes. Select from the dropdown menu.
Lib_S_Value Text Value in quotes. Select from the dropdown menu.
|| Other:
Lib_S_Label_Pos Position for RefDes/Value in quotes. Select "" || "Norm" || "Flip" ⇒
Lib_S_Rot Rotate Bridge "Counter Clockwise",
in quotes.
Select 0 | 90 | 180 | 270 ⇒
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: Returns the Anode (X,Y) coordinates and Cathode (X,Y) coordinates, in a array.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw DB1
DB1_Rtn = Bridge( Dwg_Obj, "DB1", "1N4001x4", "Norm", 0, DB1_Center_X, DB1_Center_Y );
DB1_P_X = DB1_Rtn[0]; DB1_P_Y = DB1_Rtn[1]; DB1_N_X = DB1_Rtn[2]; DB1_N_Y = DB1_Rtn[3];
DB1_AC1_X = DB1_Rtn[4]; DB1_AC1_Y = DB1_Rtn[5]; DB1_AC2_X = DB1_Rtn[6]; DB1_AC2_Y = DB1_Rtn[7];


Transistor

Description: Draws a Transistor is centered at point Lib_S_Center_X, Lib_S_Center_Y. The appearance can then be adjusted using the Lib_S_SwapEC, Lib_S_Pos, and Lib_S_Rot parameters listed in the table below.

ParameterDescriptionExample
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
Q4
2N1234
Lib_S_Type Transistor Type, in quotes. Select "NPN" or "PNP" ⇒
Lib_S_RefDes Transistor Reference Designator, in quotes. Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Name Transistor Name, in quotes. Select from the dropdown menu or enter your own.
|| Other:
Lib_S_SwapEC Swap the Emitter and Collector. Select "None" || "SwapEC" ⇒
Lib_S_Pos RefDes/Type Position, in quotes. "None" or "Flip" ⇒
Lib_S_Rot Rotate Body Counter Clockwise around center. 0 = Base Left, 90 = Base Down,
180 = Base Right, 270 = Base Up ⇒
Lib_S_Center_X Transistor Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Transistor Center Y Position

Return: Returns the Base (X,Y) coordinates, Emitter (X,Y) coordinates and Collector (X,Y) coordinates, in a array.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw Q4
Q4_Rtn = Transistor( Dwg_Obj, "NPN", "Q4", "2N1234", "None", "None", 0, Q4_Center_X, Q4_Center_Y );
Q4B_X = Q4_Rtn[0]; Q4B_Y = Q4_Rtn[1]; Q4E_X = Q4_Rtn[2]; Q4E_Y = Q4_Rtn[3]; Q4C_X = Q4_Rtn[4]; Q4C_Y = Q4_Rtn[5];


Darlington

Description: Darlington Transistor: This device is designed for applications reguiring extremely high current gain at currents to 1mA.
hFE (DC Current Gain) = 30,000, IC = 20mA, VCE = 2V
fT (Current Gain Bandwidth Product) = 200 MHZ, (2) IC=10mA, VCE=5V, f=100MHz

Note: PNP Darlington not implemented.

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
MPSA12
Q1
Lib_S_RefDes Reference Designator: || Other:
Lib_S_Dir Display Direction.
Lib_S_Label || Other:
Lib_S_Center_X Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y

Return: For the "Opto_Isolator", the X/Y coordinates for the Diode (Anode and Cathode) and Transistor (Base, Emitter, and Cathode) are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw Q1
Q1_Ret = Darlington( Dwg_Obj, "Q1", "Norm", "MPSA12", Q1_Center_X, Q1_Center_Y );
Q1_B_X = Q1_Ret[0]; Q1_B_Y = Q1_Ret[1]; Q1_E_X = Q1_Ret[2]; Q1_E_Y = Q1_Ret[3]; Q1_C_X = Q1_Ret[4]; Q1_C_Y = Q1_Ret[5];


Opto Isolator

Description: Optocoupler, Phototransistor Output, with Base Connection. The 4N25 family is an industry standard single channel phototransistor coupler. This family includes the 4N25, 4N26, 4N27, 4N28. Each optocoupler consists of gallium arsenide infrared LED and a silicon NPN phototransistor.

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
1
2
4
5
6
4N25
U1
Lib_S_RefDes Reference Designator: || Other:
Lib_S_Dir Display Direction.
Lib_S_DType & Lib_S_QType Diode Display Type:
Transistor Display Type:
Lib_S_Label "4N25" to "4N28"
Lib_S_Center_X - Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y - Symbol Center Y Position

Return: For the "Opto_Isolator", the X/Y coordinates for the Diode (Anode and Cathode) and Transistor (Base, Emitter, and Cathode) are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw U1
U1_Ret = Opto_Isolator( Dwg_Obj, "U1", "QtoD", "A", "A", "4N25", U1_Center_X, U1_Center_Y );
U1_A_X = U1_Ret[0]; U1_A_Y = U1_Ret[1]; U1_K_X = U1_Ret[2]; U1_K_Y = U1_Ret[3]; U1_B_X = U1_Ret[4]; U1_B_Y = U1_Ret[5];
U1_E_X = U1_Ret[6]; U1_E_Y = U1_Ret[7]; U1_C_X = U1_Ret[8]; U1_C_Y = U1_Ret[9];


Opto Isolator (Darlington Output)

Description: Optocoupler, Phototransistor Output, with Base Connection. The 4N25 family is an industry standard single channel phototransistor coupler. This family includes the 4N25, 4N26, 4N27, 4N28. Each optocoupler consists of gallium arsenide infrared LED and a silicon NPN phototransistor.

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
1
2
4
5
6
4N29
U5
Lib_S_RefDes Reference Designator: || Other:
Lib_S_Dir Display Direction.
Lib_S_DType & Lib_S_QType Diode Display Type:
Transistor Display Type:
Lib_S_Label "4N29" to "4N33"
Lib_S_Center_X - Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y - Symbol Center Y Position

Return: For the "Opto_Isolator", the X/Y coordinates for the Diode (Anode and Cathode) and Transistor (Base, Emitter, and Cathode) are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw U5
U5_Ret = Opto_Darlington( Dwg_Obj, "U5", "QtoD", "A", "A", "4N29", U5_Center_X, U5_Center_Y );
U5_A_X = U5_Ret[0]; U5_A_Y = U5_Ret[1]; U5_K_X = U5_Ret[2]; U5_K_Y = U5_Ret[3]; U5_B_X = U5_Ret[4]; U5_B_Y = U5_Ret[5];
U5_E_X = U5_Ret[6]; U5_E_Y = U5_Ret[7]; U5_C_X = U5_Ret[8]; U5_C_Y = U5_Ret[9];


JFET

Description: Draws a JFET starting at point Lib_S_Start_X, Lib_S_Start_Y is also the Gate XY position. N-Channel JFETs have a arrow pointing inward. P-Channel JFETs have the arrow reversed. The symbol returns three XY positions of the Gate, Source, and Drain (in that order). Lib_S_Rot will rotate the symbol counter-clockwise 0, 90, 180, or 270 degrees ("R0", "R90", "R180", or "R270"). Lib_S_Mir swaps the Source and Drain labels, depending on Lib_S_Rot.

Parameter Description Example
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
G
D
S
Q1
MPF-102
Lib_S_Type JFET Type ("N" or "P") in quotes.
Lib_S_Rot Rotate Counter-Clock wise - ("R0", "R90", "R180", or "R270") in quotes.
Lib_S_Mir Mirror ("Mir" or "None") in quotes.
Lib_S_JFET_Label JFET Label ("Q1", "Q2", etc.) in quotes.
Lib_S_JFET_Value JFET Value ("MPF-102", "2N3819", etc.) in quotes.
Lib_S_Lab_Val_Pos JFET Label/Value Position ("default" or "flip") in quotes.
Lib_S_Start_X JFET Base Start X Position Show/Hide Pins - Mark the I/O
pins with a green dot.   
Lib_S_Start_Y JFET Base Start Y Position

Return: The draw function will return the end X and Y values for the JFET's Gate, Source, and Drain symbol, in a array.

Usage: Set the start X and Y values for the symbol. Change all of the variable prefixes, e.g. Q1 to Q2, for each instance of the symbol. This keeps the variables unique for later use. The items selected above are directly reflected in the sample code.

// Draw Q1
Q1_Rtn = JFET( JFET_Sample, "N", "R0", "None", "Q1", "MPF-102", "default", Q1_Start_X, Q1_Start_Y );
Q1G_X = Q1_Rtn[0]; Q1G_Y = Q1_Rtn[1]; Q1S_X = Q1_Rtn[2]; Q1S_Y = Q1_Rtn[3]; Q1D_X = Q1_Rtn[4]; Q1D_Y = Q1_Rtn[5];


MOSFET

Description: Draws a Single Gate MOSFET starting at point Lib_S_Start_X, Lib_S_Start_Y is also the Gate XY position. N-Channel MOSFETs have a arrow pointing inward. P-Channel MOSFETs have the arrow reversed. The symbol returns three XY positions of the Gate, Source, and Drain (in that order). Lib_S_Rot will rotate the symbol counter-clockwise 0, 90, 180, or 270 degrees ("R0", "R90", "R180", or "R270"). Lib_S_Mir swaps the Source and Drain labels, depending on Lib_S_Rot.

Parameter Description Example
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
G
C
D
S
Q1
3N128
Lib_S_Type MOSFET Type ("N" or "P") in quotes.
Lib_S_Rot Rotate Counter-Clock wise - ("R0", "R90", "R180", or "R270") in quotes.
Lib_S_Mir Mirror ("Mir" or "None") in quotes. Flip the Source and Drain.
Lib_S_MOSFET_Label Label ("Q1", "Q2", etc.) in quotes.
Lib_S_MOSFET_Value Value ("J510", etc.) in quotes.
Lib_S_Lab_Val_Pos Label/Value Position ("default" or "flip") in quotes.
Lib_S_Start_X Base Start X Position Show/Hide Pins - Mark the I/O pins
with a green dot.   
Lib_S_Start_Y Base Start Y Position

Return: The draw function will return the end X and Y values for the MOSFET's Gate, Source, and Drain symbol, in a array.

Usage: Set the start X and Y values for the symbol. Change all of the variable prefixes, e.g. Q1 to Q2, for each instance of the symbol. This keeps the variables unique for later use.

// Draw Q1
Q1_Rtn = MOSFET( MOSFET_Sample, "N", "R0", "None", "Q1", "3N128", "default", Q1_Start_X, Q1_Start_Y );
Q1G_X = Q1_Rtn[0]; Q1G_Y = Q1_Rtn[1]; Q1S_X = Q1_Rtn[2]; Q1S_Y = Q1_Rtn[3];
Q1D_X = Q1_Rtn[4]; Q1D_Y = Q1_Rtn[5]; Q1C_X = Q1_Rtn[6]; Q1C_Y = Q1_Rtn[7];


MOSFET, Dual Gate

Description: Draws a Dual Gate MOSFET starting at point Lib_S_Start_X, Lib_S_Start_Y is also the Gate XY position. N-Channel Dual Gate MOSFETs have a arrow pointing inward. P-Channel Dual Gate MOSFETs have the arrow reversed. The symbol returns three XY positions of the Gate, Source, and Drain (in that order). Lib_S_Rot will rotate the symbol counter-clockwise 0, 90, 180, or 270 degrees ("R0", "R90", "R180", or "R270"). Lib_S_Mir swaps the Source and Drain labels, depending on Lib_S_Rot.

Parameter Description Example
Lib_S_Dwg_Obj jsGraphics Object that points to the drawing.
G1
G2
S
D
Q1
40673
Lib_S_Type Dual Gate MOSFET Type ("N" or "P") in quotes.
Lib_S_Rot Rotate Counter-Clock wise - ("R0", "R90", "R180", or "R270") in quotes.
Lib_S_Mir Mirror ("Mir" or "None") in quotes.
Lib_S_MOSFET_Label MOSFET Label ("Q1", "Q2", etc.) in quotes.
Lib_S_MOSFET_Value Dual Gate MOSFET Value ("40673", etc.) in quotes.
Lib_S_Lab_Val_Pos Dual Gate MOSFET Label/Value Position ("default" or "flip") in quotes.
Lib_S_Start_X Dual Gate MOSFET Base Start X Position Show/Hide Pins - Mark the I/O pins
with a green dot.   
Lib_S_Start_Y Dual Gate MOSFET Base Start Y Position

Return: The draw function will return the end X and Y values for the MOSFET's Gate (G1 and G2), Source, and Drain symbol, in a array.

Usage: Set the start X and Y values for the symbol. Change all of the variable prefixes, e.g. Q1 to Q2, for each instance of the symbol. This keeps the variables unique for later use.

// Draw Q1
Q1_Rtn = MOSFET_2G( Lib_S_Dwg_Obj, "N", "R270", "None", "Q1", "40673", "default", Q1_Start_X, Q1_Start_Y );
Q1G1_X = Q1_Rtn[0]; Q1G1_Y = Q1_Rtn[1]; Q1G2_X = Q1_Rtn[2]; Q1G2_Y = Q1_Rtn[3]; Q1S_X = Q1_Rtn[4]; Q1S_Y = Q1_Rtn[5]; Q1D_X = Q1_Rtrn[6]; Q1D_Y = Q1_Rtn[7];


LM3900 Quad Norton Op-Amp

Description: These devices consist of four independent, high gain frequency-compensated Norton operational amplifiers that were desi also possible. The low supply current drain is essentially independent of the magnitude of the supply voltage. These devices provide wide bandwidth and large output voltage swing.

gned specifically to operate from a single supply over a wide range of voltages. Operation from split supplies is
ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
U5-A
LM3900
+
1
6
5
14
7
Lib_S_RefDes Reference Designator: || Other:
Lib_S_Dir Display Direction.
Lib_S_Sect Section Type:
"w/PG" = With Power and Ground
Lib_S_InType Normal = + Top, - Bot; Reverse = - Top, + Bot.
Lib_S_Center_X - Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y - Symbol Center Y Position

Return: For the "LM3900", the X/Y coordinates for the each section are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw U5
var U5_Ret = LM3900( Dwg_Obj, "U5", "Right", "APG", "Normal", U5_Center_X, U5_Center_Y );
U5A_N_X = U5_Ret[0]; U5A_N_Y = U5_Ret[1]; U5A_P_X = U5_Ret[2]; U5A_P_Y = U5_Ret[3]; U5A_O_X = U5_Ret[4]; U5A_O_Y = U5_Ret[5];
U5_VP_X = U5_Ret[6]; U5_VP_Y = U5_Ret[7]; U5_VN_X = U5_Ret[8]; U5_VN_Y = U5_Ret[9];


CA3046 Transistor Array

Description: This device contains a Differential Transistor Pair plus three independent transistors. On of the independend transistors has the emitter tied to the substrate.

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
U1-A
CA3046
1
2
3
4
5
Lib_S_RefDes Reference Designator: || Other:
Lib_S_Sect Section Type:
A-Diff = Diff Pair; D = Emitter tied to substrate
Lib_S_Rot Rotation Angle For B, C, and D Only -
Lib_S_Center_X - Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y - Symbol Center Y Position

Return: For the "LM3900", the X/Y coordinates for the each section are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw U1
U1A_Rtn = CA3046( Dwg_Obj, "U1", "A-Norm", "0", U1_Center_X, U1_Center_Y );
U1A_C1_X = U1A_Ret[0]; U1A_C1_Y = U1A_Ret[1]; U1A_B1_X = U1A_Ret[2]; U1A_B1_Y = U1A_Ret[3];
U1A_E_X = U1A_Ret[4]; U1A_E_Y = U1A_Ret[5]; U1A_B2_X = U1A_Ret[6]; U1A_B2_Y = U1A_Ret[7];
U1A_C2_X = U1A_Ret[8]; U1A_C2_Y = U1A_Ret[9];