Baan

Hi! I created an account to address an issue I currently experience.

Current OpenPLC Editor Version: 2.0.1

Board used: Arduino Uno

I created a simple program which directly connects to 3 LEDs connected to pin 13, 12, and 8. (picture 1)

When the program is uploaded to the board: (picture 2)

1) The LED connected to pin 13 does not generate light, 

2) The LED connected to pin 12 generates little light

3) The LED connected to pin 8 generates light normally.

4) All LEDs have the same resistors which is 220 ohms

When I use another program (specifically Arduino IDE) without changing anything in the breadboard: (Picture 3 and 4)

1) All LEDs shine brightly

2) All LEDs work normally

Conclusion:

I do not think that the issue lies on my hardware, since in using other programs, the circuit works normally, it seems that it only occurs when I use OpenPLC Editor.

Are there anyone who experiences the same problem?

Happy Holidays everyone! I hope you have a joyous Christmas and a prosperous new year. 


Picture 1:
Example1.png

Picture 2:Example2.jpg
Picture 3:
Example3.png

Picture 4:
Example4.jpg
Reply 1 0
Seafoxc
Misterious, you can maybe try using the FBD language. U can just wright "True" and connect it to the tags.  
I have no Idea what I'm doing...
Reply 0 0
Chas
Did you check that you have 5 v across each LED ?
Try connecting each LED to the 5 v on the UNO - does it turn on when connected?

What happens if you change your PLC code to only turn on one output at a time. If it turns on OK then you have a power supply problem. Try using a 9 v battery on the external DC jack if this is the case.
Reply 0 0
Baan
Seafoxc wrote:
Misterious, you can maybe try using the FBD language. U can just wright "True" and connect it to the tags.  


Hi. Thank you for giving an alternative way. However, it was required that we only strictly use LD language, so, even if the problem is solved in FBD language, it would not change the problem in LD. Thank you for your reply! 🙂
Reply 0 0
thiagoralves
This is a very straightforward ladder program. Just from the picture it seems to be correctly written, although I would need the full program to be sure. I suspect that something is happening during the upload process and the board is not getting flashed at all, or is getting wrong data, or maybe something else in the program is crashing the runtime so that it doesn't run at all. Check your upload window output text to make sure that the board was flashed properly
Reply 0 0
Baan
Chas wrote:
Did you check that you have 5 v across each LED ?
Try connecting each LED to the 5 v on the UNO - does it turn on when connected?

What happens if you change your PLC code to only turn on one output at a time. If it turns on OK then you have a power supply problem. Try using a 9 v battery on the external DC jack if this is the case.


Thank you for your reply Chas.
1) I haven't tried supplying the problematic pins with 5v yet, so I would give it a go.
2) I have tried testing the pins individually, but yielded the same result as picture 2. Even if the said LEDs are the sole receiver of the current.
3) If the problem lies on the hardware of pin 13 and 12, then how come that it operates normally when a program by Arduino IDE is uploaded to it? (Picture 3 and 4)

Again, thank you for your reply 🙂
Reply 0 0
Baan
This is a very straightforward ladder program. Just from the picture it seems to be correctly written, although I would need the full program to be sure. I suspect that something is happening during the upload process and the board is not getting flashed at all, or is getting wrong data, or maybe something else in the program is crashing the runtime so that it doesn't run at all. Check your upload window output text to make sure that the board was flashed properly


Thank you for your reply Mr. Alves, I forgot to mention that I tried to upload from my laptop and my PC, I even tried to reformat my laptop and downloaded the latest version of OpenPLC Editor, yet, the result stayed the same.
For now, I will upload the same program and look for possible issues from the data shown.
Reply 0 0
Baan
Thank you for your replies. May you have a wonderful day.
Reply 0 0
Baan
I will soon upload a screenshot of the data from my upload window output text.
Also, is it possible to download previous versions of OpenPLC Editor? Since I remember that it operates normally around October. I regularly update OpenPLC Editor weekly, which is why I always have the latest version. If so, I could test if there are no problems when past versions are used.
Reply 0 0
Reply