jkahlert
If I declare a WORD variable at %MW0 with an initial value of e. g. 12345, I can read this value using an external MODBUS client via the "Read holding register" function on MODBUS address 1024 as described in the MODBUS I/O table of OpenPLC documentation. If I declare an INT variable at %MB0 (or a BOOL variable at %M0.0) with an initial value, reading this variable with the "Read holding register" function always delivers 0. Why does %MB0 not influence %MW0? Is it not the same memory space? (In Siemens S7 PLC %MB0 would be the first byte of %MW0 and %M0.0 the first bit of %MB0).
Reply 0 0
thiagoralves
On OpenPLC there is no memory space overlap. Each located region maps to its own buffer.
Reply 0 0
jkahlert
Thanks, great support 🙂
Reply 1 0
Reply