@Gambit
You understand correctly, the PLC needs to send data to a PC when a button is pressed (likely just a binary number and placed in an excel sheet).
So then what is the command to open a port on the PLC send the data to a PC?
What I'm imagining at the most basic level is a MOV[ D1 ____ ] where the blank is the ethernet port on the PLC, and D1 holds my binary number. What would that blank be? How does the protocol stuff play into this? Where does the data go once on the PC? How can I then get that data into an excel sheet?
Then from there the PC program I write can pull the binary number from the excel sheet and use it to pull up my corresponding files with another program.
I'm using a Q-series Mitsubishi PLC, not sure on exact model I'll have yet but it will have ethernet.