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

PLCs for Beginners
By :

This section will be relatively short as we’ve already explored how digital memory works. In Chapter 4, we saw that a memory block is an alphanumeric string along the lines of the following:
0x01ABC223
It may not be the same, but this would be along the lines of what a memory address would look like. For us mere mortals, this string has no meaning; chances are, 10 minutes after allocating the memory block, we’re going to forget what the memory block was allocated for. This block has no context, so another programmer would have no clue what purpose it serves in a program, and good luck troubleshooting errors.
A variable solves these problem. As was discussed in Chapter 4, a variable is a human-readable alias that references a memory block. Since a variable is a human-readable alias, it provides the following benefits: