Syntax |
Example |
Description/Remarks |
TIMER_RUN timer_number, hour, minute, interval, style, window_state, "session_type", "session_name", "ignore_changes" |
See below for examples |
Closes the current data entry session and waits for the timer to expire before launching the new data entry session that you specify. You can allow users to view the timer countdown, pause and resume the timer, cancel or run immediately, and reset the timer. The timer can be configured for one of two modes: Timer mode - launches the new data entry session after a specified time interval (e.g., after 4 hours) Clock mode - launches the new data entry session at the specified time of day (e.g., 08:30) and thereafter at a specified time interval (e.g., every 4 hours) after the new data entry session is launched The command parameters are as follows: timer_number: Any number (such as 0) can be specified for this parameter. hour and minute
interval
style: Determines which buttons are available on the timer window. Valid options for this parameter include:
To choose multiple options, add the numbers together. For example, you could hide all of the buttons by using a style value of 30 (2+ 4+ 8+16). window_state: Determines how the timer will be displayed to the end user. Valid options for this parameter are:
session_type: Specifies which type of data entry session will be launched. Valid options for this parameter are:
Note: When using a template to access external data from the SPC Charts and Reports module, a TIMER_RUN command with a Session type of "S" will be ignored. session_name: Specifies the name of the template, planned session or stored session that will be launched. ignore_changes: Determines whether the operator will be prompted to save data if not all entered data has yet been saved. Valid options for this parameter are:
This command returns 0. Role settings are ignored when using this command. |
The normal timer window (window state 0)
Pause - stops the timer countdown, displays the time remaining, and changes to Resume.
When the user clicks Resume, the timer countdown continues and the button changes back to Pause.
This button is only available for timer mode.
Reset - restarts the countdown from the original value specified in the TIMER_RUN command. This button is only available for timer mode.
Run now - launches the new data entry session immediately.
Cancel - closes the timer window and returns to the SPC Data Entry main screen.
TIMER_RUN 0, 9, 30, 0, 0, 0, " T", "B. Basic Keybd, 1 Feature", " N"
Opens the template "B. Basic Keybd, 1 Feature" at 9:30 A.M. without prompting you to save changes if another session is open. The timer will appear as a normal timer window with all the buttons shown.
TIMER_RUN 0, 9, 30, 120, 6, 0, " T", "B. Basic Keybd, 1 Feature", " Y"
Opens the template "B. Basic Keybd, 1 Feature" at 9:30 a.m. and prompts you to save changes if another session is open. The timer will appear as a normal timer window without the Pause and Reset buttons shown and the session will restart after two hours.
TIMER_RUN 0, 13, 45, 0, 0, 2, " T", "B. Basic Keybd, 1 Feature", " Y"
Opens the template "B. Basic Keybd, 1 Feature" at 1:45 p.m. and prompts you to save changes if another session is open. The timer will appear in the status bar.
TIMER_RUN 0, -1, -1, 45, 0, 2, " T", "B. Basic Keybd, 1 Feature", " Y"
Opens the template "B. Basic Keybd, 1 Feature" after 45 minutes elapses and prompts you to save changes if another session is open. The timer will appear in the status bar.