ulp5110_en.pdf
(
892 KB
)
Pobierz
651879622 UNPDF
EAGLE
E
ASILY
A
PPLICABLE
G
RAPHICAL
L
AYOUT
E
DITOR
User Language
Version 5.11.0
®
Copyright © 2010 CadSoft
All rights reserved
EAGLE User Language
Version 5.11
Table Of Contents
User Language.........................................................................................................13
Writing a ULP..........................................................................................................13
Executing a ULP.......................................................................................................14
Syntax......................................................................................................................14
Whitespace..............................................................................................................14
Comments................................................................................................................15
Directives.................................................................................................................15
#include..................................................................................................................15
Portability note..................................................................................................16
#require...................................................................................................................16
#usage.....................................................................................................................16
Example.............................................................................................................17
Keywords.................................................................................................................17
Identifiers................................................................................................................17
Constants.................................................................................................................18
Character Constants.................................................................................................18
Integer Constants.....................................................................................................18
Examples...........................................................................................................18
Real Constants.........................................................................................................18
Examples...........................................................................................................19
String Constants......................................................................................................19
Escape Sequences....................................................................................................19
Examples...........................................................................................................20
Punctuators..............................................................................................................20
Brackets...................................................................................................................20
Parentheses..............................................................................................................21
Braces......................................................................................................................21
Comma....................................................................................................................21
Semicolon................................................................................................................21
Colon.......................................................................................................................22
Equal Sign................................................................................................................22
Data Types...............................................................................................................22
char..........................................................................................................................22
int............................................................................................................................22
real...........................................................................................................................23
string........................................................................................................................23
Implementation details......................................................................................23
Type Conversions.....................................................................................................24
Page 2 of 146
EAGLE User Language
Version 5.11
Typecast...................................................................................................................24
Object Types.............................................................................................................24
UL_ARC...................................................................................................................27
Constants...........................................................................................................27
Note...................................................................................................................27
Example.............................................................................................................27
UL_AREA.................................................................................................................27
Example.............................................................................................................28
UL_ATTRIBUTE........................................................................................................28
Constants...........................................................................................................28
Note...................................................................................................................28
Example.............................................................................................................29
UL_BOARD..............................................................................................................29
Note...................................................................................................................29
Example.............................................................................................................30
UL_BUS....................................................................................................................30
Constants...........................................................................................................30
Example.............................................................................................................30
UL_CIRCLE..............................................................................................................30
Example.............................................................................................................30
UL_CLASS................................................................................................................30
Note...................................................................................................................31
Example.............................................................................................................31
UL_CONTACT..........................................................................................................31
Constants...........................................................................................................31
Note...................................................................................................................31
Example.............................................................................................................32
UL_CONTACTREF....................................................................................................32
Example.............................................................................................................32
UL_DEVICE..............................................................................................................32
Constants...........................................................................................................32
Note...................................................................................................................33
Examples...........................................................................................................33
UL_DEVICESET........................................................................................................34
Constants...........................................................................................................34
Note...................................................................................................................34
Example.............................................................................................................34
UL_ELEMENT..........................................................................................................34
Constants...........................................................................................................35
Note...................................................................................................................35
Examples...........................................................................................................35
UL_FRAME...............................................................................................................36
Constants...........................................................................................................36
Page 3 of 146
EAGLE User Language
Version 5.11
Note...................................................................................................................36
Example.............................................................................................................36
UL_GATE..................................................................................................................37
Constants...........................................................................................................37
Note...................................................................................................................37
Example.............................................................................................................37
UL_GRID..................................................................................................................37
Constants...........................................................................................................38
Note...................................................................................................................38
Example.............................................................................................................38
UL_HOLE.................................................................................................................38
Note...................................................................................................................38
Example.............................................................................................................38
UL_INSTANCE..........................................................................................................38
Constants...........................................................................................................39
Note...................................................................................................................39
Example.............................................................................................................40
UL_JUNCTION.........................................................................................................40
Example.............................................................................................................40
UL_LABEL................................................................................................................40
Note...................................................................................................................40
Example.............................................................................................................41
UL_LAYER................................................................................................................41
Constants...........................................................................................................41
Example.............................................................................................................42
UL_LIBRARY............................................................................................................42
Constants...........................................................................................................43
Note...................................................................................................................43
Example.............................................................................................................43
UL_NET....................................................................................................................43
Constants...........................................................................................................44
Note...................................................................................................................44
Example.............................................................................................................44
UL_PACKAGE...........................................................................................................45
Constants...........................................................................................................45
Note...................................................................................................................45
Example.............................................................................................................45
UL_PAD....................................................................................................................46
Constants...........................................................................................................46
Note...................................................................................................................46
Example.............................................................................................................47
UL_PART..................................................................................................................47
Constants...........................................................................................................48
Note...................................................................................................................48
Page 4 of 146
EAGLE User Language
Version 5.11
Example.............................................................................................................48
UL_PIN.....................................................................................................................48
Constants...........................................................................................................49
Note...................................................................................................................49
Example.............................................................................................................50
UL_PINREF..............................................................................................................50
Example.............................................................................................................50
UL_POLYGON..........................................................................................................51
Constants...........................................................................................................51
Note...................................................................................................................51
Polygon width....................................................................................................51
Partial polygons.................................................................................................52
Example.............................................................................................................52
UL_RECTANGLE......................................................................................................53
Example.............................................................................................................53
UL_SCHEMATIC.......................................................................................................53
Note...................................................................................................................54
Example.............................................................................................................54
UL_SEGMENT..........................................................................................................54
Note...................................................................................................................54
Example.............................................................................................................54
UL_SHEET...............................................................................................................55
Example.............................................................................................................55
UL_SIGNAL..............................................................................................................55
Constants...........................................................................................................55
Example.............................................................................................................55
UL_SMD...................................................................................................................56
Constants...........................................................................................................56
Note...................................................................................................................56
Example.............................................................................................................57
UL_SYMBOL............................................................................................................57
Constants...........................................................................................................57
Note...................................................................................................................57
Example.............................................................................................................57
UL_TEXT..................................................................................................................57
Constants...........................................................................................................58
Note...................................................................................................................58
Example.............................................................................................................58
UL_VIA.....................................................................................................................58
Constants...........................................................................................................58
Note...................................................................................................................59
Example.............................................................................................................59
UL_WIRE.................................................................................................................59
Constants...........................................................................................................60
Page 5 of 146
Plik z chomika:
olek210
Inne pliki z tego folderu:
veic_pcb_layout_tutorial_010709.doc
(6012 KB)
manual_zh.pdf
(4406 KB)
utilizacao_do_eagle.doc
(3687 KB)
eagle_pcb_v5.x.pdf
(2297 KB)
eagle416r2_help_en.pdf
(1367 KB)
Inne foldery tego chomika:
Libraries
Microsps
Misc
Projects
ULP
Zgłoś jeśli
naruszono regulamin