I’m having some trouble figuring out a code for checking if a tag has a null value.
I have a string coming from the plc that changes between having 5 digits and 10 digits, (either 2 different part numbers or 1 part number) depending on what fixture is put in the machine. I have split the part numbers into 2 separate tags. When the string only has 5 digits, one tag is null.
I want to check if this tag is null, and write a value to a third tag ‘Bin 11-2’ depending on if it is or isn’t.
I’ve tried using IsNull and == None, but it’s not working… Am I missing something?
This is the code I have now (a tag event script) :
Any help would be appreciated!!