First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
I think the proper way to do that is using macind
to get the mc
value of the machine, and then assign the values to the arrays wipcmd
and wiqcmd
. Using this method, you don't have to import any other model inside the controller one, and you can control multiple and configurable machines.
Example: into the controller model
call macind(bus_mac, id_mac, mc_mac, ierr)
wipcmd(mc_mac) = var(l)
wiqcmd(mc_mac) = var(l+1)
where:
bus_mac
is the bus number where the
inverter is (ibus
if the controller
use the same machine). id_mac
is
the id of the machine inside the bus.mc_mac
is the position of the
machine in the arrays.