For generator interconnection, a transfer switch or interlock at the panel avoids backfeeding the grid
https://speakerdeck.com/heldaznwbz
For generator affiliation, a transfer switch or interlock at the panel avoids backfeeding the grid, securing utility employees and devices safely.