General flag for managing all / critical loads

Can you use the General Flag in VE Config to run a relay to switch between ESS “All system loads” and “Only critical loads” so that you can use EV charging station to prevent it draining the batteries.