Data representation by PLC on PROFIBUS-DP network

arbj

Member
Join Date
May 2011
Location
mrt
Posts
61
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
 
Thanks kalle, I won't be using BCD...

So is the hex format the commnlt used method ??

Also how can negative values be represented ???

thanks
a
 

Similar Topics

I am using Modbus to read 36 registers from a ML1200. 2 of those registers are suppose to be L11 data and 2 of the registers are F8 data. Long...
Replies
3
Views
1,400
Hi everyone, I have a 505 workshop program with PLC type of 555- 1106 and I was wondering how can I download the data documentation window as a...
Replies
3
Views
65
Hello everybody, I'm currently working on a project where I need to implement an IoT platform based on Microsoft Azure Cloud. Communication is...
Replies
2
Views
65
Hello. I have a db which is 1000 INT, and this db is represented in WinCC as a raw data type set of 5x 400 Bytes. This set is read with a script...
Replies
1
Views
79
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
67
Back
Top Bottom