Sorry, My bad! I realy meant the power direction. I want to detect power feed to the grid. Let assume we have a house that produce more energy the it can consume. In this case the excessive will not be loss but fed to the grid, thus the invertor works. I want to prevent this. So my system has to produce energy only for the appliances of the household, not to fed the grid. I can regulate the invertor output power by changing the state of 4-digit (16 step) input, which control the output power with 6.25% resolution. There might be occasion that the invertor can not produce power due to sunlight absence. Then I will have power from the grid toward household. Enought background. I want to detect when the invertor start to feed the grid, but not when grid feeds the household.
Sorry about my bad English.
Thank you for answers!