Skip to content

Studio

AI assistant

In Studio you type what you want. The assistant turns the request into code, Studio runs that code in the project and lists what was done. The model runs on this computer.

What it does

The assistant is a local AI tool inside Studio. You use it in two places:

  • The Assistant panel on the right: you type requests that do work in the project, or ask questions.
  • The Assistant panel in the code area: you ask questions while writing a script and try the code from the answer before adding it.

The assistant exists only in Studio. It does not run in Live.

Doing work by typing

  1. Open the panel

    Press Assistant on the toolbar, or open it from the Tools menu.

  2. Type your request

    Write tag, screen and connection names in full. If you name no screen, the open screen is used.

  3. Read the result

    The model writes the code and Studio runs it in the project. The Action box lists what was added, changed and deleted.

  4. Review and save

    The assistant does not save the project. You check the result in the table and on the screen, then save.

Task Example request
Tags On PLC_Proses create 5 Real tags from T201_Seviye to T205_Seviye, addresses start at DB40.DBD0 and step by 4 bytes
Alarms Add an analog alarm that warns when T102_Seviye goes above 90
Scripts and tasks Write a VBS script that appends T102_Seviye to a CSV file every hour, and set up its task
2D screens Open a 1024 × 600 screen named Pompa_Ozet, add a pump and a lamp, bind them to the P101_Calisiyor tag
3D scenes Build a 3D scene named Tank_Ciftligi: 2 tanks side by side, a pump in front, connected with pipes
Bulk changes Make the pipes in the Tesis_3B scene dark gray
Settings Set the start screen to Genel_Bakis
Questions How many tags are in the project, and which have no connection?

Writing to tables goes through the same validation as Excel import: unique names, selection values and PLC address format. For timed scripts a task is added as well. The panel design wizard opens with the requested settings, and you press Create yourself.

Undo, delete confirmation and correction

Everything done by one request is a single undo step. The Undo button or Ctrl+Z reverts the whole action.

  • Code that deletes something asks first. The box names what will be deleted, and you choose Apply or Cancel.
  • If the code fails, Studio reverts the whole action and asks the model for corrected code. This happens at most twice, and it stops if the same error comes back.
  • If the code changed nothing in the project, the warning No change was made to the project. appears. The model saying it is done does not count.
  • Show code opens the code that ran.

While writing scripts

The Assistant button in the header of the script code area opens the panel to the right of the code. The model answers in the language of the open script: VBS, JavaScript, Python or C. This panel does not change the project. Code enters the editor only when you press a button.

  • Insert at cursor: inserts the code at the cursor, or replaces the selected code.
  • Replace all: replaces all the code in the editor.
  • Copy: copies the code to the clipboard.

The code in the answer goes through the Issues check: syntax, tag and screen names in the project, and script permissions. This check does not run the code.

Dry run

Studio runs the code from the answer in a simulated tag environment with two scenarios. The code writes nothing to the PLC, and the project’s tags do not change.

Scenario Tag values
Start values The tag’s start value. If empty, numbers are 0, Bool is false and text is empty.
High values For numbers, the tag’s upper limit, or 100 if there is none. Bool is true.

The result shows the tags read and written, notifications, opened screens, tags that are not in the project and runtime errors. If there is a runtime error, a timeout or a missing tag, Studio asks the model for one correction. You still add the corrected code to the editor yourself.

The model runs on this computer

Studio starts the model as a separate program on this computer. That program listens only on 127.0.0.1, so other computers cannot connect to it. Studio sends requests only to this program, and the project is not sent out. The assistant needs no internet connection. When Studio closes, the model closes too.

The model receives a project summary: connections, tags, screens, scripts, the open screen and the selected objects. In the code area it also receives the open code and the selected code.

Requirements

The AI Package does not come with the FabyaVision installer. After signing in, download it as a zip from the Download page; the installer inside places the package in FabyaVision’s ai folder. The package is about 4.8 GB, and you can carry it by USB to a computer with no internet.

Item Requirement
Operating system 64-bit Windows.
Memory Total memory must exceed the model file by at least 3 GB.
Graphics card Optional. A card visible through Vulkan with free memory at least 1 GB above the model file is used. Without a suitable card, the model runs on the CPU.

The model does not load when Studio starts. It loads the first time a panel opens, and a request typed in the meantime waits. Response speed depends on the model size and the hardware.

Limits

  • The model can misunderstand a request. Review what it did, and test the project before going live.
  • The assistant does not deploy the project to Live, does not run it and does not connect to a PLC.
  • It does not cover recipe and report design screens, menu and toolbar design, object animations or creating faceplates.
  • A dry run tries only two fixed sets of values and does not read live tag values.
  • In module scripts a procedure is defined but not called. Object properties, CreateObject, file and database operations are not tried in a dry run.

Frequently asked

Does the assistant write to the PLC?

No. The assistant changes the project in Studio. A dry run works with simulated tags.

What language are the answers in?

The model is asked to write its explanations in the interface language: Turkish for a Turkish interface, English for any other.

Does it see every tag in a large project?

The project summary holds the first 60 tags, and the code area sends the first 150. If you write another tag’s full name, Studio passes that tag to the model as well.

Related pages

Try it free

Download the trial, open the sample project and see this feature on your own screen.