richw
I'm running OpenPLC runtime on RPI connected to a TCP/IP slave reading temperature. I try to move the reading(%IW100) to a memory address(%MW0), but it doesn't transfer. When viewing the monitoring tab on the web server I see the temperature at the modbus slave address but 0 in the memory address. The strange thing is if I use the older OpenPLC runtime with the Red menu selections it works like it's suppose too. If I use the updated runtime with the Blue menu selections it doesn't work. This looks like a Bug.
Reply 1 0
thiagoralves
Most likely it is a bug in the monitoring visualization. The runtime code hasn’t been changed in a long time. Just the web UI that has been updated. Try reading that location using a Modbus tool like Radzio. Check if the value is actually there
Reply 0 0
richw
I did as you suggested and used modbus poll to see if the data was there, and it was zero just as was displayed in the webpage monitor. I decided to add the other two temperature sensors that are part of my project. when I checked the web monitor after adding the other two sensors I was able to see the data of the 2nd and 3rd sensors in the memory address and also in modbus poll but not the 1st. I changed the start of the memory address from %MW0 to %MW1 and now I am able to see the correct data of all three sensors, so it appears there is some type of bug with starting memory address %MW0. 
Reply 0 0
thiagoralves
Can I have your full plc program please? I’m wondering if there is anything in there setting MW0 to zero
Reply 0 0
richw
It is a very simple test project, does nothing more then move slave data to memory nothing more 
Reply 0 0
makarovas
same problem %MW0 not provide data via MODBUS TCP (on Linux) - always zero
Reply 0 0
richw
Just wondering if this was an error on my side or there is an issue with the runtime? Can I get some clarification?
Reply 0 0
thiagoralves
It's probably a bug but I haven't had time to check it out yet. Will let you know once this is fixed
Reply 0 0
Write a reply...
Reply