Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - I got stuck

(you are viewing a thread; or go back to list of threads)

I got stuck (by Attila )
Hello everyone. I'm a beginner, but I'm stuck with a basic problem. Two digital inputs control one output. It's terribly simple. But whichever input is true, the output is immediately true. On the table trying Arduino Uno. Simulated, however, is perfect. What's the problem?
Thank you in advance for your help.
Attila
Fri Apr 3 2020, 11:20:31, download attachment uno_1.rar
(no subject) (by Ihor Nehrutsa)
In uno_1.cpp
...
void setupPlc(void) {
...
// Set up I/O pins
pinMode(pin_Ub_Xa, INPUT_PULLUP);
pinMode(pin_Ub_Xb, INPUT_PULLUP);
...

Input pin configured as INPUT_PULLUP.

See https://github.com/LDmicro/LDmicro/wiki/Pull-up-resistors

You need to change the file
Sat Apr 4 2020, 10:50:02, download attachment uno_1.ld
(no subject) (by Attila )
Thanks for the help. The problem is solved. Attila
Sat Apr 4 2020, 15:42:20
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):