Open relay - olat OK - reads state
Close relay - olat OK - reads state
Open relay - olat OK - reads state
Close relay - olat OK - reads state
and so on 6 or 7 more times, then all of a sudden olat dosn't return state?
When olat fails, try reading it again after a pause 100.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Sid Weaver
Do you have a Stamp Tester?
Hmm.. well the solenoid open/close loop is working flawlessly now.. I ran it for a couple minutes (3 different uploads)
I run the loop for the regular AC motors, and I get some fails, but now i set it up so if it fails to readback any data.. it just acts like nothing happens (and sets ports to output and dir =0) and it normally works.. if it doesn't work then, it might take 2 or 3 times of going through the loop. then it will work. This would be fine (sorta...), but in the past (yesterday) it would just start failing over and over eventually.
Oh yeah, the solenoids need a rest now.. they are offly hot.
Lee, if I remember correctly MCP2 and MCP3 are set to outputs and are never changed.· So there is no need to to read IODIR - the pins are always outputs and have no input function at all.
Did you try the second olat read after a 100ms pause?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Sid Weaver
Do you have a Stamp Tester?
Oh yea.. also. Most of the times (90percent or maybe more.. I might just cannot hear well) when the verification fails, I hear the relay click.. but the motor doesn't work. Or about 2percent of the time (this happened 2times) the AC motor will jump a couple times (makes me think of the little engine that could).
Well.... I cannot get the DC solenoids to fail anymore
On The AC, I did what you said (just try to reverify the mcp after pause 100 (instead of a re-set IODIR and olate) and this just cause a loop to go on forever saying that the settings were not verified)
Comments
Open relay - olat OK - reads state
Close relay - olat OK - reads state
Open relay - olat OK - reads state
Close relay - olat OK - reads state
and so on 6 or 7 more times, then all of a sudden olat dosn't return state?
When olat fails, try reading it again after a pause 100.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester?
http://hometown.aol.com/newzed/index.html
·
I will try that.
be back in 5
I run the loop for the regular AC motors, and I get some fails, but now i set it up so if it fails to readback any data.. it just acts like nothing happens (and sets ports to output and dir =0) and it normally works.. if it doesn't work then, it might take 2 or 3 times of going through the loop. then it will work. This would be fine (sorta...), but in the past (yesterday) it would just start failing over and over eventually.
Oh yeah, the solenoids need a rest now.. they are offly hot.
What you'll think?
Did you try the second olat read after a 100ms pause?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester?
http://hometown.aol.com/newzed/index.html
·
All of the above is when testing AC motor
On The AC, I did what you said (just try to reverify the mcp after pause 100 (instead of a re-set IODIR and olate) and this just cause a loop to go on forever saying that the settings were not verified)