-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

PLCs for Beginners
By :

Understanding data types is a very important concept for any programmer. To properly leverage any PLC programming language, a strong knowledge of data typing is essential. Typing is a generic concept that is used in every programming language, including languages such as Ladder Logic. In this section, we’re going to explore what data types are and how to use them.
Whether it be a computer, PLC, or any other programmable device, if you need to create a variable, the program will need to know what type of data that memory block can hold. In other words, the program will need to know whether a variable is holding a whole number, a Boolean value, a string, or whatever else it may be. This is where data types come into play. A data type dictates what values can and cannot be stored in the variable.
There are some rules that govern typing, such as whether a programming language is strongly or weakly typed while also being either dynamically...