Sharing Application Cases of PLC Programming: The Emergence of Programming Interest

Programming—before going to university, I had never been exposed to it and was completely unfamiliar. My first encounter with programming began in the course of C Programming. Initially, I had no particular interest in learning “C language” until one day my dad posed a question: “Is there a four-digit number such that the square of the sum of its first two digits and the last two digits equals the number itself? If such a number exists, please list it.”At that time, I didn’t have a computer, and I had just learned the name “C language,” but I vaguely understood that using programming, a computer could quickly derive the answer. In this situation, I could only grit my teeth and mentally calculate for about a minute, discovering a magical number that completely fit the criteria. I excitedly told my dad and explained that this was a problem suitable for computer programming; if I wrote a program on a computer, the result would be generated automatically, and the calculation speed would be very fast. As a result, my dad was very happy and agreed to let me buy a computer, even though it required a significant amount of money.At that moment, my interest in programming began to sprout. (Even after buying the computer, I often got distracted by playing games.)Playing, after all, is also a stimulant for learning, who says it isn’t?!So, what was this “magical number” that I guessed through mental calculation?Sharing Application Cases of PLC Programming: The Emergence of Programming InterestThis number is very common this year, especially common!In the next issue, let’s use PLC programming to seek the answer to this question.Friends who are interested, think about how to implement this using Siemens PLC programming.Those who are interested and have the conditions can try writing a program.

Leave a Comment