Learn GE-IFIX-EXTENSIONS with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Alarm Trigger Handling
IF AlarmActive('HighPressure') THEN
Message('High pressure detected!');
CloseValve('V1');
END_IF;
Execute an action when a specific process alarm is active.
2
Start/Stop Process Script
IF TagRead('StartButton') THEN
StartProcess('Pump1');
ELSIF TagRead('StopButton') THEN
StopProcess('Pump1');
END_IF;
Start or stop a process based on operator input or tag state.
3
Calculate Average Sensor Value
Sum := 0;
FOR i := 0 TO SensorArraySize-1 DO
Sum := Sum + SensorArray[i];
END_FOR;
Average := Sum / SensorArraySize;
Compute the average of multiple sensor readings using iFIX scripts.