Collection of C# snippets ready for copy-paste
Rockwell Automation maintains these repositories as a convenience to you and other users. Although Rockwell Automation reserves the right at any time and for any reason to refuse access to edit or remove content from this Repository, you acknowledge and agree to accept sole responsibility and liability for any Repository content posted, transmitted, downloaded, or used by you. Rockwell Automation has no obligation to monitor or update Repository content
The examples provided are to be used as a reference for building your application and should not be used in production as-is. It is recommended to adapt the example for the purpose, of observing the highest safety standards.
Important
This guide does not replace the official FT Optix documentation, it is just a place some code snippets with a brief explanation.
Warning
These snippets may use some non-public APIs that may be subject to changes, please refer to official documentation to access the publicly available APIs which are guaranteed to be maintained.
Warning
Some of the snippets from this repository may irremediably break your project, use them at your own risk. Make sure to implement proper error handling and testing before deploying them to a production environment.
Warning
Usage of the version control features of the FactoryTalk Optix IDE is hightly recommended to avoid any data loss. Make sure to commit your changes regularly to recover from any potential issue.
- Managing aliases
- Resource URI
- Variables formatting
- RegEx
- Variables Interaction
- Runtime tags import
- Dynamic Links
- PLC Tags
- Audit signature
- Log output
- Database interaction
- Random generation
- Execute commands
- Translations
- Users and groups
- Alarms
- System Node
- Template Library (starting from FactoryTalk Optix 1.6.X)
Warning
The following topics are very advanced and potentially dangerous, think twice before implementing them as they could lead to unexpected results