Challenge - 5 Problems
CTU Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediateWhat is the output value of the CTU after 5 rising input pulses?
Consider a Count-Up (CTU) counter with preset value 10 and initial count 0. The input pulse (CU) is triggered 5 times. What is the current count value after these pulses?
PLC Programming
CTU preset = 10 Initial count = 0 Input pulses (CU) = 5 rising edges Output: Current count value
Attempts:
2 left
💡 Hint
The CTU increments the count by 1 for each rising pulse until it reaches the preset.
✗ Incorrect
The CTU increments the count by 1 for each rising edge of the CU input. After 5 pulses, the count is 5, which is less than the preset 10.
💻 Command Output
intermediateWhat happens to the CTU count when the reset (R) input is activated?
A CTU counter has a current count of 7 and preset of 10. The reset input (R) is activated once. What is the count value after reset?
PLC Programming
CTU preset = 10 Current count = 7 Reset input (R) activated once Output: Current count value
Attempts:
2 left
💡 Hint
Reset input clears the count to zero immediately.
✗ Incorrect
Activating the reset input sets the count value back to zero regardless of the current count.
💻 Command Output
advancedWhat is the output of the CTU done bit after 12 input pulses with preset 10?
A CTU counter has preset value 10 and initial count 0. The CU input receives 12 rising pulses. What is the state of the done bit (DN) after these pulses?
PLC Programming
CTU preset = 10 Initial count = 0 Input pulses (CU) = 12 rising edges Output: Done bit (DN) state (True/False)
Attempts:
2 left
💡 Hint
The done bit is set when count reaches or exceeds preset.
✗ Incorrect
The done bit is set to True when the count reaches or exceeds the preset value. After 12 pulses, count is 12 which is greater than preset 10, so done bit is True.
🧠 Conceptual
advancedWhich statement correctly describes CTU behavior when count exceeds preset?
In a CTU counter, what happens if the count value exceeds the preset value due to input pulses?
Attempts:
2 left
💡 Hint
Think about whether CTU limits the count or not after preset is reached.
✗ Incorrect
The CTU count continues to increment beyond the preset value; the done bit remains set once preset is reached or exceeded.
🔧 Debug
expertWhy does this CTU counter never set the done bit despite many input pulses?
Given this CTU logic snippet:
CTU preset = 5
Count initialized at 0
CU input pulses rising edge detected
Reset input never activated
But done bit (DN) never becomes True after 10 pulses. What is the most likely cause?
PLC Programming
CTU counter {
preset = 5
count = 0
CU = rising edge pulses
R = false
}
Output: done bit (DN) state after 10 pulsesAttempts:
2 left
💡 Hint
Check if the input pulses are properly detected as rising edges.
✗ Incorrect
If the CU input is not detected as rising edges, the count never increments, so done bit never sets.
