sengkai

How to reset the bits in D6 and D7 after M1 and M2 is triggered

10 posts in this topic

Hi, I am new to this community.

My intention is detect trigger action at D6 and D7 (using PLS and PLF one scan feature). 

I am here to ask how to reset the data bits in Data Registers, e.g., D6 and D7, as shown in Expected.pdf.

My PLC ladder diagram is shown in Ladder Diagram.pdf.

 

Best Regards,

sengkai

 

PLC Flinken v8.25 extreme D6&D7 stay at 1 after it is triggered.pdf

Expected.png

Ladder Diagram.pdf

Ladder Diagram.png

Edited by sengkai
changed the name of .png to .pdf

Share this post


Link to post
Share on other sites

You can use PLS instruction for first bit of D6 too.

pls_d6.0.thumb.jpg.ad60126cf1adff5640e61

Share this post


Link to post
Share on other sites

Hi, glanov.

 

The PLC model is FX1N-24MR.  The ladder diagram is developed in GX Works 2.

Share this post


Link to post
Share on other sites

Hi, tosza93

 

I will give it a try now. Thanks for replies. I will update the result here after I carry out the test.

Share this post


Link to post
Share on other sites

It won't work with FX1N

1 person likes this

Share this post


Link to post
Share on other sites

(Untitled Project).pdf

Try this.

You need to keep D6 and 7 values for one scan only, right?

place M8000 NO contact on top of your code, it will set 0 in D6 and D7 at every scan start

 

Edited by glavanov

Share this post


Link to post
Share on other sites

Hi,

not a ladder but it should work as you want, if i understand it correctly

1.PNG

Share this post


Link to post
Share on other sites

Hi, glanov and sczot. 

I am sorry for cannot replied this post as soon as possible.

I will try the proposed solution and respond here after I finished the urgent task on hand.

 

Best regards,

sengkai

 

Share this post


Link to post
Share on other sites

you can always use mask to set, reset or toggle specific bits.

 

or... according to your timing diagram:

 

 

pulsed data registers.png

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