0

User defined model of line relay

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.

psys's avatar
58
psys
asked 2022-12-06 00:49:55 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

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)
perolofl's avatar
3.8k
perolofl
answered 2022-12-06 03:28:47 -0500
edit flag offensive 0 remove flag delete 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?

psys's avatar psys (2022-12-06 06:24:09 -0500) edit

No, PTI doesn't publish such information.

perolofl's avatar perolofl (2022-12-06 07:09:15 -0500) edit

Thank you.

psys's avatar psys (2022-12-06 11:02:34 -0500) edit

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

ARTUP's avatar ARTUP (2025-03-16 17:22:45 -0500) edit

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

perolofl's avatar perolofl (2025-03-18 08:13:56 -0500) edit
add a comment see more comments
0

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

DesmondCWC's avatar
1
DesmondCWC
answered 2025-03-10 01:03:08 -0500
edit flag offensive 0 remove flag delete link

Comments

Yes, as shown above!

perolofl's avatar perolofl (2025-03-11 13:52:50 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer