GE RX3i find highest value

NetNathan

Lifetime Supporting Member
Join Date
Nov 2011
Location
Corona, CA
Posts
2,200
Plc: RX3i
Cpu: CPE305

I want to search a range of real registers for highest value.
The range is R1050 to R1525.
I thought it would be an array function...BUT I don't see.
 
Nathan,
I am very new to the Proficy ME software but I was curious and look at my software. It looks like the SORT_WORD command may work for you.

It looks like the command will look at an array and return the sort order position from low to high. So if you have a array that looked like this 1,25,64,2,5. The command will return 1,4,5,2,3 so you will know that the value in element 3 is the largest.

Hope this helps and let me know if it works as I am still learning too.

Edit: **** I should have read your post better. I didn't realise you were looking at a real array. Could you convert them to a word and then sort?
 
Last edited:
Sort does not appear to work with real numbers. (In GE PLC a real number uses 2 registers.)

Instead of looking at 500 real registers in the array......I really only needed to find the highest Temp of 20 of those registers.

I had to use a GT function block for comparing each of the 20 to find the highest.

To start I made a rung with a Move Real and sent 0 to High Temp register.
Then under this rung....I made 20 rungs with GT Real (greater than) and Move Real functions. If each Temp was higher than the High Temp register I moved it into the High Temp register.

Problem solved and easy to understand looking at ladder.
 
Last edited:

Similar Topics

GE RX3i CPE305 serial port configured as "RTU Slave", trying to find address info Hi guys, I'm working on a system with a GE CPE305 and the...
Replies
4
Views
2,629
I have a system using Rx3I CRU320 redundant CPU with Proficy Machine Edition Software. In the hardware configuration of each CPU module, under...
Replies
14
Views
434
Hi, we are using Rx3i CRU320 redundant PLC system and we noticed a discrepancy between Primary and Secondary controller. Couple of variables (DI)...
Replies
8
Views
325
Hi there, I'm doing some extensive testing and commissioning with a slew of new Emerson PACSystems RX3i PLCs. It would be convenient to...
Replies
5
Views
191
Hi there, Trying to get some ascii serial communications working via RS485 (COMMREQ functions). I have attached our wiring for the COM2...
Replies
1
Views
1,013
Back
Top Bottom