Forum Replies Created
-
AuthorPosts
-
MikhailModeratorHi,
I’m very glad that you gained the goal.
If I correctly understood your needs about two positioned relay, you can create the 3rd channel of the type “Calculated real” or “Calculated discrete” that will depend on the input_channel_0 and the input_channel_1. Then use the 3rd channel in a dynamicpicture.Have you published your version of Scheme and Editor applications? It’s very intersting to try them.
MikhailModeratorDear Bret,
Have you successfully received data from the meter?
8 byte doubles are now supported.August 26, 2015 at 9:14 am in reply to: How to swap the HEX data from the device via the Modbus protocol in RapidSCADA? #325
MikhailModeratorKevin, if you would like, I can help you to set up the system using remote connection. Is is payable service http://rapidscada.org/services/remote-troubleshooting/
August 26, 2015 at 9:02 am in reply to: How to swap the HEX data from the device via the Modbus protocol in RapidSCADA? #324
MikhailModeratorHi Kevin,
The default configuration uses formula, for instance, in the channel 101. Is there any difference with 901? You could try using the simplest formula Cnl – 1 for the test reason.
How about trying the new SCADA-Communicator that contains the required function?
1. Download the update from http://rapidscada.org/download/scada_4.5_update.zip
2. Rewrite the existing files.
3. Continue our discussion…August 25, 2015 at 8:16 am in reply to: How to swap the HEX data from the device via the Modbus protocol in RapidSCADA? #322
MikhailModeratorHi,
Looks like OK:
– input channel number is 901,
– value 720896 is hex 00 0B 00 00.The result of conversion doesn’t shown in SCADA-Communicator. You can watch it in a web page or with help of SCADA-Server GUI.
What is the value of the channel 901?August 24, 2015 at 11:01 am in reply to: How to swap the HEX data from the device via the Modbus protocol in RapidSCADA? #320
MikhailModeratorCould you post here the content of C:\SCADA\ScadaComm\Log\kpXXX.txt ?
where XXX is your device numberAugust 24, 2015 at 9:27 am in reply to: How to swap the HEX data from the device via the Modbus protocol in RapidSCADA? #316
MikhailModeratorI edited the code of the formula, be attentive, please.
August 24, 2015 at 9:23 am in reply to: How to swap the HEX data from the device via the Modbus protocol in RapidSCADA? #314
MikhailModeratorThen click “Pass to SCADA-Server” button and restart SCADA-Server service.
August 24, 2015 at 9:06 am in reply to: How to swap the HEX data from the device via the Modbus protocol in RapidSCADA? #313
MikhailModeratorpublic double SwapBytes() { UInt32 val = (UInt32)CnlVal; byte[] bytes = BitConverter.GetBytes(val); byte[] newBytes = new byte[] { bytes[1], bytes[0], bytes[3], bytes[2], }; return (double)BitConverter.ToUInt32(newBytes, 0); }How to use:
1. Run SCADA-Administrator
2. Open Formulas table and add this method.
3. Open Input channels table and find the appropriate input channel.
4. Tick Formula used field.
5. Input SwapBytes() into the Formula fieldIf it doesn’t work at once write here)
Play with order of bytes.-
This reply was modified 10 years, 9 months ago by
Mikhail.
August 24, 2015 at 6:56 am in reply to: How to swap the HEX data from the device via the Modbus protocol in RapidSCADA? #311
MikhailModeratorHi Kevin,
You can swap bytes using formulas which are edited by SCADA-Administrator application.
Seeing that Modbus driver is currently improved it is possible to implement this function in Modbus Template Editor of Rapid SCADA Modbus driver. Probable within 2 weeks.
MikhailModeratorDoes CeweMod provide any diagnostic tools, such as web console, for example?
In compare with other Modbus devices it’s behavior is strange.
MikhailModeratorHex values shown in log also contains address, number of bytes, etc. That is why they are not 0 when data is 0.
If meter shows not 0 voltages, there is a mistake in received data. May be you send a request to CeweMod support?
MikhailModeratorHi Bret,
Step Two. Try to display data in a web page using the default configuration.
1. Run SCADA-Communicator.
2. Tick “Use SCADA-Server” back.
3. Start SCADA-Server and SCADA-Communicator services.Then click to your device tree node in SCADA-Communicator and post here the content of “Device Data” page. The easiest way is copying it from the file C:\SCADA\ScadaComm\Log\kp021.txt
Voltages already should be decimal. To convert energies we need improve KpModbus.dll possibilities.
MikhailModeratorHi,
It’s weird:
If “Address” field is 0, the result is allways [02] ILLEGAL DATA ADDRESS!
If “Address” field is 1, there are some success results and some errors [02].
If “Address” field is 2 or more, all the test requests is OK. But voltages and energies are 0. Is it normal? Do you have a clue why address must be 2 or more?I’ll send you a template file.
-
This reply was modified 10 years, 9 months ago by
Mikhail.
MikhailModeratorOK, send it to the e-mail written here http://rapidscada.org/contact/
-
This reply was modified 10 years, 9 months ago by
Mikhail.
-
This reply was modified 10 years, 9 months ago by
-
AuthorPosts