Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why my user defined model can not work?

I want to creat a user defined model to contol wind turbine's active power, so I creat a model of electrical part.The code is

  SUBROUTINE WTEC(MC,ISLOT)
  INCLUDE 'COMON4.INS'
  INTEGER   MC,   ISLOT
  INTEGER J, K, IB
  IB=NUMTRM(MC)
  J=WSTRTIN(1,ISLOT)
  K=WSTRTIN(2,ISLOT)
  IF (MODE.EQ.8) GO TO 1000
  IF (MODE.EQ.3) GO TO 1200
  1000  CON_DSCRPT(1) ='Pref'
           RETURN
  1200  WIPCMD(MC)=CON(J)/VOLT(IB)
           RETURN
  END

I want to control the array WIPCMD and 'WTG3' will use it to control wind turbine's active power.But when I initialized my model the PSSE Flashbacked. What's wrong with my code?

Why my user defined model can not work?

I want to creat a user defined model to contol wind turbine's active power, so I creat a model of electrical part.The code is

  SUBROUTINE WTEC(MC,ISLOT)
  INCLUDE 'COMON4.INS'
  INTEGER   MC,   ISLOT
  INTEGER J, K, IB
  IB=NUMTRM(MC)
  J=WSTRTIN(1,ISLOT)
  K=WSTRTIN(2,ISLOT)
  IF (MODE.EQ.8) GO TO 1000
  IF (MODE.EQ.3) GO TO 1200
  1000  CON_DSCRPT(1) ='Pref'
           RETURN
  1200  WIPCMD(MC)=CON(J)/VOLT(IB)
           RETURN
  END

I want to control the array WIPCMD and 'WTG3' will use it to control wind turbine's active power.But when I initialized my model the PSSE Flashbacked. crashed. What's wrong with my code?