Note: Resetting is only applicable to a certain group of functions, and has no effect on others.
Once the value of an automatically reset function is set, it becomes latched; that is to say, the value does not change regardless of what future parameter changes occur. One such function is the MatchKeys function, which becomes true when a specified key sequence is entered using the keyboard. Once that key sequence is entered, the MatchKeys function remains true regardless as to which future keys are pressed.
The effect of resetting such a function is that it behaves as though it were started with no previous input history. For example, resetting the MatchKeys function will cause it to ignore previous keyboard input and become false until the specified key sequence is pressed. In the case of the TimeOut function, the timer will restart from 0 when the function is reset.
All functions and statements are reset when the state that contains them is entered. They may also contain an enable parameter that allows them to be reset. Another circumstance where an automatically reset function are reset is when it occurs in a true action trigger. It will be reset whenever the action trigger is true and the action does not transfer to another state. This feature is useful for functions like as MatchKeys and TimeOut. In the case of MatchKeys, an action trigger might test for the operator input of a specific single key. If the intent of such an action is to perform a one-shot event, such as increasing a setpoint by a fixed amount, the action trigger must be false the next time it is tested or else the script will be executed innumerable times for just a single keystroke. Since the MatchKeys function is automatically reset, the action script will execute only once each time the key is hit.
Aside from the action trigger, certain functions may automatically reset some of their parameters. One such example of this is the Save function, which resets the trigger parameter once it becomes true.
Functions That Are Automatically Reset:
• AbsTime
• AlmTone
• Alarm
• Change
• Intgr
• Latch
• Pick
• ReadNum
• ReadText
• RTimeOut
• TimeOut
• Toggle
• Save
• Watch