Analog Input Converstion
I think I have seen some light on my logic that you guys have probably stated:
I am assuming that the input from my detectors are automatically converting the 4-20 mA signal to its equivilant 0-4095 value and storing it in a V-memory position for me. Then I have my logic compare the V-memory.
BUT I don't think that's right. I should have logic in there that:
1. Loads (LDF) the bits of the 4-20 input channel data word onto the accumulator
2. does required conversion
3. Loads into specified V-memory slot
THEN
4. Runs through the V-memory vs K-value logic which in turn does the desired SET/RST. (I am sticking with that until I figure out the above stuff)
I am attaching the program for giggles...
I think I have seen some light on my logic that you guys have probably stated:
I am assuming that the input from my detectors are automatically converting the 4-20 mA signal to its equivilant 0-4095 value and storing it in a V-memory position for me. Then I have my logic compare the V-memory.
BUT I don't think that's right. I should have logic in there that:
1. Loads (LDF) the bits of the 4-20 input channel data word onto the accumulator
2. does required conversion
3. Loads into specified V-memory slot
THEN
4. Runs through the V-memory vs K-value logic which in turn does the desired SET/RST. (I am sticking with that until I figure out the above stuff)
I am attaching the program for giggles...