The Ridge isn't the external edge, it's just an 'internal' edge.. Up to the ridge (so long as not above it with the 200mm rule) should considered OK for commecial - bear in mind on a flat roof that you can be up to 1m above it..
Also bear in mind the massive up lift forces if you get right on the ridge, net effect, along with the practicalities of installation, we always aim to keep the top of the panels below the ridge line, so on a roof of 20° slope, with panels prrotuding up to 200mm above the plane of the roof, to keep them below the ridge line the top of the panel should be no closer than 550mm from the ridge.
We have one installtion to do on a factory covered in what are rows of north lights, the back slope of which is ideal for panels, clearly these multiple ridges aren't the edge of the roof, and we keep to the above rule, since the south slope is at about 35° , we'll put the top of the panels about 300mm from the top of the ridge. There is no way that these ridges could, should or was intendeded to be interpreated as the edge of the roof. Same as the foot (eaves) of the in between slopes arent the edge either, so no need to be 1m from them.