I've done both when transitting FRA. It seems to depend on where in the terminal building you actually go. EG, if you take a UK flight from zone B (in T1) you have to go through security screening at two points. If you take the same flight from zone A (also in T1), you only pass security once.
I did MAD-FRA-MAN and didn't go through security again at FRA.