arowland33
Hello,

I am attempting to use Windows SoftPLC as a replacement for the Raspberry Pi version. I want to be able to hook up an Arduino Uno to my Windows computer to use as extended I/O, not as a true master/slave device setup. I linked the Arduino in the OpenPLC GUI, but it does not appear to work with the I/O ports on the Arduino when I go to read them. All of my values in the monitoring tab cannot be forced either. I have already followed the normal instructions of checking the COM port to make sure it is correct, and I did the blank program upload as specified on the website. I just want to figure out why my I/O ports are not showing up for the Ladder Logic program I am running. Did not know if this had anything to do with the hardware layer tab on openPLC as mine says Blank (because I am on Windows). I was hoping someone could take a look at my logs and see if they have experienced this issue before. Any help on this would be much appreciated! 
tempImage6X0Axy.jpg  tempImagesrPRLo.jpg 
Reply 0 0
thiagoralves
You must upload the OpenPLC firmware to your Arduino board for it to function as a slave device. Check the OpenPLC website for instructions
Reply 0 0
Rasta31210
I'm having a bit of a hard time putting it all together too. here is my solution:

https://openplc.discussion.community/post/openplc-runtime-12390848?pid=1332963551
Reply 0 0
arowland33
@thiagoralves I have followed the OpenPLC website (.com) for instructions on how to upload the OpenPLC firmware through a blank project in the OpenPLC editor, and it is still giving me the same runtime logs. I am following the instructions in the Documentation 2.6 under Slave Devices. Is there another site or a different set of instructions I should be following?
Reply 0 0
thiagoralves
You haven't provided much information about your setup, so these are only guesses where your problem may be:
1. Make sure you've enabled Modbus Serial support when you are uploading the blank project to your Arduino
2. Make sure baud rate is set to 115200
3. Check your slave device configurations on OpenPLC webserver. Make sure everything is correct, especially the serial port used
Reply 0 0
arowland33
@thiagoralves For some odd reason, uploading the firmware from a Linux laptop works but uploading from a Windows PC does not seem to work. I do not have a viable explanation for it, it is the same program uploaded with the exact same settings, but the I/O on the Arduino's that received their firmware from a Linux machine seem to be running just fine, while our Arduino's that received their firmware from a Windows machine do not appear to have working I/O based on the monitoring tab in OpenPLC Runtime and the physical outputs. If you have any specific questions, I'd be happy to answer them regarding our specific use case. Do not know if this is an issue with this specific Windows laptop or all Windows users trying to upload the firmware to their Arduinos.
Reply 0 0
thiagoralves
It is possible that your Windows machine is not uploading code at all or have an old version of OpenPLC Editor. Make sure you update your editor to the latest version and try again.
Reply 0 0
Reply