Fundamentals of CAN Bus Communication: Binary, Decimal, and Hexadecimal

Fundamentals of CAN Bus Communication: Binary, Decimal, and Hexadecimal

☆Star this public account to not miss any updates☆ Whether it is the CAN bus or any computer system, data is ultimately stored and processed in binary. However, for the convenience of human reading and writing, we extensively use hexadecimal and decimal. Below, I will explain in detail binary, decimal, and hexadecimal, as well as … Read more

Common Conversion Functions in C Language

Click the blue textFollow us Due to changes in the public account’s push rules, please click “Read” and add “Star” to get exciting technical shares at the first time Source from the internet, please delete if infringing 1. String to Hexadecimal Code implementation: void StrToHex(char *pbDest, char *pbSrc, int nLen) { char h1,h2; char s1,s2; … Read more

Common Number Systems in PLC and Conversion Methods

Common Number Systems in PLC and Conversion Methods

Follow “Technical Training” focused on automation education for 14 years A number system, also known as a counting system, is a method of representing numerical values using a fixed set of symbols and unified rules. Any number system consists of two basic elements: base and positional value. Base: The number of digits used in the … Read more

C Language Example: Conversion Between Octal and Decimal

C Language Example: Conversion Between Octal and Decimal

In computer science, there are various ways to represent numbers. In addition to the binary and decimal systems we discussed earlier, the octal system is also a common numeral system. The octal system is base 8, using the digits 0 to 7 to represent all numbers. Although octal is not as widely used in daily … Read more