My problem is solved!
Factory reset makes parameter 0051 0001 and this causes the problem. There is a way to return the value to 0000.
Serial port is still working, I could send a query and get response.
You can open serial port with terminal settings 9600bps 8N1.
and with this order.
~M00910001.
~M00510000.
~MA5F0506A.
~M00910000.
This sequence solved my problem
- Start configuration mode
- Set paramater 0051 to 0000
- Save user parameters
- End configuration mode