# Change an SFC timer action rate via scripting

**URL:** <https://forum.inductiveautomation.com/t/change-an-sfc-timer-action-rate-via-scripting/65119>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 12, 2022, 3:02pm UTC](https://forum.inductiveautomation.com/t/change-an-sfc-timer-action-rate-via-scripting/65119 "2022-10-12T15:02:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlwalter](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mlwalter](https://forum.inductiveautomation.com/u/mlwalter)\
**Post date:** [October 12, 2022, 3:02pm UTC](https://forum.inductiveautomation.com/t/change-an-sfc-timer-action-rate-via-scripting/65119/1 "2022-10-12T15:02:46Z")

</div>

I was wondering if it were possible to dynamically change the rate of a timer action within an SFC step. For example I've created an action that sets a chart parameter on a 5 second sample time. I'd like this sampling time to be dynamic, where I set it at the beginning of the SFC in a separate step(i.e. from step S1 have an action that writes the sample rate of the timer in S2).

---

<div class="post-metadata">

**Author:** ![obober](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/obober/32/67865_2.png) [@obober](https://forum.inductiveautomation.com/u/obober)\
**Post date:** [December 9, 2022, 10:09pm UTC](https://forum.inductiveautomation.com/t/change-an-sfc-timer-action-rate-via-scripting/65119/2 "2022-12-09T22:09:23Z")

</div>

I unfortunately don't see a way to do this in the Designer, and there don't seem to be any [system.sfc](https://docs.inductiveautomation.com/display/DOC81/system.sfc) scripting functions that would provide this function. Did you discover a way to do this? Maybe you can post it here for public visibility? You can also submit a feature request on the [Ignition Features and Ideas](https://inductiveautomation.canny.io/ignition-features-and-ideas) page if you'd like.

---

<div class="post-metadata">

**Author:** ![Alexander\_Sherman](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Alexander\_Sherman](https://forum.inductiveautomation.com/u/Alexander_Sherman)\
**Post date:** [January 9, 2023, 10:20pm UTC](https://forum.inductiveautomation.com/t/change-an-sfc-timer-action-rate-via-scripting/65119/3 "2023-01-09T22:20:20Z")

</div>

I would also like to do something like this, so that I can loop with a programmable rate while still being able to reliably pause charts
