I don't know per se about Frankfurt, but at Schiphol if you arrive from a non-Schengen and are departing on a Schengen flight, you have to clear security as well as passport control.
I understand that is a common ruling for all Schengen flights connecting from a non-Schengen country.