MrD
I am having a challenge being to see realtime I/O events on the OpenPLC 4.1.2 version using the Runtime. The runtime selected is v4. I am using an Arduino Uno as the target board. Upon connecting with Runtime and selecting the Debug Icon, the left rail of the ladder diagram (LD) is energized. When pressing PB2_Switch, there is no communication between the Arduino Uno and the Runtime; therefore, no live status is being displayed on the LD. I have included an image of the LD for reference. Please advise.
 
 
Screenshot 2026-02-17 172324.jpg
 
 
 
Note: I am able to perform a simulation session by forcing the inputs.
Reply 0 0
thiagoralves
You are not connected to the Arduino as the runtime v4 does not run on an Arduino. The runtime v4 only runs on Linux and Windows. Most likely what you have is an independent runtime running on your computer, totally disconnected from the Arduino board that is probably not running anything.

If you want your program running on the Arduino Uno board, your target must be Arduino Uno, not OpenPLC Runtime v4
Reply 0 0
MrD
Hi Thiagoralves,
 
I am not quite sure I understand the response. I am interested in monitoring the live events and the states of the Arduino Uno as it is being excuted using a LD as provided in the picture. The LD program runs on the Arduino but I am not able to see the live events and states within the OpenPLC IDE. Here is a screenshot of the OpenPLC Runtime v4 being executed within the software.
 
 
Screenshot 2026-02-17 194338.jpg
 
Here is an image of the runtime being executed on Windows.
 
Screenshot 2026-02-17 194440.jpg
 
In other words, the software is not capable of providing live monitoring on the Arduino, is that correct or is the error on my part. Please advise.
Reply 0 0
thiagoralves
The software is not capable of providing live monitoring on the Arduino because you are not connected to the Arduino. Instead, you’re connected to your local runtime only.

In other words, if what you see written next to “Device” on the first screenshot you sent says “OpenPLC Runtime v4” this means that you are connected to OpenPLC Runtime v4, which is that black terminal window from the second screenshot. That is not your Arduino board. That is a local runtime running on your computer with no connection whatsoever with your Arduino Uno board.
 
To be able to connect to your Arduino Uno board, you need to change the option next to “Device” on your first screenshot to “Arduino Uno” and select the USB port which your Arduino Uno is connected to.
Reply 0 0
MrD
I am not connected to the Arduino Uno board. How can I see the live interaction/monitoring between the Arduino Uno board and the LD on the OpenPLC IDE?
 
Screenshot 2026-02-17 202156.jpg
Reply 0 0
MrD
That should be I am now connected to the Arduino Uno board.
Reply 0 0
thiagoralves
Click on the build icon on the left sidebar (the one with a folder and down arrow icon) to build and upload your project to the Arduino board. Once your project is uploaded successfully, click on the debug icon on the left sidebar (the one that looks like a bug) to start the debugger session.
Reply 0 0
MrD
Per the instructions provided, here is the following received message. Please advise.
 
Screenshot 2026-02-17 205745.jpg
Reply 0 0
thiagoralves
As instructed on the message, you need to enable Modbus to be able to communicate with the board. Go back to the device configuration screen and take a look at the options there. You will see that Modbus is one of them. For Arduino Uno, enable Modbus RTU. You will need to upload your project again to the board for the changes to take effect
Reply 0 0
MrD
Ok, here is the solution for the Modbus error message. The Modbus settings used to allow the Debug session to occur are provided below.

[203128%2F9683467%2Fmceclip0]
 
 
Once the Modbus settings are finalized, clicking the LD with the communication configuration allows for enabling the debug mode. I am now able to see in realtime the active I/O occuring on the Arduino Uno.
Reply 1 0
Reply