RJB

CPIE MOV ISSUE

9 posts in this topic

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

mov.JPG

Share this post


Link to post
Share on other sites

There is a #12 there now because I was trying other numbers

Share this post


Link to post
Share on other sites

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

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

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

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

I just added line and reset button and it didn't reset? :-(

Share this post


Link to post
Share on other sites

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

It finally worked after compiling and downloading 3 times lol

 

Thanks for the assistance

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now