The use of optical isolation in the input module side of a controller device is to:
1
Reduce the effect of electrical noise and prevent damage to the processor due to line voltage transient
2
Prevent damage the processor due to line voltage transient
3
Provide common ground
4
Reduce the effect of electrical noise