Fundamentals of PLC Programming: How Are Values Stored in the CPU? (A Comprehensive Analysis from Binary to Data Types)

Fundamentals of PLC Programming: How Are Values Stored in the CPU? (A Comprehensive Analysis from Binary to Data Types)

When first learning PLC programming, many people wonder: in what form do the values we set, such as “Temperature 25℃”, “Pressure 0.4MPa”, and “Motor Speed 1500r/min”, exist in the PLC’s CPU? Why do we need to distinguish between “byte”, “word”, and “double word” when writing programs? Today, we will start from the most fundamental binary … Read more

How to Represent Memory Address 0 in C/C++

How to Represent Memory Address 0 in C/C++

Click the blue “Most Programmer” to follow me! Add a “star“, every day at 18:03 to learn technology together! This is a typical case of “knowing the phenomenon but not the reason behind it”, a common issue in our learning process.When teachers or textbooks mention that “accessing address 0 is an illegal access”, how many … Read more