# Maximum cycle time violation

**URL:** <https://community.br-automation.com/t/maximum-cycle-time-violation/5749>\
**Category:** Controls & Vision\
**Tags:** automation-studio, plc\
**Created:** [February 6, 2025, 9:41am UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749 "2025-02-06T09:41:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wihl](https://avatars.discourse-cdn.com/v4/letter/w/FF8800/32.png) [@wihl](https://community.br-automation.com/u/wihl)\
**Post date:** [February 6, 2025, 9:41am UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749/1 "2025-02-06T09:41:37Z")

</div>

How to adjust this value for my plc? And where can I find relevant info about this value for my module?

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [February 6, 2025, 4:55pm UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749/2 "2025-02-06T16:55:50Z")

</div>

### Maximum Cycle Time Violation

#### Adjusting the Maximum Cycle Time Violation Value

1. **Understanding the Violation:**

- A **maximum cycle time violation** occurs when the tasks in a cyclic task class are not completed within the allowed cycle time, even after the allowed cycle time violation period has run out. This triggers the “TC max. cycle time violation” (Exception #145).

1. **Adjusting the Cycle Time and Tolerance:**

- **Cycle Time:** The cycle time is the predefined time interval within which all tasks in a task class must be executed.
- **Cycle Time Tolerance:** The cycle time tolerance is an additional time period that can be set to allow for sporadic cycle time violations. This can help avoid immediate system restarts due to minor delays.

1. **Steps to Adjust:**

- **Increase the Cycle Time:**
  - Open the B&R Automation Studio.
  - Navigate to the target system configuration.
  - Locate the task class for which you want to adjust the cycle time.
  - Increase the cycle time to a value that accommodates the longest expected runtime of the tasks in the class.

- **Increase the Cycle Time Tolerance:**
  - In the same target system configuration, find the cycle time tolerance setting for the task class.
  - Increase the tolerance to a value that allows for occasional delays without triggering a violation.

1. **Using the Profiler:**

- Use the profiler to monitor the task runtimes and ensure that the adjusted cycle time and tolerance are sufficient to handle the workload.
- The profiler can help you identify if the task runtimes are within the allowed limits and if any adjustments are necessary.

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [February 6, 2025, 4:57pm UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749/3 "2025-02-06T16:57:17Z")

</div>

If you want more assistance from us, you need to tell us what PLC you have, provide information from the logger, and generally give us more details about what you are doing.

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [February 6, 2025, 4:58pm UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749/4 "2025-02-06T16:58:27Z")

</div>

here you have something to study [task class](https://help.br-automation.com/#/en/4/automationruntime/taskclasses/taskclasses_cycletime.html) ☕

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [March 20, 2025, 5:51am UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749/5 "2025-03-20T05:51:15Z")

</div>

Automatically bumped on March 20, 2025, 5:51am UTC



---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [March 20, 2025, 6:18am UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749/6 "2025-03-20T06:18:15Z")

</div>

Hi @wihl, what is the status of your topic, have you solved it?

---

<div class="post-metadata">

**Author:** ![wihl](https://avatars.discourse-cdn.com/v4/letter/w/FF8800/32.png) [@wihl](https://community.br-automation.com/u/wihl)\
**Post date:** [March 20, 2025, 12:41pm UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749/7 "2025-03-20T12:41:23Z")

</div>

Yes. It is resolved.

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [March 20, 2025, 12:43pm UTC](https://community.br-automation.com/t/maximum-cycle-time-violation/5749/8 "2025-03-20T12:43:56Z")

</div>

and how? Can you provide us more info and close this topic?
