You are on page 1of 94

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/354653309

Introduction to DIgSILENT Programming Language (DPL)

Preprint · September 2021


DOI: 10.13140/RG.2.2.14121.72800

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

Electrical Science A View project

All content following this page was uploaded by Francisco Gonzalez-Longatt on 17 September 2021.

The user has requested enhancement of the downloaded file.


17/09/2021

Entrenamiento Avanzado de DIgSILENT PowerFactory


fglongatt.org
Programación
usando 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
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
)

Entrenamiento Avanzado de DIgSILENT


PowerFactory
Prof. Francisco Gonzalez-Longatt PhD

Entrenamiento Avanzado de DIgSILENT PowerFactory

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

Entrenamiento Avanzado de DIgSILENT


PowerFactory
Prof. Francisco Gonzalez-Longatt PhD

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
)

Entrenamiento Avanzado de DIgSILENT


PowerFactory
Prof. Francisco Gonzalez-Longatt PhD

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)

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 4/186


)

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Introducción a DPL (1/3)

Introducción a DPL (2/3)

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
) )

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

1. Lenguaje

DIgSILENT - DPL
Introducción a DPL (3/3)

de Programación en

8/186
7/186

PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )







Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Lenguaje Programación DIgSILENT –DPL (2/4)


Lenguaje Programación DIgSILENT –DPL (1/4)

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
) )














Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Lenguaje Programación DIgSILENT –DPL (4/4)


Lenguaje Programación DIgSILENT –DPL (3/4)

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
) )


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
1.1 Estructura
de un Comando DPL

Estructura de un Comando DPL (1/7)

14/186
13/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Estructura de un Comando DPL (2/7)

Estructura de un Comando DPL (3/7)


Figura 1. Estructura general de un comando DPL.

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
) )




Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Estructura de un Comando DPL (4/7)

Estructura de un Comando DPL (5/7)

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
) )






Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Estructura de un Comando DPL (7/7)


Estructura de un Comando DPL (6/7)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Comando Raíz y Remoto (1/10)


Comando Raíz y Comando
1.2 Comando DPL (ComDpl):

22/186
21/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

This is a ROOT Command


! DPL Example: Root Command

printf(' This is a ROOT Command');


! Created by Prof F. Gonzalez-Longatt
ClearOutput(); ! Clears the output window
Comando Raíz y Remoto (2/10)

Comando Raíz y Remoto (3/10)

DIgSI/info - DPL program 'DPL_Root_Command' successfully executed

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
) )



Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
• Rojo: Errores

• Verde: Información

• Negro: Nombres de objetos


• Azul: Mensajes de protocolo
Comando Raíz y Remoto (4/10)

• Marrón: Advertencias –Warnings

Comando Raíz y Remoto (5/10)

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
) )


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Comando Raíz y Remoto (7/10)


Comando Raíz y Remoto (6/10)

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
) )




Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

This is a ROOT Command


Comando Raíz y Remoto (8/10)

Comando Raíz y Remoto (9/10)

DIgSI/info - DPL program 'DPL_Remote_Command' successfully executed

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Comando Raíz y Remoto (10/10)

1.3 Crear un Comando DPL

32/186
31/186

PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )




Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Crear un Comando DPL Nuevo (1/8)

Crear un Comando DPL Nuevo (2/8)

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
) )


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Crear un Comando DPL Nuevo (4/8)


Crear un Comando DPL Nuevo (3/8)

comando DPL por defecto (DPLscript1.ComDpl).


• Dejar el nombre DPLscript1 como nombre del

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();

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

! DPL Example: Creating a New DPL

! printf:Outputs a formatted string.


! Created by: Prof. F. Gonzalez-Longatt

printf(' This is my first DPL Command ');


! Clears the output window
Crear un Comando DPL Nuevo (5/8)

Crear un Comando DPL Nuevo (6/8)

! The printf() command uses the C++ printf() formatting syntax

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Crear un Comando DPL Nuevo (7/8)

Crear un Comando DPL Nuevo (8/8)

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
) )


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Command Set
1.4 Definir un DPL

Definir un DPL Command Set (1/6)


(Conjunto para Comando DPL)

42/186
41/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Definir un DPL Command Set (2/6)

Definir un DPL Command Set (3/6)

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
) )

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Definir un DPL Command Set (4/6)

Definir un DPL Command Set (5/6)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Definir un DPL Command Set (6/6)

1.5 Ejecutando un Comando

48/186
47/186

PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )







Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Ejecutando un Comando DPL (1/6)

Ejecutando un Comando DPL (2/6)

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
) )






Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Ejecutando un Comando DPL (4/6)


Ejecutando un Comando DPL (3/6)

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Ejecutando un Comando DPL (6/6)


Ejecutando un Comando DPL (5/6)

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Opciones Avanzadas DPL (1/3)


1.6 Opciones Avanzadas DPL

56/186
55/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )




Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Opciones Avanzadas DPL (2/3)

Opciones Avanzadas DPL (3/3)

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Página Script DPL (1/3)


1.7 Página Script DPL

60/186
59/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )




Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Página Script DPL (2/3)

Página Script DPL (3/3)

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
) )



Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Editor de DPL Scripts (1/7)


1.8 Editor de DPL Scripts

64/186
63/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Editor de DPL Scripts (2/7)

Editor de DPL Scripts (3/7)

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
) )


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Editor de DPL Scripts (4/7)

Editor de DPL Scripts (5/7)

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
) )


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Editor de DPL Scripts (7/7)


Editor de DPL Scripts (6/7)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Lenguaje en el Script DPL (1/6)


1.9 Lenguaje en el Script

72/186
71/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )





Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Lenguaje en el Script DPL (2/6)

Lenguaje en el Script DPL (3/6)

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;

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Lenguaje en el Script DPL (4/6)

Lenguaje en el Script DPL (5/6)

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)

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Group_statement_2;
Group_statement_1;

Variables
! Compound statement follows
Statement_1
Lenguaje en el Script DPL (6/6)

1.10 Definición de las


Statement_2

! Statement_1 and Statement2 are individual statements

78/186
77/186

PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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
) )






Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Definición de las Variables (2/6)


Definición de las Variables (1/6)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

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)

Referencia para un objeto de PowerFactory

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
string sttxt1, st1, st2;
object O1, O2, Ogen, OLines;
iNOfLines, iError, i, j, k;
double dLosses, dLength, dPload, dPgen;

sAllLines, sAllSwitches, sAllBars, sAllLoads;

Definición de las Variables (6/6)


Definición de las Variables (5/6)

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
) )




Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Parámetros Constantes (1/2)


1.11 Parámetros Constantes

86/186
85/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Parámetros Constantes (2/2)


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

SEL Representa una General Selection o selección general DPL.


Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)

NULL Representa el objeto NULL. Este parámetro tiene muchos


usos, por ejemplo, este puede representar que un objeto no
es encontrado.
This Es usado para representar el comando DPL por sí mismo.

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 87/186


)

87

Entrenamiento Avanzado de DIgSILENT


PowerFactory
Prof. Francisco Gonzalez-Longatt PhD

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)

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 88/186


)

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();

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
= expression

variable -= expression
variable += expression

! y now equals 1.0


Asignaciones y Expresiones (1/4)

Asignaciones y Expresiones (2/4)

! x now equals 2.5708


! x now equals 1.5708
! x and y are defined as double

! y now equals -1.5708

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;

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

! 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
) )



Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Funciones Estándar (1/3)


1.13 Funciones Estándar

94/186
93/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Funciones Estándar (2/3)


Función Descripción Ejemplo
sin(x) Seno sin(1.2)=0.93203
cos(x) coseno cos(1.2)=0.36236
tan(x) tangente tan(1.2)=2.57215
asin(x) Arco-seno asin(0.93203)=1.2

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)

log(x) Logaritmo base 10 log(100)=2


sqrt(x) Raíz cuadrada sqrt(9.5)=3.0822
sqr(x) Potencia de 2 sqr(3.0822)=9.5
pow (x,y) Potencia de y pow(2.5, 3.4)=22.5422
abs(x) Valor absoluto abs(-2.34)=2.34
min(x,y) Mínimo valor min(6.4, 1.5)=1.5
max(x,y) Máximo valor max(6.4, 1.5)=6.4
modulo(x,y) Valor entero de x/y modulo(15.6,3.4)=2
trunc(x) Parte entera trunc(-4.58823)=-4.0000
frac(x) Parte decimal frac(-4.58823)=-0.58823
round(x) Entero más próximo round(1.65)=2.000
ceil(x) Más grande entero ceil(1.15)=2.000
floor(x) Más pequeño entero floor(1.78)=1.000

Tabla 2. Funciones Standard DPL


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 95/186
)

95

Funciones Estándar (3/3)



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)


Constante Valor

pi()  = 3.1415926

twopi() 2 = 6.283185

e() e1 = 2.7182818

Tabla 2. Constantes Internas DPL

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 96/186


)

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
) )






Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Programa
Control de Flujo de

Control de Flujo de Programa (1/9)


1.14 Instrucciones para

98/186
97/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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]

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
if ( [boolexpr] ) [statlist]

while ( [boolexpr] ) [statlist]


do [statlist] while ( [boolexpr] )
) [statlist] else [statlist]

for (statement; [boolexpr] ; statement ) [statlist]


Control de Flujo de Programa (2/9)

Control de Flujo de Programa (3/9)


99/186

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

[boolexpr]= expression [boolcomp] expression

[boolcomp]= "<" | ">" | "=" | ">=" | "<=" | "<>"


Control de Flujo de Programa (4/9)

Control de Flujo de Programa (5/9)

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) {

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

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] }

Control de Flujo de Programa (7/9)


Control de Flujo de Programa (6/9)

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) {

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

o.ShowFullName();
err = Ldf.Execute();
if (.not.a.and.b<>3) {

Ldf:iopt_lev = 0;
Ldf:iopt_lev = 1;

for (i = 0; i < 10; i = i+1){


err = Ldf.Execute();

for (o=s.First(); o; o=s.Next()) {


Control de Flujo de Programa (8/9)

Control de Flujo de Programa (9/9)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Break and Continue (1/3)


(Romper and Continuar)
1.15 Break and Continue

108/186
107/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Break and Continue (2/3)


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

Break and Continue (3/3)



while (O2) {
err = Ldf.Execute();
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

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
and Output)

Entrada y Salida (Input and Output) (1/11)


1.16 Entrada y Salida (Input

112/186
111/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Entrada y Salida (Input and Output) (2/11)


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)


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 113/186


)

113

Entrada y Salida (Input and Output) (3/11)


! DPL Example: Use of Input
! Created by Prof F. Gonzalez-Longatt
! 1. VARIABLE DECLARATION
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

double dValue; ! dValue is a double


string sValue; ! sValue is a string
! 2. PROCEDURE
! Input function:
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)

! INPUT: Provides the possibility to get user input during the


! execution of a DPL script (extension of the V13.2 function).
! Output function:
! PRINTF:Outputs a formatted string. The printf() command uses
! the C++ printf() formatting syntax.
input(dValue, 'Please enter a number');
printf('Entered number: %f', dValue);
input(sValue, 'Please enter a text');
printf('Entered text: %s', sValue);
Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 114/186
)

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);

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Entered text: Some text
Entered number: 1.000000
DIgSI/info - DPL Program 'Example_Input' started

DIgSI/info - DPL program 'Example_Input' successfully executed


Entrada y Salida (Input and Output) (4/11)

Entrada y Salida (Input and Output) (5/11)

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

Entrada y Salida (Input and Output) (6/11)


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

Entrada y Salida (Input and Output) (7/11)



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)

DIgSI/info - DPL Program 'Example_Output' started


DIgSI/dpl - the entered value=122.500000
DIgSI/info - DPL program 'Example_Output' successfully executed


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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Entrada y Salida (Input and Output) (8/11)

Entrada y Salida (Input and Output) (9/11)

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

Entrada y Salida (Input and Output) (10/11)


! DPL Example: Example of Calculations
! Created by Prof F. Gonzalez-Longatt
! Summary: This DPL calculates volume of a cilinder

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)

input(dR, 'Please enter Radius R [m]:');


input(dL, 'Please enter Length L [m]:');
dV = 2 * pi() * dR * dL;
output('The entered value=dV [m^3]');

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 121/186


)

121

Entrada y Salida (Input and Output) (11/11)



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

DIgSI/dpl - The entered value=87.964594 [m^3]


DIgSI/info - DPL program 'Example DPL -Calculations'
successfully executed
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 122/186


)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Acceso a Otros Objetos (1/5)


1.17 Acceso a Otros Objetos

124/186
123/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Acceso a Otros Objetos (2/5)

Acceso a Otros Objetos (3/5)

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


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Acceso a Otros Objetos (4/5)

Acceso a Otros Objetos (5/5)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Objetos y Métodos (1/14)


1.18 Objetos y Métodos

130/186
129/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

objectname:parametername
Objetos y Métodos (2/14)

Objetos y Métodos (3/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

Objetos y Métodos (4/14)


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)

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 133/186


)

133

Objetos y Métodos (5/14)


! Example of Object Variables and Methods
! This example forces a balanced load flow and then publishes
! Transmission loading at the output window
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 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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 134/186


)

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) {

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
sLines.First();

sLines.Next();
dloading = oLines:c:loading;
output('loading=dloading %');

Objetos y Métodos (7/14)


Objetos y Métodos (6/14)
printf(' Number of Elements in Object : %d',n_Obj);

! Exit simulation if error

! get line loading


! report line loading

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Objetos y Métodos (8/14)

Objetos y Métodos (9/14)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
=
1;

Objetos y Métodos (11/14)


!force unbalanced
Objetos y Métodos (10/14)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Objetos y Métodos (12/14)

Objetos y Métodos (13/14)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
dloading = oLines:c:loading;
Objetos y Métodos (14/14)
! get line loading

1.19 Acceso a los Objetos


Almacenados Localmente

144/186
143/186

PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Acceso a los Objetos Locales (1/6)

Acceso a los Objetos Locales (2/6)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

iError = oLdf.Execute();
! Example: Use of Internal Object
! The object oLdf is a load flow command

output('Load-flow command returns an error');


Acceso a los Objetos Locales (4/6)
Acceso a los Objetos Locales (3/6)

! Excute a load flow and return 1

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Acceso a los Objetos Locales (6/6)


Acceso a los Objetos Locales (5/6)

iError = oLdf.Execute(); !Excute a load flow and return 1 is error

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Selection)
1.20 Acceder a una

Acceder a una Selección General (1/8)


Selección General (General

152/186
151/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Acceder a una Selección General (2/8)


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)

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 153/186


)

153

Acceder a una Selección General (3/8)



! DPL to access network elements using a General Selection 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

! SUMMARY: General Selection can be included inside the DPL


command object or
! referenced as a General Selection.
! Created by: Prof. Francisco M. Gonzalez-Longatt
!--------------------------------------------------------------
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)

-------
! VARIABLE DEFINITION
int iError;
double dmaxload;
object oLine, Omax, oLdf;
set S;

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 154/186


)

154

77
17/09/2021

Acceder a una Selección General (4/8)


! PROCEDURE
ClearOutput(); ! Clears the output window
oLdf = GetCaseObject('ComLdf');

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
}

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 155/186


)

155

Acceder a una Selección General (5/8)


oLine = S.Next(); ! get next line
while (oLine) { ! while more lines
if(oLine:c:loading>dmaxload) {
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

dmaxload = oLine:c:loading; ! update maximum


Omax = oLine; ! update max loaded line
}
oLine = S.Next();
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)

}
output('max loading=Omax for line'); !output results
Omax.ShowFullName();

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 156/186


)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

S = SEL.AllLines();
S = SEL.AllLines();

! get all selected lines


! get all selected lines

Acceder a una Selección General (7/8)


Acceder a una Selección General (6/8)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Externos
1.21 Acceso a los Objetos
Acceder a una Selección General (8/8)

160/186
159/186

PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Acceso a los Objetos Externos (1/6)

Acceso a los Objetos Externos (2/6)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Acceso a los Objetos Externos (4/6)


Acceso a los Objetos Externos (3/6)

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
=

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

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


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
1.22 Scripts Remotos y
Librerías de Comando DPL

Scripts Remotos y Librerías de Comando DPL (1/9)

168/186
167/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Scripts Remotos y Librerías de Comando DPL (2/9)

Scripts Remotos y Librerías de Comando DPL (3/9)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Scripts Remotos y Librerías de Comando DPL (4/9)

Scripts Remotos y Librerías de Comando DPL (5/9)

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








Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

Scripts Remotos y Librerías de Comando DPL (7/9)


Scripts Remotos y Librerías de Comando DPL (6/9)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Scripts Remotos y Librerías de Comando DPL (8/9)

Scripts Remotos y Librerías de Comando DPL (9/9)

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

int Execute() ;
! executes the DPL script.
Calling Conventions
1.23 Subroutines and

Subroutines and Calling Conventions (1/4)

178/186
177/186
PowerFactory
Entrenamiento Avanzado de DIgSILENT

Prof. Francisco Gonzalez-Longatt PhD

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

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017

180/186
179/186
Subroutines and Calling Conventions (2/4)

Subroutines and Calling Conventions (3/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

Subroutines and Calling Conventions (4/4)



! set the parameters:
Sub1:step = 5.0;

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)

! execute the subroutine:


error = Sub1.Execute(5.0, MyLine, MySelection);

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 181/186


)

181

Entrenamiento Avanzado de DIgSILENT


PowerFactory
Prof. Francisco Gonzalez-Longatt PhD

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.24 Funciones y Subrutinas


DPL
Entrenamiento Avanzado de DIgSILENT PowerFactory: Orogramación usando DigSILENT Programming Language (DPL)

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 182/186


)

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




Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017


Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017
Funciones y Subrutinas DPL (1/3)

Funciones y Subrutinas DPL (2/3)

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

Funciones y Subrutinas DPL (3/3)


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)

Prof Francisco M. Gonzalez-Longatt PhD | fglongatt@fglongatt.org | Copyright © 2008-2017 185/186


)

185

Entrenamiento Avanzado de DIgSILENT


PowerFactory
Prof. Francisco Gonzalez-Longatt PhD

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)

Ciclo de Preguntas y Respuestas

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

View publication stats 93

You might also like