The automatic gate industry in the UK falls under the laws of the Machinery Directive (2006/42/EC) and the Supply of Machinery (Safety) Regulations 2008. There are various EN and British standards that form the ‘state of the art’ in how electric gates should be installed and maintained in order for them to be safe.
The HSE now have a very detailed section on their website for Powered Gates. From this link, you are able to understand the basics on risks, safety, and the law as well as looking into more detail in regards to the responsibilities of designers, manufacturers, installers, owners and repairs etc. One very useful section for owners of powered gates is the FAQ section.
The industry is supported by the Door Hardware Federation, which has the Powered Gate Group as one of its many industry groups. The Powered Gate Group has over 250+ members of gate installers, manufacturers and maintainers which collectively offer an experienced and industry-leading knowledge and education on how safe a gate should be and how to make your electric gates compliant. See below for the DHF’s publish code of conduct which provides the most detailed guide for installers on how to install an electric gate safely and compliant to gate safety legislation.