Sign in to follow this  
Followers 0
MStewart

@MOV / EQU Command

7 posts in this topic

The problem I am having is when I move (&MOV) 1 to StartCommand (INT) and then I am check to see if StartCommand is equal (=) to 1 but it constantly quickly bounces between a 1 or a 3. This is causing my output to bounce constantly.

Does anyone know what might be going on?

 

Edited by MStewart

Share this post


Link to post
Share on other sites

It sounds like something else in your program is using that register but without a LOT more information it's only a guess.

Share this post


Link to post
Share on other sites

3 indicates that that bit 01 of the word that you are moving to is on at the same time as bit 00.

Share this post


Link to post
Share on other sites

Here is a small piece of my code.

If you simulate it (Turn on StartPushButton then turn it off, Turn on PartInFeeder then turn it off) after you get the CurrentSequence to hit 2 it jumps to 4 messing me up.

I am new to Omron and am not understanding whats going on. You don't have these problems with AB lol

Any help would be greatly appreciated

McKenzie

DBTest.cxp

Share this post


Link to post
Share on other sites

That's because turning off PartInFeeder  causes T3 to time out which moves 4 into CurrentSequence.

 

Share this post


Link to post
Share on other sites

Good Call, Mr. Mendon. :clap:

Share this post


Link to post
Share on other sites

And to think something so silly got me.

Thanks for the help guys!

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
Sign in to follow this  
Followers 0