Functional Safety Applied to Industrial Machinery