Forum Replies Created
-
AuthorPosts
-
MikhailModeratorCould you provide screenshots that explain the question?
MikhailModeratorProbably channel data is not ready when InitScripts is called.
What kind of channels do you need to initialize?
MikhailModeratorFor a channel of the input type it depends on Communicator.
The Communicator app sends data to Server after each session and every period (60 seconds by default).
MikhailModeratorIf you use some variables in your scripts, you can initialize them in the InitScripts method, for example. It is called once when Server starts.
MikhailModeratorYou can call the HourStarted function inside your own custom functions. It is auxiliary.
MikhailModeratorThe CountPulse function should be used in a channel of the calculated type. It should refer another channel. If the 2nd channel changes from 0 to >0, the 1st channel is increased. Check the source code in the Scripts table.
MikhailModeratorEveryXXX function is executed many times a second. When a time is elapsed, the method passed as an argument is executed. Find the source code of the EveryPeriod function in the Scripts table.
MikhailModeratorHello,
Please ask questions in proper different topics.January 2, 2025 at 12:47 pm in reply to: After using Rapid Scada, individual ideas make suggestions #15885
MikhailModeratorThank you for your thoughts.
Item 2. You can. Try Ctrl + C.
Items 1 and 3 have been added to the back log.
MikhailModeratorWhen a command is sent, an output formula of the channel is executed. In that output formula you can write a value to the channel as discussed above.
MikhailModeratorNote that executing external scripts is not secure. They can hang, or can be modified by an intruder. It’s better to interact with other services via API or industrial protocols.
MikhailModeratorHello,
The general algorithm is as follows:
1. Send a command via the web interface.
2. In a channel, use an output formula that executes a script.
3. As shown above, the channel’s output formula should run a command likeProcess.Start(@"C:\SCADA\1.bat");Ask for more details if needed.
January 2, 2025 at 12:39 pm in reply to: Add OPC DA error:’OpcRcw.Comn.IOPCServerList2′ No such interface supported #15881
MikhailModeratorIt means exception throw in OpcNetApi.dll. Maybe OpcNetApi.dll not implement the requirement interface(IOPCServerList2, I found project B implement and it doesn’t use OpcNetApi.dll)?
Sometimes it’s possible. If an OPC server implements not all required interfaces, some OPC clients work with it, others don’t work.
January 2, 2025 at 12:38 pm in reply to: I would like to inquire about the Service control command failed message. #15880
MikhailModeratorHello,
Please provide a screenshot of the error.
MikhailModeratorWhere do I have to enter the program call so that it can be called by the UI? In views? How?
If you need to execute some external app from the web interface, there should be another approach. Please create a new topic to discuss it.
-
AuthorPosts