0

i'm tryng to create a gatewa event that turno off my machine when the time is the same as I put in the timer, but i have this error that i can't figure out

'this is the first part of the error i get' 'second part of the error'

from datetime import datetime

Now = datetime.now()

dt_string = Now.strftime("%H:%M")

OraFermo = system.tag.read('[default]linea12/Linea_12/OraFermo').value

OraFermoHM = OraFermo.strftime("%H:%M")

logger = system.util.getLogger("myLogger")

logger.info(str(system.tag.read(Now)))

if str(OraFermo) == str(dt_string):
    if str(system.tag.read('[default]linea12/Linea_12/AbilitazioneFermoOrario').value) == 'true':
    system.tag.writeBlocking('[default]linea12/Linea_12/SCADA-PLC/BtnFermaImpianto', 1)

this is the code

Avad
  • 197
  • 1
  • 8
Brosky
  • 1
  • 3
  • Hey! It is really hard to read the code/error from the picture. Can you please paste the code in the question? – FoxFil Feb 03 '23 at 08:15

0 Answers0