Communication Data Format

bodoo23

Member
Join Date
Jan 2018
Location
Athens
Posts
57
Hi,

I have a point that I dont understand about data types and transfer. For example when we transfer a real data or dint data with sint comm data format, how PLC writes these real or dint values into sint format. As I knew it was like copying each bit value one by one
(if the real data is 11110000111100001111000000001111 then we will have 4 piece short integer like sint[0]-11110000 sint[1]-11110000 sint[2]-11110000 sint[3]-00001111)

If it is in this way. Why I can't transfer a dint value via 4 sint accurately while I can send a dint data including bool tags to destionation accurately ? (I can transfer alarm bools in total 32 bit accurately but I can't send a real or dint value accurately to another plc)

Thanks in advance.
 
Recommended reading : https://en.wikipedia.org/wiki/Endianness

Some simple protocols like Modbus don't define in which order the double word data types like a Real are send, some PLC will send the most significant word first and other will do the reverse, usually the communication driver have a config option to swap the words.
 

Similar Topics

Hello, I use open communication with a Siemens 315-2 PN/DP and the terminal of hercules, follow by the link...
Replies
5
Views
1,984
Hi All, I am using an Accuenergy Data Acquisition Server (https://www.accuenergy.com/products/aculink-810-data-acquisition-gateway-server/) to...
Replies
9
Views
2,659
Hello guys, I should communicate an L33ERM with firmware 30 with L35E with firmware 19. The idea is not to modify the firmware, because in L35E...
Replies
2
Views
1,530
Hello all, I have been implementing a CAN based communication protocol. During reading the documentation I have found that there are several data...
Replies
5
Views
1,761
Hi all, I need to collect the analog data like 4-20, mV signal or any digital count from FF based communication instruments for calibration...
Replies
1
Views
1,889
Back
Top Bottom