Jump to content

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


Recommended Posts

Posted

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. 

Posted
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.

 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...