- FactoryTalk Design Studio Help
- Programs, tasks, and routines
- Add-On Instructions
- FactoryTalk Design Studio Code editor
- Instructions
- Instruction set
Code Editor
The Code Editor in
FactoryTalk Design Studio
is a tool that allows you to view, edit, and create project source code. The FactoryTalk Design Studio
project source code is created in a Domain Specific Language (DSL) and provides the underlying structure for the FactoryTalk Design Studio
elements such as programs, routines, tasks, Add-on Instructions (AOIs), User-defined Data Types (UDTs), and FactoryTalk® Smart Object
s. The code created in the Code Editor is presented in graphical form in the editors. The code editor follows the IEC 61131-3 standard syntax rules. For example, the syntax is not case sensitive, element names can contain up to 40 characters, and every statement ends in a semicolon. You can also add comments in the source code to provide information about the contents of the file. Single-line comments are prefaced with a double slash, and multi-line comments are prefaced with an asterisk and a slash.
Open the Code Editor from a routine or program by right-clicking the routine or program and selecting
Code Editor
.
IMPORTANT:
To avoid errors in your code, remember that changing an object name in the Code Editor does not change all references to that object.
IMPORTANT:
Modifying
FactoryTalk Smart Object
s, Add-On Instructions, programs, and routines in the Code Editor may cause syntax errors and corrupt the file. Rockwell Automation recommends using the user interface to create or modify code.Provide Feedback