dineshpkd90

How to Rest or Clear the value from Data register

5 posts in this topic

Hi,

I am new to Plc Programming. I am trying to count the object on the conveyor going in 2 different direction. And i am done and stored the value inD100 and in D101.  Now i need to add the D100 and D101 with our any input to show the total value. Also i don't know how to rest the D100 and D101 value. What instruction need to use to reset/clear the value in the D.

Share this post


Link to post
Share on other sites

What PLC are you using?

What instruction are you using to count?

There are different instructions for older PLCs. Newer ones will use "++" for Decimal (Binary) and "++B" for BCD. Older will use "ADD" for BCD and "ADB" for Decimal (Binary).

For any model PLC, you can execute MOV #0000 to reset the memory location.

Share this post


Link to post
Share on other sites
14 hours ago, IO_Rack said:

What PLC are you using?

What instruction are you using to count?

There are different instructions for older PLCs. Newer ones will use "++" for Decimal (Binary) and "++B" for BCD. Older will use "ADD" for BCD and "ADB" for Decimal (Binary).

For any model PLC, you can execute MOV #0000 to reset the memory location.

Thanks for information. Let me try.

I am using CP1E-N30S1DT-D. And using "++" for decimal increment.

Share this post


Link to post
Share on other sites

MOV &0000 D100 will clear it.

Share this post


Link to post
Share on other sites
On 10/10/2020 at 5:14 PM, BobB said:

MOV &0000 D100 will clear it.

Thanks 

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