Difference between revisions of "Component: Timer Interrupt (Timing )"

From Flowcode Help
Jump to navigationJump to search
(Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.1 |- | width="20%" style="color:gray...")
 
 
Line 13: Line 13:
  
 
==Timer Interrupt component==
 
==Timer Interrupt component==
A component for PC developer only. The timer interrupt can be set to trigger a specifed User macro evey time a set time has elapsed. Time units that can be selected are: Milliseconds, Seconds,  Minutes, Hours or Days Maximum milliseconds = 4294967295 Maximum seconds = 4294967. Maximum minutes = 71582,  Maximum hours = 1193,  Maximum days = 49  Times can be changed on the fly
+
The timer interrupt can be set to trigger a specifed User macro evey time a set time has elapsed. Time units that can be selected are: Milliseconds, Seconds,  Minutes, Hours or Days Maximum milliseconds = 4294967295 Maximum seconds = 4294967. Maximum minutes = 71582,  Maximum hours = 1193,  Maximum days = 49  Times can be changed on the fly
  
 
==Version information==
 
==Version information==
  
 
  Library Version, Component Version, Date, Author, Info
 
  Library Version, Component Version, Date, Author, Info
 +
1, 1.0, 06-03-25, MW, Component created
 
   
 
   
  
Line 207: Line 208:
 
| width="90%" | Time Unit
 
| width="90%" | Time Unit
 
|-
 
|-
| colspan="2" |  
+
| colspan="2" | The unit of time to measure 
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]
 
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]
Line 217: Line 218:
 
| width="90%" | Call Macro
 
| width="90%" | Call Macro
 
|-
 
|-
| colspan="2" | User macro to be triggered every time interrup is triggered.  
+
| colspan="2" | User macro to be triggered every time the interrupt is triggered.  
 
|}
 
|}
  
 
==Component Source Code==
 
==Component Source Code==
  
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Timer_Interrupt.fcsx FC_Comp_Source_Timer_Interrupt.fcsx]
+
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_TimerInterruptPCDev.fcsx FC_Comp_Source_TimerInterruptPCDev.fcsx]
  
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Timer_Interrupt.fcsx FC_Comp_Source_Timer_Interrupt.fcsx]
+
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_TimerInterruptPCDev.fcsx FC_Comp_Source_TimerInterruptPCDev.fcsx]

Latest revision as of 21:16, 27 January 2026

Author Matrix TSL
Version 1.1
Category Timing


Timer Interrupt component

The timer interrupt can be set to trigger a specifed User macro evey time a set time has elapsed. Time units that can be selected are: Milliseconds, Seconds, Minutes, Hours or Days Maximum milliseconds = 4294967295 Maximum seconds = 4294967. Maximum minutes = 71582, Maximum hours = 1193, Maximum days = 49 Times can be changed on the fly

Version information

Library Version, Component Version, Date, Author, Info
1, 1.0, 06-03-25, MW, Component created


Detailed description

No detailed description exists yet for this component

Examples

No additional examples










Macro reference

ChangeTimeDays

Fc9-comp-macro.png ChangeTimeDays
Change the interrupt time to a new time in days. Maximum days = 49 Timer interrupt will continue at the new rate, until TimerStop or the simuation is stopped. 
Fc9-u8-icon.png - BYTE Days
Maximum days = 49 
Fc9-void-icon.png - VOID Return


ChangeTimeHours

Fc9-comp-macro.png ChangeTimeHours
Change the interrupt time to a new time in hours. Maximum hours = 1193 Timer interrupt will continue at the new rate, until TimerStop or the simuation is stopped.  
Fc9-u16-icon.png - UINT Hours
Maximum hours = 1193 
Fc9-void-icon.png - VOID Return


ChangeTimeMilliseconds

Fc9-comp-macro.png ChangeTimeMilliseconds
Change the interrupt time to a new time in milliseconds. Maximum milliseconds = 4294967295 Timer interrupt will continue at the new rate, until TimerStop or the simuation is stopped. 
Fc9-u32-icon.png - ULONG Milliseconds
Maximum milliseconds = 4294967295 
Fc9-void-icon.png - VOID Return


ChangeTimeMinutes

Fc9-comp-macro.png ChangeTimeMinutes
Change the interrupt time to a new time in minutes. Maximum minutes = 71582 Timer interrupt will continue at the new rate, until TimerStop or the simuation is stopped. 
Fc9-u32-icon.png - ULONG Minutes
Maximum minutes = 71582 
Fc9-void-icon.png - VOID Return


ChangeTimeSeconds

Fc9-comp-macro.png ChangeTimeSeconds
Change the interrupt time to a new time in seconds. Maximum seconds = 4294967 Timer interrupt will continue at the new rate, until TimerStop or the simuation is stopped. 
Fc9-u32-icon.png - ULONG Seconds
Maximum seconds = 4294967 
Fc9-void-icon.png - VOID Return


StartTimer

Fc9-comp-macro.png StartTimer
Start timer interrupt running 
Fc9-void-icon.png - VOID Return


StopTimer

Fc9-comp-macro.png StopTimer
Stop the timer interrupt running. Stopping the simulation, also stops the timer interrupt. 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Timer Interrupt
Fc9-type-16-icon.png Time Unit
The unit of time to measure 
Fc9-type-21-icon.png Time Period
Maximum milliseconds = 4294967295 Maximum seconds = 4294967. Maximum minutes = 71582, Maximum hours = 1193, Maximum days = 49 
Fc9-type-24-icon.png Call Macro
User macro to be triggered every time the interrupt is triggered.  

Component Source Code

Please click here to download the component source project: FC_Comp_Source_TimerInterruptPCDev.fcsx

Please click here to view the component source code (Beta): FC_Comp_Source_TimerInterruptPCDev.fcsx