Source: https://genieelectromecanique.com/cours-automatisme-pdf-2/.pdf