Omron CP1L addresses?

donl517

Member
Join Date
Dec 2005
Location
Michigan
Posts
127
I am using the MAX(182) instruction to find the largest value in a range of DM. As I have the instruction set it is putting the address of the largest number in IR0. I can't figure out how to use the address in IR0 to identify the DM it is referencing.

Ultimate goal, of the 16 DM that are involved I want to be able to identify them on an HMI as 0-15. The DM contains timer values and I want to identify the timer with the largest value on every HMI screen.

Thanks,
Don
 
OK, I figured it out. I had to define a table DIM(631) Then I was able to use MAX(182) to find the largest value, and GETR(636) to get the record number.

Thanks,
Don
 
If you use BCMP it will compare IR0 with the range of 16 DM (registers) and output a bit for the one that equals the IR0.
BCMP2 will do the same thing over a range of up to 256 DM.
 
By the way Don, that is the most convoluted way I have ever seen for doing what you want. You must have spent a few hours getting there - congratulations for figuring out a way.
The PLC is a powerful little beast and basically has the same instruction set as the CJ1, CJ2, CS1 - love em - hate it when there are 3-4 different platforms in a brand and you do not have the functions available you normally use.
 
It is the first time I have ever used the table instruction. Most of my projects are pretty simple, if I hadn't wanted to provide this feature, this one would have been too! It did take a while, but now that I have used it in a real world application, I may find other uses for it.

Thanks Again,
Don
 

Similar Topics

Hi everyone! I have an issue with some Omron CP1L-E PLC's. They're connected to get the info from production machines, but I've noticed that...
Replies
2
Views
1,151
Hi! Omron CP1L. CX Programmer. How do I fix so that a CNTRX(548) remembers the count it had before a power failure? I need to know how many...
Replies
3
Views
1,389
Hi! Newbie here... Cx-programmer CP1L PLC NB7 HMI I want to multiply something i by 1,5 in CX-Programmer to get a higher number to use in HMI...
Replies
7
Views
2,220
Hi all, I've been upgrading some machines recently which involves installing a 10" NB HMI, HUB and a CP1L-E to avail of the built-in ethernet...
Replies
0
Views
1,699
Hi, is someone experiment connecting a Omron plc CP1L with a Siemens HMI TP1200?, i've installed the drivers in WinCC , plc options is just CS1 or...
Replies
0
Views
1,907
Back
Top Bottom