RapidScada / scada

Contains Rapid SCADA sources
Apache License 2.0
680 stars 311 forks source link

Adding a C# script engine #45

Closed circler3 closed 6 years ago

circler3 commented 6 years ago

Ideas

Hi, thanks for this great project. A lot of scada systems contain script engines (e.g. VBA). I think script engine is very useful.

2mik commented 6 years ago

Hi, Could you explain your idea more detailed? What is the difference with the existing Rapid SCADA C# script engine?

circler3 commented 6 years ago

Hi. Differences from current formula engine in my mind:

2mik commented 6 years ago

Hi, When you use formulas, they are executed on server side. May be it should be a simple graphical tool for developing server modules? You right about code highlighting and compile checking. Currently, I recommend develop complex formulas in Visual Studio based on the FormulaTester project https://github.com/RapidScada/scada/tree/master/ScadaServer/FormulaTester

circler3 commented 6 years ago

Hi, Yes, a simple graphical tool for developing server modules (or scripts) is good for someone who want to leverage the server-side events (such as OnServerStart) but do not want to open visual studio to build a dll.

2mik commented 6 years ago

If somebody create the tool which implements intuitive script constructor, it would be great. The tool could generate a server module and add it to the server configuration. I'm not sure that my resources are enough for this task, because there are a lot of major features should be done.

zcattacz commented 3 years ago

A tool like https://dotnetfiddle.net/ ?

2mik commented 3 years ago

Something like PLC graphical languages: Ladder Diagram, Function Block Diagram (FBD) and Sequential Function Chart (SFC). https://en.wikipedia.org/wiki/Programmable_logic_controller