Forum Replies Created
-
AuthorPosts
-
manjey73
ParticipantWhen working with a remote server, you need to install and configure a PC with an Administrator and on a remote server for the settings functionality to work correctly. In this case, it is necessary to register only on a remote server, where the plug-in, module or driver will work directly
manjey73
ParticipantCopy the plugin according to the folders. Run the Administrator, do download the configuration from the server. You will see all the configuration files in the WEB tree. Open the Plugins section in the WEB tree and connect the required one.
manjey73
ParticipantThe plugin is configured for the amount that you need. The question about kits is not quite clear? It starts working in full on one web server without restrictions.
manjey73
ParticipantIn version 6
Download the configuration from the server – to get all the configuration files in the project.
Go to the WEB settings in the Administrator, Plugins – enable (connect) the pluginmanjey73
ParticipantIt is better to do it through a plugin, for the possibility of transferring later to version 6. But given that version 5 is no longer being developed, you can do it directly, but it will only work in version 5. If you write directly in version 6, then after updates you will have to integrate the code again and again after each update.
manjey73
ParticipantNow it is not very convenient, since it is necessary to develop for the Schema Editor in the 5th version, and at the same time make the plugin for the 6th version. It will be easier when the schema editor is ported to the 6th version.
manjey73
Participantyou have to copy the configuration between the project folders
manjey73
ParticipantIt seems there were publications on the Russian forum. As far as I understand, there is a difficulty only in transferring the database
manjey73
ParticipantTip: upgrade to version 6, it is somewhat more flexible
manjey73
ParticipantOn the 5th version, there is no channel display as a HEX number, as in the 6th version. Most likely only using ASCII String with the corresponding transformations using formulas.
manjey73
ParticipantThen you probably need a trigger to change the channel and specify “Send command” in the command.
And if necessary, use the formula in the command to check the value for the range 0-100 and, if it goes beyond the range, return Double.NaN to cancel the command
manjey73
ParticipantTrigger parameters check Value. Edit Value = 15
Command Value = 15manjey73
Participantpublic byte[] NewFreq1() { string tes = Encoding.UTF8.GetString(CmdData); uint teu = uint.Parse(tes)*100; byte[] teb = BitConverter.GetBytes(teu); return new byte[] { 0x00, 0x01, teb[1], teb[0]}; }
We use the Binary command type and enter 30 and so on in string mode (not Hex)
manjey73
Participanttest script
public byte[] NewFreq1() { return new byte[] { 0x00, 0x01, CmdData[0], CmdData[1]}; }
Using string input, with the Binary command type, you can accurately convert the entered digits to uint and add them to the block of data being sent.
manjey73
ParticipantSo it’s strange to me that when sending a Cmd command, it is a double, and in theory, returning a double formed from the required bytes, we should send something other than say 30, which we enter. But for some reason nothing happens.
However, if we use Binary, we can send anything in a byte array, but then we need to somehow convert the received value first into a string, then again into the required bytes, etc.
I don’t know if it is available for formulas in the 5th version of the ScadaUtils function to do this.
Via string here (not Hex) I haven’t tried it yet, there you can use the language to form an array according to the idea. -
AuthorPosts