Read S7-1200 PLC data in log into MS SQL table import pyodbc import snap7 from snap7 . util import * # Create a connection to the PLC plc = snap7 . client . Client () plc . connect ( …