AdvancedCompare on ACC~15 min

Cycle Warning Window (compare)

A 3-second cycle should flash a warning during its FINAL second only. You can't do that with DN bits alone you compare the timer's accumulated value against a number.

Your goal

  • While Run is ON, a 3 s cycle timer runs.
  • WarnLamp is ON only while the timer's accumulator is at or past 2000 ms.
  • When Run turns OFF, everything resets and the lamp is off.
Stuck? Show hints (3)
  1. Rung 1: NO Run → TON T1.
  2. Rung 2: use the CMP contact set it to T1.ACC >= 2000 driving OTE WarnLamp.
  3. The CMP contact conducts whenever the live numeric value satisfies the comparison. ACC caps at the preset while the rung stays true.

Comparing on .ACC unlocks timing windows DN bits can't express.

I/O for this exercise

Inputs
RunCycle running
Outputs
WarnLampEnd-of-cycle warning lamp
Timers
T1 · 3000msCycle timer
Loading the editor…