Hex and binary number

Benyamin

Member
Join Date
Mar 2012
Location
Dallas
Posts
67
Dear all,
I have basic plc question.
Why we use hex or binary numbering in plc programming?
Can we use decimal instead?
Appreciate for your respons!
 
It seems that you have not had the opportunity to study basic digital processors which are at the heart of computers and PLCs. They store numbers in groups of bits. The most efficient storage of numbers is using a base which is a power of two. Groups of bits which have been used are 4, 8. 16, 32 and 64. None of these store the value 10 as a basic unit. Thus you see binary (single bits used one at a time) and hexadecimal (bits used 4 at a time). These are used for the most efficient and fastest processing. Some PLCs have BCD (binary coded decimal - 4 bit groups limited to the values 0 - 9) available to enable compatibility with much older applications. This is at a cost of much slower processing and decreased efficiency.
 
Following up on what Bernie said.

All microprocessors process bits as Bernie mentioned.
Most PLC programming software will allow you to enter and view numbers in decimal but they will always be translated behind the scenes to binary.

Some PLC programming software will allow you to change how you view numbers with the most common display modes being decimal and hexadecimal. Many also have binary and octal (base 8) display modes.

What is important to understand and sometimes confusing is that the number in the PLC doesn't change when you change the display mode. Only how you view the number changes.
 
It is because when looking on a PLC you will see divisions of the I/O sometimes even 16 so you have %IX3.0 and %IX3.6 up to 15
8 bits we put in HEX.
and yes it is complicating and for me i try it to keep it simple.
maybe slower but simpler.
 

Similar Topics

We have an electrical test device that measures electrical capacitance. It has a RS-232 port. The device unconditionally broadcasts (spits out)...
Replies
4
Views
5,834
Good morning, I am running a controllogix and I am connected to a hydrocarbon gas alalyzer over an EWEB module. I am picking up a Hex number...
Replies
40
Views
13,909
G
I am programing a Rockwell MicroLogix 1500 LRP Series C PLC (Bul. 1764). I need to convert some binary numbers, stored in N (integer) files to...
Replies
0
Views
4,358
Guest
G
Hello, I'm trying to setup a TCP connection from a Compactlogix 5069-L306ER to a TDI checkweigher to receive real-time weight data of the...
Replies
6
Views
315
I am using a Micro 850E PLC (the new one with implicit messaging capability) to drive a Kinetix 5100 servo drive. The error code number on the...
Replies
7
Views
1,693
Back
Top Bottom