OK, I am not sure I understand that. Or is this because the function is not "returning" anything? I am a little lost with the local / global variable thing. I work as an automation tech programming PLC's where a variable is a variable is a variable, or a tag is a tag, or a bit is a bit. All variables are predefined and all functions manipulate only those variables that are defined. How do I have the function manipulate the global variable? Even if that is the case, the function is still not being called, as the print functions fail to occur. How do I get the time alarms to call the function?