Explainer
SCL and VBScript: why the two learning paths differ
Short answer
SCL and VBScript are learned separately because they execute in different machines: SCL is the controller's structured-text language running inside the PLC scan, while VBScript exists only in HMI runtimes whose documentation lists scripting. The CSL shorthand in training requests resolves to SCL. Pick each course by controller, engineering tool and runtime target, and let the application's requirements decide which side you learn first.
On this page
Treat SCL and VBScript as two different courses, because they execute in two different machines. SCL, Structured Control Language, is the structured-text language of SIMATIC S7 controllers: it runs inside the controller scan cycle, and learning it means blocks, data types and cyclic execution, not syntax alone. VBScript exists only in the HMI runtimes whose documentation lists scripting, and it works on the screens, tags and system functions those runtimes offer. A course in one teaches nothing about the other. The CSL that circulates in training requests resolves to SCL: Siemens documents the language as Structured Control Language, so a listing that says CSL should be confirmed with the provider before you pay. Decide which path to fund first by asking where each requirement of your application is observed; the worked example below runs that count.
Two languages, two execution places #
SCL is documented as a high-level, PASCAL-based programming language for SIMATIC S7 CPUs, and it supports the block structure of STEP 7. Under the IEC 61131-3 language set it is the structured-text member, which is why generic structured-text material transfers once the vendor specifics are learned. The program lives in blocks that the controller calls in a defined order, so the real content of an SCL course is that structure: block interfaces, execution order, retained state and the repeated processing cycle. The manufacturer publishes a programming guideline for the S7-1200 and S7-1500 that covers SCL alongside its block and style guidance, and that document belongs on the reading list beside any course.
VBScript belongs to the visualization side, and it is documented per runtime target. The scripting sections of the WinCC documentation name Panels, Comfort Panels, RT Advanced and RT Professional, with RT Professional the SCADA-grade PC runtime of that family; the manufacturer publishes them in the WinCC Advanced programming reference, with editions at V13 SP2 and V14 in its support system. A script does not run in the scan. It runs on the panel or the runtime PC, it is triggered by events and function lists, and it reaches the controller only through tags.
So one word, programming, covers two machines. SCL competence is controller competence; VBScript competence is runtime competence for one documented target family. A project that uses both needs each checked against its own documentation.
What the SCL path has to cover #
Begin with the prerequisites rather than the syntax: tags, data types, blocks and cyclic execution. A first block needs a typed input, a calculation or decision, an output and one deliberately retained variable, and the pass test is that repeated scans produce predictable values with the state held between them. If the block only behaves once, the cycle behavior has not been learned yet.
Match versions before paying. Name the course tool version, your installed TIA Portal version and your CPU family as one set, because a course can teach correct language concepts with a different editor or instruction set than your installation runs. The same discipline applies to documentation: the article on WinCC V13 tutorials and which documentation fits your engineering edition shows that matching check done properly.
If the engineering environment itself is the unknown, go one level below the language first: a companion piece explains what STEP 7 is in a PLC project and which one you need, and that sorting-out comes before any language course makes sense.
What the VBScript path has to cover #
The configured HMI device decides what exists. It determines which objects, properties and system functions the script editor offers, so scripting is learned against one target family, not in the abstract. The documented map, read from the scripting section titles:
| Runtime target | Scripting documented | Limit to plan around |
|---|---|---|
| Comfort Panels, the family the KTP900 sits in | VBScript and system functions are named for this family | Scripts run on the panel, never in the controller scan |
| Panels, the Windows CE operator terminals | VBScript documented | Local scripts are not supported here |
| WinCC RT Advanced on a PC | VBScript documented | Local scripts are not supported here |
| WinCC RT Professional on a PC | Named in the runtime scripting section | PC runtime: verify license and operating system separately |
| Basic Panels | Function lists are documented; the scripting section titles do not name this family | Those pages alone do not establish scripting there |
One documented limit deserves its own line: local scripts are not supported in WinCC RT Advanced or on the Windows CE panels, so on those targets scripts are organized at the runtime level, which shapes how you structure exercises.
RT Advanced and RT Professional also run as PC software, and that move carries its own checks of device version, license and startup; the article on running an HMI project runtime on a PC without the panel walks through them. For the wider operator-side picture before any scripting course, what HMI programming covers from screens to controller tags is the better first read.
Where the two paths meet: the tag #
The boundary between the two languages is the tag. SCL produces the values, the runtime acquires them at its own cadence, and a script reads or writes them there. The controller event happens inside the scan; the panel observes the trigger tag when it next acquires it. A script reacting to a changed trigger is therefore late relative to the event by however long that acquisition takes, and no scripting skill recovers a value that was not captured at the event. If a record must show the measured value as it stood at the trigger instant, the capture belongs in the controller, with an explicit handover to the panel side for storage and display.
Prove all of this on an isolated bench with verified test tags before it touches a running line, because a script write lands in a real tag.
Working the example: 1 measured tag, 1 trigger tag, 1 USB file #
This is the on-demand logging job on a KTP900, worked as a decision about which course to buy first.
Inputs, each with its source:
- One measured tag, the logged value, and one trigger tag, the event, both named by the logging task itself.
- One output file, a text file on USB storage, also from the task.
- A KTP900 panel, which sits in the Comfort Panel family of the table above, so scripting is documented for it, with an S7 controller programmed in SCL behind it.
- One assumption that decides the split: the record must show the measured value as it stood at the trigger instant, the usual point of an on-demand log.
The rule in words: assign each requirement to the environment that observes it at the moment its correctness depends on. An event-instant value is observable in the controller scan; writing the file belongs to the panel, where the USB port and the file handling live.
The arithmetic: the task carries 1 + 1 + 1 = 3 requirements. Event-accurate sampling puts two of them in the controller, trigger capture (1) plus measured-value capture at the same instant (1), which leaves 3 - 2 = 1 on the panel side: write the record when the controller hands it over.
Result: a 2-to-1 split, controller side against panel side.
Decision: learn SCL first. Two of the three requirements sit there, including the timing one that no script can recover after the fact, so that path decides whether the log is right. The branch: if the requirement instead accepts whatever value the panel last acquired, the split becomes 0 against 3, the whole job is runtime-side, and the scripting and function-list course comes first. Threshold for any logging or alarm task: every requirement whose correctness depends on the event instant counts on the SCL path.
Choosing the training in order #
- Fix the names before paying: the controller language is SCL, the panel side is the scripting and system functions of your configured runtime target, and a syllabus that cannot name language, tool version and target is rejected.
- Count ownership before counting course hours: assign every application requirement as in the example, and fund the side that owns event timing first.
- Match versions as one set: installed TIA Portal version, CPU family, panel and configured runtime.
- Practice each language in its own machine: an SCL block with typed inputs, a decision and retained state in the controller environment, then a panel exercise that reads a tag and fires once per documented event, run on a simulator or the panel itself; the piece on testing HMI simulation against a live PLC sets up that second half.
- Demand behavior as the pass mark: the SCL block holds state across repeated scans with predictable values, the script acts once at the event instead of repeatedly while the condition holds, and the script runs on your configured target rather than merely compiling.
- Take material from the vendor channels: the support portal keeps a curated controller overview with the training and course links for the TIA Portal environment, and software and documentation come only from the manufacturer or its distributors.
Questions asked
Is VBScript the same language as the VBA inside Excel or Word?
No. Some syntax carries over, but VBScript and VBA are different environments with different object models. A script written against spreadsheet objects will not run on a panel or in a WinCC runtime, because those objects do not exist there. Learn the runtime's own objects, screens, tags and documented system functions, instead of a general VBA course.
Does learning SCL make panel scripting easier?
Only indirectly. A panel script consumes tags; it never reads your controller code, so SCL skill does not transfer to the runtime's object model. What does transfer is discipline: named tags, agreed data types and a clear owner for every value. Agree those with the PLC project first, and the script side of the work becomes small.
Where should the controller-side learning material come from?
From the vendor's own support portal, which keeps a curated overview of controller documentation and training links for the TIA Portal environment. Work through the SCL programming concept pages for your CPU family and the published programming guideline for the S7-1200 and S7-1500. Take software and manuals only from the manufacturer or its distributors.
Can one course cover both the PLC language and the panel scripts?
Only if the syllabus names all three: the controller language, the engineering tool version and the panel runtime target. Most courses teach one side well. A promise that says only Siemens programming usually means the controller, with scripting as an appendix if it appears at all. Two targeted courses beat one broad one for this pairing.
If a script compiles in the editor, will it run on my panel?
Not necessarily. The editor offers objects and system functions based on the device configured in the project, so compile against your configured target rather than a generic one. Correct syntax can still fail at execution when an object from another runtime is missing. Prove each script on a simulator or the panel itself before relying on it.


