MikeTan

Hi,
I'm having unstable readout from QX0.0 to QX0.7 with the simple L.D as shown below. The reading will toggle after a few seconds whereas the physical outputs remains stable  The QX1.0 to QX1.2 outputs are stable though.

The "Monitoring" page in the PLC webserver also showing the output values flickering. A video capture can be seen here.  https://drive.google.com/file/d/1dMT3I8Qppb0MhPv8I4Bogz9o6fTl9ZnN/view

Can anyone give me some advice?OpenPLC_LD.png

Quote 0 0
thiagoralves
Upload your project here so I can take a look. What platform are you running it on?
Quote 0 0
MikeTan

Thanks for your reply
The project file (slightly different but same symptoms) is attached

I'm using on RPI 3 model B running the latest raspbian buster

Quote 0 0
thiagoralves
Check your electrical connections. There is a chance that your button has a bad connection to the pin which makes it trigger on and off very quickly. This can cause the outputs to oscillate like that. I made a small modification to your program, try this out. Instead of trigger SW1 with a button, I'm triggering it with an internal 4s oscillator. On my tests, all outputs were turned on and off in sync.
Quote 0 0
pedromorgan
Ok so pedro plan is to nick this into an "faq" somehow, ie hardware vs app.. What would be nice is to have  an autocreated program that flashed all dio in step every recognisable second..

Maybe this is the plan to have demo programs in "cooking" book, and recipies for use..
Quote 0 0