Difference between revisions of "Component: Timed Event Trigger (Runtime Tools)"

From Flowcode Help
Jump to navigationJump to search
Line 14: Line 14:
 
==Timed Event Trigger component==
 
==Timed Event Trigger component==
 
Component that will check to see if a predetermined amount of time has passed. Useful for doing things on a regular basis, e.g. every minute or every hour.
 
Component that will check to see if a predetermined amount of time has passed. Useful for doing things on a regular basis, e.g. every minute or every hour.
 +
 +
==Component Pack==
 +
 +
SCADA
  
 
==Detailed description==
 
==Detailed description==
 +
 +
  
  
Line 26: Line 32:
  
 
==Examples==
 
==Examples==
 +
 +
  
  

Revision as of 16:22, 7 January 2022

Author Matrix TSL
Version 1.0
Category Runtime Tools


Timed Event Trigger component

Component that will check to see if a predetermined amount of time has passed. Useful for doing things on a regular basis, e.g. every minute or every hour.

Component Pack

SCADA

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

Fc9-comp-macro.png Reset
Resets the countdown timer 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png SetTimePeriod
Sets the time period in seconds. Ideally this should only be called when the timer is not running. Automatically stops, resets and restarts the timer if already running. 
Fc9-u32-icon.png - ULONG Time
Time period in units specified 
Fc9-u8-icon.png - BYTE Units
0=Seconds, 1=Minutes, 2=Hours 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Stop
Stops the countdown timer running 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png CheckTrigger
Checks the state of the trigger to determine if the allocated amount of time has passed. Returns true if amount of time has passed, otherwise returns false. 
Fc9-bool-icon.png - BOOL Return


Fc9-comp-macro.png Start
Starts the countdown timer running. Automatically performs a reset if the event has already been triggered. 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Time Period Units
Units of time to wait for 
Fc9-type-21-icon.png Time Period Value
Number of time periods to wait before firing 
Fc9-type-7-icon.png Call a macro
Decides if a user macro wil be called when the event time period is over. No - requires the use of polling in your application by calling the CheckTrigger component macro. Yes - Automatically calls the selected user macro 
Fc9-type-7-icon.png Auto Reset
Yes: Automatically resets and restarts the timer when running and actioned. No: Waits for the user to restart the timer running by calling the Start macro. 
Fc9-conn-icon.png Connections
Fc9-conn-icon.png Simulations