Frequently Asked Questions about SCLcode
Short answers about the AI SCL generator, the code it writes and how it fits into a TIA Portal workflow. Can't find your question? Use the contact page.
What is SCL?
SCL (Structured Control Language) is the high-level text language for Siemens SIMATIC controllers in TIA Portal and STEP 7. It is Siemens' implementation of IEC 61131-3 Structured Text, with Siemens-specific data types, instructions and block structure.
What does SCLcode do?
SCLcode is an AI code generator for Siemens SCL. You describe the logic in plain language, choose S7-1500, S7-1200 or S7-300/400, and get a complete function block or function with a validation report. You can download it as an .scl file and import it into TIA Portal.
Which PLCs and TIA Portal targets are supported?
Siemens S7-1500, S7-1200 and S7-300/400. The generator only uses data types and instructions available on the family you pick. SCLcode focuses on Siemens SCL only; it does not generate code for other PLC brands.
Is the generated SCL ready for production?
Treat it like code from a colleague: review it, simulate it (for example with S7-PLCSIM) and test it before use. Every block is checked for structure, Siemens-specific mistakes such as TIME() or DT_NOW(), and family compatibility, but the responsibility for the machine stays with the engineer.
Can I use it for safety functions?
No. Emergency stops, guard monitoring and other safety functions must be built with certified fail-safe (F) blocks and a safety-rated design. Use SCLcode for standard control logic.
Which AI model writes the code?
Claude Sonnet 5.5 from Anthropic by default. The Pro and Advanced plans use Claude Opus 5.5.
Is SCLcode free?
Yes, there is a free plan with a daily and monthly generation limit. Paid plans are Basic at $4.99, Pro at $14.99 and Advanced at $39.99 per month, with more generations, more history and tag table export on Pro and Advanced. See the pricing page for current limits.
Do I need an account?
Generating code requires a free account. The SCL validator, templates, examples and articles are open without signing in.
How do I get the code into TIA Portal?
Download the .scl file, add it under External source files in the project tree and choose Generate blocks from source. The import guide on this site explains each step and the common compile errors.
What happens to my prompts and code?
Prompts are sent to Anthropic to generate the code, and your generations are saved to your account so you can reopen them. Details are in the privacy policy.
Can it write Ladder (LAD) or FBD?
No, SCLcode writes SCL only. An SCL function block can be called from LAD or FBD networks like any other block, so you can keep ladder for the calling logic.
Is SCLcode affiliated with Siemens?
No. SCLcode is an independent tool. Siemens, SIMATIC, STEP 7 and TIA Portal are trademarks of Siemens AG, used here only to describe compatibility.
Generate your own SCL block
Describe the logic in plain language and get a Siemens SCL function block you can import into TIA Portal. Free account, no credit card.