Reading the Current Processing Program Segment with PLC

Reading the Current Processing Program Segment with PLC

The flexible SINUMERIK can realize many of your ideas. If you want to usePLCto read the current processing program segment, no problem, let’s arrange it!First, you need to find the variable. It is recommended to search in the book “SINUMERIK ONE / NC variables and PI services” (List Manual). I searched for the keyword “current … Read more

Beginner’s Guide to Learning Embedded Systems

Beginner's Guide to Learning Embedded Systems

Embedded systems are a core component of modern technology, widely used in smart homes, industrial control, automotive electronics, medical devices, and more. For beginners, mastering embedded development requires a systematic learning path. 1. Basic Preparation Stage (1-2 months) Fundamentals of Electronic Circuits Master basic circuit components: resistors, capacitors, inductors, diodes, transistors, etc. Understand the basics … Read more

Understanding C Language Structs with Ease

Understanding C Language Structs with Ease

A <span>struct</span> is a user-defined data type in C language used to combine different types of data into a single unit, commonly used to organize complex data structures. In embedded systems and microcontroller development, structs are widely used for data packaging, module management, and communication protocol encapsulation. 1. Definition of Structs The basic definition format … Read more

C_SysInfo: A Command-Line Tool in C for Displaying Current System Information

C_SysInfo: A Command-Line Tool in C for Displaying Current System Information

The C_SysInfo project can actually be seen as a simple translation of the previous PySinfo project. This is a typical scenario where I believe online models and local models are particularly suitable for application – a broad “translation” process: 1.The requirements must be very clear about what needs to be done, and the technical path … Read more

Levels of Proficiency in C Programming: From Novice to Expert

Levels of Proficiency in C Programming: From Novice to Expert

If you don’t want to miss my updates, remember to click the top right corner – view public account –set as a star, and I’ll send you a little star. The C language can be considered an “ancient” programming language, yet it remains a mainstream programming language in embedded systems today. Without C, there would … Read more

Understanding Pointers in C Language

Understanding Pointers in C Language

The concept and usage of pointers in C language play a crucial role throughout the learning process. Pointers can simplify certain C programming tasks, and some tasks, such as dynamic memory allocation, cannot be performed without pointers. Therefore, learning pointers is essential to becoming an excellent C programmer.As we mentioned, every variable has a memory … Read more

FreeRTOS – Simple LCD Operations on STM32H573I-DK

FreeRTOS - Simple LCD Operations on STM32H573I-DK

This article introduces simple operations of the <span>LCD</span> on the <span>STM32H573I-DK</span> development board under <span>FreeRTOS</span>. Hardware Introduction <span>ST</span> provides a development board that uses a <span>1.54"</span> <span>TFT LCD</span> and is designed with <span>CTP</span>. This article only introduces the <span>LCD</span> part. From the schematic, it can be seen that a backlight circuit designed with <span>STLD40DPUR</span> is … Read more

Efficient Outlier Removal: Practical Use of C Language qsort for Truncated Mean Calculation

Efficient Outlier Removal: Practical Use of C Language qsort for Truncated Mean Calculation

qsort is a quick sort function provided by the C standard library, located in the stdlib.h header file. It can sort arrays of any type.The prototype of the qsort function is as follows:void qsort(void *base, size_t nitems, size_t size, int (*compar)(const void *, const void *)); Parameter Function Example <span>base</span> Base address of the array … Read more

Embedded C Programming: How to Properly Handle Fatal and Non-Fatal Errors During Program Execution?

Embedded C Programming: How to Properly Handle Fatal and Non-Fatal Errors During Program Execution?

I am Lao Wen, an embedded engineer who loves learning.Follow me to become even better together! Introduction This article mainly summarizes the main error handling methods in embedded C programming. The code execution environment involved in this article is as follows: 1. Error Concepts 1.1 Error Classification In terms of severity, program errors can be … Read more

Advanced Uses of Embedded C You Should Know

Advanced Uses of Embedded C You Should Know

01 Memory Management We need to understand that variables are essentially just abstract names for memory addresses. In statically compiled programs, all variable names are converted to memory addresses at compile time. The machine does not recognize the names we use; it only knows the addresses. Memory usage is one of the important factors to … Read more