While Proxus provides a robust Rules Engine for standard automation, some industrial use cases require highly customized logic, complex state management, or specialized protocol parsing.
Edge Scripting allows developers to write, compile, and deploy standard C# code directly to the Edge Gateways via the Management Console.
Why Use Edge Scripting?
- Custom Math & Logic: Perform complex statistical calculations or proprietary derivations.
- State Management: Maintain long-term state across hours or days of operation.
- Integration: Directly interact with external APIs or local hardware ports from within your logic.
- Isolation: Each function runs in its own sandbox, ensuring system stability.
Key Components
User Functions
Learn how to inherit from FunctionBase and handle real-time event streams.
Deployment & Logs
Monitor the health, performance, and stdout of your running scripts.
Technical Context
Proxus scripts are built on the Proxus SDK. When you upload a script, the Central Server compiles it into a portable assembly and pushes it to the target Edge Gateways via the secure messaging layer.
- Compilation: Code is validated and compiled on the server.
- Distribution: Atomic distribution to one or more Gateways.
- Execution: The script is hot-swapped into the running Gateway process without a restart.