Ask Your Question
0

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

asked 2018-02-06 18:28:25 -0500

Bikash gravatar image

updated 2018-02-06 18:34:02 -0500

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.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-02-12 00:50:59 -0500

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

edit flag offensive delete link more
0

answered 2018-02-07 11:18:36 -0500

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.

edit flag offensive delete link more
0

answered 2018-02-06 20:35:50 -0500

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"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2018-02-06 18:28:25 -0500

Seen: 707 times

Last updated: Feb 12 '18