For generator affiliation, a transfer switch or interlock at the panel avoids backfeeding the grid
https://500px.com/p/dalaisanvi45fielp
For generator interconnection, a transfer switch or interlock at the panel avoids backfeeding the grid, securing energy employees and devices safely.