Forum Replies Created
-
AuthorPosts
-
manjey73Participant// Set the default setpoint value. // For channels of the Calculated/output type public CnlData GetDefaultData(double val) { return Stat() > 0 ? Data() : NewData(val, 1); } // For a channel with the Integer data type public CnlData GetDefaultDataInt(long val) { return Stat() > 0 ? Data() : NewData(BitConverter.Int64BitsToDouble(val), 1); }If I understood correctly, you want to initialize some variables.
Here are the formulas that Mikhail once proposed.Formulas are used in the Input.
GetDefaultData(1)
SetVal(CnlNum, Cmd)is used for the output formulas-
This reply was modified 1 year, 3 months ago by
manjey73.
manjey73Participanttranslation of the readme for the module
Extension for launching external applications from RapidScada v.6.2.1.1
ModAbcLogicConfig.xml – a file for configuring the extension.
– AppObject – Settings for launching the application (each application has its own settings).
– – Input Channel – The channel number in Scada. The extension reads the value in the channel (it should be 0 or 1), 0 – does nothing, 1 -launches the application.
manjey73Participantonline translation
You can add Scripts to the table
public double StartProcess() { Process.Start(@"C:\SCADA\1.bat"); Console.WriteLine(DateTime.UtcNow.ToString()); return 1.0; }and call this function in the output formula of the channel.
Starting an external process is an unsafe action.
manjey73ParticipantThere are always online translators, which we use successfully, I also don’t know English well 🙂
manjey73ParticipantDecember 31, 2024 at 10:12 am in reply to: What is the difference between the drivers in the opendrivers directory and the #15866
manjey73ParticipantCouldn’t fit in one directory 🙂
manjey73ParticipantAddressing – start with 0 or 1
It is possible to specify byte permutation for 4 and 8 byte data
manjey73ParticipantI’m talking about the presentation table, two channels with the same tag code name are not displayed
there 🙂And there is no need to talk about the channel, which is an output channel and has its own unique tag code.
manjey73ParticipantYou can probably create a calculated channel with the right length to accommodate your message. Specify it as Format = String.
Specify that these channels are not saved in the database, so as not to waste space. And write a script that will write a line with your message into this channel when the signal = 1 is in the form of an ascii or unicode string.You can also add new enumeration text in auxiliary tables – formats. For example, for each device that you will have. It will most likely be
it seems there are educational videos on youtube. There is also a Documentation section on the website.
-
This reply was modified 1 year, 4 months ago by
manjey73.
manjey73ParticipantIt is better not to use the tag code to identify the scheduler. I added two channels, and only one of them was displayed in the table. I think the best option would be to make a choice from the list of channels, like it is organized in ChartPro, but even there it is not the best option. Calculating Fridays or Saturdays from the specified date and time is also not the best option. If the scheduler can work with any channels, then why should it identify itself? but editing tasks created by the scheduler would be very useful. There is also a question, commands can also be string, string HEX, string Date. can he send commands like that?
manjey73ParticipantTag code – Status (reserved name for driver)
Format channel – Normal-ErrorNormal = 0
Error = 1Need only one channel
Data Type – empty
manjey73ParticipantIt is incorrect to use the same tag code for multiple channels on the same device. This contradicts the concept of Scada.
The same tag codes are allowed on different devices.
manjey73ParticipantEach device has a service channel with the Status tag code-0=Normal, 1=Error
Just add a channel to the created driver and specify the Status tag code for it, select the Normal-Error format to display in text or leave D to display 0 or 1 as desired.
manjey73ParticipantThere are a lot of questions at once 🙂
manjey73ParticipantIf you wrote a script with an error, the Server will not start, you can see the cause of the error in the Server log, which is likely to be in CalcEngine.cs
-
This reply was modified 1 year, 3 months ago by
-
AuthorPosts
