Festerr

Interrupt doesn't work

9 posts in this topic

Hi, guys!

Please, have a look at my test LD.

I've connected an AB encoder to X0, X1. 

I want to count in D200 X0 rising edges, but it doesn't.

What's wrong?

int-test.JPG

Edited by Festerr

Share this post


Link to post
Share on other sites

If you want to count pulses on X0, your address is looking at X1

Share this post


Link to post
Share on other sites
4 minutes ago, plcdp said:

If you want to count pulses on X0, your address is looking at X1

There is an AB encoder with A -> X0 B-> X1 connected.

Share this post


Link to post
Share on other sites

Also which PLC are you using if it's a modular version and you want the currect status of the input you shuld use DX0 instead of X0. or else you get the value from before the scan 

Share this post


Link to post
Share on other sites
18 minutes ago, Gambit said:

Also which PLC are you using if it's a modular version and you want the currect status of the input you shuld use DX0 instead of X0. or else you get the value from before the scan 

It's chinese version of FX-1N 

I don't know if there such function is implemented, but fast counters like C251 works fine.

I created this thread, because I'm not shure if  my LD is correct. I didn't work with interrupts before.

Share this post


Link to post
Share on other sites

ok if it's an FX than you should use the special high speed counters.

You can use an AB counter aswell

 

Edited by Gambit

Share this post


Link to post
Share on other sites
22 minutes ago, Gambit said:

ok if it's an FX than you should use the special high speed counters.

You can use an AB counter aswell

 

Ok, I know, how to use them, but they do some redundant and bad work. It will cause some excessive steps to overcome.

I've tried to avoid such. 

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