
Visit our shop for nerds in control lifestyle products.
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
TV news, believe 25% -- make that 5% if the anchorman wears a blazer.
www.control.com/rss
I am developing some kind of SCADA application and have a problem with the interpretation of data. Let's assume we have a client which stores a double float, which has a length of 64 bit. The value is presented as 12345678 (each number refers to one byte number).
The client has got a lot of different ways to store and send it to the master (the following byte orders show the sent data words):
1. 12 34 56 78
2. 87 65 43 21
3. 78 56 34 12
Is it also possible that a client sends the following data words:
4. 34 12 78 56
5. 43 21 87 65
6. 21 34 56 87
I assume that 4, 5 and 6 are rather unlikely because this would mean a mix of big endian and little endian notation within one client. Is that correct?
Are any other combinations possible?
Of course this problem also occurs when operating strings.
Thank you for your help.
That said in 12 years I do not recall any devices that do Modbus and mix the byte order. They are usually one way or the other.
Check out Kepware's Modbus Suite. It is highly configurable and works with nearly all of the Modbus enabled devices out there.
http://www.kepware.com/Products/products_OPCServers.html#AnchorM
Fred Loveless
Support Manager
Kepware Technologies
mantissa x 2 ^(exponent -127)
(23 bit signed binary with 8 bit biased binary exponent)
where the order is byte 4 byte 3 byte 2 byte 1
where byte 4 starts with the mantissa's positive/negative sign bit
those 4 formats being:
Floating Point Big Endian Format: 4, 3, 2, 1
FP BB Floating Point Big Endian with byte-swapped: 3, 4, 1, 2
FP L Floating Point Little Endian Format: 1, 2, 3, 4
FP LB Floating Point Little Endian with byte-swapped: 2, 1, 4, 3
Their communication manual, 51-52-25-111, details the formats on pages 18-24 (pdf).
The document resides at
http://hpsweb.honeywell.com/NR/rdonlyres/01B126BB-D667-4C0B-8678-2 1C21DF10520/34880/515225111.pdf
Given the world of open standard Modbus and its huge variety of implementations, it would pay to cover your bases for a Modbus master in a SCADA system.
David
- Temperature, relative humidity sensors pair with wireless network
- Intrinsically safe accelerometer expands line of hazardous area sensors
- Power: Digital converter growth; fuses, harvesting, supplies, transformers, UPS
- Terminal blocks: 125 A, 1,000 V, 15 mm pitch; 100 kA short circuit current rating
- Industrial Ethernet: High density I/O, no-tool RJ45 Ethernet connector, extenders
- RFID: Tag for boxes or polymeric containers, future trends, training
- Enclose, protect: 2 plastic enclosures; device measures heat, airflow
- Control Engineering System Integrators Hall of Fame
- User group meetings: Trade show, conference, motivational seminar, and party, all in one
- Process safety system: Flexible platform designed to increase plant profitability
Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.
Patronize our advertisers!



