Update .gitignore and README.md for CODESYS MCP project. Added entries to .gitignore for VSIX files and VS Code settings. Expanded README to include architecture, components, deployment instructions, and details about the Cursor extension.
This commit is contained in:
46
vscode_codesys_companion/snippets/codesys-st.json
Normal file
46
vscode_codesys_companion/snippets/codesys-st.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"Function Block": {
|
||||
"prefix": "fb",
|
||||
"body": [
|
||||
"FUNCTION_BLOCK ${1:FB_Name}",
|
||||
"VAR_INPUT",
|
||||
" ${2:inputVar} : ${3:BOOL};",
|
||||
"END_VAR",
|
||||
"",
|
||||
"VAR_OUTPUT",
|
||||
" ${4:outputVar} : ${5:BOOL};",
|
||||
"END_VAR",
|
||||
"",
|
||||
"VAR",
|
||||
" ${6:internalVar} : ${7:BOOL};",
|
||||
"END_VAR",
|
||||
"",
|
||||
"${0}",
|
||||
"END_FUNCTION_BLOCK"
|
||||
],
|
||||
"description": "CODESYS function block template"
|
||||
},
|
||||
"Program": {
|
||||
"prefix": "prg",
|
||||
"body": [
|
||||
"PROGRAM ${1:PLC_PRG}",
|
||||
"VAR",
|
||||
" ${2:xStart} : BOOL;",
|
||||
"END_VAR",
|
||||
"",
|
||||
"${0}",
|
||||
"END_PROGRAM"
|
||||
],
|
||||
"description": "CODESYS program template"
|
||||
},
|
||||
"Timer TON": {
|
||||
"prefix": "ton",
|
||||
"body": [
|
||||
"${1:tonTimer}(IN := ${2:xEnable}, PT := T#${3:1s});",
|
||||
"IF ${1:tonTimer}.Q THEN",
|
||||
" ${0}",
|
||||
"END_IF;"
|
||||
],
|
||||
"description": "Insert TON call template"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user