Jump to content

Component: Timer Interrupt (Timing ): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
Line 73: Line 73:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeDays'''
|-
|-
Line 92: Line 92:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeHours'''
|-
|-
Line 111: Line 111:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeMilliseconds'''
|-
|-
Line 130: Line 130:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeMinutes'''
|-
|-
Line 149: Line 149:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeTimeSeconds'''
|-
|-
Line 168: Line 168:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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%" style="background-color:#D8C9D8; color:#4B008D;" | '''StartTimer'''
|-
|-
Line 182: Line 182:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[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%" style="background-color:#D8C9D8; color:#4B008D;" | '''StopTimer'''
|-
|-

Revision as of 14:17, 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