![]() |
![]() |
|
![]() |
||
Structured Text (ST) |
Sponsored by: KronoTour Travel
![]() |
Structured Text (ST)Structured Text (ST) is a high level textual language that is a Pascal like language. It is very flexible and intuitive for writing control algorithms. Structured Text uses operators such as logical branching, multiple branching, and loops. People trained in computer programming languages often find it the easiest language to use for programming control logic. When symbolic addressing is used, ST programs resemble sentences, making it highly intelligible to beginner users as well. ST is ideal for tasks requiring complex math, algorithms or decision-making. Its concise format allows a large algorithm to be displayed on a single. Benefits of Structured Text
CodeThe following is few example to show some typical Structured Text code: Example 1We have a level switch in a tank that indicates that the level of liquid in the tank is extremely high; Hence we want to trigger the siren when this happens.
Example 2We have a light that will be turned on by 2 switches. If any of the switches is in ON position then the light will turn ON.
Examples 3We have Motor that will be controlled manually by 2 push buttons (Start Push Button, and Stop Push Button). When the Start Push Button is pushed then the Motor will be turned ON. and when the Stop Push Button is Pushed then we want to stop the Motor. (Security logic has been taken off this logic, for the purpose of domonstration.)
|
Sponsored by: KronoTour Travel
![]()
|