PLC Preset Value: Timer PT, Counter PV and PRE
Quick answer
A PLC preset value is the configured threshold a timer or counter compares with its current value. IEC timers commonly use PT, IEC counters use PV, and Rockwell timer/counter structures use PRE. A preset is not the elapsed time or current count.
Key Takeaways
- A PLC preset value is the configured threshold a timer or counter compares with its current value. IEC timers commonly u...
- Beginner-level topic in Ladder Logic Elements
- Commonly used in: Timer delays and pulse durations, Counter batch sizes and maintenance limits
Detailed Definition
The preset value defines when an instruction changes state. For an IEC TON, Q becomes TRUE after elapsed time ET reaches preset time PT while IN remains TRUE. For an IEC CTU, Q becomes TRUE when current value CV reaches or exceeds preset value PV. Rockwell Logix exposes a .PRE member and instruction-specific accumulator or status fields.
A numeric preset is incomplete without units and range. Rockwell Logix timer PRE values use milliseconds in the documented TIMER model, while IEC TIME literals such as T#5s carry a time type. Changing a preset online or from code can immediately change the comparison result, so dynamic presets need validation, bounds and a defined active-cycle policy.
Evidence and scope
Timer and counter preset terminology was checked against current Rockwell Logix Designer, Siemens STEP 7 and CODESYS documentation. Units, writable behavior and what happens when a preset changes while active remain instruction- and platform-specific.
Technical review:


Critical behavior
- A preset is the target threshold; ET, CV or ACC is the current value.
- Time presets require explicit units. The number 5000 can mean five seconds only in a documented millisecond-based instruction.
- Timer completion usually tests elapsed time against the preset; counter completion commonly tests current count greater than or equal to the preset.
- Editing a preset while an instruction is active can make the done condition true or false on the next execution.
- Operator-entered presets need type, minimum, maximum and authorization checks before logic uses them.
Verification checklist
- 1Record the preset data type, engineering units and allowed range.
- 2Test immediately below, exactly at and immediately above the threshold.
- 3Change the preset while inactive, while active and after completion.
- 4Verify restart and recipe-loading ownership of the value.
- 5Trend preset, current value, done output and reset on the same time axis.
IEC and vendor terminology
Similar-looking instructions do not always have identical execution, initialization or storage behavior.
| Platform | Common term | What to verify |
|---|---|---|
| IEC-style timer | PT | Preset Time, normally a TIME value. Q and ET behavior depends on TON, TOF, TP or the selected timer block. |
| IEC-style counter | PV | Preset Value compared with Current Value CV. CTU commonly sets Q when CV is greater than or equal to PV. |
| Rockwell Logix | .PRE | Preset member in TIMER or COUNTER structures. Current Logix timer documentation uses one-millisecond units. |
| Siemens STEP 7 | PT / PV; PRESET_TIMER | PT/PV are normal block parameters. PRESET_TIMER is a separate operation that writes a time into an IEC timer instance and can affect a running timer. |
Timer and counter preset boundaries
|----[ Start_Request ]----[ TON StartDelay, PT=T#5s ]---------|
|----[ Part_Pulse ]-------[ CTU BatchCount, PV=12 ]-----------|
|----[ StartDelay.Q ]------( ) Delay_Complete------------------|
|----[ BatchCount.Q ]------( ) Batch_Complete------------------|Preset boundary test table
Test the comparison around the exact threshold and after an online preset change.
| State / phase | Current value | Preset | Expected done state |
|---|---|---|---|
| Below threshold | 4.999 s or 11 counts | 5 s or 12 | FALSE |
| At threshold | 5.000 s or 12 counts | 5 s or 12 | TRUE |
| Above threshold | 5.001 s or 13 counts | 5 s or 12 | TRUE |
| Preset lowered while active | 4 s or 10 counts | Changed to 3 s or 8 | Usually TRUE on evaluation; verify platform |
Working LD and ST example
Bound and apply an operator-entered timer preset
Prevent zero, negative or excessive recipe values from reaching the timer block.
Ladder Diagram
|----[ Recipe_Valid ]----[ TON MixDelay, PT=SafeMixTime ]-----|
|----[ MixDelay.Q ]------------------------( ) Mixing_Done-----|Structured Text
SafeMixTime := LIMIT(T#1s, OperatorMixTime, T#10m);
MixDelay(
IN := RecipeValid AND Mixing,
PT := SafeMixTime
);
MixingDone := MixDelay.Q;Expected result: The timer receives a TIME value between one second and ten minutes. An invalid recipe cannot silently create a zero-time or excessive delay.
Failure modes and diagnostic checks
| Symptom | Likely cause | Check next |
|---|---|---|
| A five-second preset produces a much longer or shorter delay | The value was entered in the wrong time base or converted from an untyped numeric value. | Inspect the instruction data type and online PT/PRE value, including displayed units. |
| Done becomes true immediately after an HMI edit | The new preset is below the current ET, ACC or CV. | Define whether changes apply immediately, on reset or at the next sequence start. |
| A counter never reaches its preset | Pulses are missed, the counter resets, or PV exceeds the selected numeric range. | Trend CU edges, CV, reset and PV together; test the maximum configured value. |
| Preset returns to an old value after restart | The recipe/HMI value and controller initialization have different ownership or retentivity. | Document the source of truth and test download, restart and recipe-load sequences. |
Current primary and technical sources
These sources support the behavior summarized on this page. The project's controller, firmware and IDE help remain authoritative for implementation.
- Timer and Counter Instructions, Logix Designer V38
Rockwell Automation — PRE terminology and millisecond timer example
- PRESET_TIMER: Load time duration, STEP 7 V21
Siemens — Runtime write behavior for an assigned IEC timer
- TON function block
CODESYS — PT and ET timer interface
- CTU function block
CODESYS — PV and CV counter interface
Continue with the practical guide
Common Questions
What is Preset Value?
A PLC preset value is the configured threshold a timer or counter compares with its current value. IEC timers commonly use PT, IEC counters use PV, and Rockwell timer/counter structures use PRE. A preset is not the elapsed time or current count.
When should I use Preset Value?
Preset Value is particularly useful in scenarios such as Timer delays and pulse durations and Counter batch sizes and maintenance limits. Consider implementing it when you need reliable, efficient solutions for these types of applications.
What should I verify before using Preset Value?
Record the preset data type, engineering units and allowed range. Test immediately below, exactly at and immediately above the threshold. Change the preset while inactive, while active and after completion. Verify restart and recipe-loading ownership of the value. Trend preset, current value, done output and reset on the same time axis.
What are related concepts I should learn?
To fully understand Preset Value, you should also familiarize yourself with TON (Timer On-Delay), TOF (Timer Off-Delay), and CTU (Count Up). These concepts work together in industrial automation systems.
Continue Learning
Ready to deepen your understanding of Preset Value? Here are some recommended resources:
Was this helpful?
Let us know if this glossary term helped you understand Preset Value better.
Your feedback helps us improve our glossary and create better content for the PLC programming community.
Quick Info
- Category
- Ladder Logic Elements
- Difficulty
- Beginner
- Tier
- Important
About Ladder Logic Elements
Contacts, coils, timers, counters, and ladder diagram components