Posted 2 Mar 2017 I am trying to move a #16 into w505 when I push the reset button on my HMI. The Reset button works but the MOV isn't working. So obviously I'm doing something wrong.... This is my first time programming with CX. Please help. See attached Thanks Share this post Link to post Share on other sites
Posted 2 Mar 2017 There is a #12 there now because I was trying other numbers Share this post Link to post Share on other sites
Posted 2 Mar 2017 Is the MOV supposed to change the value of the counter? Even though the manual is showing this should work, try using the BSET instruction. I know older manuals indicated MOV would not change the current value of a timer or counter, BSET was required. Hope this will help. Share this post Link to post Share on other sites
Posted 2 Mar 2017 Does your program compile? As far as I know, the valid range of W addresses is W0 - W99 for the CP1E. I used W0 and it worked just fine in simulation. Share this post Link to post Share on other sites
Posted 2 Mar 2017 is there a way that I can just reset the counter using a pushbutton on the HMI? Thanks Share this post Link to post Share on other sites
Posted 2 Mar 2017 Yes, Counter instruction has two inputs. Top input is for counting, bottom input is reset. Looks like the reset input is being used, just add another parallel line to what is existing. Share this post Link to post Share on other sites
Posted 2 Mar 2017 I just added line and reset button and it didn't reset? Share this post Link to post Share on other sites
Posted 2 Mar 2017 Did you disable or remove the rung below the counter that has the MOV instruction? Share this post Link to post Share on other sites
Posted 2 Mar 2017 It finally worked after compiling and downloading 3 times lol Thanks for the assistance Share this post Link to post Share on other sites