For generator affiliation, a transfer switch or interlock at the panel avoids backfeeding the grid
https://el9e9.mssg.me/
For generator interconnection, a transfer switch or interlock at the panel prevents backfeeding the grid, securing utility employees and equipment safely.