Due to the generation uncertainty of photovoltaic (PV) power generation, it has been posing great challenges and difficulties in maintaining the stability, security, and reliability of PV-storage systems (one kind of microgrid). To overcome these challenges and difficulties, this paper is concerned with secondary control and robust energy management for PVs in a grid-connected microgrid (MG) considering uncertainty. In our designs, to maintain the stable operation of PVs in MG, a novel secondary control method combining an event-triggered finite time sliding mode controller (FTSMC) and consensus controllers is proposed. Furthermore, a robust optimization framework is established to minimize the total cost of grid-connected MG involving the operation cost of multi-battery Energy Storage Systems (BESSes) and the electricity purchased from the main grid. To eliminate the effects of PV uncertainty, the optimization problem with uncertain constraints is converted into a new optimization problem with only deterministic constraints by using the box theory to represent the PV outputs. In other words, the robust optimization strategy makes uncertain boundaries easier to be represented by setting all uncertain parameters into an uncertain domain involving all typical extreme cases. Then, a particle swarm optimization (PSO) method is employed to solve the newly converted optimization problem. Finally, the experimental results validate the effectiveness of the proposed integrated framework.