News:

  • May 05, 2026, 03:47:06 PM

Login with username, password and session length

Author Topic: Main Page Counter for Stage Instances within another Program  (Read 5856 times)

jvm728

  • Jr. Member
  • **
  • Posts: 11
Main Page Counter for Stage Instances within another Program
« on: November 24, 2015, 02:27:21 PM »
Really getting held up on counter functions today. I want to count up every time a specific stage is run within a program. Some measurement data is what decides. All of the parts and pieces are there, but it just isn't wanting to count.

JRM

If I run the counter on the main page ladder logic, can I tell it to count UP everytime Stage 7 is ON within Program 2?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Main Page Counter for Stage Instances within another Program
« Reply #1 on: November 24, 2015, 04:23:40 PM »
Use a rising edge contact on the stage bit (MyProg.S#) with an increment.

STRPD MyProg.S0
INC D0
"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

jvm728

  • Jr. Member
  • **
  • Posts: 11
Re: Main Page Counter for Stage Instances within another Program
« Reply #2 on: November 24, 2015, 04:24:48 PM »
I ENDED UP having a typo and got it sorted out. The stage was ending through another rung. I can tell this is a good group of guys. Thanks for the help.