https://nicsanat.com/fa/مقالات/connect-the-encoder-to-plc-s7-300