- tested with S7-300, S7-1200 and S7-1500
- example TIA-Portal project included
PLC: The PLC-Block “ConPLC” sends an UDT (User Defined Datatype) via TCP to the PC.
- in the PLC-Software call the FB “ConPLC”
- connect it with the datablock where the UDT-data is saved
- setup the IP-address and portnumber
- save the UDT source on your local machine
Software: The PC-Programm recieves data from the PLC and show the live data or saves it as CSV-File.
- setup the IP-address and portnumber for the TCP-Server
- open the UDT source to sync the datastructure
- define the CSV - name, path, seperator and rows
- select the data for each row
- select the triggermode (time based or rising edge of a boolean datapoint)
Video :