First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

How to add a simple control algorithm for machine using conet and conec subroutines?

asked Feb 7 '18

Bikash gravatar image

updated Feb 7 '18

I am trying to use CBEST battery generation model and need to control the Paux VAR based on the frequency of connected bus. From the documentation of PSSE, I found that that sort of linking can be done using CONET and CONEC subroutine. However, I couldn't figure out the next steps after addition of the codes to the created CONET and CONEC subroutines. I am pretty new to the model writing and have never done it before.

3 answers

Sort by » oldest newest most voted
0

answered Feb 12 '18

perolofl gravatar image

1): Find out the starting VAR index for CBEST model, e.g. 1234

2): In CONEC: Enter VAR(1234) = Paux , where Paux is your calculated power setpoint change.

3): Compile CONEC and create a dsusr.dll with program PSSE Environment Manager

4): Copy file dsusr.dll to your working directory

link
0

answered Feb 7 '18

Bikash gravatar image

Thank you for the response. I can change the value of VAR using this command but I want to link another variable to feed the signal every time during dynamic simulation. I want to set the controller to vary the power output of battery according to requirement.

link
0

answered Feb 7 '18

jconto gravatar image

Instead of using CONET/CONEC subroutines (in Fortran), compiling and linking into a dll, I think you can use API CHANGEPLMODVAR on the CBEST model. From the API manual, "Use this API to change the value of a VAR of a designated plant related"

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Feb 7 '18

Seen: 744 times

Last updated: Feb 12 '18