1
Technical support / Re:How to limit the memory access
« on: April 16, 2014, 01:46:13 AM »
Thanks Gary,
My original test was not to calculate the real 'reading time' and my description was faulty, but just to see if DM reading is faster than EEP reading... and we reached both the same conclusion...
It was to estimate what is the best solution for my code to get out of the code some message display and also prevent some modbus access to some value.. but it look that using EEP memory for calculation that are made at every ladder loop will slow down the ladder loop....
In my current test by changing that, I go from 1000 ladder loops per second (more than 2000 on a most simple ladder login) to 600 ladder loops per second just by changing the DM variable by LOAD_EEP variable...
As far as my code is not yet fully done, it will slow down again and I try to stay over the 500 loops per second on average.
For 'human operation' it's still ok, but for electrical critical device.. it can be an issue.
My original test was not to calculate the real 'reading time' and my description was faulty, but just to see if DM reading is faster than EEP reading... and we reached both the same conclusion...
It was to estimate what is the best solution for my code to get out of the code some message display and also prevent some modbus access to some value.. but it look that using EEP memory for calculation that are made at every ladder loop will slow down the ladder loop....
In my current test by changing that, I go from 1000 ladder loops per second (more than 2000 on a most simple ladder login) to 600 ladder loops per second just by changing the DM variable by LOAD_EEP variable...
As far as my code is not yet fully done, it will slow down again and I try to stay over the 500 loops per second on average.
For 'human operation' it's still ok, but for electrical critical device.. it can be an issue.