I'm currently working on a project using Arduino PLC IDE to control relays via Structured Text (ST) code and Ladder logic. Everything compiles and runs correctly, but I’m facing an issue:
The relay output is not switching.
I’ve verified the logic is running fine, but the output pin (e.g., relay01 := TRUE) shows 0V.
The relay doesn't click, and there's no voltage at the output terminal.
What I’ve Done:
Mapped relay01 to %QX0.0 in IO Mapping.
Tried both relay01 := TRUE and FALSE (in case of active-low logic).
Used a multimeter to measure the output pin — still 0V in both logic states.
If anyone has faced a similar issue or knows how to enable the digital outputs physically, please let me know.
Opta has 4 relay outputs, so it doesn’t have any voltage on outputs in any state. Only thing that can change is state of relays, so if you’re using multimeter to check if it’s working or not you should use mode that shows flow over circuit (“diode test”) on your multimeter. This way or another activating a relay should result with “click”.
Unfortunately I don’t have any experience with PLC IDE.
EDIT
How do you power up your Opta? If I remember correctly relays won’t work without powering opta with external power supply, USB only won’t work.
Thanks for your suggestion. I did power the Opta with a 24 V external supply (not just via USB). Even with that, the relay still isn’t working — there’s no audible click, and when I test continuity there is no change.