Component: Timer Interrupt (Timing ): Difference between revisions
Appearance
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..." |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 13: | Line 13: | ||
==Timer Interrupt component== | ==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== | ==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 70: | Line 71: | ||
===ChangeTimeDays=== | ===ChangeTimeDays=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 89: | Line 90: | ||
===ChangeTimeHours=== | ===ChangeTimeHours=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 108: | Line 109: | ||
===ChangeTimeMilliseconds=== | ===ChangeTimeMilliseconds=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 127: | Line 128: | ||
===ChangeTimeMinutes=== | ===ChangeTimeMinutes=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 146: | Line 147: | ||
===ChangeTimeSeconds=== | ===ChangeTimeSeconds=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 165: | Line 166: | ||
===StartTimer=== | ===StartTimer=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''StartTimer''' | ||
|- | |- | ||
| colspan="2" | Start timer interrupt running | | colspan="2" | Start timer interrupt running | ||
| Line 179: | Line 180: | ||
===StopTimer=== | ===StopTimer=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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 194: | Line 195: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Timer Interrupt | ||
|- | |- | ||
|- | |- | ||
| 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 | | 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/ | 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/ | 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 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
ChangeTimeHours
ChangeTimeMilliseconds
ChangeTimeMinutes
ChangeTimeSeconds
StartTimer
| StartTimer | |
| Start timer interrupt running | |
| Return | |
StopTimer
| StopTimer | |
| Stop the timer interrupt running. Stopping the simulation, also stops the timer interrupt. | |
| Return | |
Property reference
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