News:

  • October 16, 2026, 02:28:59 PM

Login with username, password and session length

Author Topic: Program Structure Bit First Pass  (Read 6663 times)

Bolt

  • Hero Member
  • *****
  • Posts: 598
Program Structure Bit First Pass
« on: May 14, 2021, 02:16:36 AM »
I am trying to create a bit in a Program that causes something to trigger on the first pass through the program, and then not be triggered again until it EXITs and RUNs again later.  I'm striking out on finding such a bit.  .FirstRun, .FirstScan, .ScanCounter = 0, all don't quite do what I need.  I don't think Delta .RunCounter would do it either.  What can I use? 

mhw

  • Hero Member
  • *****
  • Posts: 250
Re: Program Structure Bit First Pass
« Reply #1 on: May 14, 2021, 06:38:54 AM »
I use a positive differential contact with "program_name.running". There are probably other ways but this will work.

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Program Structure Bit First Pass
« Reply #2 on: May 14, 2021, 10:48:43 PM »
Doh! I'll blame it on the time of day... I've used that in programs before. Thanks for the reminder.