Timer
By following the steps shown above, you can add a new timer. First, click on the Timer section, then select the Add Timer button. In the window that appears, enter a name for the new timer and click OK to complete the process. The new timer will now appear in the Timer section.
Timer [n] \ Automatic
- The Automatic variable can be True or False.
- If False, the timer is started and stopped via the RunTimer and StopTimer functions, using the link defined in the Function Links table (Table 4). Once the timer command is issued, it runs according to the Link setting.
- If True, the timer will start automatically when the program runs, following the Link setting.
- See the Function Links table (Table 4) for details on RunTimer and StopTimer.
Timer [n] \ Continuous
- The Continuous variable can be True or False.
- If False, the timer runs only once.
- If True, the timer repeats as long as the condition in ControlStatusCondition is met.
Timer [n] \ ControlStatusCondition
- This variable sets a condition under which the timer runs. Enter one of the ControlStatus parameter values (see Parameter Links table, Table 6) to specify when the timer should start. For example, ControlStatusCondition = 1 means the timer only runs when the software is online.
- Only one condition can be specified for ControlStatusCondition.
Timer [n] \ Duration
- Specifies how long the timer runs, in milliseconds, after the Interval delay has passed (whether triggered manually or automatically). For example, Duration = 5000 means the timer runs for 5 seconds then stops.
Timer [n] \ Enabled
- The Enabled variable can be True or False.
- If False, the timer is completely disabled and ignored.
- If True, the timer is enabled and functions according to its settings and links.
Timer [n] \ Interval
- Specifies the delay before the timer starts, in milliseconds, after the timer command is issued (manually or automatically). For example, Interval = 60000 means the timer starts 60 seconds after being triggered.
- If Continuous is True, the timer will restart every Interval milliseconds.
Timer [n] \ LinkLink
- Value ( Numeric value links )
- Analog ( Analog signal links )
- Function ( Function-bound links )
- OutPort ( Output pin links )
- InPort ( Input pin links )
Updated 4 days ago