Nun, die 220 Ohm sind ein üblicher Vorwiderstand, damit die LED im Optokoppler nicht überlastet wird.