Forum Replies Created
-
AuthorPosts
-
MikhailModeratorHi,
Thank you for the details.
You should understand how the data are encoded when you send the command 0x10 (Write Multiple Registers):
You can choose either:
1. Binary command. Using this option you can explicitly specify the bytes which are sent. Let’s try it.2. or Standard command. See these lines:
modbusCmd.Data = cmd.CmdTypeID == BaseValues.CmdTypes.Standard ? BitConverter.GetBytes(cmd.CmdVal) : cmd.CmdData;
The value 14 is 0x402C000000000000 when converted into a double (see this). Then you send the 4 bytes from the right that are zeros.
You can create formulas in the configuration database to convert data entered by a human to the format described above.
MikhailModeratorHello,
Please provide the detailed description of the required changes.
MikhailModeratorI validated the packages by http://modbus.rapidscada.net/ They are wrong. Communicator never sends wrong requests.
Could you provide screenshots?If you need to send float, you need at least 4 bytes to store it. So you can’t use Write Single Register command which sends 2 bytes.
MikhailModeratorJust right click the tree node and choose restart the line.
MikhailModeratorHello,
Communicator can’t restart OPC server because this is another application. Is it enough to restart communication line to repair a connection?
MikhailModeratorHello,
then I couldn’t save this change as kpModbus.dll
Please explain what do mean? How do you do this?
I think, it’s possible to solve your issue without changing KpModbus.dll. I can tell how to configure it if you provide more information: what value should be sent by an operator and what data (in hex format) should be sent to the device?
Update: usually the command 0x10 (Write Multiple Registers) is used for sending float data to a device. In this case you can tick the Multiple command checkbox in Communicator and send any data.
-
This reply was modified 9 years ago by
Mikhail.
MikhailModeratorWhich development environment You use? It is .NET?
I use Microsoft Visual Studio 2015 Community Edition.
In case of questions about programming, create new posts in http://forum.rapidscada.org/?forum=development-and-integrationLet me know when Bosch answers about Modbus TCP 🙂
MikhailModeratorYou can purchase a training and we will solve the issues together via remote connection. Please send an email to get information about the prices.
MikhailModeratorYes, you can do it using JavaScript:
scada.clientAPI.getCurCnlDataExt(cnlFilter, function (success, cnlDataExtArr) { if (success) { // your code here } });Please ask more specific questions.
If you’d like, we can create a simple application together as a part of training.
MikhailModeratorHi,
I’ve read. Definitely, there is no notes that Modbus is not standard. Strange, Bosch is well known brand.Before decide, you should try to read other kind of data – input registers and check if it works or not, and what the issues are.
Also I strongly recommend trying Modbus RTU mode. It is strict and includes check sum. There is no way to dodge with protocol.
MikhailModeratorHi,
The chart drawn by the web application of Rapid SCADA can’t be used for automatic mail, because it’s generated by JavaScript in a user’s browser. The special module have to be developed that run on a server side. We can develop the module for you as a custom development or consult you how to do it by yourself.
MikhailModeratorExample:
Expected value of the tag #1 is 10, actual value is 0.
MikhailModeratorCurrently, it’s not implemented. Planned in the future version of schemes.
MikhailModeratorI mean:
What is Enron Modbus?
Enron Modbus is a modification to the standard Modicon modbus communication protocol developed by Enron Corporation.
See http://www.simplymodbus.ca/FAQ.htm#enronmod
MikhailModeratorHi Marek,
Probably the device uses a derivative protocol based on Modbus, but not standard Modbus. And this is the cause of the problems. Please read carefully the device manual. What is written in the manual about the supported protocol?
-
This reply was modified 9 years ago by
-
AuthorPosts