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

Ask Your Question
0

User defined model of line relay

asked Dec 6 '2

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.

1 answer

Sort by » oldest newest most voted
1

answered Dec 6 '2

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

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 (Dec 6 '2)

No, PTI doesn't publish such information.

perolofl gravatar imageperolofl (Dec 6 '2)

Thank you.

abdul gravatar imageabdul (Dec 6 '2)

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

2 followers

Stats

Asked: Dec 6 '2

Seen: 773 times

Last updated: Dec 06 '22