Learn Citect-scada - 10 Code Examples & CST Typing Practice Test
Citect SCADA (now AVEVA Plant SCADA) is a high-performance industrial SCADA system designed for reliable real-time monitoring, process control, alarming, and visualization in manufacturing, energy, utilities, and infrastructure environments.
View all 10 Citect-scada code examples →
Learn CITECT-SCADA with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
Hello World Message in Citect SCADA
Message("Hello World from Citect SCADA!");
Show a simple message box in Citect SCADA using Cicode.
Increment an Integer Tag
INT val;
val = TagReadInt("Counter");
val = val + 1;
TagWrite("Counter", val);
Increase the value of an integer tag by 1.
Toggle a Boolean Tag
BOOL current;
current = TagReadBool("LightOn");
TagWrite("LightOn", NOT current);
Toggle a boolean tag, useful for lights or motor start/stop.
Display Tag Value in Graphic
REAL level;
level = TagReadReal("TankLevel");
SetLabelText("TankLevelLabel", NumToStr(level, 2));
Read a tag and display it in a numeric text object in a graphic.
Write Multiple Tags at Once
TagWrite("MotorStart", TRUE);
TagWrite("MotorSpeed", 50);
Set multiple tag values in a single script.
Slider Control for Speed Tag
REAL speed;
speed = GetSliderValue("SpeedSlider");
TagWrite("MotorSpeed", speed);
Bind a slider in a graphic to update a speed tag.
Log Button Click Event
STRING logEntry;
logEntry = DateTime() + " Button clicked";
WriteLog("ButtonLog", logEntry);
Log each time a button is pressed.
Read Multiple Tags into Array
REAL values[2];
values[0] = TagReadReal("TankLevel");
values[1] = TagReadReal("PumpStatus");
Read several tag values and store them in an array.
Conditional Action Based on Tag Value
REAL temp;
temp = TagReadReal("TankTemp");
IF temp > 80 THEN
TagWrite("CoolerOn", TRUE);
ELSE
TagWrite("CoolerOn", FALSE);
ENDIF;
Control another tag based on a condition.
Frequently Asked Questions about Citect-scada
What is Citect-scada?
Citect SCADA (now AVEVA Plant SCADA) is a high-performance industrial SCADA system designed for reliable real-time monitoring, process control, alarming, and visualization in manufacturing, energy, utilities, and infrastructure environments.
What are the primary use cases for Citect-scada?
Large-scale industrial SCADA monitoring. Water/wastewater plant control. Manufacturing visualization & alarming. Energy and substation monitoring. Redundant distributed control systems
What are the strengths of Citect-scada?
Extremely scalable for large systems. Reliable and proven over decades. Strong redundancy and failover support. Flexible with scripting and customization. Stable performance under heavy I/O loads
What are the limitations of Citect-scada?
UI/graphics builder feels older compared to modern HMIs. More configuration steps than modern low-code SCADA tools. Driver setup sometimes requires manual tweaking. Not as easy for beginners without SCADA background. License cost can be significant for large I/O bases
How can I practice Citect-scada typing speed?
CodeSpeedTest offers 10+ real Citect-scada code examples for typing practice. You can measure your WPM, track accuracy, and improve your coding speed with guided exercises.