RSLogix 5000 - checking for repeated values

FNC

Member
Join Date
May 2010
Location
NJ
Posts
84
I have an array of 500 strings.

Is there an easy way to check to see if there are any repeats without using brute force with a loop?

Thanks.

FNC
 
Brute force and a loop seems to be the only way to do it inside the PLC.

You will have to to a FSC to detect "sameness" of element 1 to elements 2 to 499, then element 2 to elements 3 to 499, etc., etc.

That is going to take a considerable amount of coding and processor time.

Do you need the result every scan?

How often does this test need to be performed?

Do you need to know all locations where duplicates exist? or just to know that there is at least one? (i.e. correcting the first duplicate will reveal the next, etc.)

Are all the strings the same length? (Some pre-sorting may make the task easier if not)
 
hello
i want to control my temp control loop in rslogix5000...but the thing is when i enter setpoint 65
then control valve should start closing when PV is 63 so what should i do for this adjustment.Give me reply as soon as possible.
thank you
 
hello
i want to control my temp control loop in rslogix5000...but the thing is when i enter setpoint 65
then control valve should start closing when PV is 63 so what should i do for this adjustment.Give me reply as soon as possible.
thank you

You should have started your own thread for this...

But here's my take....

Reduce P
Add I to bring control to SP in a reasonable time
Add D if overshoot, but only if necessary, most loops can be PI only

Research "PID" - google will help
 

Similar Topics

Hi, if we want to read or set a bit of an integer we can simply do: assume TEST1 is the integer, TEST1.3 := 1; or IF TEST1.4 THEN..... but...
Replies
2
Views
2,487
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
158
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
587
First off, I'm a hobbyist-level programmer, and this program isn't controlling anything anything that could even remotely be considered "life...
Replies
18
Views
522
Back
Top Bottom