hog
Good Morning,
I'm new at openPLC and I'm not shure what to do. I want to read the value of a DS18B20 sensor on the %IW0.3 input of the Arduino. I pulled the Input up with a 4k7 resistor. But everytime when I compile my programm there is an error.
Compiling .st file...
plc_prog.st:3-5..3-26: error: Bit size of data type is incompatible with bit size of location.
1 error(s) found. Bailing out!
Error: Couldn't find LOCATED_VARIABLES.h. Check iec2c compiler output for more information

Could anyone help me?
My programm is an follows:


Bildschirmfoto von 2023-01-20 09-59-15.png
Reply 1 0
thiagoralves
Click on the VAR symbol (or right click->add->variable) and then on expression write 2
Reply 0 0
Tiziano
Hi Hog!
Ok done !, and now it works!!! thanks!! I don't want to take too much advantage of your availability, but I have another problem, when I open the "live debug remote PLC" to check the correct functioning of the project, I always get this error, "This project does not match the program running on target. Upload the project to target and try again.
Unable to stop the PLC! " Can you help me with this too? thanks very much !
Reply 0 0
thiagoralves
Make sure you’re running the latest version of the editor (file->check for updates)
Reply 0 0
Tiziano
Yes, certainly! I had already done it! but I still get the error
Reply 0 0
thiagoralves
What board are you using? Have you enabled Modbus? Are you using serial or ethernet debugger? Make sure your debugger settings match your Modbus settings.
Reply 0 0
Tiziano
Scusami ma non ho esperienza, Utilizzo arduino UNO, ho abilitato modbus RTU serial ! "interfaccia = seriale; baud = 115200; ID slave = 1; Pin Tx = -1" / "Configurazione remota debugger; Protocollo = Serial-RTU, ID slave = 1, Port = USB Serial CH 340 (Com 3 ) ; Baud = 115200"
Reply 0 0
Tiziano
after several attempts to make "live debug remote PLC" work I have made some progress, now, after having installed "OpenPLC runtime" on my PC and downloaded the firmware, on the Arduino Uno board that I am using, the error I had does not exist. 'and now it gives me another error "error reading trace from remote: null response object". can anyone help me Thanks!
Reply 0 0
Reply