Variable Types and Data Processing in PLC Sequential Control Programming

Variable Types and Data Processing in PLC Sequential Control Programming

Over the years, I have seen too many on-site programs, especially in the area of PLC sequential control, where the choice of variable types is poor, leading to numerous pitfalls. A few days ago, I went to a food factory to troubleshoot, and the program almost drove me crazy. They used a bunch of BOOL … Read more

Understanding the Relationship Between .h and .c Files in Embedded C Programming

Understanding the Relationship Between .h and .c Files in Embedded C Programming

Relationship Between .h Files and .c Files When referring to the programs of experts, I found that the strict programs written by others all include a “KEY.H” file, which defines the functions used in the .C file, such as Keyhit() and Keyscan()..H files are header files, probably meaning ‘Head’, which is necessary for structured design … Read more

Variable Types and Data Processing in PLC Hardware Programming

Variable Types and Data Processing in PLC Hardware Programming

Last week, I helped a colleague solve a problem with his temperature control system on the production line, which was frequently malfunctioning. After some investigation, it turned out that the variable type was not selected correctly, causing the decimal part to be truncated. This incident reminded me that we must discuss the topic of variable … Read more