kubilay kerti
The variables I created globally don't seem to work when I make changes while in debug mode. When I load the test on esp32 and assign the pins to global variables, I see that the system actually works. It doesn't work when you set the value of global variables on Debug mode. Anyone know about this? Did older versions have this problem as well?[203128%2F8294059%2Fmceclip0]
Reply 0 0
thiagoralves
That's not how you should use global variables. Global variables are defined in the resources (Res0).
Reply 0 0
kubilay kerti
The same happens when I create it in Res0.
[203128%2F8294081%2Fmceclip0]
Reply 0 0
kubilay kerti
I found a solution to the problem of global data not working in debug mode.
With a little editing on the "plc_debug.c" file, the changes made in the global data are still visible.
 
[203128%2F8297329%2Fmceclip0]
 
[203128%2F8297330%2Fmceclip0]
Reply 0 0
thiagoralves
Awesome! Thank you for finding that out. Can you make a PR with the fix please?
Reply 1 0
Write a reply...
Reply