On old Siemens 300/400 series memory was usually saved if code was writed with ST or SCL instead of FBD or ladder.
Now I tryed this with TIA / 1500 PLC.
Changed lot of ladder to SCL coding for saving memory on FB-blocks. (There is couple FB blocks which are called several hundred times)
After compiling result was that STL and SCL coding used even more memory than original ladder coded FB-blocks.
This maked me to think that TIA compiler makes optimization behind for all program languages and it is difficult to save memory if changed to STL.
So what are ways to make code use less memory.
I have lot of IEC timers with constant time inside FB-block.
Should I use old S5 timers instead of IEC-timers (S5 timer number as input to FB)?
Would S5 timer instead of IEC-timers make any difference for work memory use.
And what are cons for using S5 instead of IEC.
Is scan time longer for S5 timers?
Is there any other ways to save FB / load memory use on TIA.
Not interested to change PLC to bigger.
Now I tryed this with TIA / 1500 PLC.
Changed lot of ladder to SCL coding for saving memory on FB-blocks. (There is couple FB blocks which are called several hundred times)
After compiling result was that STL and SCL coding used even more memory than original ladder coded FB-blocks.
This maked me to think that TIA compiler makes optimization behind for all program languages and it is difficult to save memory if changed to STL.
So what are ways to make code use less memory.
I have lot of IEC timers with constant time inside FB-block.
Should I use old S5 timers instead of IEC-timers (S5 timer number as input to FB)?
Would S5 timer instead of IEC-timers make any difference for work memory use.
And what are cons for using S5 instead of IEC.
Is scan time longer for S5 timers?
Is there any other ways to save FB / load memory use on TIA.
Not interested to change PLC to bigger.
Last edited: