S7-1200 Peak value detection

NoName

Member
Join Date
Sep 2003
Location
Domžale
Posts
273
Hi All.

I have started to write the logic to control a machine that will stress test some components with force (0-2000 N). And I want to log the peak value of the force applied to the component. Has any one ever done similar logging of analog values?

So far I have come up with this...
Step 1:
Read current value 1.
Step 2 - after 50 ms
Read current value 2. and compare the two values.
If the values are increasing, jump back to step 1 if not record the 1st value and display it as peak value.

What do you guys think... Doable?

Regards
Ales
 
You may have over thought it a bit.

Clear Peak value at start of process.

If current value is greater than Peak then Move current in to Peak.

You can do that every PLC cycle, no time delay needed.
 

Similar Topics

Hello, I have a question about an encoder that has absolute measurement. Specifically, it's the Lika SMA5, which I would like to connect...
Replies
9
Views
180
Hello, I have a question about an encoder that has absolute measurement. Specifically, it's the Lika SMA5, which I would like to connect...
Replies
0
Views
58
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
304
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
125
Hi, I have attached herewith one image which our programmer has been used in S7 1500 PLC. Now we need to use the same instructions in S7 1200 PLC...
Replies
4
Views
146
Back
Top Bottom