Siemens communicates with their PLCs over Ethernet using a proprietary protocol:
There are various tools implementing S7 Communication, both free and commercial.
Alternatively, the PLC can execute user-created code to make use of the Ethernet interface to send and receive messages: