zoocat
Hello,

I have a modbus client writing 32 bit data that the PLC has no need of, but the upstream scada system is interested in. When however I write to the 32 bit holding register (e.g. 2048) it will write to 2048 plus/minus 3 (e.g. 2051) as well. 

If however I assign a variable in the st file to this address (e.g. Testvar AT %MD0 : DINT[wink] I do not get this issue. I was wondering if assigning the variables is a requirement even if it is not used elsewhere in the st file (only used in the SCADA system). 
Reply 0 0
thiagoralves
This is a weird bug. I need to check OpenPLC internals to figure out what is going on. When you assign a variable in the program, the memory for that variable is allocated with the global OpenPLC buffers. When you try to write to a location that is not previously allocated (i.e. assigned in the program), that value is stored in the "supposed to be temporary" Modbus buffers.
Reply 0 0
Reply