Learn WONDERWARE-SYSTEM-PLATFORM with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Alarm Trigger Notification
IF Alarm1.Active THEN
SendNotification('Alarm1 triggered');
END_IF;
Send a notification when a specific alarm is triggered.
2
Start/Stop Process Control
IF StartButton.Pressed THEN
Process1.Start();
ELSIF StopButton.Pressed THEN
Process1.Stop();
END_IF;
Control a process start and stop sequence using System Platform scripts.
3
Calculate Average Sensor Value
Sum := 0;
FOR i := 0 TO SensorArray.Size-1 DO
Sum := Sum + SensorArray[i];
END_FOR;
Average := Sum / SensorArray.Size;
Compute the average of multiple sensor readings within a script.