RJB Posted March 2, 2017 Report Posted March 2, 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
RJB Posted March 2, 2017 Author Report Posted March 2, 2017 There is a #12 there now because I was trying other numbers
gtsuport Posted March 2, 2017 Report Posted March 2, 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.
Michael Walsh Posted March 2, 2017 Report Posted March 2, 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.
RJB Posted March 2, 2017 Author Report Posted March 2, 2017 is there a way that I can just reset the counter using a pushbutton on the HMI? Thanks
gtsuport Posted March 2, 2017 Report Posted March 2, 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.
RJB Posted March 2, 2017 Author Report Posted March 2, 2017 I just added line and reset button and it didn't reset?
gtsuport Posted March 2, 2017 Report Posted March 2, 2017 Did you disable or remove the rung below the counter that has the MOV instruction?
RJB Posted March 2, 2017 Author Report Posted March 2, 2017 It finally worked after compiling and downloading 3 times lol Thanks for the assistance
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now