Repository navigation
Add Siemens AWL (STL) UDL - #433
Merged
Merged
Conversation
Syntax highlighting for Siemens STEP 7 / TIA Portal statement list source files (.awl), German mnemonics, light theme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a UDL for Siemens AWL / STL (statement list), the instruction-list language of STEP 7 classic (S7-300/400) and TIA Portal, in its German mnemonics (
U,O,SPBN,AUF, ...). The collection has two Siemens SCL UDLs but nothing for AWL/STL (the existing "STL" files are for 3D stereolithography).UDLs/Siemens-AWL-STL_byLudborg.xml: light theme, extension.awlUDL-samples/Siemens-AWL-STL_byLudborg.awl: sample blockudl-list.json: new entryWhat it highlights: instructions, jumps/calls/block end (separate color), operand areas (
E,A,M,DBW,DIX,PEW,AR1...),#locals,"symbols",'strings', typed constants (W#16#00FF,S5T#2S,L#100,P#DBX 0.0,P##param),TITLElines. Folding of blocks,VAR...END_VAR,STRUCTand eachNETWORK.Language reference: Siemens manual "STEP 7 - Statement List (STL) for S7-300 and S7-400 Programming" (German mnemonics are the default in German/Italian STEP 7 installations).
Tested in Notepad++ 8.7 on the sample and on real STEP 7 exports.
validator_xml.pyandvalidator_json.pypass locally and in CI on my fork. On the fork, the last CI step ("Update repo with automated changes") fails only because the bot can't push the rebuiltudl-list.mdto the fork; the validation steps are green.AI disclosure: the UDL, sample and JSON entry were written with Claude Code (model Claude Opus 5.5), from the prompt "find or create a Notepad++ syntax highlighting language for AWL and SCL files" and then "submit the AWL one to the UDL collection". I reviewed and tested the result.
🤖 Generated with Claude Code