compare statement

michael59

Member
Join Date
Dec 2002
Posts
19
hi all
i 'am still at college and at the moment doing an oven controll
exercise using dac and adc.
but my question is this in the mittsie fx programing can i use the compare command like so.

---/m1/-------[cmp d0 d5 m3]

so that when m1 is activated it will compare data reg d0 to data reg
d5 and activated m3.
could you please tell me if this will this work.

thanks in advance michael.
 
It depends... :D

M3 will turn ON if D0 > D5. If that's what you need, then you're fine.

You'll also have M4 which turns ON if D0 = D5, and M5 which turns ON if D0 < D5

Also make sure not to accidentally use M3-M5 for other purposes in your program!... đź““

beerchug

-Eric
 

Similar Topics

Anyone know a way to get the CMP Instruction to highlight in yellow when the statements is true in ladder logic? Similar to the XIC?
Replies
5
Views
2,312
Help please. Im new to Omron and have a machine down. I have a compare = for barcode label scan. I've attached two pics. On the Mnemonics you can...
Replies
4
Views
617
Hi everyone! Accidentally closed it and it wont appear again. Checked and unchecked the option and seem to make no difference. Running v7.10.00...
Replies
16
Views
1,882
I'm working on an array that contains a UDT of 5 Items Array[4] DataType[0] - Part 1 - Part 2 - Part 3 - Part 4...
Replies
1
Views
835
Hi. I have 2 files where I would like to see the ladder logic differences (similar to the Rockwell compare function). I am using TISoft Siemens...
Replies
1
Views
1,254
Back
Top Bottom