News:

  • June 10, 2026, 09:04:39 AM

Login with username, password and session length

Author Topic: New Ethernet CLICKs are out ... New Do-mores are ???  (Read 59171 times)

ADC Product Engineer

  • Hero Member
  • *****
  • Posts: 270
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #30 on: December 14, 2015, 08:24:10 AM »
Honestly, how big does a program have to be before a PLC runs into a scan time issue?

It's not really how big rung wise that the program is, but what you have in it.  For example with the DirectLogic PLC's, if you want to go slow, use a lot of BCD or Real math.  These instructions are incredibly slower than using signed or unsigned decimal which is a native instruction to the processor.

(Yes, I know BCD is the default Timer and Counter data type for DirectLogic.  There is a reason for this buried in antiquity.  Decimal math is still incredibly faster.)

deep6ixed

  • Hero Member
  • *****
  • Posts: 105
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #31 on: December 14, 2015, 10:11:57 AM »
Our boat had her keel laid in '82 with technology that put a man on the moon, remember the unit in Apollo 13 that Tom Hanks was looking at to steer the command module.  Yeah thats a VERDAN unit, ours was MARDAN its cousin...

Our computers were loaded from paper tape in 2004...

So a Do-More could easily run Navigation Control.

Dean

  • Sr. Member
  • ****
  • Posts: 73
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #32 on: December 14, 2015, 12:22:28 PM »
Let's not forget Latvia's greatest export to date:
10 Lather
20 Rinse
30 GOTO 10

Frontier

  • Newbie
  • *
  • Posts: 2
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #33 on: March 08, 2016, 07:06:34 PM »
Out of curiosity, what are people getting for their average scan times on a Do-More?  What min and max ranges are to be considered normal?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #34 on: March 08, 2016, 08:49:01 PM »
Can vary considerably. Minimum generally a couple hundred microseconds, depending on I/O. Max depends greatly on the type of application. Simple logic is very fast, string processing can be pretty slow.

What are you doing and what kind of performance do you need?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #35 on: March 08, 2016, 10:50:46 PM »
I managed to bog one down to 13ms.  Only 200 rungs but TONS of MATH boxes.  Probably an average of better than one per rung.  I pretty much can't energize a coil without resorting to a MATH box.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #36 on: March 08, 2016, 10:58:20 PM »
You must have a lot of floating point or complex functions. Basic integer math is blistering fast.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Frontier

  • Newbie
  • *
  • Posts: 2
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #37 on: March 08, 2016, 11:49:54 PM »
I'm running an average of 6ms, with a max of 9ms. The application is a brewhouse, and the most critical thing is a PID loop with a 20 second lag time. I have a CTRIO card for reading two pulse flow meters, a fairly hefty RS485 bus, and 8 RTD inputs. I was mostly curious how my scan compared so I would know if I should optimize some of the program.
« Last Edit: March 09, 2016, 01:15:14 AM by Frontier »

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #38 on: March 09, 2016, 04:08:26 PM »
You must have a lot of floating point or complex functions. Basic integer math is blistering fast.

Tons of boolean math (XORing DINT's with each other and with masks, etc.), and some looping, though not extreme.  If I get a chance I'll profile it and see if there are any bottlenecks.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #39 on: March 09, 2016, 05:51:23 PM »
I might have cut some of those from the copro due to resource issues, but they were part at one point. I'll check when back at the office. Should definitely be in the new hardware.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #40 on: March 09, 2016, 06:00:40 PM »
The 13ms wasn't a problem, but more power is always a good thing; I won't turn it down!

Yeah, I guess the lesson is that some weirdos like myself do a LOT of boolean math (and a lot of math in general), so the better it's handled the happier we'll be.   ;D
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: New Ethernet CLICKs are out ... New Do-mores are ???
« Reply #41 on: March 09, 2016, 06:05:36 PM »
Gate array was snug, so I made the bool math box stuff optional to save space. Didn't think they would be used heavily. Sorry. Should be space in the new box. Will be about a 20x performance boost for those instructions.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO