Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Bolt on May 14, 2021, 02:16:36 AM

Title: Program Structure Bit First Pass
Post by: Bolt 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? 
Title: Re: Program Structure Bit First Pass
Post by: mhw 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.
Title: Re: Program Structure Bit First Pass
Post by: Bolt 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.