Forge: Block Type Library
On this page
Forge is your reusable Block Type Library: you capture existing blocks from a PLC project, collect and organize them in one place, and later deploy the whole library into any connected PLC: the library's folder structure is recreated as the group structure inside the PLC. Along the way, Forge redraws existing projects as project graphs that you can browse, validate, edit, and deploy back into a PLC.
Open the Forge view container from the Activity Bar. The Block Type Library appears in the Side Bar as a tree of folders and types, laid out like the Project Explorer: a captured project shows its project folder, Source, and the Blocks, Datatypes and Tags folders with the same icons, and every block type carries the icon of its kind (FB, FC, OB, DB, data type, tag table).
Prerequisite: Forge is part of the paid editions. Without a license the Forge commands stay disabled. See Licensing.
Connect to Forge
- Open the Command Palette (
Ctrl+Shift+P) and run "Connect to Forge", or click Connect in the Forge view container. - Once connected, the Status Bar shows Forge: Connected and the library loads.
To disconnect, run "Disconnect from Forge".
Capture blocks into the library
You fill the library straight from an open TIA project (see Project Explorer). Both Forge and the TIA project must be connected.
- Right-click a PLC, a group, or a single block in the Project Explorer.
- Select "Capture to Forge Library".
- Confirm how many items to capture.
- Forge creates a reusable type for each item and mirrors the project's group structure as folders in the library.
The captured types sit under a folder named after the project (for example MixingPlant). This keeps types from different projects cleanly apart: you can tell at a glance what came from where, and capturing a second project no longer mixes its blocks with the first.
Capture covers blocks, data types, and tag tables, including those inside Software Units.
Every block is stored with its XML next to its source, the same pair an Export All writes, so the library holds what the project holds. Data types are stored in the library as XML. To store them as editable .udt source instead, switch on Capture Data Types as .udt Source (see Data types as .udt source or XML).
When it finishes, a notification reports how many types were newly created and how many were updated. Items that cannot be captured are listed with their name and reason; identical duplicates are skipped automatically and not counted as failures.
Organize the library
All operations are reached by right-clicking in the Block Type Library:
- New Block Type: adds a new, self-maintained type.
- Edit / Duplicate / Delete Block Type: on a type.
- Folder / Subfolder: structure the library to any depth.
- Rename: on a type or a folder.
- Move to …: assigns a type to a different folder; a picker lists every existing folder.
- Create Project Graph from Library (toolbar): builds a new project graph from the whole library.
- Create Project Graph from Folder: builds a new project graph from all block types in the folder.
- Create Project Graph from Selection: builds a new project graph from the selected block types.
Each entry in the list shows a short, neutral type tag after the block name (SCL, DB, UDT, or XML) so you can see at a glance what kind of type it is. The Plugins list shows the code generator as TIA SCL.
You can reorder entries by dragging. The folder structure you build here determines the group structure inside the PLC later.
The AI chat helps with writing your own type templates: ask the Forge Engineer agent. It knows the templating language and assists with creating, reviewing, and fixing your templates.
Install the ready-made example
So you don't have to start from scratch, Forge ships a ready-made example: a complete block-type library together with a matching example project graph you can study at your leisure.
- Click Install Example (MixingPlant) in the title bar of the Block Type Library, or run the same command from the Command Palette (
Ctrl+Shift+P). - A short notification reports how many types were added (and how many were already present), and whether the example graph was added.
You can run the command again any time: it never overwrites your own types or graphs. Items that are already present are skipped, and only what's still missing is added.
After installing, the library shows a single Mixing Plant Demo folder holding the complete example: the faithful plant blocks alongside the reusable example types; the example graph appears in the Project Graphs list.
Open any type to see how it is built: the templates are heavily commented and explain, step by step, how the generation works and when each piece is used. You can then generate code from them and deploy it to TIA the same way as your own types.
Storage & Git versioning
Both the Block Type Library and your Project Graphs can live in folders you control, so you can keep them under version control alongside the rest of your work. You set this up in AnyAutomation Settings → Forge.
Choose where the library is stored
Your reusable block types are kept in a Library Folder. By default Forge uses its own location, but you can point the library at any folder you like, for example one you already keep in a Git repository, so the whole library travels with your version history.
- In AnyAutomation Settings → Forge, set the Library Folder to the folder you want to use. Use Browse… to pick one, or leave the field empty to keep the default location.
- The folder icon on the field opens that folder on disk (the default location when the field is empty), so you can review and version what is stored there with Studio's built-in version control.
Store Project Graphs inside the project
Project Graphs are saved as text files. Because they are plain text, you can version them with Git, and changes show up in your diffs like any other file. The Project Tree is part of the graph, so it is versioned together with it. Your graphs are always saved and reload the next time you start.
On disk, each Project Graph is a folder holding a forge.yaml file: a graphs folder contains one such subfolder per graph. The settings describe this shape too, so you know what to look for when picking a folder.
In AnyAutomation Settings → Forge, the Project Graphs section controls where the graphs live:
- Project Graphs Folder: use Browse… to pick a fixed folder for your graphs. Point it, for example, at a folder you already manage in a Git repository. The folder icon on the field opens that folder on disk.
- Leave the field empty to store the graphs inside the open project: in a subfolder (
.forgeby default) right next to the project, which you can change under Project Subfolder. When no project is open, Forge uses a default location so your graphs are kept anyway.
Changing either setting takes effect right away: the Project Graphs list switches to the newly chosen folder and shows its graphs without reopening the view.
Load a graph from a file and reload the list
The Project Graphs list has two more title-bar buttons (shown once you are connected to Forge):
- Load Project Graph from File (folder icon): opens a file picker so you can load a graph that was not picked up automatically or lives outside the configured folder. Select the graph's
forge.yamlfile; the graph then appears in the list and opens right away, and a copy is saved into your current graphs folder. - Reload Project Graphs (refresh icon): re-reads the graphs folder from disk, for example after graph files changed outside Studio.
Put a folder under version control
To start versioning a folder, use the Initialize Git Repository button in the title bar of the Forge view itself, the Block Type Library view for your block types, and the Project Graphs view for your graphs (both shown once you are connected to Forge):
- Click Initialize Git Repository and Studio creates a Git repository directly in that folder, then confirms it with a short message.
- From there you can review, stage, and commit your block types or project graphs with Studio's built-in version control like any other folder. To reach the folder on disk, use the folder icon on its path field in the settings above.
Data types as .udt source or XML
Two switches in AnyAutomation Settings → Forge, section Data Types, decide how Forge handles PLC data types. Both are off by default.
- Capture Data Types as .udt Source: when you capture items from the project into the Block Type Library, data types are stored as editable
.udtsource. Off, they are stored as XML. - Prefer .udt over .xml on Deploy: when a deployment or an import to TIA Portal carries a data type both as
.udtand as XML, the.udtis imported and the XML is skipped. Off, the XML is imported and the.udtis skipped. If only one of the two is present, that one is imported either way. This applies to deploying the library, deploying a project graph, and importing generated files with Import Selected to TIA Portal or Import All to TIA Portal.
Note: A
.udtsource does not carry the fail-safe attribute of a data type. A fail-safe data type is therefore always captured as XML and always imported from its XML, whatever these switches say.
Both switches are separate from the data type options in the TIA Portal Import / Export settings, so Forge and your own exports can be set differently.
Edit a block type
Double-click a type in the Block Type Library and it opens as a tab: the type's fields on the left, one template tab per output target on the right. A captured block shows its source tab and a read-only XML tab; as soon as you save a change to the source, the XML tab goes away and the type is built from its source alone. The Save button in the toolbar saves the whole type: fields and all templates together.
Unsaved edits are safe: the tab marks them with the usual dot, switching to another tab and back keeps everything (fields and template text alike) and closing the tab asks first whether to save or discard, like any other file.
Open a template in a text editor
A template can also be edited in a regular editor tab, handy for placing it side by side with other files:
- click "Open Template in Text Editor" in the toolbar of the block-type tab, or
- right-click the type in the Block Type Library and choose "Open Template in Text Editor". If the type has several templates, a list first asks which one to open.
The text tab and the block-type tab always show the same content: what you type in one appears in the other immediately. Ctrl+S in the text tab saves just that template; the Save button in the block-type tab still saves everything.
A brand-new block type must be saved once before its templates can be opened this way. The same applies to a freshly added output target until the next save.
The chat sees your template
While the block-type tab (or one of its template text tabs) is active, the chat assistant automatically has that template as context: it appears above the chat input. Ask about the template right away: the assistant knows its content and the available template helpers, without you pasting anything.
Integrate a project
Forge can redraw an existing PLC program as a project graph in one step, capturing all its contents as coupled library types at the same time: the foundation for deploying the program back out of the graph later.
- Connect Forge and the TIA project first: only then does the matching entry appear in the right-click menu. Then right-click a PLC in the Project Explorer.
- Select "Integrate Project into Coupled Library" and confirm: library types with a matching name are overwritten.
- A progress display in the Import / Export section and in the status bar names each step with its counter: the export from TIA Portal, reading the exported files, analyzing calls and dependencies, building the project graph, capturing the library types, coupling the graph, importing it into Forge and opening it. Cancel stops the run. At the end the new graph opens as a tab, and a notification summarizes how many types were captured and how many objects and connections were drawn. The graph and its project tree are named after the project, and the captured library types sit under a same-named folder named after the project, keeping them separate from types of other projects.
Items that cannot be captured are named in the notification with their name and reason: they still appear on the graph, but stay without a coupled library type. When one object references the same other object several times, the graph shows a single connection instead of a bundle of parallel lines.
Create a project graph from the library
Turn the block types in your library into a ready project graph without opening a TIA project.
- In the Block Type Library, click Create Project Graph from Library in the view toolbar to use the whole library. To use one folder, right-click it and choose Create Project Graph from Folder. To use single block types, select them, right-click and choose Create Project Graph from Selection. The same command also sits in the overflow menu of the Project Graphs view.
- Enter a name for the graph, or keep the suggested one.
- The new graph opens. Its project tree shows the same folders as your library, with the tag tables as nodes of their own, and the blocks are connected the way they call and use each other: a block that calls another block, a block that reads a data block, a block that writes a tag or reads a user constant with the tag table that holds it, a block, data block or tag table that uses a PLC data type, and each instance data block with its function block.
Block types the selection depends on are added automatically, also when they live in another folder, so the graph builds and deploys as a whole. Tag tables are part of the graph like the blocks: a deploy brings them to the PLC together with the data types their tags use, and when you remove a block from the graph, the tag tables and data types that only this block uses are offered for removal with it. Block types inside a Software Unit are left out. The message after creating the graph names everything that was left out or added, the names it could not find in the library, and names that match more than one block type. Each run creates a new graph and never changes an existing one. You can build and deploy the graph like any other project graph. When two blocks of a graph carry the same name, the deploy stops before it changes anything in the PLC and names them.
Modules: turn a block into a module with instances
A function block that your project uses several times with the same footprint, such as a process module called from the main block with its own instance data block, its data blocks, a log constant and a parameter in the cell block, can become a module. Afterwards the project graph holds one node per module instance, adding a node generates the whole footprint a second time, and removing a node takes the whole footprint with it.
- In the Block Type Library, right-click the function block and choose Parameterise as Module, or open the block type and click Parameterise as Module in its toolbar. The same entry sits in the context menu of a block in an open project graph.
- The Module preview opens. It shows the module key (MIX for fbMixer) that you can change before re-analysing, the instances found in the project (MIX01, MIX02, ...), the members that belong to each instance (instance data block, data blocks, further objects named after the instance) grouped by their name pattern with a checkbox per group (groups the analysis is not sure about start unchecked), and every block, tag table, data block and PLC data type that mentions an instance or declares a member named after it, with its kind and the number of places.
- Under Decisions you see every place where a statement touches several modules at once, for example a line that hands a value from one module to another. Choose per line whether it stays as it is in the generated block (the default), is repeated for every instance, or is repeated with the other module's instance of the same number. Lines that use a name which is not created for every instance are listed without a choice and always stay as they are; the hint beside the line says why, for example which member group you need to check so that the line can be repeated, or that the name is written in different upper and lower case.
- Click Dry Run to see the result without changing anything: for every block the preview shows whether it passed the check (the generated block is identical to the captured one) and the generated template.
- Click Apply. The library now generates the hosting blocks from the list of instances. When the preview was opened from a project graph, that graph is converted at the same time: the instance data blocks and data blocks of every instance become one module instance node per instance, connected to the block that calls it and to the blocks that host it.
A library graph created afterwards with Create Project Graph from Library shows the module instances as nodes, too. To add an instance, right-click an instance node and choose Add Module Instance: the next free name is proposed (MIX03 when MIX01 and MIX02 exist, skipping names the project already uses elsewhere) and you can change it. The new node gets the same connections as its sibling. Remove Node on an instance node lists the blocks in which code is generated for this instance, so you see what disappears from them. A deploy of the graph generates every hosting block from its instances and brings the data blocks of every instance along under their instance names and with block numbers of their own, so the blocks of the existing instances keep their numbers. Data blocks and PLC data types that hold a member per instance get that member for every instance, with its start values. A block type you edited by hand after parameterising it keeps your edit and is not changed by a later module; a copy of such a block type is the plain captured block again.
If a new instance name is already taken by a block that stays in the project graph, Apply is held back and the preview names the block and the member group to check. The analysis reports what it could not decide: a block that calls the module from a graphical network, a member that serves two instances, a name of the pattern that the project already uses for something else (such a name is never proposed for a new instance), and a counter in a tag table that cannot follow the new instances. The module key is fixed once applied.
Parameterise as Module is offered for function blocks, not for safety function blocks. A module cannot sit inside another module: a function block that already holds code generated for a module is not offered and cannot become a module itself, and a block that is already a module stays unchanged when you analyse another module, the preview lists it and leaves its places as they are. Every module key must be unique in the library, also when only upper and lower case differ: when another module already uses the key, the preview says so, and you enter a different key and analyse again.
The assistant in the AI chat can do the same for you. Ask it, for example, to analyse fbMixer as a module: it reports the key, the instances, the members, the blocks involved and the lines that need a decision, and you can tell it how to decide them. When you ask it to apply the module, it first shows what will change, the key, the instances and every block that is regenerated, left as it is or held back, and it applies only after you confirm. When you name an open project graph, that graph is converted as with Apply in the preview.
A project graph made before a module was applied still holds the old instance data blocks and data blocks of that module as plain nodes. When you deploy such a graph, the deploy stops before it changes anything in the PLC and asks you to convert the graph first. Right-click the project graph and choose Convert to Module Instances, or click the button of the same name in that notice. A confirmation lists, for every module, the nodes that are removed and the module instance nodes that are added; after you confirm, all modules are converted in one step and a notice reports the result. A module whose blocks cannot be matched to exactly one of its instances stays unchanged and is named in the confirmation; to convert it, create the graph again with Create Project Graph from Library. The assistant in the AI chat can do this too: it shows the same list and converts only after you confirm. Convert to Module Instances needs the Pro+ plan; the free trial unlocks it too.
Some blocks contain code for every instance of a module, for example a tag table with the constants of each instance. When the project graph has the module instance nodes but no node for such a block, the deploy also stops and offers Convert to Module Instances. The conversion then adds these blocks from the library to the graph and connects the module instances to them; the confirmation names them. When a block cannot be added, because the library no longer contains it, it lies in a Software Unit, or another node of the graph already has its name, the confirmation and the result say that the conversion is incomplete and name the block with the reason. A deploy then does not generate the code of the module instances in that block: restore the block in the Block Type Library, or rename or remove the other node, and convert again; a block in a Software Unit you keep up to date in TIA yourself. A module instance node you added yourself with Add Module Instance is connected like the instance you added it from. When that cannot be told, the confirmation names it, and you remove it and add it again after the conversion.
Parameterise every function block an organization block calls
When your main organization block calls several process modules, you can turn them into modules in one run instead of one after the other.
- Right-click an SCL organization block, for example Main, in the Block Type Library or in an open project graph and choose Parameterise Called Function Blocks as Modules.
- The batch preview opens. It lists every function block the organization block calls, in the order of their first call, each with the line of that call, its proposed module key, its instances and the blocks that host them (the first ten, the full list when you hover over it). The function blocks that can become modules are checked; Check All and Uncheck All change all rows at once. Type another key into the Key field of a row when you want one; a key marked for review is not confirmed by the names of the instances, so check it before you go on. Show Details opens the members, hosts and decisions of a function block, the same as in the Module preview of a single block.
- Select Include indirect calls (through functions) to also list the function blocks that the organization block reaches through the functions it calls. The list stops at function blocks: what a function block calls itself is not added. Your checks and keys are kept.
- A row that cannot be checked says why: a safety block, a block without SCL source (graphical, library or system block), a block that is already a module or already holds one, or a function block without instances. When you check two function blocks of which one calls the other, both rows say Nested with ...: modules inside modules are not supported, so leave one of them unchecked. When two checked rows get the same key, also when only upper and lower case differ, both say Same key as ...: enter another key for one of them. A row that was left unchecked because of such a partner shows the reason as Not checked: .... Some notes do not stop the run: the function block is also called from another organization block, it is also used as a multi-instance in another block (that use stays as it is), or one of its hosts is itself a module (the calls in that host stay as they are).
- After changing checks or keys, click Analyse. Then click Dry Run to see the result without changing anything: for each function block whether it will be applied and which blocks it rewrites, or why it is left out.
- Under Conflicts Between Modules the dry run lists every statement that two checked modules would both repeat for their instances, for example a line in a shared block that hands a value from fbMixer to FB_Motor. By default such a statement stays as it is for both modules (Both stay literal). You can instead choose the module that repeats it, for example Loop in module MIX, and run the dry run again.
- Click Apply and confirm. The confirmation names the modules that are applied, the function blocks that are left out and the blocks of the library that are rewritten, and counts how the shared statements are handled. When the preview was opened from a project graph, Apply runs a fresh dry run first and the graph is converted to module instance nodes at the same time.
The library then looks as if you had run Parameterise as Module once for every applied function block, in the order of the calls. A function block whose calls the organization block cannot repeat for every instance is left out, and the others are applied anyway: a notice lists the function blocks left out, and the preview shows the reason on each row and under Batch Findings. Click Refresh to list the function blocks again after an apply. Add instances and deploy as described above. The dry run compares every generated block with the captured one, so after you add instances, compile the project in TIA to check the new ones as well.
The assistant in the AI chat can do the same. Ask it, for example, to list the function blocks Main calls, to analyse them as modules with a dry run, to let one module repeat a shared statement, and then to apply them. Before it applies anything it shows a confirmation that lists every module with its instances, every function block left out with its reason, every block that is rewritten and how each shared statement is handled, and it applies only after you confirm.
Parameterise Called Function Blocks as Modules needs the Pro+ plan; the free trial unlocks it too.
View the project graph
When Forge reads in an existing project, you can browse it as a dependency browser. Open a graph from the Project Graphs list in the Forge view container: double-click a graph and it opens as a tab. Even very large projects with thousands of blocks open instantly.
The tab is split into two areas: a tree of every block on the left, and the dependencies of the selected block on the right.
Pick a block in the tree
The tree on the left lists every block in the project in the same shape as the Project Explorer: the project, its Source folder, the PLC (when the graph was read from a project), then the Blocks, Datatypes and Tags folders and the groups below them, with the same icons. Each row carries the icon of its block kind (FB, FC, OB, DB, data type, tag table) and a small coupling indicator that shows at a glance how connected the block is. Click a block to see its dependencies on the right.
A search box lets you type a block name: the tree opens the folders on the way to the match and jumps straight there, so you can find any block without scrolling.
See what uses a block, and what it uses
For the selected block, two lists appear on the right:
- Used by: every block that uses this one (for example an organization block that calls it).
- Uses: every block this one uses itself (called blocks, referenced data types, and so on).
Each entry shows the block name and the kind of relationship as a colored tag. The filter buttons at the top hide a relationship kind or show them all again. A coupling indicator in the header sums up how connected the block is. If the block uses nothing, or is used nowhere, that is stated explicitly.
Click an entry to jump straight to that block: it is selected in the tree and its dependencies appear on the right. This lets you walk through the project step by step.
Switch between list and neighborhood
A switcher flips the right side between two views:
- List: the two columns Used by / Uses (described above).
- Neighborhood: a small picture showing the selected block in the centre with its direct neighbors around it. Click a neighbor to centre the view on it and keep moving. Scroll to zoom around the cursor, drag with the middle mouse button to pan, and double-click an empty spot to fit the graph back into view. Use the Depth stepper in the top-left corner to show more or fewer levels around the block, so you can trace what it uses (and what uses it) several steps out at once instead of clicking through block by block. If a level shows only some of the blocks, a +N more marker reveals the next batch of blocks each time you click it, and Show fewer folds them back; the table always lists every block. Right-click any block (the centre one or a neighbor) for Open Project Objects, Connect, Remove Edge, Delete Node, and Build Selected.
Whichever view you last chose is remembered for that graph.
Remove several graphs from the list
In the Project Graphs list you can also select several graphs at once: Ctrl+click adds or removes an individual entry, Shift+click selects a range, and Ctrl+A selects all. Then press Delete (while the list has focus), or right-click the selection and choose "Delete N Project Graphs": a single confirmation covers the whole selection. To remove a single graph, use the trash button that appears when you hover over its row.
Rename a graph
Right-click a graph in the Project Graphs list and choose "Rename Project Graph", or click the pencil in the Project Tree title bar. Type the new name and it appears everywhere: in the list, in the Project Tree, and in an already-open tab. (The project graph and the project tree are the same graph, so renaming takes effect in both.)
Edit the graph
You change nodes and connections from the toolbar buttons: Add Node, Connect, Remove Node, Remove Edge, and Refresh. Connect and Remove Node become active once you have selected a block; Remove Edge offers the selected block's connections to choose from. Before a block goes, the confirmation lists its instance DBs and the objects that nothing else uses once the block is gone, with a checkbox to take them along; blocks that call the removed block stay. After every change the view refreshes; if a change can't be applied, a message explains why and nothing changes.
When you remove a node that is the only user of other objects, for example a block whose data types nothing else references, the confirmation dialog lists those objects by name and offers a pre-ticked checkbox "Also remove N objects only this node references". Leave it ticked to clean them up together with the node, or untick it to remove just the node. Objects that any other node still uses are never listed and never removed.
Generate code for selected objects only
You don't have to generate the whole project at once: you can generate code for just the objects you pick.
- In the tree, select the blocks you want: hold
Ctrl/Cmdand click several of them, or holdShiftand select a contiguous range. - Choose Build Selected Nodes: from the Build Selected button in the toolbar, or from the Command Palette.
Only the selected objects are (re)generated; everything else you generated earlier stays as it is. The rest of the project is still checked in the background so cross-references resolve correctly, and the build only stops if something is wrong with one of the objects you selected.
When you are done picking objects, build the whole project instead with Build Project Graph (Command Palette) at any time.
Code generators and output targets
Forge turns each object into source through a code generator. The generators available to you are listed in the Plugins view of the Forge view container; the built-in generator for Siemens SCL appears as TIA SCL. Each row names the generator with its version. The list is informational: you do not pick a target here. Reload Plugins refreshes the list after you add or change generators. If no generator is available, the view says so in red and Build reports the same message: update Studio to the latest version, then choose Reload Plugins.
Choosing what to generate
You choose the output target every time you build, neither in the Settings nor in the Plugins list. As soon as you run "Build Project Graph" or "Build Selected Nodes", a picker asks which targets to generate for; every available target is pre-selected. Confirm the selection and the source is produced per target. TIA SCL is the built-in target for Siemens SCL.
Which generator serves an individual object depends on its Library Type, or, when none is set, its Sub-Type. You set both in the Inspect and edit an object section.
Choose which generated files to import
After a build, the generated files appear in the Build Output view, each with a checkbox (and a checkbox per group that ticks or clears all of its files at once).
- Tick the files you want and choose Import Selected to TIA Portal to import only those into the connected PLC. This action stays disabled until you have at least one importable file ticked.
- Choose Import All to TIA Portal to import every generated block, regardless of the checkboxes.
Both follow the usual rules: Forge and the TIA project must be connected, you pick the target PLC when the project has several, same-named blocks are overwritten only after you confirm, and a notification reports how many blocks were imported. Items marked as protected with the red lock in the project tree are not overwritten and are listed in the notification as protected (see Protected Items).
Browse objects in the Project Tree
The Project Tree view in the Forge Side Bar shows a project graph's objects as a folder tree: the same folder structure as in the project. When a folder level holds several kinds of objects, the tree additionally groups them by category (function blocks, data blocks, data types, and so on).
- When several graphs exist, a dropdown at the top of the view picks which graph is shown: each entry carries the graph's name plus its creation date.
- The trash button in the view's title bar deletes the shown graph (after confirmation).
- Click an object to inspect its details; double-click (or
Enter) opens the graph as a tab and jumps straight to the object. - Right-click an object for "Reveal in Graph", "Open Project Objects" (opens the table pre-filtered to the object's folder), and "Delete Node" (confirmed). Right-click a folder for "Open Project Objects in Folder".
The tree updates live as the graph changes.
Edit objects in the table
"Open Project Objects" (Command Palette, or the Project Tree's context menu) opens a graph's objects as a table in an editor tab: the place to review properties and edit them across many objects at once.
- Filter: toggles per object kind, a sub-type dropdown, a folder prefix box, a search across symbol and description, and a "Without edges" toggle for objects with no connections. A sort dropdown with an ascending/descending toggle orders the rows.
- Columns: Symbol, Kind, Sub-Type, Folder, Description, and Edges. When the table shows objects of a single sub-type only, it adds one column per property.
- Live values: when you are online with a controller, turn on Monitor at the top right: the Live column then shows each tag's current value and keeps it updated while Monitor is on. Structured objects and arrays show a dash, since they have no single value. To follow just one tag without monitoring everything, click the eye on its row to watch that single value; click it again to stop.
- Inline editing: click a cell (symbol, description, or a property) and change the value in place: it is saved immediately. If the object was changed elsewhere in the meantime, the table reloads the latest values instead of overwriting them.
- "Set Column…": select several rows and set one property to the same value for all of them. The operation runs with a progress indicator and can be cancelled; if a conflict occurs, it stops and reports how many objects were set. The rest are left unchanged.
If the project graph is deleted while its table is open, the tab shows a note saying so and can simply be closed. No error message appears.
Inspect and edit an object
Select an object (in the Project Tree, the table, or on the map) and the Inspector in the Forge view container shows all of its fields, grouped into Profiles, Node, Properties, and Data Points. Most fields are editable right here, and every change is saved immediately. If the same object was changed elsewhere in the meantime, the Inspector asks whether to reload the latest values instead of overwriting your edit blindly.
Profiles: profile and variant for the graph
The setting at the very top applies to the whole graph, not the single object: a Profile from the list (the entry None removes the assignment) and an optional Variant. This feeds the profile's defaults into every object (described in full under Profiles: layering default values).
Node: symbol, kind, description, sub-type, and library type
- Symbol: the object's name as it appears in the tree, on the map, and in references. Freely editable.
- Kind: the object's base category. Possible values: Equipment, Cell / Station, Resource, Workpiece, I/O Point, Hardware, and Composite. This field is read-only. Integrated blocks are always Composite, so a block captured from a project always shows the same value; the other kinds are assigned only when you model a system yourself.
- Description: a free comment. Freely editable.
- Sub-Type: the concrete block category the object represents. Type it directly, or click the picker symbol and choose from the Block Kinds (OB, FB, InstanceDB, FC, DB, UDT, TO, Tag), the Failsafe kinds (FOB, FFB, FFC, FDB), or enter your own identifier via Custom….
- Library Type: links the object to a reusable type in the Block Type Library; the source is generated from that type. Type it, or pick from your library or the built-in types via the picker symbol; "None" removes the link. When a Library Type is set, it takes precedence over the Sub-Type at generation time; with none set, the Sub-Type applies. When the type you pick relies on a shared data type, Forge adds that data type into the graph for you: it appears as its own node with a connecting line, so the dependency is visible and travels with the graph when you deploy. Setting the same type again does not create duplicates.
- Version: a read-only revision number that rises with every change. It prevents a change made elsewhere from being overwritten by accident.
Properties
The Properties section shows the object's properties, one per row:
- Declared properties of the sub-type or library type appear as matching fields (number, switch, dropdown, or text), some marked required (
*) or with a unit. You can clear their value but cannot remove the row. - Free-form properties can be edited freely and removed with the trash icon. Integrated objects bring such free-form entries, for example the block number, the project folder path, a flag for failsafe blocks, and the original TIA name.
Data Points
The Data Points section lists an object's named data points with their data type (and, where present, unit and value). The list is read-only. For integrated or freshly added objects it is usually empty: data points appear only when an object was loaded or authored with them.
Profiles: layering default values
A profile is a named set of default values that applies across a project graph. Instead of setting the same value on many objects one by one, you set it once in the profile: it then flows into the Effective Value column of the project objects and into the generated code. Values can be layered by Type, Role and Variant: a more specific value overrides a more general one.
Manage profiles
The Profiles view in the Forge view container lists every profile. Right-click an entry, or use the view's buttons:
- New Profile: you give it an identifier and a display name. Identifiers may contain only letters, digits, and underscores.
- Rename Profile / Duplicate Profile / Delete Profile: on a profile (delete asks first).
A double-click opens the profile in a tab.
Edit a profile
The profile editor is resolution-centric: you pick a target at the top, and below it you see, for each property, the value that results and where it comes from.
- Pick the target: set Type to the block type whose defaults you want to set, or enter a Role, and optionally a Variant. Type and Role are mutually exclusive; the editor tells you so (for example "Clear Role to target a Type").
- The table has three columns: Property, Effective Value and Source Layer.
- Inherited rows are dimmed; the source layer names where the value comes from: the built-in type default, the profile's Base, or a more general layer.
- Rows you set yourself show Owned in the source layer.
- Set a value: double-click a cell in Effective Value and type: the row becomes Owned (your own value for exactly this target) and shows the typed value immediately.
- Reset: the revert icon at the end of an Owned row clears your override; the row falls back to the inherited value.
- Save: Save (or
Ctrl+S) stores the profile; unsaved changes are marked with the usual dot on the tab. If you save a profile that has no values of its own yet, Studio confirms the save and reminds you that nothing is stored until you pick a Type and edit an Effective Value: picking a Type on its own stores nothing.
With Type set to the empty entry, the table shows the profile's base values (empty at first for a new profile). Pick a Type to see and set its properties. The editor remembers the last Type, Role and Variant you chose for each profile and brings it back the next time you open the profile, so your own values are in view straight away.
One profile covers many targets. You are not limited to a single Type: switch the Type (or Role / Variant) at the top and set values again: each target you edit is kept in the same profile. So one profile can carry, for example, base defaults plus separate values for mixerT and agitator side by side. When the profile is applied, an object takes the values from the layers that match it, and a more specific layer wins over a more general one: Type over Base, and a Type+Variant combination over Type alone. An object of a Type you never set simply gets the base (or built-in) values.
Values as expressions
A value doesn't have to be a fixed constant: you can enter an expression instead, evaluated per object at generation time. Write it with a leading =, for example ={{ node.symbol }} fault or ={{ node.props.openTime + 2 }}. An expression can read the object's name (node.symbol), its role (node.role), its type (node.type), and the object's already-set constant properties (node.props.<name>).
- To make a value start with a literal
=, prefix it with=(=Startproduces the text=Start). - In the editor the expression appears exactly as you typed it; it is evaluated only at generation time, per object.
- If an expression cannot be evaluated, the build reports an error for that object and generates nothing: a faulty value is never silently used.
Apply a profile to a graph
Which profile and variant apply to a project graph is chosen in that graph's Inspector, in the Profiles section: pick a Profile from the list (the entry None removes the assignment) and optionally a Variant. The chosen profile's defaults then appear in the Effective Value column of the project objects and flow into the generated code.
Preview generated source live
With a project object selected (in the Project Tree, the table, or on the map), "Preview Generated Source" (Command Palette) opens that object's generated source, read-only, right beside your work. The first time, Forge asks which code-generation targets to preview; the choice is remembered per graph. If the object has no generated source, a brief note appears in the Status Bar.
To make the preview follow your selection automatically, enable the Preview: Auto Open option in the Forge section of the Settings: the preview then refreshes by itself as you click through objects.
Validate the project graph
"Validate Project Graph" (Command Palette) scans a graph for anomalies: for instance a connection that comparable objects have but this one lacks, an empty required property, or an unusual numeric value. A notification summarizes warnings and notices, and the findings appear in the Diagnostics view under Anomaly Checks. Clicking a finding jumps straight to the affected object on the map. The check is read-only: it never changes the graph.
AI assistance
The chat assistant knows your project graphs: it can read objects and their properties, validate the graph, and, on your instruction, add, change, or remove objects and connections. Every change to the graph asks for your confirmation first, and you can let one through once, for the session, or for good if you would rather not be asked again.
The assistant also handles the machine catalog and CMS loop: ask it to declare a graph as a machine template, export the machine catalog to a file or push it to your Machine Catalog CMS, list the configurations published there, materialize a configuration (from a file or straight from the CMS, including sending the as-built manifest back), or push a machine's as-built manifest again after a deploy. Every step that changes something or talks to the CMS asks for your confirmation first, unless you allowed that step for the session or for good, and the strict validation is the same as with the commands: an invalid configuration materializes nothing.
Deploy the library to a PLC
One command materializes the whole library as blocks in a connected PLC.
- Make sure Forge is connected and the TIA project has a PLC (connect the project via "Connect to TIA Portal").
- Click Deploy (cloud icon) in the title bar of the Block Type Library, or run "Deploy Library to TIA Portal" from the Command Palette.
- If the project has several PLCs, pick the target PLC from the list.
- If blocks with the same names already exist, a confirmation appears with the number of blocks to be overwritten: confirm with "Deploy and Overwrite" or cancel.
- A progress notification follows the deploy; at the end a notification reports how many blocks were imported into the PLC. The project is then compiled and saved.
The blocks land in the same group structure as in the library: nested folders are created as nested groups in the PLC. Deploying again reuses the existing groups and overwrites the blocks.
Supported content: program blocks (FB/FC/OB, global and instance DBs), PLC data types (UDTs), and PLC tag tables. Types in unsupported categories are skipped before the deploy and counted in the final notification; statement-list (STL) blocks are likewise skipped up front and named in the final notification with their reason. Contents from Software Units are also skipped up front and named in the final notification with their name and reason: deploying into Software Units is not yet supported. Items marked as protected with the red lock in the project tree are not overwritten by a deploy and are listed in the final notification as protected.
Deploy a project graph
A project graph can be deployed straight into a connected PLC, too, with everything it holds: blocks, data types, and tag tables. A deploy of a whole graph or of the library replaces the content of the PLC: blocks, data types and tag tables that the graph or the library does not contain are removed. Before it starts, a warning asks you to confirm. Know-how-protected blocks and everything you marked as protected in the Project Explorer stay as they are, and so do the items the graph names without generating a file for them, such as instance data blocks. If the deploy fails, the message says whether the PLC is unchanged or what is missing, and whether the project was saved. You can cancel a running deploy; the message then tells you whether the PLC is unchanged. The tag tables come first, including those that hold only user constants, so data types and blocks that use a constant in an array bound or a string length import. The data types a block's interface relies on are deployed together with the block, so its interface resolves in TIA Portal instead of showing a missing data type.
- Open the graph as a tab and click Deploy (rocket icon) in its title bar (visible while the TIA project is connected), or click the rocket in the title bar of the Project Graphs list: the open graph is deployed; with none open, the only stored graph is used, and with several you pick one from a list. Alternatively run "Deploy Graph to TIA Portal" from the Command Palette.
- If the project has several PLCs, pick the target PLC from the list.
- If blocks with the same names already exist, confirm the overwrite with "Deploy and Overwrite".
- At the end a notification reports how many blocks were imported into the PLC and, when the compile ended with errors or warnings, how many; the errors also appear in the Problems view, on the block they belong to; a double-click opens the block at the statement, and when TIA Portal cannot hand out a block that failed to compile, the source that was deployed for it opens instead. When a build fails because of a template, the message and the Build Output view name the block type, the template and the line, and Open Template takes you there. If a block fails, the message names it with its name and reason. Everything else is still imported. Items skipped up front (such as STL blocks, or tag tables from Software Units) are also listed in the message with their name and reason, as are the items marked as protected, which stay unchanged.
Machine configurator: from template to finished machine
The machine configurator turns a project graph into a reusable machine template with selectable options, and stamps out any number of concrete machine variants from it, fully wired, addressed, and ready to deploy to a PLC.
The flow in short: you define a template once (which devices, which options), receive a configuration file with the chosen options per order, materialize it into a concrete project graph, and deploy that to the PLC. An as-built manifest then documents machine-readably what was built.
Define a machine template
- Open the project graph that should serve as the template, typically an integrated reference project.
- Bind the device nodes to their device types: select a node and fill in the Device Binding section in the Inspector. There you set which captured device type backs the node and how many instances it should produce: a fixed count or driven by an option. Names are set here too: a pattern for the instance names and a pattern for each instance's block names (so
dbPressbecomesdbPress_Press_1,dbPress_Press_2, … per press). - In the title menu (
…) of the graph tab, choose "Edit Machine Template Options" (also available from the Command Palette). A JSON editor opens with the template options. - Describe the template's identifier and display name plus its options (yes/no options, quantities with minimum and maximum, or choice lists) and optionally rules between options ("requires" / "excludes").
- Save via "Save Machine Template Options" in the title menu of the JSON tab. Invalid input is rejected and nothing is saved.
Once a graph is a machine template, it can no longer be built or deployed directly: it is an abstract blueprint. A notice asks you to materialize a configuration first instead.
Export the machine catalog
"Export Machine Catalog" (via the cloud icon in the title bar of the Project Graphs list, or the Command Palette) writes a catalog file with every machine template in the project: options, rules, and a summary of the devices, but none of your template internals. An external selection system (say, a CMS or your sales tool) can build a selection UI from it and produce ready-made configuration files.
Materialize a configuration
- Run "Materialize Machine Configuration" (via the cloud icon in the title bar of the Project Graphs list, or the Command Palette) and pick the configuration file.
- Forge validates the file strictly: unknown options, violated bounds, or broken rules abort, and nothing is created. If the template changed since the configuration was made, a prompt asks whether to materialize anyway.
- If a machine materialized from the same configuration already exists, Studio asks whether to replace it. Units that no longer appear in the new configuration are named.
- At the end a new, concrete project graph appears in the Project Graphs list: the shared type blocks (say, the press's function block) exactly once under their original names, plus per-instance data blocks named by your pattern, fully wired, with non-overlapping S7 addresses. The as-built manifest is written automatically next to the configuration file, and a notification reports how many instances were created.
Deploy the materialized machine
Deploy the materialized machine like any project graph (see above). The PLC ends up looking the way you would build it by hand: one type block per device type under its original name in the normal group structure, next to the instance data blocks of every configured instance with their unique names: three configured presses yield one fbPress and three instance DBs.
The as-built manifest
The manifest describes machine-readably what was built: all instances with their block names, addresses, and data points including connections: the foundation for downstream systems, say a SCADA binding itself to the PLC. It is written automatically on materialization; "Export As-Built Manifest" (title menu of the graph tab, visible only on materialized machines, or Command Palette) regenerates it at any time, for example after a deploy.
Working with a Machine Catalog CMS (optional)
Instead of passing catalog, configuration, and manifest files around by hand, Studio can run the whole loop directly against a Machine Catalog CMS: your company's central catalog store where sales or order handling configure machines. Your administrator provides the address and an access token. The catalog and CMS commands are gathered behind the cloud icon in the title bar of the Project Graphs list: one click opens the menu.
Set up: Enter the base address in Settings under Forge Machine Catalog CMS and store the token with the "Set Machine Catalog CMS Token" command: it is kept securely and never shown again. "Clear Machine Catalog CMS Token" removes it. While the address or token is missing, every CMS command tells you plainly what is still needed.
Push the catalog: "Push Machine Catalog to CMS" (cloud icon of the Project Graphs list, or Command Palette) uploads every machine template in the project together with its device-type summaries; the final notification reports the counts. Pushing again updates the entries without creating duplicates.
Materialize straight from the CMS: "Materialize Configuration from CMS" (also behind the cloud icon) lists the machine configurations published in the CMS (name, template, and last update) for you to pick. After the pick, the same strict validation and the same flow run as with the file-based way, including every prompt. The as-built manifest is written to the forge-manifests folder in your workspace and reported back to the CMS automatically, documenting the order as built. If a configuration from the CMS contains data that does not match the expected format, Studio aborts without creating anything.
Send the manifest again: "Push As-Built Manifest to CMS" (cloud icon of the Project Graphs list, title menu of the graph tab on materialized machines, or Command Palette) sends the manifest at any time, for example after a deploy. Studio finds the matching CMS configuration by name; with several candidates you pick from a list. With the setting "Automatically push the as-built manifest back to the Machine Catalog CMS after a materialized graph is deployed successfully" this happens by itself after every successful deploy.
Export a SCADA configuration from a selection
For downstream systems (say, a SCADA) Forge turns a canvas selection into a machine-readable SCADA configuration: the data points of your SCADA interface blocks with data type, start value, and comment, plus the variables of the selected tag tables with address and comment.
- Mark the interfaces: right-click a data-block node in the graph → "Mark as SCADA Interface". Mark as many as you need; the Inspector shows the mark, running the command again removes it. The mark is stored with the graph.
- Make a selection: select the nodes you want in the graph (the same multi-select as selective building): the marked data blocks and the variables that belong with them.
- "Export SCADA Configuration" (right-click the selection, or Command Palette): give it a name, pick a location: done, the file is
<name>.scada.json. Nested structures appear as dotted paths (Drive.Setpoint). - "Push SCADA Configuration to CMS" stores the same configuration in the Machine Catalog CMS instead (address + token set up as above). Pushing again updates the entry without duplicates; your SCADA toolchain can fetch the configurations from there.
If something cannot be read (say, a block source is missing and no matching TIA project is connected), the export aborts with a clear message and no half-finished file is written. Variable addresses and comments come from the connected TIA project; without a connection the message names the affected table.
Export straight from the project tree
You don't need a Forge graph for a SCADA configuration. In the project tree, right-click a data block, a PLC data type (UDT), a tag table, or a folder and choose "Export as JSON", and you get the same <name>.scada.json. Global and instance data blocks are exported the same way. When you export a single item, the file takes its name automatically; Studio asks for a name only when you export several items. Checked items come along, a folder takes every matching block under it. Tag tables now also bring their constants and the variables' comments; PLC data types land in the file with their full member structure, default values, comments and external accessibility. While the data is collected, the Import / Export section shows the progress and the elapsed time, and Cancel stops the export. To export all data blocks, PLC data types and tag tables at once, one file per object in the export folder, use the JSON chip of the Import / Export view, see Import / Export.
Generate from a CPU's OPC UA nodes
The richest configuration comes from the CPU's own OPC UA address space. Export it from the CPU context menu ("Export OPC UA Nodes"), then right-click the resulting file and choose "Generate SCADA from OPC UA Nodes". The result carries the real addresses your SCADA connects to, the tree structure, each signal's data type, and whether it is read-only or writable: exactly what the server actually exposes.
Generate a web dashboard
From a SCADA configuration Studio can build a runnable web dashboard. Set your dashboard server's address in Settings (Forge section), then run "Generate FUXA Project" on a .scada.json (or straight from the OPC UA nodes step): Studio builds displays and controls for every signal and sends them to the server, or writes them to a file for manual import. Writable signals appear as input fields, read-only ones as displays. Sending adds the dashboard to the project already on the server and keeps whatever you built there by hand; a confirmation shows first, and you can choose to replace the whole project instead. For a structured dashboard with several screens and a navigation sidebar, plan the screens on the SCADA page first (see below).
A short video walks through the whole flow, from a TIA Portal project to a running FUXA dashboard with live values over OPC UA: Generate a FUXA Web SCADA from a Siemens TIA Portal Project.
The generated dashboard shows more of what your signals already describe. A value carries its unit and the number of decimals you noted in the signal's comment, an input field keeps typed setpoints within the signal's limits, and a trend chart keeps its history and opens already filled instead of empty. Before a send replaces the whole project, the confirmation tells you how many devices, views and signals are on the server right now, so you see what it overwrites, and after a successful send you can open the dashboard in your browser with one click. The Open FUXA button in the Connection section does the same at any time.
Raise alarms
The dashboard can raise alarms. To mark a signal as an alarm, add a tag to its comment: {alarm=high} (or low, highhigh, info) turns the signal into an alarm, {group=Faults} sorts it into a group, {alarmtext=Motor overload} sets the message shown, and {alarmmin=95} together with {alarmmax=120} set the band for an analog signal. An on/off signal alarms when it turns on; an analog signal alarms while its value is inside the band, so it needs one. The chat assistant can mark a signal as an alarm for you as well, with the same severity, group, text and band.
Whenever the dashboard has an alarm, its header shows an alarm banner, so an active alarm is visible from every screen. You can also place an alarm table on a screen: it lists the active alarms with their time, message, type, group, status and whether they have been acknowledged. Ask the assistant for an alarm table when it proposes your screens, or add one to the plan yourself.
Keep your manual edits when you send
Screens, devices and alarms you added by hand in FUXA are kept when you send again. By default a send merges the generated dashboard into the project on the server: the generated screens, devices and alarms are added or updated, screens Studio removed are removed on the server too, and hand edits to a generated screen are overwritten by the next send. Every send first backs up the project on the server into the backups folder of your SCADA project. A send you start opens the send dialog with the target, the pages to send, the backup and every check, and nothing is written before you confirm it. In that dialog you choose the mode for each send: pick Replace the Whole Project when you want a clean slate instead, which removes everything on the server and writes only the generated dashboard. Sending into an empty server is the same either way.
Connect to a secured OPC UA server
Many PLCs require a secured connection to their OPC UA server, with signed and encrypted messages and a user login. In Settings, SCADA section, choose the OPC UA security mode the server needs (None, Sign, or Sign and Encrypt), pick the security policy (Basic256Sha256 is the usual choice for a modern Siemens CPU), and enter the user name if the server asks for one. Store the matching password with the "Set OPC UA Password" command ("Clear OPC UA Password" removes it); the password is stored securely and is never written to a file. You can also set the mode, policy and user name, and the password, straight from the OPC UA Security row on the SCADA page.
The generated dashboard then connects to the PLC with those settings. For a signed or encrypted connection the PLC must trust the dashboard's client certificate: in TIA Portal, add it to the OPC UA server's trusted clients, or allow clients to be accepted at runtime, then approve the dashboard on its first connection. Leave the mode on None and the user name empty for a server that allows unsecured, anonymous access.
The SCADA side bar
Instead of running the steps one command at a time, work in the SCADA side bar (the dashboard icon in the Activity Bar): a SCADA project keeps the signals, pages, rules, symbols and targets of a dashboard as files in one folder, so every step lives in a view of its own. The Project view holds the project and Send to FUXA, the Signals view loads the nodes of a CPU from a node set file, from the connected TIA project or straight from a running CPU and lets you tick the signals you want, the Pages view lists the pages and applies the rules that place a widget for every signal, the Symbols view shows your own SVG symbols, and the Rules view switches the rules on and off. Each page opens in a page editor where you move and resize widgets, drop signals and symbols, try the page out in a preview and view it in FUXA. The SCADA Dashboards page describes the whole workflow: how to open the side bar, loading signals, arranging the pages, the page editor, symbols with states, your symbols in the FUXA editor, sending and what the assistant does for you.
The two file commands above stay available for a one-off dashboard from a .scada.json file or a node set file; the side bar gathers everything else into one place.
See what Forge is doing
The Activity view in the Forge side bar shows the Forge operation that is running right now: creating a project graph, building, deploying a graph or the library, capturing blocks or integrating a project. You see its name, how far it is (for example Create Project Graph: B: 1250/4319), the time it has been running, the item it is working on, and a Cancel button that stops it. When a deploy reaches TIA Portal, the import steps appear there as well, with the same counts as in the Import / Export view.
Below it, Finished lists the operations that already ran in this window, newest first, each with its duration and its result, for example Build Project Graph: B · 02:10: 4319 artifacts, 0 errors, 11 warnings. A cancelled run says so. The list keeps the last 25 runs and is empty again after you close the window.
The Output panel has its own Forge channel: it shows live what the generator and the Forge connection are doing, helpful when a capture or a deploy doesn't produce the result you expected.
Notes & limitations
- Forge and the TIA project must both be connected. If either connection is missing, or the project has no PLC, a notification says so and nothing is changed.
- Overwriting requires confirmation: same-named blocks are only replaced after you confirm.
- Graphical blocks (LAD/FBD) may be rejected by TIA Portal depending on the target CPU; SCL blocks, instance and global DBs, UDTs, and tag tables deploy reliably. The final notification reports any blocks that were not imported, with the reason.
- Statement-list blocks (STL) are skipped up front during a deploy and named in the final notification with their name and reason, instead of producing a TIA Portal error.
- Same names in several places: when two items share one name (say a data type under the PLC data types and a same-named one inside a Software Unit), both are captured; the item from the Software Unit gets a unique label in the library that shows which Software Unit it belongs to. Only identical duplicates in the same place are skipped quietly.
- Tag tables from Software Units are currently skipped up front on deploy and named in the final notification with their name and reason: deploying into Software Units is not yet supported.
- Deploying nested groups requires TIA Portal V17 or newer.