Considerations on functional safety and how IEC 61508 affects the use of PLCs