Page 230 - Make Your Own PCBs with EAGLE from Schematic Designs to Finished Boards
P. 230

The module could do with symbols for GND and 5 V and then connect all these together with nets.
  Here are the commands for this:


















      When it is all complete, the area of the schematic should look like Figure 10-5.


































  FIGURE 10-5   A 7805 regulator assembly generated by script.



      Save  the  file  in  the .scr  folder,  and  then  you  can  use  it  by  clicking  the  “SCR”  button  and
  selecting the script. You can download the script from the book’s webpage at www.simonmonk.org.

      Scripts are great for simple automation tasks, but they are not able to do looping, branching, or
  other programming tasks. They also do not allow you to find out things about the schematic before
  performing some commands relating to the schematic. For example, you cannot select all the resistors

  and then change their values. To do these more advanced operations, you need to use ULPs.




  User-Language Programs



  The EAGLE ULP is a fully featured programming language with a C-like syntax. If you are used to
  programming, then you will soon get the hang of the syntax. It is beyond the scope of this book to
   225   226   227   228   229   230   231   232   233   234   235