MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › What is the difference between 100ms and 10ms timers on a Mitsubishi PLC?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

What is the difference between 100ms and 10ms timers on a Mitsubishi PLC?

The difference comes down to one thing: the time base. A 100 ms timer advances one step every 100 milliseconds and a 10 ms timer every 10 milliseconds, so the same one-second delay is written K10 on the first and K100 on the second. The time base fixes the resolution, the longest delay you can reach and the built-in error. Choosing the wrong one shows up as "the delay is never accurate" or "it simply cannot be set that long".

Three things the time base decides

The time base is not a precision rating; it controls three things at once. First is the resolution: a 100 ms timer can only be seen to a tenth of a second, a 10 ms timer to a hundredth. Second is the longest delay available, set by the 16-bit limit of K32767 multiplied by the time base. Third is the built-in error, because the timer only adds when a clock pulse arrives, so the real delay can overshoot the setpoint by up to one step and never undershoots it. The usual order of selection is to settle the required length first, then the required accuracy.

The same seconds, ten times the setpoint

The setpoint K counts clock steps, not milliseconds. The relationship is simple: delay equals time base multiplied by setpoint. K10 means 1.0 s on a 100 ms timer but only 0.1 s on a 10 ms timer; going the other way, a one-second delay is K10 on the 100 ms type and K100 on the 10 ms type, a factor of ten apart. Against the 16-bit limit of K32767, the 100 ms type reaches about 3276.7 s — a little over 54 minutes — while the 10 ms type stops at about 327.67 s. For long delays only the 100 ms type will do.

Where the error actually comes from

The timer accumulates internal clock pulses one at a time, so the real delay overshoots the setpoint by at most one clock period and never falls short. A 100 ms timer can overrun by about 100 ms, a 10 ms timer by about 10 ms. On a short 0.5 s delay that is a relative error of up to twenty percent on the 100 ms type, but only a few percent on the 10 ms type. On a long 300 s delay the 10 ms type has long since overflowed and cannot be written at all. Contact state is also refreshed by the scan, so timing that has to be tighter still belongs in an interrupt routine.

Ranges differ between models

Taking the FX3U as an example, T0 to T199 are the 100 ms timers and T200 to T245 the 10 ms timers, with a few 1 ms and 100 ms retentive types alongside. The FX2N is divided the same way, while the point counts and ranges differ on the FX1N and FX1S. Check the timer table in the manual when moving to another model rather than carrying the old numbers across: the program will still compile, but every delay will be wrong.

Which one to use where

Sequence delays, fan run-on and star-delta changeover — anything from seconds to minutes — call for the 100 ms type, with room left in the setpoint. Pulse stretching, debounce over short travel and action-confirmation work call for the 10 ms type, which holds the error down to a few tens of milliseconds. Timing to the millisecond, or timing inside an interrupt routine, calls for the 1 ms type. Cumulative running hours that must survive a stop call for a retentive type. Mixing both types in one program is fine; what matters is that each timer is marked with the type it belongs to.

The two timer types compared

Item100 ms timer10 ms timerPractical effect
Internal clockAdds one step every 100 msAdds one step every 10 msSets the resolution
Setpoint for a 1 s delayK10K100Easiest thing to mix up
Longest delayAbout 3276.7 sAbout 327.67 sLong delays need the 100 ms type
Worst-case errorUp to about +100 msUp to about +10 msRelative error diverges on short delays
Device range on FX3UT0 to T199T200 to T245Recheck numbers when changing model
Points availableAbout 200About 46Running out means another model or software timing
Coil de-energisedPresent value cleared, contact resetCleared and reset the same wayBoth are non-retentive
After power failureSetpoint and value not heldNot held eitherCumulative timing needs a retentive type
Contact refreshAffected by the scan cycleAffected too, but the base is finerInterrupt routines for tight timing
Typical useSequence delays, long timingPulse stretching, fast responsePick by the resolution required

Notes

Both types are ordinary on-delay timers: when the coil drops out, the present value is cleared and the contact resets, and nothing is remembered. A retentive timer remembers instead, and is cleared by a reset instruction rather than by the coil. Setting a value of K0 is best avoided, because what happens with a zero setpoint varies with the model and the processing path and can produce an unexpected immediate action; when an instant response is wanted, use the rising edge of the contact directly.

References

The time base, setpoint range and accuracy of a timer follow GB/T 15969.2 and the equivalent international standard IEC 61131-2 for programmable controller equipment requirements and tests, while the timer function as seen from the programming side is defined in GB/T 15969.3 and IEC 61131-3. The exact device numbers are as given in the Mitsubishi programming manual for the model concerned; electrical connection and protection inside the control cabinet follow GB 5226.1 and IEC 60204-1.

Points to watch

⚠️ Three common traps:
(1) Writing the setpoint of a 10 ms timer in milliseconds, so a 5 s delay goes in as K5 and actually lasts 50 ms, with the action flashing past;
(2) Using a 100 ms timer for a 0.3 s delay, where the error can reach a third and the setpoint keeps being changed without ever settling;
(3) Carrying the old timer numbers over to a new model, where they land in the other time base and every delay changes by a factor of ten.

Put the time base and the real delay in the comment beside each timer, and recheck every one against the manual when the model changes. Long delays are better built from a timer feeding a counter than pushed to the setpoint limit of a 10 ms type. Stop the machine, isolate and prove dead before changing timing logic, and confirm that a shorter or longer delay cannot put a mechanism and a person in the same place at once.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL