PythonPLC/plc.py
def createRetentiveTag(self, name, value):
        """Retentive Tags doesn't accept booleans, instead use binary integers"""
        data = dict(self.cursor.execute("SELECT * FROM memory").fetchall())
        if not name in data:
            self.cursor.execute('INSERT INTO memory VALUES (?, ?)', (name, value))
            self.conn.commit() 
        else:
            print("Tag {} already created".format(name))
Retentive Tags doesn't accept booleans, instead use binary integers
Retentive Tags doesn't accept booleans, instead use binary integers
Retentive Tags doesn ' t accept booleans instead use binary integers
def createRetentiveTag(self, name, value):
        data = dict(self.cursor.execute("SELECT * FROM memory").fetchall())
        if not name in data:
            self.cursor.execute('INSERT INTO memory VALUES (?, ?)', (name, value))
            self.conn.commit() 
        else:
            print("Tag {} already created".format(name))
def createRetentiveTag ( self , name , value ) : data = dict ( self . cursor . execute ( "SELECT * FROM memory" ) . fetchall ( ) ) if not name in data : self . cursor . execute ( 'INSERT INTO memory VALUES (?, ?)' , ( name , value ) ) self . conn . commit ( ) else : print ( "Tag {} already created" . format ( name ) )
Retentive Tags doesn't accept booleans, instead use binary integers
Retentive Tags doesn ' t accept booleans instead use binary integers
"""Retentive Tags doesn't accept booleans, instead use binary integers"""
self
name
value