I have a problem that I can't solve.I use TTL module for RS 485 to communicate with Delta HMI.
I use an Arduino Mega to control a motor with rotary encoder.Everything worked perfectly until I started reading the encoder data, communication between the arduino and Delta HMI stops immediately and I have to restart the Arduino.
Attached encoder and RS485 module wiring diagram: