Hi,
I have a small question regarding representation of 16 bit data by PLC.
I have a parameter that uses 16 bit data. I have thought of using two ways of representing this data on the PLC data registers.
I would like to know which of these two methods is commonly used in usual practice ?? Or is there any other commonly used method ??
1. Using HEX format.
Say if the data is 1600 (Decimal), then in HEX format this would be represented in two bytes as
Byte 1= 06 (MSB)
Byte 2= 40 (LSB)
2. Using packed BCD format
Data in decimal format is 1600
Byte 1= 16 (MSB)
Byte 2= 00 (LSB)
Data in decimal format is 300
Byte 1= 03 (MSB)
Byte 2= 00 (LSB)
thanks
a
I have a small question regarding representation of 16 bit data by PLC.
I have a parameter that uses 16 bit data. I have thought of using two ways of representing this data on the PLC data registers.
I would like to know which of these two methods is commonly used in usual practice ?? Or is there any other commonly used method ??
1. Using HEX format.
Say if the data is 1600 (Decimal), then in HEX format this would be represented in two bytes as
Byte 1= 06 (MSB)
Byte 2= 40 (LSB)
2. Using packed BCD format
Data in decimal format is 1600
Byte 1= 16 (MSB)
Byte 2= 00 (LSB)
Data in decimal format is 300
Byte 1= 03 (MSB)
Byte 2= 00 (LSB)
thanks
a