Jump to content

Component: Timer Interrupt (Timing ): Difference between revisions

From Flowcode Help
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(2 intermediate revisions by the same user not shown)
Line 74: Line 74:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeDays'''
| width="90%" class="mtx-class-macrohead" | '''ChangeTimeDays'''
|-
|-
| colspan="2" | 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. 
| colspan="2" | 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. 
Line 93: Line 93:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeHours'''
| width="90%" class="mtx-class-macrohead" | '''ChangeTimeHours'''
|-
|-
| colspan="2" | 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.  
| colspan="2" | 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.  
Line 112: Line 112:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeMilliseconds'''
| width="90%" class="mtx-class-macrohead" | '''ChangeTimeMilliseconds'''
|-
|-
| colspan="2" | 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. 
| colspan="2" | 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. 
Line 131: Line 131:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeMinutes'''
| width="90%" class="mtx-class-macrohead" | '''ChangeTimeMinutes'''
|-
|-
| colspan="2" | 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. 
| colspan="2" | 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. 
Line 150: Line 150:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeSeconds'''
| width="90%" class="mtx-class-macrohead" | '''ChangeTimeSeconds'''
|-
|-
| colspan="2" | 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. 
| colspan="2" | 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. 
Line 169: Line 169:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StartTimer'''
| width="90%" class="mtx-class-macrohead" | '''StartTimer'''
|-
|-
| colspan="2" | Start timer interrupt running 
| colspan="2" | Start timer interrupt running 
Line 183: Line 183:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StopTimer'''
| width="90%" class="mtx-class-macrohead" | '''StopTimer'''
|-
|-
| colspan="2" | Stop the timer interrupt running. Stopping the simulation, also stops the timer interrupt. 
| colspan="2" | Stop the timer interrupt running. Stopping the simulation, also stops the timer interrupt. 
Line 198: Line 198:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Timer Interrupt
| width="90%" class="mtx-class-propfolder" | Timer Interrupt
|-
|-
|-
|-

Latest revision as of 14:37, 13 July 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

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. 
- BYTE Days
Maximum days = 49 
- VOID Return


ChangeTimeHours

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.  
- UINT Hours
Maximum hours = 1193 
- VOID Return


ChangeTimeMilliseconds

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. 
- ULONG Milliseconds
Maximum milliseconds = 4294967295 
- VOID Return


ChangeTimeMinutes

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. 
- ULONG Minutes
Maximum minutes = 71582 
- VOID Return


ChangeTimeSeconds

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. 
- ULONG Seconds
Maximum seconds = 4294967 
- VOID Return


StartTimer

StartTimer
Start timer interrupt running 
- VOID Return


StopTimer

StopTimer
Stop the timer interrupt running. Stopping the simulation, also stops the timer interrupt. 
- VOID Return


Property reference

Properties
Timer Interrupt
Time Unit
The unit of time to measure 
Time Period
Maximum milliseconds = 4294967295 Maximum seconds = 4294967. Maximum minutes = 71582, Maximum hours = 1193, Maximum days = 49 
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