Forum Replies Created
-
AuthorPosts
-
fischerp
ParticipantHello,
After considering the tip above and various tips in other posts, I have managed to write values to a Modbus device. Now I am failing at what is actually a simpler task. I want to send an on/off signal to a device.
I send values by creating a button in the Scheme editor, entering “send command” as the action and specifying the relevant output channel.https://imgur.com/a/Auyj4LJ Button to send Value
In the Chanels, I enter SetVal(310,Cmd) as the output formula, where 310 is the channel number of the value to be changed. The channel type is defined as input/output, the formula is activated. This is all in the same line as the actual channel definition. This works perfectly, I get a mask in which I enter the new value, which is transferred to the device and immediately appears in Scada as a new (read) value.
Now I would like to send a signal that switches a digital input. Analogous to the procedure described above, I have created a button, action send command, output channel is the channel that is to be switched.
I have now entered the following in the channels: type input/output, formula SetVal(305,Cmd), format Off-On.
I would now have expected an input mask to appear when the button is pressed, in which I can choose between off and on.
Here is a screenshot of the channels:https://imgur.com/jPixGTK channels
-
This reply was modified 5 months, 3 weeks ago by
Mikhail.
fischerp
ParticipantThank you for your answer, unfortunately I can’t do much with it because I don’t speak Russian.
Obviously I need to embed the code that Mikhail shows in the linked post somewhere. Is that correct?
Where?
And how do I then access the function?fischerp
Participantvermutlich habe ich mich unkla ausgedrückt, die Art, wie die Datei erzeugt wird, ist genau das, was ich benötige. Was mir fehlt, ist die Einbindung in das UI.
Ich fülle die Eingabemaske für ExtExternalTools so aus:
ExternalTools
Where do I have to enter the program call so that it can be called by the UI? In views? How?
Viewsfischerp
ParticipantI am also interested in the possibility of creating a pure CSV file without an XML header.
Could you provide an example of the existing file you get and a file you need?
This is just what i need.
I also found ExtExternalTools and tried to use it.
I created a new entry (add), gave it a name (Create CSV), and specified the location of the exe file. Arguments = {ItemFileName}, which is probably the channel name. Working directory is the storage location of the EXE file.
The whole thing is saved and uploaded.
Now it should be possible to create an entry in the project tree somewhere, e.g. in Views.This is how the mask for ExtExternalTools is filled in
https://imgur.com/a/DXsXmlT
Presumably I still have to enter this in Views? But how?
https://imgur.com/a/Q7LXkuRfischerp
ParticipantHello,
I would like to add my voice to this question. I am also interested in the possibility of creating a pure CSV file without an XML header. As a test, I have only unzipped the ZIP file on the computer on which Rapid-Scada is running. That works.
Is it possible, like the other plugins, to integrate the function into the frontend (Webstation)?
Greetings
Peterfischerp
ParticipantThanks, this works
great!!fischerp
ParticipantIs this an automatic parameter that appears in another channel? Or should you change it yourself in the billing channel, depending on the situation?
There are two registers (and therefore two channels), one with the raw value and one with the power of ten. Since the factor is not fixed, but changes from time to time, I cannot specify a fixed factor, but have to calculate it permanently from the given values (powers of ten).if I could calculate the factor automatically from the power of ten, then the proposed solution would be optimal. So -1 is 10^-1 i.e. 0.1.
So there should be a formula of the following type: Cnl*(10^(power of ten(Valxx))What do you have against Cnl*Val(xxx) or Cnl/Val(xxx) and the calculation is done in the xxx-channel.
This is basically my idea, but I don’t have the factor (e.g. 100) in the second channel, but the power of ten. See aboveThe power of ten should be stored in a separate channel.
This is exactly the problem. The channel does not contain the factor, but the power of ten of the factor. So the question is: How can I calculate the factor from the power in Rapid Scada?
fischerp
ParticipantI probably expressed myself in a misleading way. It is not a static factor, that would not be a problem. They are factors that change depending on the operating status.
“how do I calculate the correct value 235, for example, from the combination of 23500 (raw value) and -2 (factor as a power of ten)” In the example above, the factor can then change to -1 or -3 during the runtime, which would then of course be 0.1 or 0.001. It is therefore a matter of evaluating the specified power (power) so that the actual value can then be specified in a formula in the form “Cnl*Val(xx)”.fischerp
ParticipantNow I have a small problem, but it’s more of a blemish. While in the USA the comma is used as the 1000 separator, in Europe it is the period. So I would like to swap the point and comma in the display. Is there a setting for this somewhere?
fischerp
ParticipantAfter following your suggestion and playing around with a value and changing the zero-dased and one-based setting, I get valid values for this one register. The others should no longer be a problem. This seems to have solved the problem for me.
Thank you very muchfischerp
ParticipantI have now created a second communications line (Modbus2). I have specified this new line as the communications line in the device.
I have synchronized in the Communicater and received an entry for the new line with the associated device.
The error remains the same.
Apart from the IP address and the registers to be queried, the settings are identical.
The computer on which the previous version was running is defective, so I no longer have access to the old log files and the old settings.
“Note that ILLEGAL DATA ADDRESS is the answer of your device.”
I can use the settings: Input registers Address 400 (401,402,403) Integer I can read the content of the 4 registers in the ModbusMasterSimulator. The setting in Rapid Scada should be the same: Input Registers short (2byte) Address 400 (401,402,403)
These 4 registers are clearly available. Do I have to specify 30400 (30401,30402,30403) for Input Register (FC04) in Rapid Scada? The manual of the connected hardware clearly states 0x190 and the following 3 > read, 16bit integer.
I don’t know where else I could look.fischerp
ParticipantI have just seen that something is missing in my presentation of the devices:
Number 1 is the name “Wechselrichter”
Number 2 is the name “Temperaturmodul”fischerp
ParticipantHello,
I hope I understand your question correctly.
the structure looks like this:
Communicator – Communication Lines – Modbus Line.
Under ModbusLine there are two entries, “Wechselrichter” and “Temperaturmodul”.
Or do you mean the structure of Devices?
There are two entries:
Number 1 Device Type Modbus Numeric Address 1 IP 192.168.2.49 CommLine ModbusLine
Number 2 Device Type Modbus Numeric Address 1 IP 192.168.2.48 CommLine ModbusLineI don’t know what the Numeric Address is all about. Can it be the same? Does it have to be mentioned elsewhere?
Both devices are Modbus TCP devices that are in the same network segment behind the same router. Currently connected, port 502, IP address as mentioned above.
I can access them with the settings I made in Rapid Scada (with the ModbusMasterSimulator)
I’ll send screenshots if that helps. Can I upload them directly here in the forum if necessary?
fischerp
ParticipantAfter I understood what the above meant, I got the plugin to work. However, there is still a small problem. The charts are black and white and I get the following error:
Error loading configuration: Could not find file
C:\Program Files\SCADA\ScadaWeb\config\PlgChartPro.xmlThe XML file should be generated automatically according to the instructions. What could have gone wrong? Or how can I fix it?
fischerp
ParticipantNow I am a bit confused.
I have a Windows PC on which I have installed Rapid-Scada. This means that both the administration program (Administrator.exe) and Scada (all databases, Webvisu, server…) are on the same computer.
Here I have copied the files contained in the plugin into the respective folders of the same name. As recommended in the instructions, I have checked that all dlls are not not locked. In this case, this is only the PlgChartPro.View.dll in the folder Scada-ScadaAdmin_Lib.
In this context, I don’t understand the difference between the runtime server and the “PC on which I am currently developing”. From my point of view, this is just one device.
What do I understand wrong? -
This reply was modified 5 months, 3 weeks ago by
-
AuthorPosts