Retaining Values with Mitsubishi

Asaddoris

Member
Join Date
May 2018
Location
Georgia
Posts
19
Hello,
So I have a program that I would like to retain a signed word, and send that to a log file. The program is for process cycle time, to track the operators process time. If I need to write more code in logic that is fine, but I need to be able to store maybe 12 or more cycle times so that I or a manager can review the activity. Please see the attached file for the logic that does the counting and is output as a signed word. Any help would be appreciated.

CT logic.PNG
 
Ya I had looked into the latch/unlatch in the device settings, I will try this and see. I was thinking that the latch functions would only be good if it was an actual output, on or off. Only other issue then even if it is latched, I imagine I would need to make the code so that I had (x) amount of cycle times I want to retain then, instead of just moving this information into another register. So my thought process would be I want to store 12 counts, make some sort of code that cascades for each of the 12 times it cycles, then start resetting and overwriting that data once the 12 is reached. I hope this makes sense, and will work too!
 
Garrys link addresses the issue of clearing registers with the reset switch or with power loss or not.
As I understand the question you want a buffer to hold recent values. Since you only want 12 values then my suggestion is to hard code the move to this on each counting up that you already have code for.
 
my suggestion is to hard code the move to this on each counting up that you already have code for.

I agree with this, do you have any ideas of how, considering I don't have any counters, the code pasted in my first post, is the majority of the code for this, and it outputs as a word. Any suggestions will be appreciated on how to write this or at least some kind of example.
 

Similar Topics

I have an L33ERM Compact PLC that every time I go offline from it, I lose all my string values.. so if I need to make a change (IE adding an array...
Replies
10
Views
1,429
Hello, I am tasked to update a CompactLogix PLC program on a live system. The updates I need to make involve changing a user-defined data...
Replies
9
Views
2,099
Hi All, I am using a Compact Logix CPU and PanelView 5510 HMI, and i am using Studio 5000 (V32.02) platform for developing the program for both...
Replies
8
Views
7,457
In my program my program tags largely exist in a couple of a data blocks. There are a number of tags in there that the operator may need to get...
Replies
4
Views
10,689
Hi! I've just discovered a problem with my datablock. I have some values that I wan't to be save even if the power break. So I have a DWORD that...
Replies
1
Views
3,209
Back
Top Bottom