![]() |
Handling Data Types in PLCs (General)
Hello,
I've been meaning to study on PLC data types and how to ensure I do not move a data that exceeds the maximum value such as moving a DINT to INT etc. Do recommend me some links to read on. Thanks and best regards, Danny |
Quote:
Many systems automatically build these into the convert/move blocks. Check out Overflow errors. It's a topic that has probably been discussed for 30 years, in just about every programming language: PC or PLC. |
It seems like you are looking into AB... mind you that AB is very forgiving with data types, whilst other PLC manufacturers (like Siemens) aren't and you need to ensure that the right data type goes into the right place. Instead of being a case of fitting 32bits in 16 bits it's a case of getting a floating point value into an integer variable.
|
How you move them and for what purpose is important.
Using built in functions, what kind, or if you do it on a lower level. For use internally or read write over raw tcp it all makes your method more or less important. |
All times are GMT -5. The time now is 08:36 AM. |
.