Structured Text (ST) Programming in Schneider EcoStruxure Control Expert

Published on Aug 26, 2025 | Category: EcoStruxure Control Expert

Share this Page:

Structured Text (ST) is a high-level programming language used in industrial control systems and PLC programming. It allows engineers to write complex logic in a more readable and efficient way, making it easier to handle advanced automation tasks.

ST is standardized under the IEC 61131-3 standard, which ensures compatibility across different PLC platforms. By using Structured Text in Schneider EcoStruxure Control Expert, programmers can reduce complexity and improve flexibility in automation projects.In Structured Text, instructions are used to assign values returned from expressions to parameters. This structured approach helps in organizing logic, controlling processes, and creating reliable industrial automation applications.

What is Structured Text?

Structured Text (ST) is a high-level programming language used in PLC programming. It is part of the IEC 61131-3 standard and is similar to traditional programming languages such as Pascal or C. Structured Text is mainly used when complex calculations, data handling, or conditional logic is required, making it more flexible than Ladder Logic or Function Block Diagram.

Structured Text Example

In this example, the motor will turn ON only when the Start_Button is pressed and the Stop_Button is not pressed. Otherwise, the motor remains OFF.

Explanation of Elements

Arithmetic Operators in Structured Text – Schneider EcoStruxure PLC

Arithmetic operators are used in Schneider EcoStruxure Control Expert PLC programming to perform mathematical calculations such as addition, subtraction, multiplication, and division. These operators help in handling numeric values in automation logic.

Result := A + B;   (* Addition *)
Result := A - B;   (* Subtraction *)
Result := A * B;   (* Multiplication *)
Result := A / B;   (* Division *)
Result := A MOD B; (* Modulus - remainder *)

Example: If A = 10 and B = 3, then:

Logical Operators in Structured Text – Schneider EcoStruxure PLC

Logical operators in Schneider EcoStruxure Control Expert are used to evaluate conditions and make decisions. They return a TRUE or FALSE result depending on the logic.

IF (Start_Button AND NOT Stop_Button) THEN
   Motor := 1;
ELSE
   Motor := 0;
END_IF;

Example: The motor will turn ON only if the Start button is pressed AND the Stop button is not pressed.

Assignment Operator in Structured Text – Schneider EcoStruxure PLC

The assignment operator (:=) in Schneider EcoStruxure Control Expert is used to assign a value or the result of an expression to a variable. It is one of the most commonly used operators in Structured Text programming.

Temperature := 75;
Motor := 1;
Result := A + B;

Example: Motor := 1; assigns the value 1 (ON) to the variable Motor. Similarly, Result := A + B; stores the sum of A and B into the variable Result.

How to Create a Structured Text (ST) Program in Schneider EcoStruxure Control Expert

Follow the steps below to create a new Structured Text program in EcoStruxure Control Expert:

img/ecostruxure-st/how-to-create-program-in-structured-text-in-Schneider-ecoStruxure-control-expert.webp

Schneider EcoStruxure Control Expert Structured Text Example

The following Structured Text (ST) program demonstrates the use of assignment operators, conditional statements, and arithmetic operators in Schneider EcoStruxure Control Expert.

img/ecostruxure-st/structured-text-example-in-Schneider-ecoStruxure-control-expert.webp

Explanation of Structured Text Example – Schneider EcoStruxure Control Expert

img/ecostruxure-st/simulation-of-structured-text-example-in-Schneider-ecoStruxure-control-expert.webp

Build and Test Your Structured Text Program in Schneider EcoStruxure Control Expert

Follow these steps to test your ST program using the PLC simulator:

Tip: Always save your project before downloading to the simulator to prevent losing changes.