Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to use the GENCHK function to find the machine index and then send the P,Q commands to the WPCMND, WQCMND arrays.

In your description, it only finds the starting VAR location. This isn't needed. Use this:

CALL GENCHK(ICON(M),ID,MC,'GEN NOT FOUND)

Icon (m) is the bus where your machine is located, ID is machine id to which the wind gen is connected.

MC gets the machine index, now get the wind machine index WMC = WNDNUM(MC)

WPCMND(WMC) = VOUTP WQCMND(WMC) = VOUTQ

Hope this helps.

You need to use the GENCHK function to find the machine index and then send the P,Q commands to the WPCMND, WQCMND arrays.

In your description, it only finds the starting VAR location. This isn't needed. Use this:

CALL GENCHK(ICON(M),ID,MC,'GEN NOT FOUND)

Icon (m) is the bus where your machine is located, ID is machine id to which the wind gen is connected.

MC gets the machine index, now get the wind machine index WMC = WNDNUM(MC)

WPCMND(WMC) = VOUTP VOUTP, WQCMND(WMC) = VOUTQ

Hope this helps.