News:

  • November 23, 2026, 09:05:39 AM

Login with username, password and session length

Author Topic: Increment Instruction (Do-more) and UDC (DL6)  (Read 6 times)

Saturn_Europa1

  • Jr. Member
  • **
  • Posts: 18
Increment Instruction (Do-more) and UDC (DL6)
« on: Today at 08:34:48 AM »
I am setting up hour meter counters on some Do-more PLCs using the Increment and the UDC on Direct Soft PLCs.  I was wondering if these counters hit the upper limit of their range will the PLC go into a major fault or if it will just show an Overflow or roll back to 0?



franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3857
    • Host Engineering
Re: Increment Instruction (Do-more) and UDC (DL6)
« Reply #1 on: Today at 09:03:29 AM »
Do-more, INC instruction on signed 2's complement D will go from 2,147,483,647 hours (over 245,000 years) to -2,147,483,648 (0x7FFFFFFF to 0x80000000).

Not sure about behavior of UDC in DirectLOGIC, which utilizes a 32 bit BCD counter.  So it can go up to 99,999,999 hours BCD, so after 11,000 years.

Remember to use Retentive Memory and to replace the battery at the recommended intervals.
:-D