.backanno : LTspice -- Annotate the Subcircuit Pin Names to the Port Currents

This article details the use of the dot command ".backanno".

The current flowing through the pins of a schematic symbol can be displayed on a graph using ".backanno".

TOC

".backanno" syntax

The ".backanno" syntax is as follows. You can now refer to the current flowing into the pins of the schematic symbol, and after the simulation is complete, left-click on the schematic symbol to display a graph of the current flowing into the pins.

.backanno

After placement of schematic symbols or when simulation is run, a netlist is automatically generated and the ".backanno" syntax is automatically written.

Since there is no need to enter commands in "SPICE Directive", we rarely use ".backanno" consciously.

Examples of ".backanno" command

As an example of ".backanno" simulation, let's check if it is possible to graphically display the current flowing into the power supply in a circuit with only GND connected to the power supply.

Also, we will also check if it is possible to graphically display the current flowing into the resistor in a circuit where the resistor and power supply are connected.

In addition, if you have never created a schematic in LTspice, please refer to the following article.

1

First, let's see if ".backanno" is written to the netlist when the part is placed.

LTspice XVII SPICE Netlist .backanno

Select "voltage" from "Component" in the toolbar and place it on the schematic.

After placement, click "View"-"SPICE Netlist" on the menu bar.

2
LTspice XVII .backanno syntax

If you check the netlist, you will see that ".backanno" is described.

Thus, ".backanno" is automatically entered into the netlist and is rarely used consciously.

3

Next, to check if the current flowing into "V1" can be displayed graphically, connect GND to the voltage source "V1" and set the voltage value to 1[V] and the transient analysis to 10[ms].

LTspice XVII 電圧源 GND transient analysis

Click "Run" on the toolbar to run the simulation.

For a detailed explanation of transient analysis (.tran), please refer to the following article.

4
LTspice XVII V1 current probe

Move the mouse cursor to "V1" to switch to the current probe and click on it.

5
LTspice XVII V1 current graph display

The graph displays the current flowing into "V1". Since nothing is connected to the voltage source "V1", it is 0[A].

6

Since it is difficult to image if the current is 0[A], let's connect 0[Ω] resistor "R1" to "V1" and display the current flowing into "R1" in a graph.

LTspice XVII voltage source resistor GND transient analysis

After creating the schematic, click "Run" on the toolbar.

7
LTspice XVII R1 current probe

Move the mouse cursor to "R1" to switch to the current probe and click on it.

8
LTspice XVII R1 current graph display

The graph displays the current flowing into "R1" and confirms that a current of 1[A] is flowing.

The schematic used for the ".backanno" simulation can be downloaded from the following link.

Let's share this post !
TOC