Sign in to follow this  
Followers 0
BITS N BYTES

OMRON - SHIFT REGISTER

7 posts in this topic

I have enabled the hardware Interrupt on input 0 of an Omron CJ1M-CPU21and tested it is working correctly. I need a left direction shift register of at least 10 words long that is incremented by this interrupt. I'll be darned if I can get this to work within the interrupt, have tried with a single SFT[010] instruction as well as multiple NSSL[582] instructions. I suspect that because these instructions require an OFF to ON transition that this condition is NOT evaluated within the interrupt. Any suggestions how to make this work?

Share this post


Link to post
Share on other sites
Use always on with SFTR.

Share this post


Link to post
Share on other sites
i think SFTR works the same as SFT if reverse shift is not needed

Share this post


Link to post
Share on other sites
Correct.

Share this post


Link to post
Share on other sites
Not so correct.... SFT must have a leading edge transition on the shift input. SFTR shifts one bit per scan as long as the shift input is on.

Share this post


Link to post
Share on other sites
Sorry about that. Getting old and forgetful. Normally use a DIFU from a bit or something to shift, or a self resetting timer.

Share this post


Link to post
Share on other sites
Forgot to say thnks! Worked great.

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