Ask Your Question
0

User defined model of line relay

asked 2022-12-06 00:49:55 -0600

abdul gravatar image

Hi,

I am writing a line relay model in Fortran with SUBROUTINE modelname (KM,RS,ISLOT). My questions are:

  1. I see that 'KM' is the internal PSS®E double entry line array index for the line at which the model is being called. How can I make use of 'KM' in the model?

  2. How can I monitor the line current for the line at which the model is being called? The API CALL BRNMSC seems to do the job but it needs to be supplied with 'IBUS, JBUS AND ID'. Since I don't know for which line the model will be called, I cannot use BRNMSC API.

Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2022-12-06 03:28:47 -0600

perolofl gravatar image

Use KM to get the line information:

CALL GETFTC(KM,II,JJ,ID)

returns the bus sequence numbers II and JJ and the line ID. The external bus numbers are:

IBUS = NUMBUS(II)
JBUS = NUMBUS(JJ)
edit flag offensive delete link more

Comments

Thank you so much. It worked like a charm! I couldn't find 'GETFTC' in any document (POM, PAGV2, and API). Is there any other document with information on such subroutines?

abdul gravatar imageabdul ( 2022-12-06 06:24:09 -0600 )edit

No, PTI doesn't publish such information.

perolofl gravatar imageperolofl ( 2022-12-06 07:09:15 -0600 )edit

Thank you.

abdul gravatar imageabdul ( 2022-12-06 11:02:34 -0600 )edit

How to use the 'RS' parameter of the subrutine?

ARTUP gravatar imageARTUP ( 2025-03-16 17:22:45 -0600 )edit

To write the relay slot value (1 or 2) in DOCU and DYDA.

perolofl gravatar imageperolofl ( 2025-03-18 08:13:56 -0600 )edit
0

answered 2025-03-10 01:03:08 -0600

Do you just call the GETFTC straightaway in the coding? Mine seem to complain about unresolved external symbol _GETFTC@16 during compilation.

edit flag offensive delete link more

Comments

Yes, as shown above!

perolofl gravatar imageperolofl ( 2025-03-11 13:52:50 -0600 )edit

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

2 followers

Stats

Asked: 2022-12-06 00:49:55 -0600

Seen: 932 times

Last updated: Mar 10