Functional Safety based on IEC 61508