sdwouc
Hi, 
I am new to the OpenPLC world. Follow the tips, I download the proper version of the firmware, and upload it to the Arduino uno using the Arduino IDE. Then i setup the OpenPLC runtime using the web interface. But it doesn't work! I think it maybe caused by the wrong setting parameters, but i don't know what went wrong...

Thanks a lot!

OS: Ubantu (in the VMWare)
Slave device: Arduino UNO
My plc.st
微信截图_20190821195155.png 

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
OpenPLC Runtime Logs:

OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Device MyDevice2 is disconnected. Attempting to reconnect...
Warning: Persistent Storage file not found
Connected to MB device MyDevice2
Issued start_modbus() command to start on port: 502
Server: error binding socket => Permission denied
Server: waiting for new client...
Issued start_dnp3() command to start on port: 20000
DNP3 ID manager: Starting thread (0)
DNP3 ID DNP3_Server: Listening on: 0.0.0.0:20000
Issued start_enip() command to start on port: 44818
Server: Listening on port 44818
Server: waiting for new client...
Issued stop_pstorage() command
Modbus Read Discrete Input Registers failed on MB device MyDevice2: Invalid data
Modbus Write Coils failed on MB device MyDevice2: Connection timed out
Modbus Write Holding Registers failed on MB device MyDevice2: Resource temporarily unavailable
Modbus Write Holding Registers failed on MB device MyDevice2: Connection timed out
Modbus Read Input Registers failed on MB device MyDevice2: Connection timed out
Modbus Write Holding Registers failed on MB device MyDevice2: Connection timed out

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Arduino IDE 1.8.9 Logs

Sketch uses 6638 bytes (20%) of program storage space. Maximum is 32256 bytes.
Global variables use 747 bytes (36%) of dynamic memory, leaving 1301 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x80
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x12
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x10
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc0
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x10
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x80
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe1
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
An error occurred while uploading the sketch
Reply 0 0
thiagoralves
You didn't upload the firmware to the Arduino board. The last line of the Arduino IDE log says "An error occurred while uploading the sketch". The previous lines suggests that your board is not responding to avrdude commands. If you're trying to do this through a VM, I recommend you at least burn the Arduino firmware natively (on your host OS). Then you will have to make sure your Arduino board is passing through the VM layer so that your guest OS can communicate with the board. Make sure you know which COM port your board is connected to and select the same port on the drop down menu for the slave device configuration on OpenPLC. 
Reply 0 0
sdwouc
Thanks a lot!
I tried to burn the Arduino firmware through my host OS, and I make a success!😁
Reply 0 0
Reply