Learn STUDIO5000-EXTENSIONS with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Conditional Conveyor Control
IF SensorInput THEN
ConveyorMotor := TRUE;
ELSE
ConveyorMotor := FALSE;
END_IF;
Control a conveyor motor based on sensor input with Rockwell ST extensions.
2
Array Sum Using Proprietary Functions
Sum := 0;
FOR i := 0 TO ArraySize-1 DO
Sum := Sum + MyArray[i];
END_FOR;
Sum elements of an array using proprietary Rockwell ST extensions.
3
Timer-Based Output Control
TON_Timer.PRE := T#5s;
TON_Timer(IN:=StartSignal);
IF TON_Timer.Q THEN
Output := TRUE;
ELSE
Output := FALSE;
END_IF;
Use a timer to control an output using Studio 5000 ST extensions.