Professional Documents
Culture Documents
1 Introduccion A DPL 2
1 Introduccion A DPL 2
net/publication/354653309
CITATIONS READS
0 2,256
1 author:
Francisco Gonzalez-Longatt
University of South-Eastern Norway
408 PUBLICATIONS 3,010 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Smart Multi-Terminal DC micro-grids for autonomous Zero-Net Energy Buildings View project
All content following this page was uploaded by Francisco Gonzalez-Longatt on 17 September 2021.
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
Programming
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
Language (DPL)
Prof. Francisco M. Gonzalez-Longatt, PhD
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 1/186
)
Programación usando
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
DigSILENT Programming
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
Language (DPL)
Copyright Notice
The documents are created by Francisco M. Gonzalez-Longatt and contain copyrighted material, trademarks, and other proprietary information. All rights reserved. No part of the documents may be reproduced or
copied in any form or by any means - such as graphic, electronic, or mechanical, including photocopying, taping, or information storage and retrieval systems without the prior written permission of Francisco M.
Gonzalez-Longatt . The use of these documents by you, or anyone else authorized by you, is prohibited unless specifically permitted by Francisco M. Gonzalez-Longatt. You may not alter or remove any
trademark, copyright or other notice from the documents. The documents are provided “as is” and Francisco M. Gonzalez-Longatt shall not have any responsibility or liability whatsoever for the results of use of the
documents by you.
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 2/186
)
1
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
Capítulo 1
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
Copyright Notice
The documents are created by Francisco M. Gonzalez-Longatt and contain copyrighted material, trademarks, and other proprietary information. All rights reserved. No part of the documents may be reproduced or
copied in any form or by any means - such as graphic, electronic, or mechanical, including photocopying, taping, or information storage and retrieval systems without the prior written permission of Francisco M.
Gonzalez-Longatt . The use of these documents by you, or anyone else authorized by you, is prohibited unless specifically permitted by Francisco M. Gonzalez-Longatt. You may not alter or remove any
trademark, copyright or other notice from the documents. The documents are provided “as is” and Francisco M. Gonzalez-Longatt shall not have any responsibility or liability whatsoever for the results of use of the
documents by you.
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 3/186
)
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
Introducción a DPL
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
2
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
6
5
) )
•
•
•
•
•
6/186
5/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
3
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
8
7
) )
1. Lenguaje
DIgSILENT - DPL
Introducción a DPL (3/3)
de Programación en
8/186
7/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
4
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
10
) )
•
•
•
•
•
•
•
•
9/186
10/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
5
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
12
11
) )
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
12/186
11/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
6
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
14
13
) )
•
•
14/186
13/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
7
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
16
15
) )
•
•
•
•
•
16/186
15/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
8
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
18
17
) )
•
•
•
•
•
18/186
17/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
9
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
20
19
) )
•
•
•
•
•
•
20/186
19/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
10
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
22
21
) )
•
•
•
•
•
Remoto
22/186
21/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
11
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
24
23
) )
•
•
24/186
23/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
12
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
26
25
) )
•
•
•
• Verde: Información
26/186
25/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
13
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
28
27
) )
•
•
28/186
27/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
14
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
30
29
) )
•
•
•
•
30/186
29/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
15
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
32
31
) )
Nuevo
32/186
31/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
16
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
34
33
) )
•
•
•
•
34/186
33/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
17
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
36
35
) )
•
•
36/186
35/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
18
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
38
37
) )
•
•
•
ClearOutput();
38/186
37/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
19
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
40
39
) )
•
•
•
•
•
40/186
39/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
20
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
42
41
) )
•
•
42/186
41/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
21
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
44
43
) )
•
•
•
•
•
•
44/186
43/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
22
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
46
45
) )
46/186
45/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
23
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
48
47
) )
DPL
48/186
47/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
24
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
50
49
) )
•
•
•
•
•
•
•
•
50/186
49/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
25
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
52
51
) )
•
•
•
•
•
•
52/186
51/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
26
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
54
53
) )
•
•
•
•
•
54/186
53/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
27
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
56
55
) )
•
•
•
•
•
56/186
55/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
28
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
58
57
) )
•
•
•
•
58/186
57/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
29
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
60
59
) )
•
•
•
•
•
60/186
59/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
30
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
62
61
) )
•
•
•
•
62/186
61/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
31
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
64
63
) )
•
•
•
64/186
63/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
32
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
66
65
) )
•
•
•
•
•
66/186
65/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
33
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
68
67
) )
•
•
68/186
67/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
34
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
70
69
) )
•
•
70/186
69/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
35
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
72
71
) )
•
•
•
•
DPL
72/186
71/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
36
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
74
73
) )
•
•
•
•
•
74/186
73/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
37
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
76
75
) )
•
•
•
•
•
•
•
•
•
•
•
Statement;
76/186
75/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
38
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
78
77
) )
•
•
}
{
Statement_2;
Statement_1;
if (condition_1)
Variables
! Compound statement follows
Statement_1
Lenguaje en el Script DPL (6/6)
78/186
77/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
39
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
80
79
) )
•
•
•
•
•
•
80/186
79/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
40
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
82
81
) )
•
•
•
•
•
•
[TYPE]
=
int
set
Tipo
string
object
double
double
|
int |
Número entero
Cadena de caracteres
object
Contendedor de objeto.
|
Número real de hasta 15 dígitos
Descripción
set
[VARDEF] = [TYPE] varname, varname, ...,varname;
Definición de las Variables (4/6)
Definición de las Variables (3/6)
82/186
81/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
41
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
84
83
) )
•
•
•
•
•
•
•
set
int
84/186
83/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
42
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
86
85
) )
•
•
•
•
86/186
85/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
43
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
Parámetro Descripción
87
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
1.12 Asignaciones y
Expresiones
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
88
44
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
90
89
) )
•
•
•
•
•
•
x += y;
y -= x;
variable
y = sin(x);
double x,y;
x = 0.5*pi();
variable -= expression
variable += expression
90/186
89/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
45
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
92
91
) )
•
•
•
•
•
x -= x;
x += x;
z = e();
C = ln(z);
A = cos(x);
x = twopi();
double A, B, C;
double x, y, z;
! C is equal to 1.00
! x is equal ro 0.00
! A is equal to 1.00
y = 0.5 * pi(); ! y is equal to 1.5708
! x is equal to 6.283185
! x is equal to 12.566371
! z is equal to 2.7182818
Asignaciones y Expresiones (4/4)
Asignaciones y Expresiones (3/4)
92/186
91/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
46
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
94
93
) )
•
•
•
•
94/186
93/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
47
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
acos(x) Arco-coseno acos(0.36236)=1.2
atan(x) Arco-tangente atan(2.57215)=1.2
sinh(x) Seno hiperbólico sinh(1.5708)=2.3013
cosh(x) Coseno hiperbólico cosh(1.5708)=2.5092
tanh(x) Tangente hiperbólico tanh(0.7616)=1.0000
exp(x) Exponencial exp(1.0)=2.718281
ln(x) Logaritmo natural ln(2.718281)=1.0
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
95
•
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
Constante Valor
pi() = 3.1415926
twopi() 2 = 6.283185
e() e1 = 2.7182818
96
48
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
98
97
) )
•
•
•
•
•
•
•
98/186
97/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
49
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
99
) )
•
•
•
•
•
•
•
100
if ( [boolexpr]
100/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
50
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
•
•
102
101
102/186
101/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
51
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
•
•
104
103
}
}
}
else {
y = x∗2;
y = x/2;
if (x>=3) {
y = y + delta;
x = Oline:dline;
while (sin(x)>=b∗y)
{
! Executes the following statement if a<=3
! Executes the following statement if x>=3
[statlist]= statement; | {statement; [statlist] }
104/186
103/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
52
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
106
105
}
}
}
}
x = x + i;
if (err) {
o.ShowFullName();
err = Ldf.Execute();
if (.not.a.and.b<>3) {
Ldf:iopt_lev = 0;
Ldf:iopt_lev = 1;
106/186
105/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
53
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
108
107
108/186
107/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
54
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
•
O1 = S1.First();
while (O1) {
O1.Open();
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
err = Ldf.Execute();
if (err) {
! skip this one
O1 = S1.Next;
continue;
}
O2 = S2.First();
AllOk = 1;
DoReport(0); !reset
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 109/186
)
109
if (err) {
! do not continue
AllOk = 0;
break;
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
}
else {
DoReport(1); ! add
}
O2 = S2.Next();
}
if (AllOk) { DoReport(2); ! report
}
O1 = S1.Next();}
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 110/186
)
110
55
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
112
111
112/186
111/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
56
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
input(var, string);
•
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
•
•
113
114
57
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
•
116
115
output(string);
116/186
115/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
58
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
! DPL Example: Use of Output
! Created by Prof F. Gonzalez-Longatt
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
! 1. VARIABLE DECLARATION
double dValue; ! dValue is double
! 2. PROCEDURE
ClearOutput(); ! Clears the output window
input(dValue, 'Please enter a number:');
output('The entered value=dValue');
! output(boolexpr, message_string)
! The message_string may contain variables and the special
! function num(boolexpr) or num(expr)
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 117/186
)
117
•
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 118/186
)
118
59
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
120
119
120/186
119/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
60
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
! 1. VARIABLE DECLARATION
double dR, dL, dV; ! ddR, dL are double
! 2. PROCEDURE
ClearOutput(); ! Clears the output window
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
121
122
61
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
124
123
124/186
123/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
62
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
126
125
126/186
125/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
63
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
128
127
•
•
128/186
127/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
64
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
130
129
130/186
129/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
65
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
132
131
•
•
•
objectname:parametername
Objetos y Métodos (2/14)
132/186
131/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
66
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
•
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
133
! 1. VARIABLE DECLARATIONS
set sLines;
object oLdf, oLines;
int iError, n_Obj;
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
double dloading;
! 2. RUN A BALANCED LOAD FLOW
ClearOutput(); ! Clear Output window
oLdf = GetCaseObject('ComLdf');
oLdf:iopt_net = 0; ! Force balanced
iError = oLdf.Execute(); ! Execute load-flow
sLines = AllRelevant('*.ElmLne', 1, 1);
n_Obj = sLines.Count(); !Returns the number of stored objects
134
67
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
136
135
}
}
} else {
oLines
exit();
oLines
=
if (iError) {
=
while(oLines) {
sLines.Next();
dloading = oLines:c:loading;
output('loading=dloading %');
136/186
135/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
68
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
138
137
138/186
137/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
69
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
140
139
Ldf:iopt_net
140/186
139/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
70
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
142
141
142/186
141/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
71
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
144
143
144/186
143/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
72
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
•
146
145
146/186
145/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
73
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
148
147
}
exit();
int iError;
if (iError) {
is error ocurr
iError = oLdf.Execute();
! Example: Use of Internal Object
! The object oLdf is a load flow command
148/186
147/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
74
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
•
150
149
ocurr
150/186
149/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
75
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
152
151
152/186
151/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
76
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
•
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
153
-------
! VARIABLE DEFINITION
int iError;
double dmaxload;
object oLine, Omax, oLdf;
set S;
154
77
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
iError = oLdf.Execute(); ! execute a load-flow
if (iError) exit(); ! exit on error
S = SEL.AllLines(); ! get all selected lines
Omax = S.First(); ! get first line
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
if (Omax) {
dmaxload = Omax:c:loading; ! initialise maximum
} else {
output('No lines found in selection');
exit(); ! no lines then exit
}
155
}
output('max loading=Omax for line'); !output results
Omax.ShowFullName();
156
78
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
158
157
S = SEL.AllLines();
S = SEL.AllLines();
158/186
157/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
79
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
160
159
Externos
1.21 Acceso a los Objetos
Acceder a una Selección General (8/8)
160/186
159/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
80
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
•
•
162
161
162/186
161/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
81
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
164
163
164/186
163/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
82
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
166
165
dloading
=
L1:c:loading;
Acceso a los Objetos Externos (6/6)
Acceso a los Objetos Externos (5/6)
166/186
165/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
83
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
168
167
•
•
168/186
167/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
84
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
170
169
•
•
•
170/186
169/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
85
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
•
•
•
•
172
171
172/186
171/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
86
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
174
173
•
•
•
•
•
•
•
•
174/186
173/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
87
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
176
175
176/186
175/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
88
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
178
177
int Execute() ;
! executes the DPL script.
Calling Conventions
1.23 Subroutines and
178/186
177/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
89
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
•
180
179
180/186
179/186
Subroutines and Calling Conventions (2/4)
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
90
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
Sub1:Line = MyLine;
Sub1:Outages = MySelection;
! execute the subroutine:
error = Sub1.Execute();
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
181
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
182
91
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL) Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
) )
•
•
•
•
184
183
•
•
•
•
184/186
183/186
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
17/09/2021
92
17/09/2021
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
185
All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2008-2017. http:www.fglongatt.org
Preguntas
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)
Copyright Notice
The documents are created by Francisco M. Gonzalez-Longatt and contain copyrighted material, trademarks, and other proprietary information. All rights reserved. No part of the documents may be reproduced or
copied in any form or by any means - such as graphic, electronic, or mechanical, including photocopying, taping, or information storage and retrieval systems without the prior written permission of Francisco M.
Gonzalez-Longatt . The use of these documents by you, or anyone else authorized by you, is prohibited unless specifically permitted by Francisco M. Gonzalez-Longatt. You may not alter or remove any
trademark, copyright or other notice from the documents. The documents are provided “as is” and Francisco M. Gonzalez-Longatt shall not have any responsibility or liability whatsoever for the results of use of the
documents by you.
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 186/186
)
186