News:

  • September 23, 2026, 03:31:51 AM

Login with username, password and session length

Author Topic: TIMEPROP Chatter  (Read 31877 times)

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: TIMEPROP Chatter
« Reply #15 on: April 12, 2020, 03:25:31 PM »
Just to back up my post here is a short SIM program. No unanticipated off outputs in cycle.

TIMEPROP cycle time 5.0 seconds

Source value (simulated PID output) changing once per second

Loaded in to 'Continuous Input' (R0) on leading edge of C0 output

Not quite the same as BobO's example - only loaded on leading edge of output bit

Sorry, please change NO of ST4 to rising edge ST4

Problems with this if 'Continuous Input' goes to 0.0 or 100.0 - added a CLAMP 0.1 - 99.9 before moving
« Last Edit: April 12, 2020, 03:51:13 PM by b_carlton »
An output is a PLC's way of getting its inputs to change.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: TIMEPROP Chatter
« Reply #16 on: April 12, 2020, 04:38:00 PM »
I added code to synchronize. It'll be in the maintenance release due out in a day or two. We have to release another patch to fix some analog initialization issues anyway.

It isn't perfect. It will still glitch on run mode program updates. To make it perfect would require about 10x the effort. I care, but not that much. ;)
"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

Mike Nash

  • Hero Member
  • *****
  • Posts: 655
Re: TIMEPROP Chatter
« Reply #17 on: April 12, 2020, 04:47:48 PM »
Thanks, Bernie and BobO.

I see Bernie caught the 0 or 100 hang before I got back from testing these in the sim. Rather than the clamp, I put an OFFDTMR around the MATH with a falling edge timer contact around the rising edge TIMEPROP output. Then if it goes too long or on first run, it "watchdogs" the input update. Except for that, Bernie's example works fine (the ST4 seems OK regardless of contact type) and I am truly puzzled because I thought I had already tried this suggestion.

BobO's will hang for the same conditions. I see this one running without the extra transitions also, but I'm pretty sure I don't understand why the second branch doesn't cause an issue.

Regardless, if I can keep the TIMEPROP I'll be happier, I didn't mention some of the zones are heat AND cool, and the fans are on contactors. Plus they need to come on, and stay on longer, the more the PID output is below 50%. I was looking at LERP to solve some of that scaling, but the TIMEPROP is cleaner.

Thank you Bob! I would really appreciate this. A minor glitch on run transition is not a big deal.


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: TIMEPROP Chatter
« Reply #18 on: April 12, 2020, 04:50:56 PM »
Thanks, Bernie and BobO.

I see Bernie caught the 0 or 100 hang before I got back from testing these in the sim. Rather than the clamp, I put an OFFDTMR around the MATH with a falling edge timer contact around the rising edge TIMEPROP output. Then if it goes too long or on first run, it "watchdogs" the input update. Except for that, Bernie's example works fine (the ST4 seems OK regardless of contact type) and I am truly puzzled because I thought I had already tried this suggestion.

BobO's will hang for the same conditions. I see this one running without the extra transitions also, but I'm pretty sure I don't understand why the second branch doesn't cause an issue.

Regardless, if I can keep the TIMEPROP I'll be happier, I didn't mention some of the zones are heat AND cool, and the fans are on contactors. Plus they need to come on, and stay on longer, the more the PID output is below 50%. I was looking at LERP to solve some of that scaling, but the TIMEPROP is cleaner.

Thank you Bob! I would really appreciate this. A minor glitch on run transition is not a big deal.

I had clamped R0 at 10-90 to prevent the hang.
"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: 3626
  • Darth Ladder
Re: TIMEPROP Chatter
« Reply #19 on: April 12, 2020, 06:39:31 PM »
It isn't perfect. It will still glitch on run mode program updates. To make it perfect would require about 10x the effort. I care, but not that much. ;)

Run mode transitions are rare enough it doesn't really justify putting any effort into it.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Mike Nash

  • Hero Member
  • *****
  • Posts: 655
Re: TIMEPROP Chatter
« Reply #20 on: April 15, 2020, 11:14:24 AM »
SUPER!

Two hours after I installed v2.7.2 (due to crashes when editing rung comments in v2.7.1 (probably too many VMs open)) I opened another instance of DmD and was told v2.7.3 was here.

This looks to totally resolve my needing to do anything but just use the instruction. This is great because this system is already being installed and startup will be in the next few days.

Thanks Bob and all!

BTW, AutomationDirect has changed their download page since yesterday afternoon when I download v2.7.2 .
 


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: TIMEPROP Chatter
« Reply #21 on: April 15, 2020, 11:17:04 AM »
SUPER!

Two hours after I installed v2.7.2 (due to crashes when editing rung comments in v2.7.1 (probably too many VMs open)) I opened another instance of DmD and was told v2.7.3 was here.

This looks to totally resolve my needing to do anything but just use the instruction. This is great because this system is already being installed and startup will be in the next few days.

Thanks Bob and all!

BTW, AutomationDirect has changed their download page since yesterday afternoon when I download v2.7.2 .

You're welcome!
"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

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: TIMEPROP Chatter
« Reply #22 on: April 15, 2020, 11:20:36 AM »
BTW, AutomationDirect has changed their download page since yesterday afternoon when I download v2.7.2 .

We "released" it to ADC yesterday.  They are getting real good about updating their download pages!

Mike Nash

  • Hero Member
  • *****
  • Posts: 655
Re: TIMEPROP Chatter
« Reply #23 on: April 15, 2020, 11:28:58 AM »
Their download page "experience" was what I was referring to. Their new forum is up also. But yes, they did tend to be behind a little, at times.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: TIMEPROP Chatter
« Reply #24 on: April 15, 2020, 11:32:08 AM »
Their download page "experience" was what I was referring to. Their new forum is up also. But yes, they did tend to be behind a little, at times.
Both 2.7.2 and 2.7.3 got up there in the same or next day.  Considering they are working on the new "community" website, this was great!