Comparing EEPROM byte with a fixed variable byte

Sagacity61

New Member
Hi All;
Using Logicator, I wish to read a serial value into eeprom and compare that stored byte with a fixed value. If true, goto routine - if false compare to next fixed value, etc.
I can't see any command that would allow me to do this.
I have looked in Logicator, FAQ and Binged with no luck.
Any help greatly appreciated.

cheers.
 

hippy

Ex-Staff (retired)
You can do it as two-step process; use a READ command to read a value at an Eeprom adress into a variable, then use a COMPARE command to check if the variable is / is not as required.
 

Sagacity61

New Member
You can do it as two-step process; use a READ command to read a value at an Eeprom adress into a variable, then use a COMPARE command to check if the variable is / is not as required.
That's what I thought was the obvious way to do it, but I don't understand the drop down boxes of the compare command.
left hand box - A0 to A2 then letters A to H
middle box - The operator is obvious (=)
Right hand box - A0 to A2 and alphanumerics A to 255

How does this relate to comparing:
EEPROM value: 0x21
to, say
Variable B value: 0x62
?
Thanks Hippy
 
Last edited:

Sagacity61

New Member
That's what I thought was the obvious way to do it, but I don't understand the drop down boxes of the compare command.
left hand box - A0 to A2 then letters A to H
middle box - The operator is obvious (=)
Right hand box - A0 to A2 and alphanumerics A to 255

How does this relate to comparing:
EEPROM value: 0x21
to, say
Variable B value: 0x62
?
Thanks Hippy
got it.
Variable B (dec 33)
=
EEPROM value (dec 98)
FALSE
 
Top