How to connect and program encoder to Siemens PLC | TIA portal | S7-1200 | HSC High Speed Counter