pjw

how to store counter value into D register or M memory?

4 posts in this topic

Hi,

What is the idea to store counter value into D register or M memory address in mit plc?

Share this post


Link to post
Share on other sites

I don't have the Mitsubishi software handy to show an example but I'll explain.

The counter's value can be a static value that once programmed, it will never change. If you use a D register for the value, then the set time can be adjusted, or changed. For example, from an HMI. 

Share this post


Link to post
Share on other sites

Do you want to just move the accumulated value?   If so, just use a MOV command.

Like [MOV C0 D1000].

 

1 person likes this

Share this post


Link to post
Share on other sites
On 3/29/2024 at 3:01 PM, Glenn Covington said:

Do you want to just move the accumulated value?   If so, just use a MOV command.

Like [MOV C0 D1000].

 

Here is a way I found recently that works well so far in our application.

 

My counter looks like this

    INCP_U(SCARA.VacuumSwitch, D3263);       //D3263 is HMI.PartsPicked. For some reason when I use HMI.PartsPicked it gives an error when rebuilding.
    RST(HMI.ResetPartsPicked, HMI.PartsPicked);

On my HMI I made a number display and used D3263 for my device.

 

 

 

 

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