kare_hma_no
Hi
I have been doing a test project, to evaluate Open PLC for use in our projects.
However  found it hard to do calculations with different variables.
Even adding a real and an Integer.,
 
We are to day using the ABB Compact control Builder, and would need to convert our code.
But this limitation seems to be a problem for us moving forvard.
 
Is there som kind of planes for further ST development,?
Is there some documentation where I can find the actual rules for the limitations or the methodes alowed?
General ST documentation does not give any rules on this topic I beleive?
 
Thanks for your efforts in thios matter.
Looking forward to be able to change our platfporm some day.
 
Kare
Reply 0 0
thiagoralves
IEC 61131-3 (which OpenPLC is based on) define strong types for variables. The compiler won't let you add a REAL and an INT together. You will either have to convert your INT to REAL or your REAL to INT before starting the operation. This is not a limitation, but a definition of the standard itself that is meant  to protect against bad coding practices.
Reply 0 0
Reply