I'll reply to myself. I realized when looking through pictures that the VFD and the PLC was grounded common and that I used only two wires for RS485 skipping ground wire. With the computer prolly not grounded that good since the PSU isn't grounded I guess it must have been some potential difference. Grounded the RS485 interface and communication was working.