I’m trying to “pulse” a PLC tag one time. For my project, if a correct barcode is received, a Serial Number display string is populated. When that happens, I would like to turn on a tag for a period of time, once.
I’ve been searching through the forum and I found some time.sleep() code - thinking I could do the following:
I have also been tossing around the idea of enabling a timer once the Serial Number.value != ‘’ and when the timer.value > 2 system.tag.writeToTag and then disable the timer using the
if event.propertyName == 'value' and event.newValue == 0:
event.source.running = 0Any ideas?