Can't identify hardware online x20cp1583 ( connecting using ethernet cable )

yes You can restore the PLC to factory state by sending the PLC to BOOT state, as before said.

In order to see how can you send your PLC model to BOOT state please check the datasheet of it, or tell us which is the model you are using. You can learn more in this post:
How to Reset a PLC without Removable Media - Share Info & Ideas - B&R Community (br-automation.com)