Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: jvm728 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?
-
Use a rising edge contact on the stage bit (MyProg.S#) with an increment.
STRPD MyProg.S0
INC D0
-
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.