svego Posted January 21, 2017 Share Posted January 21, 2017 Hi, I need help to read values from kWh meter...To scan modbus registers I'm using CAS modbus scanner (Chipkin Automation Systems) and I can get some values ( pls see att..)..All data values in the SDM230Modbus smart meter are transferred as 32 bit IEEE754.. DAQFactory returns zero values. Can anyone help with that ? Scanner reads values but DF not. How to read value from 30001 and translate this to 230 V...? Here scanner from this address reads 17253 ??, it should be voltage value ( about 230 V )... THX Damir, Croatia SDM220Modbus_protocol_V1.1.pdf Link to comment Share on other sites More sharing options...
AzeoTech Posted January 24, 2017 Share Posted January 24, 2017 The problem is probably word ordering. If you read a floating point value out of order you will often get 0 because of the exponent. Anyhow, if you are using Read Holding Float, try using Read Holding Float R Words. Link to comment Share on other sites More sharing options...
svego Posted January 24, 2017 Author Share Posted January 24, 2017 yes, already tried but nothing Link to comment Share on other sites More sharing options...
AzeoTech Posted January 26, 2017 Share Posted January 26, 2017 Look at the raw Modbus stream and see what it looks like (maybe post it?) Have DAQFactory only query for one channel so its obvious that you are querying the value in question. Link to comment Share on other sites More sharing options...
svego Posted January 29, 2017 Author Share Posted January 29, 2017 How to do that ? Link to comment Share on other sites More sharing options...
AzeoTech Posted January 30, 2017 Share Posted January 30, 2017 Set your Timing to 0 on all channels, then pick one and in the command alert type: read(mychannel) where mychannel is the name of one of your channels. That will trigger a single read. Make sure the comm monitor is open on the port, and display all chars as ASCII codes is checked. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.